59#error chars are signed - you should use unsigned for the SPiCboard (-funsigned-char)
60#endif
61
62// Check unallowed imports
63#if defined(_COM_H) && defined(_CONSOLE_H)
64#error serial communication and serial console cannot be used together!
65#endif
66
67
68/**
69 * \def CHECK_ENUM_SIZE(VAR, LEN)
70 *
71 * Aborts compilation if the size of VAR is not euqal LEN
72 */
73#define CHECK_ENUM_SIZE(VAR, LEN) _Static_assert(sizeof(VAR) == (LEN), "enum " STR(VAR) " has the wrong size and therefore it is not compatible to the libspicboard; check your compiler flags (-fshort-enums)");