diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2012-06-03 04:21:20 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2012-06-03 22:40:39 -0400 |
commit | b522a442b805507e7a8fc93ba8011068b8b57d96 (patch) | |
tree | e4566e9da22f18dc95b315660f29ec39f7c336cf /wirish/include | |
parent | 4a53794f1afbb9951bd87f413c64614d1006294c (diff) | |
download | librambutan-b522a442b805507e7a8fc93ba8011068b8b57d96.tar.gz librambutan-b522a442b805507e7a8fc93ba8011068b8b57d96.zip |
Add BOARD_HAVE_SERIALUSB.
Feature-test for SerialUSB support.
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
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 |