From 5dc36cafc4b4d7f6aec0b7ad059f5a01069b766b Mon Sep 17 00:00:00 2001 From: David Kiliani Date: Sat, 17 Sep 2011 20:23:41 +0200 Subject: 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 --- libmaple/usb/usb_config.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libmaple/usb') 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 " \ -- cgit v1.2.3