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:
parent
f07063db20
commit
8048a6ab67
9 changed files with 62 additions and 0 deletions
|
|
@ -0,0 +1 @@
|
|||
CONFIG_EXAMPLE_GPIO_WAKEUP=y
|
||||
21
samples/boards/espressif/deep_sleep/socs/esp32c3_usb.overlay
Normal file
21
samples/boards/espressif/deep_sleep/socs/esp32c3_usb.overlay
Normal 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)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
3
samples/drivers/counter/alarm/socs/esp32c3_usb.overlay
Normal file
3
samples/drivers/counter/alarm/socs/esp32c3_usb.overlay
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
&timer0 {
|
||||
status = "okay";
|
||||
};
|
||||
11
samples/net/wifi/shell/socs/esp32c3_usb.conf
Normal file
11
samples/net/wifi/shell/socs/esp32c3_usb.conf
Normal 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
|
||||
9
samples/net/wifi/shell/socs/esp32c3_usb.overlay
Normal file
9
samples/net/wifi/shell/socs/esp32c3_usb.overlay
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
/*
|
||||
* Copyright (c) 2022 Espressif Systems (Shanghai) Co., Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
&wifi {
|
||||
status = "okay";
|
||||
};
|
||||
1
samples/sensor/die_temp_polling/socs/esp32c3_usb.conf
Normal file
1
samples/sensor/die_temp_polling/socs/esp32c3_usb.conf
Normal file
|
|
@ -0,0 +1 @@
|
|||
CONFIG_REQUIRES_FULL_LIBC=y
|
||||
11
samples/sensor/die_temp_polling/socs/esp32c3_usb.overlay
Normal file
11
samples/sensor/die_temp_polling/socs/esp32c3_usb.overlay
Normal 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";
|
||||
};
|
||||
1
samples/subsys/nvs/socs/esp32c3_usb.conf
Normal file
1
samples/subsys/nvs/socs/esp32c3_usb.conf
Normal file
|
|
@ -0,0 +1 @@
|
|||
CONFIG_HEAP_MEM_POOL_SIZE=256
|
||||
4
samples/subsys/settings/socs/esp32c3_usb.conf
Normal file
4
samples/subsys/settings/socs/esp32c3_usb.conf
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
CONFIG_HEAP_MEM_POOL_SIZE=256
|
||||
CONFIG_NVS=y
|
||||
CONFIG_SETTINGS_NVS=y
|
||||
CONFIG_MPU_ALLOW_FLASH_WRITE=y
|
||||
Loading…
Reference in a new issue