aboutsummaryrefslogtreecommitdiffstats
path: root/boards/OLIMEX_STM32_P103/board.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-12-25 18:47:24 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-12-25 18:47:24 +0000
commitf13e3253c3e2590d3d781a7f54b2739d68b2d926 (patch)
tree91c1bc47a25f49bfdfd48feccabff056dd3654c5 /boards/OLIMEX_STM32_P103/board.h
parent1604490dc9c601b99ceffa5cd010d709b43ad879 (diff)
downloadChibiOS-f13e3253c3e2590d3d781a7f54b2739d68b2d926.tar.gz
ChibiOS-f13e3253c3e2590d3d781a7f54b2739d68b2d926.tar.bz2
ChibiOS-f13e3253c3e2590d3d781a7f54b2739d68b2d926.zip
Small fix to the board IOs.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2533 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'boards/OLIMEX_STM32_P103/board.h')
-rw-r--r--boards/OLIMEX_STM32_P103/board.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/boards/OLIMEX_STM32_P103/board.h b/boards/OLIMEX_STM32_P103/board.h
index 9ed8f5785..cd9b9f6ba 100644
--- a/boards/OLIMEX_STM32_P103/board.h
+++ b/boards/OLIMEX_STM32_P103/board.h
@@ -49,10 +49,11 @@
#define GPIOB_SPI2NSS 12
+#define GPIOC_USB_P 4
#define GPIOC_MMCWP 6
#define GPIOC_MMCCP 7
-#define GPIOC_CANCNTL 10
-#define GPIOC_DISC 11
+#define GPIOC_CAN_CNTL 10
+#define GPIOC_USB_DISC 11
#define GPIOC_LED 12
/*
@@ -104,13 +105,15 @@
/*
* Port C setup.
* Everything input with pull-up except:
+ * PC4 - Normal input because there is an external resistor.
* PC6 - Normal input because there is an external resistor.
* PC7 - Normal input because there is an external resistor.
- * PC11 - Push Pull output (CAN CNTRL).
+ * PC10 - Push Pull output (CAN CNTRL).
+ * PC11 - Push Pull output (USB DISC).
* PC12 - Push Pull output (LED).
*/
-#define VAL_GPIOCCRL 0x44888888 /* PC7...PC0 */
-#define VAL_GPIOCCRH 0x88833888 /* PC15...PC8 */
+#define VAL_GPIOCCRL 0x44848888 /* PC7...PC0 */
+#define VAL_GPIOCCRH 0x88833388 /* PC15...PC8 */
#define VAL_GPIOCODR 0xFFFFFFFF
/*