diff options
| author | mlundinse <lundin@mlu.mine.nu> | 2013-05-04 21:45:42 +0200 |
|---|---|---|
| committer | mlundinse <lundin@mlu.mine.nu> | 2013-05-04 21:45:42 +0200 |
| commit | 6b2eff72c8038bca04e4a0591c05b4a3ac6afa33 (patch) | |
| tree | c39072c477a07adcfcaf47a489f768e21015057f /wirish | |
| parent | 8824ff837d78ad33f1b352339b4fd066f5aba471 (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>
Diffstat (limited to 'wirish')
| -rw-r--r-- | wirish/include/wirish/boards.h | 3 |
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))) |
