Skip to content

Commit 020f4bc

Browse files
committed
STM32L1xx - Add Serial Flow Control pins
1 parent e9d0fbd commit 020f4bc

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/PeripheralPins.c

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* mbed Microcontroller Library
22
*******************************************************************************
3-
* Copyright (c) 2014, STMicroelectronics
3+
* Copyright (c) 2016, STMicroelectronics
44
* All rights reserved.
55
*
66
* Redistribution and use in source and binary forms, with or without
@@ -151,6 +151,20 @@ 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+
{PB_14, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)},
157+
{PA_12, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)},
158+
{NC, NC, 0}
159+
};
160+
161+
const PinMap PinMap_UART_CTS[] = {
162+
{PA_0, UART_2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)},
163+
{PB_13, UART_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART3)},
164+
{PA_11, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)},
165+
{NC, NC, 0}
166+
};
167+
154168
//*** SPI ***
155169

156170
const PinMap PinMap_SPI_MOSI[] = {

0 commit comments

Comments
 (0)