aboutsummaryrefslogtreecommitdiffstats
path: root/wirish/boards/olimex_stm32_h103.h
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2011-06-15 16:29:19 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2011-10-18 13:30:17 -0400
commit9e3c80a3ae38c111c138aa9e7c70f1abb5d1424f (patch)
tree9accce7b55bb9b680f4dee2010087eb3b566b248 /wirish/boards/olimex_stm32_h103.h
parentc023d179fa613f979d50a0d105f08b9b58c7ce6b (diff)
downloadlibrambutan-9e3c80a3ae38c111c138aa9e7c70f1abb5d1424f.tar.gz
librambutan-9e3c80a3ae38c111c138aa9e7c70f1abb5d1424f.zip
usb: Move some board-specific configuration to Wirish.
Create new BOARD_USB_DISC_DEV and BOARD_USB_DISC_BIT board-specific values. Use these as arguments to setupUSB() and disableUSB(). This helps make the USB stack more generic, and goes towards the resolution of an important FIXME. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'wirish/boards/olimex_stm32_h103.h')
-rw-r--r--wirish/boards/olimex_stm32_h103.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/wirish/boards/olimex_stm32_h103.h b/wirish/boards/olimex_stm32_h103.h
index e2d5236..d2b5fcc 100644
--- a/wirish/boards/olimex_stm32_h103.h
+++ b/wirish/boards/olimex_stm32_h103.h
@@ -85,4 +85,8 @@
#define BOARD_JTDO_PIN 44
#define BOARD_NJTRST_PIN 45
+/* USB configuration */
+#define BOARD_USB_DISC_DEV GPIOC
+#define BOARD_USB_DISC_BIT 11
+
#endif