SatNOGS-COMMS
4.1.0
A COMMS subsystem for CubeSats
Toggle main menu visibility
Loading...
Searching...
No Matches
overlays.hpp
Go to the documentation of this file.
1
/*
2
* SatNOGS-COMMS MCU software
3
*
4
* Copyright (C) 2024, Libre Space Foundation <http://libre.space>
5
*
6
* This program is free software: you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation, either version 3 of the License, or
9
* (at your option) any later version.
10
*
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with this program. If not, see <http://www.gnu.org/licenses/>.
18
*
19
* SPDX-License-Identifier: GNU General Public License v3.0 or later
20
*/
21
22
#pragma once
23
24
#include <zephyr/devicetree.h>
25
41
42
#if DT_NODE_EXISTS(DT_ALIAS(uartlog3)) && DT_NODE_EXISTS(DT_ALIAS(pc104_usart3))
43
#error UART3 cannot be used for logging and as IO interface at the same time. \
44
Consider selecting a proper overlay configuration
45
#endif
46
47
#if DT_NODE_EXISTS(DT_ALIAS(uartlog1)) && DT_NODE_EXISTS(DT_ALIAS(uartlog3))
48
#error Only one UART can be used as logging interface. \
49
Consider selecting a proper overlay configuration.
50
#endif
51
52
#if DT_NODE_EXISTS(DT_ALIAS(uartlog1)) && DT_NODE_EXISTS(DT_ALIAS(uartlog4))
53
#error Only one UART can be used as logging interface. \
54
Consider selecting a proper overlay configuration.
55
#endif
56
57
#if DT_NODE_EXISTS(DT_ALIAS(uartlog3)) && DT_NODE_EXISTS(DT_ALIAS(uartlog4))
58
#error Only one UART can be used as logging interface. \
59
Consider selecting a proper overlay configuration.
60
#endif
61
62
#if DT_NODE_EXISTS(DT_ALIAS(uartlog4)) && DT_NODE_EXISTS(DT_ALIAS(uartgnss4))
63
#error UART4 can be user either for GNSS or for logging. \
64
Consider selecting a proper overlay configuration.
65
#endif
66
67
#if DT_NODE_EXISTS(DT_ALIAS(uartlog3)) && DT_NODE_EXISTS(DT_ALIAS(uartgnss3))
68
#error UART3 can be user either for GNSS or for logging. \
69
Consider selecting a proper overlay configuration.
70
#endif
71
72
#if DT_NODE_EXISTS(DT_ALIAS(uartlog1)) && DT_NODE_EXISTS(DT_ALIAS(uartgnss1))
73
#error UART1 can be user either for GNSS or for logging. \
74
Consider selecting a proper overlay configuration.
75
#endif
76
77
#if DT_NODE_EXISTS(DT_ALIAS(uartlog1)) && DT_NODE_EXISTS(DT_ALIAS(uartgnss1))
78
#error UART1 can be user either for GNSS or for logging. \
79
Consider selecting a proper overlay configuration.
80
#endif
81
82
#if DT_NODE_EXISTS(DT_ALIAS(spi3)) && DT_NODE_EXISTS(DT_ALIAS(uartlog3))
83
#error SPI3 cannot be used along with UART3. \
84
Consider selecting another UART port for logging.
85
#endif
86
87
#if DT_NODE_EXISTS(DT_ALIAS(spi3)) && DT_NODE_EXISTS(DT_ALIAS(uartgnss3))
88
#error SPI3 cannot be used along with UART3. \
89
Consider selecting another UART port for GNSS.
90
#endif
91
92
#if DT_NODE_EXISTS(DT_ALIAS(spi3)) && DT_NODE_EXISTS(DT_ALIAS(pc104_usart3))
93
#error SPI3 cannot be used along with UART3. \
94
Consider selecting another UART port for IO interface.
95
#endif
src
overlays.hpp
Generated by
1.17.0