Skip to content

Commit d220546

Browse files
committed
[NUCLEO_F411RE] Add Serial Flow Control pins
1 parent a905d36 commit d220546

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/PeripheralPins.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,18 @@ const PinMap PinMap_UART_RX[] = {
151151
{NC, NC, 0}
152152
};
153153

154+
const PinMap PinMap_UART_RTS[] = {
155+
{PA_1, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
156+
{PA_12, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)},
157+
{NC, NC, 0}
158+
};
159+
160+
const PinMap PinMap_UART_CTS[] = {
161+
{PA_0, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
162+
{PA_11, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)},
163+
{NC, NC, 0}
164+
};
165+
154166
//*** SPI ***
155167

156168
const PinMap PinMap_SPI_MOSI[] = {

hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/objects.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ struct serial_s {
6969
uint32_t parity;
7070
PinName pin_tx;
7171
PinName pin_rx;
72+
#if DEVICE_SERIAL_FC
73+
uint32_t hw_flow_ctl;
74+
PinName pin_rts;
75+
PinName pin_cts;
76+
#endif
7277
};
7378

7479
struct spi_s {

0 commit comments

Comments
 (0)