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 <francois.ramu@st.com>
This commit is contained in:
parent
19c519eb05
commit
75c76fef36
4 changed files with 30 additions and 1 deletions
|
@ -0,0 +1,7 @@
|
|||
/* SPDX-License-Identifier: Apache-2.0 */
|
||||
|
||||
&usart6 {
|
||||
dmas = <&dma2 7 5 0x28440 0x03>,
|
||||
<&dma2 2 5 0x28480 0x03>;
|
||||
dma-names = "tx", "rx";
|
||||
};
|
|
@ -0,0 +1,11 @@
|
|||
/* SPDX-License-Identifier: Apache-2.0 */
|
||||
|
||||
&usart6 {
|
||||
dmas = <&dma2 7 5 0x28440 0x03>,
|
||||
<&dma2 2 5 0x28480 0x03>;
|
||||
dma-names = "tx", "rx";
|
||||
};
|
||||
|
||||
&dma2 {
|
||||
status = "okay";
|
||||
};
|
|
@ -0,0 +1,7 @@
|
|||
/* SPDX-License-Identifier: Apache-2.0 */
|
||||
|
||||
&usart2 {
|
||||
dmas = <&dma1 7 0x440>,
|
||||
<&dma1 6 0x480>;
|
||||
dma-names = "tx", "rx";
|
||||
};
|
|
@ -35,13 +35,17 @@
|
|||
#elif defined(CONFIG_BOARD_NUCLEO_L4R5ZI) || \
|
||||
defined(CONFIG_BOARD_NUCLEO_L152RE)
|
||||
#define UART_DEVICE_NAME DT_LABEL(DT_NODELABEL(usart3))
|
||||
#elif defined(CONFIG_BOARD_NUCLEO_F429ZI) || \
|
||||
defined(CONFIG_BOARD_NUCLEO_F207ZG)
|
||||
#define UART_DEVICE_NAME DT_LABEL(DT_NODELABEL(usart6))
|
||||
#elif defined(CONFIG_BOARD_DISCO_L475_IOT1)
|
||||
#define UART_DEVICE_NAME DT_LABEL(DT_NODELABEL(uart4))
|
||||
#elif defined(CONFIG_BOARD_NUCLEO_L552ZE_Q)
|
||||
#define UART_DEVICE_NAME DT_LABEL(DT_NODELABEL(usart3))
|
||||
#elif defined(CONFIG_BOARD_STM32L562E_DK)
|
||||
#define UART_DEVICE_NAME DT_LABEL(DT_NODELABEL(usart3))
|
||||
#elif defined(CONFIG_BOARD_NUCLEO_H723ZG)
|
||||
#elif defined(CONFIG_BOARD_NUCLEO_H723ZG) || \
|
||||
defined(CONFIG_BOARD_STM32F3_DISCO)
|
||||
#define UART_DEVICE_NAME DT_LABEL(DT_NODELABEL(usart2))
|
||||
#else
|
||||
#define UART_DEVICE_NAME DT_LABEL(DT_CHOSEN(zephyr_console))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue