efa89991fd58d875d764be0d638678dbfbba0e0f
[platform/upstream/iotjs.git] / tools / targets / nuttx-stm32f4 / nuttx / patch
1 --- a/configs/stm32f4discovery/include/board.h
2 +++ b/configs/stm32f4discovery/include/board.h
3 @@ -253,6 +253,13 @@
4  #  define GPIO_CAN2_TX GPIO_CAN2_TX_1
5  #endif
6
7 # Patch code to enable UART1:
8 # It maps pin PB6 and pin PB7 to USART1_TX and USART2_RX respectively.
9 #
10 +
11 +#define GPIO_USART1_RX GPIO_USART1_RX_2
12 +#define GPIO_USART1_TX GPIO_USART1_TX_2
13 +
14 # Patch code to enable UART4:
15 # It maps pin PA0 and pin PA1 to UART4_TX and UART4_RX respectively.
16 # Because it makes conflict with pins of USART2,
17 # you have to disable USART2 to use this port.
18 #
19 +#define GPIO_UART4_RX GPIO_UART4_RX_1
20 +#define GPIO_UART4_TX GPIO_UART4_TX_1
21 +
22  /* UART2:
23   *
24   * The STM32F4 Discovery has no on-board serial devices, but the console is