summaryrefslogtreecommitdiff
path: root/nuttx/configs/stm32ldiscovery/include/board.h
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-05-21 11:25:30 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-05-21 11:25:30 -0600
commitb52a1d3fdeea4d592feb57f0deabe0c5f012e729 (patch)
treec02a9a4ee061d2ec86241dd34aa5048c39319136 /nuttx/configs/stm32ldiscovery/include/board.h
parent921386a847b6e610223d808f1ba718c6518ff403 (diff)
downloadpx4-nuttx-b52a1d3fdeea4d592feb57f0deabe0c5f012e729.tar.gz
px4-nuttx-b52a1d3fdeea4d592feb57f0deabe0c5f012e729.tar.bz2
px4-nuttx-b52a1d3fdeea4d592feb57f0deabe0c5f012e729.zip
Fix STM32L15X vector definitions; Fix STM32L-Discovery LED controls. The NSH configuration is now fully functional on the STM32L-Discovery board.
Diffstat (limited to 'nuttx/configs/stm32ldiscovery/include/board.h')
-rw-r--r--nuttx/configs/stm32ldiscovery/include/board.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/nuttx/configs/stm32ldiscovery/include/board.h b/nuttx/configs/stm32ldiscovery/include/board.h
index 83edb182c..23132c38b 100644
--- a/nuttx/configs/stm32ldiscovery/include/board.h
+++ b/nuttx/configs/stm32ldiscovery/include/board.h
@@ -195,7 +195,7 @@
* STM32L-Discovery. The following definitions describe how NuttX controls the LEDs:
*
* SYMBOL Meaning LED state
- * LED3 LED4
+ * LED1 LED2
* ------------------- ----------------------- -------- --------
* LED_STARTED NuttX has been started OFF OFF
* LED_HEAPALLOCATE Heap has been allocated OFF OFF
@@ -253,25 +253,25 @@
#if !defined(CONFIG_STM32_LCD)
/* Select PA9 and PA10 if the LCD is not enabled */
-# define GPIO_USART1_RX GPIO_USART1_RX_1
-# define GPIO_USART1_TX GPIO_USART1_TX_1
+# define GPIO_USART1_RX GPIO_USART1_RX_1 /* PA10 */
+# define GPIO_USART1_TX GPIO_USART1_TX_1 /* PA9 */
/* This there are no other options for USART1 on this part */
-# define GPIO_USART2_RX GPIO_USART2_RX_1
-# define GPIO_USART2_TX GPIO_USART2_TX_1
+# define GPIO_USART2_RX GPIO_USART2_RX_1 /* PA3 */
+# define GPIO_USART2_TX GPIO_USART2_TX_1 /* PA2 */
/* Arbirtrarily select PB10 and PB11 */
-# define GPIO_USART3_RX GPIO_USART3_RX_1
-# define GPIO_USART3_TX GPIO_USART3_TX_1
+# define GPIO_USART3_RX GPIO_USART3_RX_1 /* PB11 */
+# define GPIO_USART3_TX GPIO_USART3_TX_1 /* PB10 */
#elif !defined(CONFIG_ARCH_LEDS)
/* Select PB6 and PB7 if the LEDs are not enabled */
-# define GPIO_USART1_RX GPIO_USART1_RX_2
-# define GPIO_USART1_TX GPIO_USART1_TX_2
+# define GPIO_USART1_RX GPIO_USART1_RX_2 /* PB7 */
+# define GPIO_USART1_TX GPIO_USART1_TX_2 /* PB6 */
#endif