From 843b44675be048abf04541be2fa00242384dfc01 Mon Sep 17 00:00:00 2001 From: barthess Date: Sat, 17 Dec 2011 13:22:50 +0000 Subject: Added USB discovery macros to OLIMEX_STM32_103STK/board.h git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3627 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- boards/OLIMEX_STM32_103STK/board.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'boards/OLIMEX_STM32_103STK/board.h') 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" { -- cgit v1.2.3