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:
parent
1fe292dfaf
commit
ae085082d1
2 changed files with 25 additions and 0 deletions
|
@ -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";
|
||||
};
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue