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
master
barthess 2011-12-17 13:22:50 +00:00
parent 27a7716a3b
commit 843b44675b
1 changed files with 10 additions and 0 deletions

View File

@ -149,6 +149,16 @@
#define VAL_GPIOECRH 0x88888888 /* PE15...PE8 */ #define VAL_GPIOECRH 0x88888888 /* PE15...PE8 */
#define VAL_GPIOEODR 0xFFFFFFFF #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_) #if !defined(_FROM_ASM_)
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {