diff options
| author | Marti Bolivar <mbolivar@leaflabs.com> | 2012-08-27 16:47:27 -0400 |
|---|---|---|
| committer | Marti Bolivar <mbolivar@leaflabs.com> | 2012-08-27 16:50:57 -0400 |
| commit | 2022b933bef4b9ff448e6681f51a5c0c4510bd1c (patch) | |
| tree | d116299de542c06af23c0d2752e59dce4d4217a8 /wirish | |
| parent | 151ad0d4600875cb4fa20cecda68e26949d67596 (diff) | |
usb_serial.cpp: Hackishly silence spurious warnings on VLDiscovery.
Guard hooks with BOARD_HAVE_SERIALUSB to keep GCC quiet.
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'wirish')
| -rw-r--r-- | wirish/usb_serial.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/wirish/usb_serial.cpp b/wirish/usb_serial.cpp index af0d710..380f197 100644 --- a/wirish/usb_serial.cpp +++ b/wirish/usb_serial.cpp @@ -43,8 +43,10 @@ * Hooks used for bootloader reset signalling */ +#if BOARD_HAVE_SERIALUSB static void rxHook(unsigned, void*); static void ifaceSetupHook(unsigned, void*); +#endif /* * USBSerial interface @@ -147,6 +149,8 @@ USBSerial SerialUSB; * Bootloader hook implementations */ +#if BOARD_HAVE_SERIALUSB + enum reset_state_t { DTR_UNSET, DTR_HIGH, @@ -241,3 +245,5 @@ static void rxHook(unsigned hook, void *ignored) { } } } + +#endif // BOARD_HAVE_SERIALUSB |
