aboutsummaryrefslogtreecommitdiffstats
path: root/wirish/include
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2012-06-03 04:21:20 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2012-06-03 22:40:39 -0400
commitb522a442b805507e7a8fc93ba8011068b8b57d96 (patch)
treee4566e9da22f18dc95b315660f29ec39f7c336cf /wirish/include
parent4a53794f1afbb9951bd87f413c64614d1006294c (diff)
downloadlibrambutan-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.h6
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