diff options
Diffstat (limited to 'boards/OLIMEX_STM32_103STK/board.h')
-rw-r--r-- | boards/OLIMEX_STM32_103STK/board.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/boards/OLIMEX_STM32_103STK/board.h b/boards/OLIMEX_STM32_103STK/board.h index e8fd9e7dc..2e56ceac3 100644 --- a/boards/OLIMEX_STM32_103STK/board.h +++ b/boards/OLIMEX_STM32_103STK/board.h @@ -149,6 +149,16 @@ #define VAL_GPIOECRH 0x88888888 /* PE15...PE8 */
#define VAL_GPIOEODR 0xFFFFFFFF
+/*
+ * USB bus activation macro, required by the USB driver.
+ */
+#define usb_lld_connect_bus(usbp) palClearPad(GPIOC, GPIOC_USB_DISC)
+
+/*
+ * USB bus de-activation macro, required by the USB driver.
+ */
+#define usb_lld_disconnect_bus(usbp) palSetPad(GPIOC, GPIOC_USB_DISC)
+
#if !defined(_FROM_ASM_)
#ifdef __cplusplus
extern "C" {
|