diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-10-23 12:21:44 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-10-23 12:21:44 +0000 |
commit | 2f572f109a463e7faa46ed544c91198e72e63343 (patch) | |
tree | 357162e59b91596a8441d9cd6a48f07458a95771 /boards | |
parent | 53df7ed814f665ebeef75b379941f9c0cebcba55 (diff) | |
download | ChibiOS-2f572f109a463e7faa46ed544c91198e72e63343.tar.gz ChibiOS-2f572f109a463e7faa46ed544c91198e72e63343.tar.bz2 ChibiOS-2f572f109a463e7faa46ed544c91198e72e63343.zip |
USB enhancements, phase two.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3451 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'boards')
-rw-r--r-- | boards/OLIMEX_STM32_P103/board.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/boards/OLIMEX_STM32_P103/board.h b/boards/OLIMEX_STM32_P103/board.h index 337fc8ca0..699e9ad46 100644 --- a/boards/OLIMEX_STM32_P103/board.h +++ b/boards/OLIMEX_STM32_P103/board.h @@ -135,6 +135,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" {
|