Skip to content

Commit b1bd5f0

Browse files
committed
[nrf fromtree] samples: esp32c3: Add USB variant
Add USB variant config files for esp32c3 boards. Signed-off-by: Raffael Rostagno <[email protected]> Signed-off-by: Sebastian Głąb <[email protected]> (cherry picked from commit 8048a6a)
1 parent 4995572 commit b1bd5f0

File tree

9 files changed

+62
-0
lines changed

9 files changed

+62
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_EXAMPLE_GPIO_WAKEUP=y
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
* Copyright (c) 2022 Espressif Systems (Shanghai) Co., Ltd.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
aliases {
9+
/* On ESP32-C3, only GPIO0~5 can be used
10+
* as wake-up sources
11+
*/
12+
wakeup-button = &sample_button;
13+
};
14+
15+
gpio_keys {
16+
compatible = "gpio-keys";
17+
sample_button: sample_button {
18+
gpios = <&gpio0 0 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>;
19+
};
20+
};
21+
};
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
&timer0 {
2+
status = "okay";
3+
};
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
CONFIG_WIFI=y
2+
3+
CONFIG_NETWORKING=y
4+
CONFIG_NET_L2_ETHERNET=y
5+
6+
CONFIG_NET_IPV6=n
7+
CONFIG_NET_IPV4=y
8+
CONFIG_NET_DHCPV4=y
9+
CONFIG_ESP32_WIFI_STA_AUTO_DHCPV4=y
10+
11+
CONFIG_NET_LOG=y
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/*
2+
* Copyright (c) 2022 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_REQUIRES_FULL_LIBC=y
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*
2+
* Copyright (c) 2023, Hiroki Tada
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*
6+
* Application overlay for creating temperature sensor device instance
7+
*/
8+
9+
&coretemp {
10+
status = "okay";
11+
};
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_HEAP_MEM_POOL_SIZE=256
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
CONFIG_HEAP_MEM_POOL_SIZE=256
2+
CONFIG_NVS=y
3+
CONFIG_SETTINGS_NVS=y
4+
CONFIG_MPU_ALLOW_FLASH_WRITE=y

0 commit comments

Comments
 (0)