diff options
Diffstat (limited to 'wirish/include')
-rw-r--r-- | wirish/include/wirish/boards.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/wirish/include/wirish/boards.h b/wirish/include/wirish/boards.h index 69e8882..1375512 100644 --- a/wirish/include/wirish/boards.h +++ b/wirish/include/wirish/boards.h @@ -153,4 +153,10 @@ bool boardUsesPin(uint8 pin); /** Feature test: nonzero iff the board has SPI3. */ #define BOARD_HAVE_SPI3 BOARD_HAVE_SPI(3) +/** + * @brief Feature test: nonzero iff the board has SerialUSB. + */ +#define BOARD_HAVE_SERIALUSB (defined(BOARD_USB_DISC_DEV) && \ + defined(BOARD_USB_DISC_BIT)) + #endif |