aboutsummaryrefslogtreecommitdiffstats
path: root/wirish
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2012-08-27 16:47:27 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2012-08-27 16:50:57 -0400
commit182b6386f93516e7ae5e1a33027236716d19a216 (patch)
treed116299de542c06af23c0d2752e59dce4d4217a8 /wirish
parente98633a041cfc9d5ba9122951aad65dcc4e33012 (diff)
downloadlibrambutan-182b6386f93516e7ae5e1a33027236716d19a216.tar.gz
librambutan-182b6386f93516e7ae5e1a33027236716d19a216.zip
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.cpp6
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