1 --- a/configs/stm32f4discovery/include/board.h
2 +++ b/configs/stm32f4discovery/include/board.h
4 # define GPIO_CAN2_TX GPIO_CAN2_TX_1
7 # Patch code to enable UART1:
8 # It maps pin PB6 and pin PB7 to USART1_TX and USART2_RX respectively.
11 +#define GPIO_USART1_RX GPIO_USART1_RX_2
12 +#define GPIO_USART1_TX GPIO_USART1_TX_2
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.
19 +#define GPIO_UART4_RX GPIO_UART4_RX_1
20 +#define GPIO_UART4_TX GPIO_UART4_TX_1
24 * The STM32F4 Discovery has no on-board serial devices, but the console is