aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormlundinse <lundin@mlu.mine.nu>2013-05-04 21:45:42 +0200
committermlundinse <lundin@mlu.mine.nu>2013-05-04 21:45:42 +0200
commit6b2eff72c8038bca04e4a0591c05b4a3ac6afa33 (patch)
treec39072c477a07adcfcaf47a489f768e21015057f
parent8824ff837d78ad33f1b352339b4fd066f5aba471 (diff)
Make BOARD_HAVE_USB define contitional
wirish/boards.h Make BOARD_HAVE_USB define contitional so it can be overridden for boards with different USB setup (like stm32f4 usb) Signed-off-by: Magnus Lundin <lundin@mlu.mine.nu>
-rw-r--r--wirish/include/wirish/boards.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/wirish/include/wirish/boards.h b/wirish/include/wirish/boards.h
index 2d77480..693c739 100644
--- a/wirish/include/wirish/boards.h
+++ b/wirish/include/wirish/boards.h
@@ -167,8 +167,11 @@ bool boardUsesPin(uint8 pin);
/**
* @brief Feature test: nonzero iff the board has SerialUSB.
*/
+#ifndef BOARD_HAVE_USB
#define BOARD_HAVE_USB (defined(BOARD_USB_DISC_DEV) && \
defined(BOARD_USB_DISC_BIT))
+#endif
+
#define BOARD_HAVE_SERIALUSB (BOARD_HAVE_USB && \
((defined(USB_TYPE) && USB_TYPE == USB_SERIAL) || \
!defined(USB_TYPE)))