Skip to content

Commit 7953526

Browse files
committed
[NUCLEO_F446RE] Add Serial Flow Control pins
1 parent d220546 commit 7953526

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,24 @@ const PinMap PinMap_UART_RX[] = {
183183
{NC, NC, 0}
184184
};
185185

186+
const PinMap PinMap_UART_RTS[] = {
187+
{PA_1, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
188+
{PA_12, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)},
189+
{PA_15, UART_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART4)},
190+
{PB_14, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)},
191+
{PC_8, UART_5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_UART5)},
192+
{NC, NC, 0}
193+
};
194+
195+
const PinMap PinMap_UART_CTS[] = {
196+
{PA_0, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
197+
{PA_11, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)},
198+
{PB_0, UART_4, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_UART4)},
199+
{PB_13, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)},
200+
{PC_9, UART_5, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_UART5)},
201+
{NC, NC, 0}
202+
};
203+
186204
//*** SPI ***
187205

188206
const PinMap PinMap_SPI_MOSI[] = {

hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/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)