SatNOGS-COMMS  4.1.0
A COMMS subsystem for CubeSats
Loading...
Searching...
No Matches
overlays.hpp File Reference

This file contains several helper macros that produce a compile-time error through the preprocessor, when some of the IO criteria are violated due to misuse of the available overlays. More...

#include <zephyr/devicetree.h>

Go to the source code of this file.

Detailed Description

This file contains several helper macros that produce a compile-time error through the preprocessor, when some of the IO criteria are violated due to misuse of the available overlays.

An example could be, the usage of a specific UART (e.g UART1) for both logging and IO. A second example of a misuse, could be the usage of a UART and an SPI interface sharing the same pins on the PC104 connector.

Such checks seems that are not currently possible, through the Zephyr build system. The downside of this approach is that there is not way to enforce the checks below, rather than including this header file at the project.

Definition in file overlays.hpp.