Skip to content

Commit 37fcc03

Browse files
Raffael Rostagnonordic-pikr
authored andcommitted
[nrf fromtree] tests: esp32c3: Add USB variant
Add USB variant config files for esp32c3 boards. Signed-off-by: Raffael Rostagno <[email protected]> (cherry picked from commit d20140d)
1 parent fd9a980 commit 37fcc03

File tree

17 files changed

+282
-0
lines changed

17 files changed

+282
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/*
2+
* Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&wifi {
8+
status = "okay";
9+
};
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_ADC_ASYNC=n
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
* Copyright (c) 2022 Wolter HV <[email protected]>
3+
* Copyright (c) 2023 Benjamin Björnsson <[email protected]>
4+
*
5+
* SPDX-License-Identifier: Apache-2.0
6+
*/
7+
8+
/ {
9+
zephyr,user {
10+
/* adjust channel number according to pinmux in board.dts */
11+
io-channels = <&adc0 0>, <&adc0 1>;
12+
};
13+
};
14+
15+
&adc0 {
16+
#address-cells = <1>;
17+
#size-cells = <0>;
18+
status = "okay";
19+
20+
channel@0 {
21+
reg = <0>;
22+
zephyr,gain = "ADC_GAIN_1";
23+
zephyr,reference = "ADC_REF_INTERNAL";
24+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
25+
zephyr,resolution = <12>;
26+
};
27+
28+
channel@1 {
29+
reg = <1>;
30+
zephyr,gain = "ADC_GAIN_1";
31+
zephyr,reference = "ADC_REF_INTERNAL";
32+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
33+
zephyr,resolution = <12>;
34+
};
35+
};
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
&timer0 {
2+
status = "okay";
3+
};
4+
5+
&rtc {
6+
slow-clk-src = <ESP32_RTC_SLOW_CLK_SRC_RC_FAST_D256>;
7+
};
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
CONFIG_DMA_TRANSFER_CHANNEL_NR_0=5
2+
CONFIG_DMA_TRANSFER_CHANNEL_NR_1=0
3+
CONFIG_HEAP_MEM_POOL_SIZE=32768
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*
2+
* Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&dma {
8+
status = "okay";
9+
};
10+
11+
tst_dma0: &dma { };
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CONFIG_DMA_LOOP_TRANSFER_CHANNEL_NR=0
2+
CONFIG_DMA_LOOP_TRANSFER_SIZE=4094
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*
2+
* Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&dma {
8+
status = "okay";
9+
};
10+
11+
tst_dma0: &dma { };
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_HEAP_MEM_POOL_SIZE=16384
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
* Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
resources {
9+
compatible = "test-gpio-basic-api";
10+
out-gpios = <&gpio0 4 0>;
11+
in-gpios = <&gpio0 5 0>;
12+
};
13+
};

0 commit comments

Comments
 (0)