samples: esp32c3: Add USB variant

Add USB variant config files for esp32c3 boards.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
This commit is contained in:
Raffael Rostagno 2025-01-08 11:52:30 -03:00 committed by Benjamin Cabé
parent f07063db20
commit 8048a6ab67
9 changed files with 62 additions and 0 deletions

View file

@ -0,0 +1 @@
CONFIG_EXAMPLE_GPIO_WAKEUP=y

View file

@ -0,0 +1,21 @@
/*
* Copyright (c) 2022 Espressif Systems (Shanghai) Co., Ltd.
*
* SPDX-License-Identifier: Apache-2.0
*/
/ {
aliases {
/* On ESP32-C3, only GPIO0~5 can be used
* as wake-up sources
*/
wakeup-button = &sample_button;
};
gpio_keys {
compatible = "gpio-keys";
sample_button: sample_button {
gpios = <&gpio0 0 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>;
};
};
};

View file

@ -0,0 +1,3 @@
&timer0 {
status = "okay";
};

View file

@ -0,0 +1,11 @@
CONFIG_WIFI=y
CONFIG_NETWORKING=y
CONFIG_NET_L2_ETHERNET=y
CONFIG_NET_IPV6=n
CONFIG_NET_IPV4=y
CONFIG_NET_DHCPV4=y
CONFIG_ESP32_WIFI_STA_AUTO_DHCPV4=y
CONFIG_NET_LOG=y

View file

@ -0,0 +1,9 @@
/*
* Copyright (c) 2022 Espressif Systems (Shanghai) Co., Ltd.
*
* SPDX-License-Identifier: Apache-2.0
*/
&wifi {
status = "okay";
};

View file

@ -0,0 +1 @@
CONFIG_REQUIRES_FULL_LIBC=y

View file

@ -0,0 +1,11 @@
/*
* Copyright (c) 2023, Hiroki Tada
*
* SPDX-License-Identifier: Apache-2.0
*
* Application overlay for creating temperature sensor device instance
*/
&coretemp {
status = "okay";
};

View file

@ -0,0 +1 @@
CONFIG_HEAP_MEM_POOL_SIZE=256

View file

@ -0,0 +1,4 @@
CONFIG_HEAP_MEM_POOL_SIZE=256
CONFIG_NVS=y
CONFIG_SETTINGS_NVS=y
CONFIG_MPU_ALLOW_FLASH_WRITE=y