aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple
diff options
context:
space:
mode:
authorDavid Kiliani <mail@davidkiliani.de>2011-09-17 20:23:41 +0200
committerMarti Bolivar <mbolivar@leaflabs.com>2011-09-27 16:44:53 -0400
commit5dc36cafc4b4d7f6aec0b7ad059f5a01069b766b (patch)
treeec7db0f9c53fa58f9a040163c5659c27572e0789 /libmaple
parent93dd241dd317b1d4f0b63bdb313fb82dd7419b02 (diff)
downloadlibrambutan-5dc36cafc4b4d7f6aec0b7ad059f5a01069b766b.tar.gz
librambutan-5dc36cafc4b4d7f6aec0b7ad059f5a01069b766b.zip
Add support for the Olimex STM32 H103 board.
Pin layout and header files for the STM32 H103 prototype board from Olimex featuring an STM32F103RBT6 chip. This commit contains all necessary changes to compile with BOARD=olimex_stm32_h103. Signed-off-by: David Kiliani <mail@davidkiliani.de>
Diffstat (limited to 'libmaple')
-rw-r--r--libmaple/usb/usb_config.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libmaple/usb/usb_config.h b/libmaple/usb/usb_config.h
index 23b49ee..62a6a71 100644
--- a/libmaple/usb/usb_config.h
+++ b/libmaple/usb/usb_config.h
@@ -47,6 +47,12 @@
#define USB_DISC_DEV GPIOB
#define USB_DISC_PIN 8
+#elif defined(BOARD_olimex_stm32_h103)
+
+ #define VCOM_ID_PRODUCT 0x0004
+ #define USB_DISC_DEV GPIOC
+ #define USB_DISC_PIN 11
+
#else
#error ("Sorry! the USB stack relies on LeafLabs board-specific " \