Skip to content

Commit 75c76fe

Browse files
FRASTMcfriedt
authored andcommitted
tests: drivers: uart async with DMA on stm32fx nucleo144 boards
It enables the usart6 to run the testcase with a DMA tests/drivers/uart/uart_async_api. DMA2 (of type V1) is configured on channel 5 (request) streams 7 & 2. USART Tx and Rx PG14 - PG9 pins (14 & 16 of CN10) are connected to PASS the test. Signed-off-by: Francois Ramu <[email protected]>
1 parent 19c519e commit 75c76fe

File tree

4 files changed

+30
-1
lines changed

4 files changed

+30
-1
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/* SPDX-License-Identifier: Apache-2.0 */
2+
3+
&usart6 {
4+
dmas = <&dma2 7 5 0x28440 0x03>,
5+
<&dma2 2 5 0x28480 0x03>;
6+
dma-names = "tx", "rx";
7+
};
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/* SPDX-License-Identifier: Apache-2.0 */
2+
3+
&usart6 {
4+
dmas = <&dma2 7 5 0x28440 0x03>,
5+
<&dma2 2 5 0x28480 0x03>;
6+
dma-names = "tx", "rx";
7+
};
8+
9+
&dma2 {
10+
status = "okay";
11+
};
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/* SPDX-License-Identifier: Apache-2.0 */
2+
3+
&usart2 {
4+
dmas = <&dma1 7 0x440>,
5+
<&dma1 6 0x480>;
6+
dma-names = "tx", "rx";
7+
};

tests/drivers/uart/uart_async_api/src/test_uart.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,17 @@
3535
#elif defined(CONFIG_BOARD_NUCLEO_L4R5ZI) || \
3636
defined(CONFIG_BOARD_NUCLEO_L152RE)
3737
#define UART_DEVICE_NAME DT_LABEL(DT_NODELABEL(usart3))
38+
#elif defined(CONFIG_BOARD_NUCLEO_F429ZI) || \
39+
defined(CONFIG_BOARD_NUCLEO_F207ZG)
40+
#define UART_DEVICE_NAME DT_LABEL(DT_NODELABEL(usart6))
3841
#elif defined(CONFIG_BOARD_DISCO_L475_IOT1)
3942
#define UART_DEVICE_NAME DT_LABEL(DT_NODELABEL(uart4))
4043
#elif defined(CONFIG_BOARD_NUCLEO_L552ZE_Q)
4144
#define UART_DEVICE_NAME DT_LABEL(DT_NODELABEL(usart3))
4245
#elif defined(CONFIG_BOARD_STM32L562E_DK)
4346
#define UART_DEVICE_NAME DT_LABEL(DT_NODELABEL(usart3))
44-
#elif defined(CONFIG_BOARD_NUCLEO_H723ZG)
47+
#elif defined(CONFIG_BOARD_NUCLEO_H723ZG) || \
48+
defined(CONFIG_BOARD_STM32F3_DISCO)
4549
#define UART_DEVICE_NAME DT_LABEL(DT_NODELABEL(usart2))
4650
#else
4751
#define UART_DEVICE_NAME DT_LABEL(DT_CHOSEN(zephyr_console))

0 commit comments

Comments
 (0)