diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-11-03 13:13:01 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-11-03 13:13:01 +0000 |
commit | 90dac8f895f783abd8750e2b3b38a2d7cb98ab3c (patch) | |
tree | ab41ab99f785e2c7eb44f74480fbc894efd96703 /os/hal/boards/ST_NUCLEO_L053R8 | |
parent | 9df81dc0eee83e286cb96d51b2c3bdc245056b50 (diff) | |
download | ChibiOS-90dac8f895f783abd8750e2b3b38a2d7cb98ab3c.tar.gz ChibiOS-90dac8f895f783abd8750e2b3b38a2d7cb98ab3c.tar.bz2 ChibiOS-90dac8f895f783abd8750e2b3b38a2d7cb98ab3c.zip |
Mass update for board files (only those with .chcfg files).
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8431 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/boards/ST_NUCLEO_L053R8')
-rw-r--r-- | os/hal/boards/ST_NUCLEO_L053R8/board.h | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/os/hal/boards/ST_NUCLEO_L053R8/board.h b/os/hal/boards/ST_NUCLEO_L053R8/board.h index 2312591c5..863160d17 100644 --- a/os/hal/boards/ST_NUCLEO_L053R8/board.h +++ b/os/hal/boards/ST_NUCLEO_L053R8/board.h @@ -138,6 +138,23 @@ #define GPIOH_PIN15 15U
/*
+ * IO lines assignments.
+ */
+#define LINE_USART_TX PAL_LINE(GPIOA, 2U)
+#define LINE_USART_RX PAL_LINE(GPIOA, 3U)
+#define LINE_LED_GREEN PAL_LINE(GPIOA, 5U)
+#define LINE_SWDIO PAL_LINE(GPIOA, 13U)
+#define LINE_SWCLK PAL_LINE(GPIOA, 14U)
+
+#define LINE_SWO PAL_LINE(GPIOB, 3U)
+
+#define LINE_BUTTON PAL_LINE(GPIOC, 13U)
+
+
+#define LINE_OSC_IN PAL_LINE(GPIOH, 0U)
+#define LINE_OSC_OUT PAL_LINE(GPIOH, 1U)
+
+/*
* I/O ports initial setup, this configuration is established soon after reset
* in the initialization code.
* Please refer to the STM32 Reference Manual for details.
@@ -150,10 +167,10 @@ #define PIN_ODR_HIGH(n) (1U << (n))
#define PIN_OTYPE_PUSHPULL(n) (0U << (n))
#define PIN_OTYPE_OPENDRAIN(n) (1U << (n))
-#define PIN_OSPEED_VERYLOW(n) (0U << ((n) * 2U))
+#define PIN_OSPEED_VERYLOW(n) (0U << ((n) * 2U))
#define PIN_OSPEED_LOW(n) (1U << ((n) * 2U))
-#define PIN_OSPEED_MEDIUM(n) (2U << ((n) * 2U))
-#define PIN_OSPEED_HIGH(n) (3U << ((n) * 2U))
+#define PIN_OSPEED_MEDIUM(n) (2U << ((n) * 2U))
+#define PIN_OSPEED_HIGH(n) (3U << ((n) * 2U))
#define PIN_PUPDR_FLOATING(n) (0U << ((n) * 2U))
#define PIN_PUPDR_PULLUP(n) (1U << ((n) * 2U))
#define PIN_PUPDR_PULLDOWN(n) (2U << ((n) * 2U))
|