Skip to content

Commit a64d3d3

Browse files
LucasTamborcarlescufi
authored andcommitted
tests: drivers: uart: uart async: Add ESP32C3 support
Add ESP32C3 support for uart async api test Signed-off-by: Lucas Tamborrino <[email protected]>
1 parent 41b431a commit a64d3d3

File tree

3 files changed

+35
-1
lines changed

3 files changed

+35
-1
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CONFIG_HEAP_MEM_POOL_SIZE=32768
2+
CONFIG_DMA=y
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/*
2+
* Copyright (c) 2022 Espressif Systems (Shanghai) Co., Ltd.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&pinctrl {
8+
9+
uart1_test: uart1_test {
10+
group1 {
11+
pinmux = <UART1_TX_GPIO5>;
12+
};
13+
group2 {
14+
pinmux = <UART1_RX_GPIO6>;
15+
bias-pull-up;
16+
};
17+
};
18+
};
19+
20+
&uart1 {
21+
status = "okay";
22+
current-speed = <115200>;
23+
pinctrl-0 = <&uart1_test>;
24+
pinctrl-names = "default";
25+
dmas = <&dma 0>, <&dma 1>;
26+
dma-names = "rx", "tx";
27+
};
28+
29+
&dma {
30+
status = "okay";
31+
};

tests/drivers/uart/uart_async_api/testcase.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ common:
22
platform_exclude: seeeduino_xiao serpente arduino_nano_33_iot atsamr21_xpro
33
adafruit_itsybitsy_m4_express atsame54_xpro atsamd21_xpro adafruit_trinket_m0
44
arduino_nano_33_iot arduino_zero atsamd21_xpro adafruit_feather_m0_basic_proto
5-
adafruit_feather_m0_lora arduino_mkrzero atsaml21_xpro atsamr34_xpro
5+
adafruit_feather_m0_lora arduino_mkrzero atsaml21_xpro atsamr34_xpro stamp_c3
6+
xiao_esp32c3
67
tags: drivers uart
78
tests:
89
drivers.uart.async_api:

0 commit comments

Comments
 (0)