30#if !defined(__ASSEMBLER__) && !defined(LD_FILE_GEN)
42#include "soc/soc_caps.h"
50#include "esp_idf_ver.h"
61#ifdef CONFIG_CONSOLE_UART_NUM
62#define CONFIG_ESP_CONSOLE_UART_NUM CONFIG_CONSOLE_UART_NUM
64#define CONFIG_ESP_CONSOLE_UART_NUM 0
66#define CONFIG_ESP_CONSOLE_UART_BAUDRATE STDIO_UART_BAUDRATE
71#ifndef CONFIG_LOG_DEFAULT_LEVEL
72#define CONFIG_LOG_DEFAULT_LEVEL LOG_LEVEL
74#define CONFIG_LOG_MAXIMUM_LEVEL LOG_LEVEL
79#ifdef MODULE_NEWLIB_NANO
80#define CONFIG_NEWLIB_NANO_FORMAT 1
83#define CONFIG_ESP_SYSTEM_CHECK_INT_LEVEL_4 1
84#define CONFIG_ESP_SYSTEM_EVENT_QUEUE_SIZE 32
85#define CONFIG_ESP_SYSTEM_EVENT_TASK_STACK_SIZE 2560
86#define CONFIG_ESP_SYSTEM_SINGLE_CORE_MODE 1
88#define CONFIG_ESP_TIME_FUNCS_USE_ESP_TIMER 1
89#define CONFIG_ESP_TIMER_TASK_STACK_SIZE 3584
90#define CONFIG_ESP_TIMER_INTERRUPT_LEVEL 1
91#define CONFIG_TIMER_TASK_STACK_SIZE CONFIG_ESP_TIMER_TASK_STACK_SIZE
93#define CONFIG_APP_BUILD_TYPE_APP_2NDBOOT 1
94#define CONFIG_APP_BUILD_GENERATE_BINARIES 1
95#define CONFIG_APP_BUILD_BOOTLOADER 1
96#define CONFIG_APP_BUILD_USE_FLASH_SECTIONS 1
98#define CONFIG_PARTITION_TABLE_CUSTOM_FILENAME "partitions.csv"
99#define CONFIG_PARTITION_TABLE_FILENAME "partitions_singleapp.csv"
100#define CONFIG_PARTITION_TABLE_SINGLE_APP 1
101#define CONFIG_PARTITION_TABLE_OFFSET 0x8000
107#define CONFIG_ESP32_WIFI_ENABLED 1
108#define CONFIG_BT_ENABLED 1
109#define CONFIG_BT_CONTROLLER_ONLY 1
111#define CONFIG_BT_ENABLED 0
117#ifdef MODULE_ESP_SPI_RAM
118#define CONFIG_SPIRAM_TYPE_AUTO 1
119#define CONFIG_SPIRAM_SIZE -1
120#define CONFIG_SPIRAM_SPEED_40M 1
121#define CONFIG_SPIRAM 1
122#define CONFIG_SPIRAM_BOOT_INIT 1
123#define CONFIG_SPIRAM_USE_MALLOC 0
124#define CONFIG_SPIRAM_MEMTEST 1
125#define CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL 16384
126#define CONFIG_SPIRAM_MALLOC_RESERVE_INTERNAL 32768
132#define CONFIG_SPI_FLASH_ROM_DRIVER_PATCH 1
133#define CONFIG_SPI_FLASH_USE_LEGACY_IMPL 1
134#define CONFIG_SPI_FLASH_DANGEROUS_WRITE_ABORTS 1
135#define CONFIG_SPI_FLASH_YIELD_DURING_ERASE 1
136#define CONFIG_SPI_FLASH_ERASE_YIELD_DURATION_MS 20
137#define CONFIG_SPI_FLASH_ERASE_YIELD_TICKS 1
138#define CONFIG_SPI_FLASH_WRITE_CHUNK_SIZE 8192
139#define CONFIG_SPI_FLASH_SUPPORT_ISSI_CHIP 1
140#define CONFIG_SPI_FLASH_SUPPORT_MXIC_CHIP 1
141#define CONFIG_SPI_FLASH_SUPPORT_GD_CHIP 1
142#define CONFIG_SPI_FLASH_SUPPORT_WINBOND_CHIP 1
143#define CONFIG_SPI_FLASH_SUPPORT_BOYA_CHIP 1
144#define CONFIG_SPI_FLASH_SUPPORT_TH_CHIP 1
145#define CONFIG_SPI_FLASH_SUPPORT_MXIC_OPI_CHIP 1
151#define CONFIG_ETH_ENABLED 1
157#if !defined(CONFIG_FLASHMODE_DOUT) && \
158 !defined(CONFIG_FLASHMODE_DIO) && \
159 !defined(CONFIG_FLASHMODE_QOUT) && \
160 !defined(CONFIG_FLASHMODE_QIO)
161#error "Flash mode not configured"
167#ifdef MODULE_ESP_WIFI_ANY
168#define CONFIG_ESP32_WIFI_ENABLED 1
169#define CONFIG_ESP32_WIFI_STATIC_RX_BUFFER_NUM 10
170#define CONFIG_ESP32_WIFI_DYNAMIC_RX_BUFFER_NUM 32
171#define CONFIG_ESP32_WIFI_DYNAMIC_TX_BUFFER 1
172#define CONFIG_ESP32_WIFI_TX_BUFFER_TYPE 1
173#define CONFIG_ESP32_WIFI_DYNAMIC_TX_BUFFER_NUM 32
174#define CONFIG_ESP32_WIFI_CACHE_TX_BUFFER_NUM 32
175#define CONFIG_ESP32_WIFI_AMPDU_TX_ENABLED 1
176#define CONFIG_ESP32_WIFI_TX_BA_WIN 6
177#define CONFIG_ESP32_WIFI_AMPDU_RX_ENABLED 1
178#define CONFIG_ESP32_WIFI_RX_BA_WIN 6
179#if defined(MODULE_ESP_IDF_NVS_FLASH) && !defined(CPU_FAM_ESP32C3)
180#define CONFIG_ESP32_WIFI_NVS_ENABLED 1
182#define CONFIG_ESP32_WIFI_TASK_PINNED_TO_CORE_0 1
183#define CONFIG_ESP32_WIFI_SOFTAP_BEACON_MAX_LEN 752
184#define CONFIG_ESP32_WIFI_MGMT_SBUF_NUM 32
185#define CONFIG_ESP32_WIFI_IRAM_OPT 1
186#define CONFIG_ESP32_WIFI_RX_IRAM_OPT 1
187#define CONFIG_ESP32_WIFI_ENABLE_WPA3_SAE 1
188#if defined(MODULE_ESP_WIFI_AP) || defined(MODULE_ESP_NOW)
189#define CONFIG_ESP_WIFI_SOFTAP_SUPPORT 1
192#define CONFIG_ESP32_WIFI_SW_COEXIST_ENABLE 1
199#if MODULE_ESP_IDF_NVS_ENABLED
200#define CONFIG_ESP_PHY_CALIBRATION_AND_DATA_STORAGE 1
203#define CONFIG_ESP_PHY_MAX_TX_POWER 20
204#define CONFIG_ESP_PHY_MAX_WIFI_TX_POWER 20
206#define CONFIG_ESP32_PHY_CALIBRATION_AND_DATA_STORAGE CONFIG_ESP_PHY_CALIBRATION_AND_DATA_STORAGE
207#define CONFIG_ESP32_PHY_MAX_WIFI_TX_POWER CONFIG_ESP_PHY_MAX_WIFI_TX_POWER
212#ifndef CONFIG_ESP_FLASHPAGE_CAPACITY
214#ifdef MODULE_PERIPH_FLASHPAGE
215#if CONFIG_ESP_FLASHPAGE_CAPACITY_64K
216#define CONFIG_ESP_FLASHPAGE_CAPACITY 0x10000
217#elif CONFIG_ESP_FLASHPAGE_CAPACITY_128K
218#define CONFIG_ESP_FLASHPAGE_CAPACITY 0x20000
219#elif CONFIG_ESP_FLASHPAGE_CAPACITY_256K
220#define CONFIG_ESP_FLASHPAGE_CAPACITY 0x40000
221#elif CONFIG_ESP_FLASHPAGE_CAPACITY_512K
222#define CONFIG_ESP_FLASHPAGE_CAPACITY 0x80000
223#elif CONFIG_ESP_FLASHPAGE_CAPACITY_1M
224#define CONFIG_ESP_FLASHPAGE_CAPACITY 0x100000
225#elif CONFIG_ESP_FLASHPAGE_CAPACITY_2M
226#define CONFIG_ESP_FLASHPAGE_CAPACITY 0x200000
228#define CONFIG_ESP_FLASHPAGE_CAPACITY 0x80000
231#define CONFIG_ESP_FLASHPAGE_CAPACITY 0x0
239#if MODULE_ESP_IDF_LCD
240#ifndef CONFIG_LCD_DATA_BUF_SIZE
241#define CONFIG_LCD_DATA_BUF_SIZE 512
244#define CONFIG_LCD_PANEL_IO_FORMAT_BUF_SIZE CONFIG_LCD_DATA_BUF_SIZE
252#if defined(CPU_FAM_ESP32)
254#elif defined(CPU_FAM_ESP32C3)
256#elif defined(CPU_FAM_ESP32S2)
258#elif defined(CPU_FAM_ESP32S3)
261#error "ESP32x family implementation missing"
SDK configuration used by the ESP-IDF for ESP32 SoC variant (family)
SDK configuration used by the ESP-IDF for ESP32-C3 SoC variant (family)
SDK configuration used by the ESP-IDF for ESP32-S2 SoC variant (family)
SDK configuration used by the ESP-IDF for ESP32-S3 SoC variant (family)