Skip to content

Commit a905d36

Browse files
committed
[NUCLEO_F410RB] Add Serial Flow Control pins
1 parent 4e77da7 commit a905d36

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_F410RB/PeripheralPins.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,18 @@ const PinMap PinMap_UART_RX[] = {
137137
{NC, NC, 0}
138138
};
139139

140+
const PinMap PinMap_UART_RTS[] = {
141+
{PA_1, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
142+
{PA_12, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)},
143+
{NC, NC, 0}
144+
};
145+
146+
const PinMap PinMap_UART_CTS[] = {
147+
{PA_0, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
148+
{PA_11, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)},
149+
{NC, NC, 0}
150+
};
151+
140152
//*** SPI ***
141153

142154
const PinMap PinMap_SPI_MOSI[] = {

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ struct serial_s {
7474
uint32_t parity;
7575
PinName pin_tx;
7676
PinName pin_rx;
77+
#if DEVICE_SERIAL_FC
78+
uint32_t hw_flow_ctl;
79+
PinName pin_rts;
80+
PinName pin_cts;
81+
#endif
7782
};
7883

7984
struct spi_s {

0 commit comments

Comments
 (0)