tests: uart_async_api: add nucleo_g474re board

Adds nucleo_g474re board to the uart_async_api test.

Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
This commit is contained in:
Thomas Stranger 2021-04-14 14:41:30 +02:00 committed by Kumar Gala
commit edca247dbd
2 changed files with 17 additions and 1 deletions

View file

@ -0,0 +1,15 @@
/* SPDX-License-Identifier: Apache-2.0 */
&usart1 {
dmas = <&dmamux1 2 25 0x440 0>,
<&dmamux1 1 24 0x480 0>;
dma-names = "tx", "rx";
};
&dma1 {
status = "okay";
};
&dmamux1 {
status = "okay";
};

View file

@ -29,7 +29,8 @@
#define UART_DEVICE_NAME DT_LABEL(DT_NODELABEL(sercom3))
#elif defined(CONFIG_BOARD_ATSAME54_XPRO)
#define UART_DEVICE_NAME DT_LABEL(DT_NODELABEL(sercom1))
#elif defined(CONFIG_BOARD_NUCLEO_G071RB)
#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)
#define UART_DEVICE_NAME DT_LABEL(DT_NODELABEL(usart3))