From b522a442b805507e7a8fc93ba8011068b8b57d96 Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Sun, 3 Jun 2012 04:21:20 -0400 Subject: Add BOARD_HAVE_SERIALUSB. Feature-test for SerialUSB support. Signed-off-by: Marti Bolivar --- wirish/include/wirish/boards.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'wirish/include') 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 -- cgit v1.2.3