tests/drivers: stm32l562e_dk: uart_async_api test

This commit configures usart3 to use dma in uart_async_api test
on stm32l562e_dk platform. Short pin2(PC10) & pin 3 (PC11) of usart3
in CN4 connector on stm32l562e_dk platform.

Signed-off-by: Krishna Mohan Dani <krishnamohan.d@hcl.com>
This commit is contained in:
Krishna Mohan Dani 2021-07-05 20:49:08 +05:30 committed by Anas Nashif
commit ae085082d1
2 changed files with 25 additions and 0 deletions

View file

@ -0,0 +1,23 @@
/*
* Copyright (c) 2021 STMicroelectronics
*
* SPDX-License-Identifier: Apache-2.0
*/
&usart3 {
dmas = <&dmamux1 5 30 0x440 0>,
<&dmamux1 4 29 0x480 0>;
dma-names = "tx", "rx";
};
&dma1 {
status = "okay";
};
&dma2 {
status = "okay";
};
&dmamux1 {
status = "okay";
};

View file

@ -36,6 +36,8 @@
#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))
#elif defined(CONFIG_BOARD_STM32L562E_DK)
#define UART_DEVICE_NAME DT_LABEL(DT_NODELABEL(usart3))
#else
#define UART_DEVICE_NAME CONFIG_UART_CONSOLE_ON_DEV_NAME
#endif