-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'light_c6_wifi_thread' into 'main'
examples/light: Added secondary network interface for esp32c6 light See merge request app-frameworks/esp-matter!919
- Loading branch information
Showing
3 changed files
with
95 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
CONFIG_IDF_TARGET="esp32c6" | ||
|
||
# libsodium | ||
CONFIG_LIBSODIUM_USE_MBEDTLS_SHA=y | ||
|
||
# NIMBLE | ||
CONFIG_BT_ENABLED=y | ||
CONFIG_BT_NIMBLE_ENABLED=y | ||
CONFIG_BT_NIMBLE_EXT_ADV=n | ||
CONFIG_BT_NIMBLE_HCI_EVT_BUF_SIZE=70 | ||
CONFIG_USE_BLE_ONLY_FOR_COMMISSIONING=n | ||
|
||
# FreeRTOS should use legacy API | ||
CONFIG_FREERTOS_ENABLE_BACKWARD_COMPATIBILITY=y | ||
|
||
# Enable OpenThread | ||
CONFIG_OPENTHREAD_ENABLED=y | ||
CONFIG_OPENTHREAD_SRP_CLIENT=y | ||
CONFIG_OPENTHREAD_DNS_CLIENT=y | ||
CONFIG_OPENTHREAD_LOG_LEVEL_DYNAMIC=n | ||
CONFIG_OPENTHREAD_LOG_LEVEL_NOTE=y | ||
CONFIG_OPENTHREAD_CLI=n | ||
|
||
# Disable lwip ipv6 autoconfig | ||
CONFIG_LWIP_IPV6_AUTOCONFIG=n | ||
|
||
# Use a custom partition table | ||
CONFIG_PARTITION_TABLE_CUSTOM=y | ||
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv" | ||
|
||
# LwIP config for OpenThread | ||
CONFIG_LWIP_IPV6_NUM_ADDRESSES=8 | ||
CONFIG_LWIP_MULTICAST_PING=y | ||
|
||
# MDNS platform | ||
CONFIG_USE_MINIMAL_MDNS=n | ||
CONFIG_ENABLE_EXTENDED_DISCOVERY=y | ||
|
||
# Enable OTA Requestor | ||
CONFIG_ENABLE_OTA_REQUESTOR=y | ||
|
||
# Disable AP | ||
CONFIG_ENABLE_WIFI_STATION=y | ||
CONFIG_ENABLE_WIFI_AP=n | ||
|
||
# Button | ||
CONFIG_BUTTON_PERIOD_TIME_MS=20 | ||
CONFIG_BUTTON_LONG_PRESS_TIME_MS=5000 | ||
|
||
# Enable chip shell | ||
CONFIG_ENABLE_CHIP_SHELL=y | ||
|
||
# Disable persist subscriptions | ||
CONFIG_ENABLE_PERSIST_SUBSCRIPTIONS=y | ||
|
||
# ESP32-C6-DevKitM-1 Settings | ||
# Buttons | ||
CONFIG_BSP_BUTTONS_NUM=1 | ||
CONFIG_BSP_BUTTON_1_TYPE_GPIO=y | ||
CONFIG_BSP_BUTTON_1_GPIO=9 | ||
CONFIG_BSP_BUTTON_1_LEVEL=0 | ||
# LEDs | ||
CONFIG_BSP_LEDS_NUM=1 | ||
CONFIG_BSP_LED_TYPE_RGB=y | ||
CONFIG_BSP_LED_RGB_GPIO=8 | ||
CONFIG_BSP_LED_RGB_BACKEND_RMT=y | ||
|
||
# Firmware size optimization | ||
CONFIG_COMPILER_OPTIMIZATION_SIZE=y | ||
CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT=y | ||
CONFIG_COMPILER_OPTIMIZATION_CHECKS_SILENT=y | ||
CONFIG_COMPILER_SAVE_RESTORE_LIBCALLS=y | ||
CONFIG_NEWLIB_NANO_FORMAT=y | ||
CONFIG_ESP_ERR_TO_NAME_LOOKUP=n | ||
|
||
# Set endpoint id for Thread and Wi-Fi, depending on the secondary network interface endpoint id. | ||
CONFIG_THREAD_NETWORK_ENDPOINT_ID=2 | ||
CONFIG_WIFI_NETWORK_ENDPOINT_ID=0 |