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-d51de3d6d3f4master
parent
27a7716a3b
commit
843b44675b
|
@ -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" {
|
||||||
|
|
Loading…
Reference in New Issue