tests: drivers: uart async test on the stm32l152re nucleo
Add configuration for testing the usart3 through the dma1 on the nucleo_l152re target.This test requires the Tx pin to be connected to the RX pin on the board. Pin definition is added for this usart instance. Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
parent
e78cb747bd
commit
3aa14676db
2 changed files with 12 additions and 1 deletions
|
@ -0,0 +1,10 @@
|
|||
/* SPDX-License-Identifier: Apache-2.0 */
|
||||
|
||||
&usart3 {
|
||||
pinctrl-0 = <&usart3_tx_pb10 &usart3_rx_pb11>;
|
||||
current-speed = <115200>;
|
||||
dmas = <&dma1 2 0x20440>,
|
||||
<&dma1 3 0x20480>;
|
||||
dma-names = "tx", "rx";
|
||||
status = "okay";
|
||||
};
|
|
@ -32,7 +32,8 @@
|
|||
#elif defined(CONFIG_BOARD_NUCLEO_G071RB) || \
|
||||
defined(CONFIG_BOARD_NUCLEO_G474RE)
|
||||
#define UART_DEVICE_NAME DT_LABEL(DT_NODELABEL(usart1))
|
||||
#elif defined(CONFIG_BOARD_NUCLEO_L4R5ZI)
|
||||
#elif defined(CONFIG_BOARD_NUCLEO_L4R5ZI) || \
|
||||
defined(CONFIG_BOARD_NUCLEO_L152RE)
|
||||
#define UART_DEVICE_NAME DT_LABEL(DT_NODELABEL(usart3))
|
||||
#elif defined(CONFIG_BOARD_DISCO_L475_IOT1)
|
||||
#define UART_DEVICE_NAME DT_LABEL(DT_NODELABEL(uart4))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue