Loading...
Searching...
No Matches
sdkconfig_esp32s3.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2022 Gunar Schorcht
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
22#ifndef SDKCONFIG_ESP32S3_H
23#define SDKCONFIG_ESP32S3_H
24
25#ifndef DOXYGEN
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
36/* Mapping of Kconfig defines to the respective enumeration values */
37#if CONFIG_ESP32S3_DEFAULT_CPU_FREQ_MHZ_2
38#define CONFIG_ESP32S3_DEFAULT_CPU_FREQ_MHZ 2
39#elif CONFIG_ESP32S3_DEFAULT_CPU_FREQ_MHZ_5
40#define CONFIG_ESP32S3_DEFAULT_CPU_FREQ_MHZ 5
41#elif CONFIG_ESP32S3_DEFAULT_CPU_FREQ_MHZ_10
42#define CONFIG_ESP32S3_DEFAULT_CPU_FREQ_MHZ 10
43#elif CONFIG_ESP32S3_DEFAULT_CPU_FREQ_MHZ_20
44#define CONFIG_ESP32S3_DEFAULT_CPU_FREQ_MHZ 20
45#elif CONFIG_ESP32S3_DEFAULT_CPU_FREQ_MHZ_40
46#define CONFIG_ESP32S3_DEFAULT_CPU_FREQ_MHZ 40
47#elif CONFIG_ESP32S3_DEFAULT_CPU_FREQ_MHZ_80
48#define CONFIG_ESP32S3_DEFAULT_CPU_FREQ_MHZ 80
49#elif CONFIG_ESP32S3_DEFAULT_CPU_FREQ_MHZ_160
50#define CONFIG_ESP32S3_DEFAULT_CPU_FREQ_MHZ 160
51#elif CONFIG_ESP32S3_DEFAULT_CPU_FREQ_MHZ_240
52#define CONFIG_ESP32S3_DEFAULT_CPU_FREQ_MHZ 240
53#endif
54
58#ifndef CONFIG_ESP32S3_DEFAULT_CPU_FREQ_MHZ
59#define CONFIG_ESP32S3_DEFAULT_CPU_FREQ_MHZ 80
60#endif
66#define CONFIG_ESP32S3_RTC_CLK_CAL_CYCLES (8 * 1024)
67
71#define CONFIG_EFUSE_MAX_BLK_LEN 256
72
76#define CONFIG_ESP_MAC_ADDR_UNIVERSE_WIFI_STA 1
77#define CONFIG_ESP_MAC_ADDR_UNIVERSE_WIFI_AP 1
78#define CONFIG_ESP_MAC_ADDR_UNIVERSE_BT 1
79#define CONFIG_ESP_MAC_ADDR_UNIVERSE_ETH 1
80#define CONFIG_ESP32S3_UNIVERSAL_MAC_ADDRESSES 4
81
85#define CONFIG_ESPTOOLPY_FLASHFREQ_80M 1
86#define CONFIG_ESPTOOLPY_FLASHFREQ "80m"
87
91#define CONFIG_ESP_TIMER_IMPL_SYSTIMER 1
92#define CONFIG_ESP_CONSOLE_MULTIPLE_UART 1
93
94#define CONFIG_ESP32S3_DEBUG_OCDAWARE 1
95
96#define CONFIG_ESP32S3_BROWNOUT_DET 1
97#define CONFIG_ESP32S3_BROWNOUT_DET_LVL 7
98
99#define CONFIG_ESP32S3_DEEP_SLEEP_WAKEUP_DELAY 2000
100#define CONFIG_ESP32S3_TRACEMEM_RESERVE_DRAM 0x0
101#define CONFIG_ESP32S3_ULP_COPROC_RESERVE_MEM 0
102
106#define CONFIG_ESP_SLEEP_RTC_BUS_ISO_WORKAROUND 1
107#define CONFIG_ESP_SLEEP_GPIO_RESET_WORKAROUND 1
108
112#define CONFIG_ESP_PHY_ENABLE_USB 1
113#ifdef MODULE_ESP_IDF_USB
114#define CONFIG_USB_OTG_SUPPORTED 1
115#endif
116
120#ifdef MODULE_ESP_SPI_RAM
121#define CONFIG_ESP32S3_SPIRAM_SUPPORT 1
122#ifdef MODULE_ESP_SPI_OCT
123#define CONFIG_SPIRAM_MODE_OCT 1
124#else
125#define CONFIG_SPIRAM_MODE_QUAD 1
126#endif
127#define CONFIG_DEFAULT_PSRAM_CLK_IO 30
128#define CONFIG_DEFAULT_PSRAM_CS_IO 26
129#define CONFIG_SPIRAM_SUPPORT CONFIG_ESP32S3_SPIRAM_SUPPORT
130#endif
131
135#define CONFIG_ESP32S3_INSTRUCTION_CACHE_16KB 1
136#define CONFIG_ESP32S3_INSTRUCTION_CACHE_SIZE 0x4000
137#define CONFIG_ESP32S3_INSTRUCTION_CACHE_8WAYS 1
138#define CONFIG_ESP32S3_ICACHE_ASSOCIATED_WAYS 8
139#define CONFIG_ESP32S3_INSTRUCTION_CACHE_LINE_32B 1
140#define CONFIG_ESP32S3_INSTRUCTION_CACHE_LINE_SIZE 32
141#define CONFIG_ESP32S3_DATA_CACHE_32KB 1
142#define CONFIG_ESP32S3_DATA_CACHE_SIZE 0x8000
143#define CONFIG_ESP32S3_DATA_CACHE_8WAYS 1
144#define CONFIG_ESP32S3_DCACHE_ASSOCIATED_WAYS 8
145#define CONFIG_ESP32S3_DATA_CACHE_LINE_32B 1
146#define CONFIG_ESP32S3_DATA_CACHE_LINE_SIZE 32
147
151#ifdef MODULE_ESP_BLE
152#define CONFIG_BT_CONTROLLER_ONLY 1
153#define CONFIG_BT_CTRL_ADV_DUP_FILT_MAX 30
154#define CONFIG_BT_CTRL_BLE_ADV_REPORT_DISCARD_THRSHOLD 20
155#define CONFIG_BT_CTRL_BLE_ADV_REPORT_FLOW_CTRL_NUM 100
156#define CONFIG_BT_CTRL_BLE_ADV_REPORT_FLOW_CTRL_SUPP 1
157#define CONFIG_BT_CTRL_BLE_MAX_ACT 10
158#define CONFIG_BT_CTRL_BLE_MAX_ACT_EFF 10
159#define CONFIG_BT_CTRL_BLE_SCAN_DUPL 1
160#define CONFIG_BT_CTRL_BLE_STATIC_ACL_TX_BUF_NB 0
161#define CONFIG_BT_CTRL_CE_LENGTH_TYPE_EFF 0
162#define CONFIG_BT_CTRL_CE_LENGTH_TYPE_ORIG 1
163#define CONFIG_BT_CTRL_COEX_PHY_CODED_TX_RX_TLIM_DIS 1
164#define CONFIG_BT_CTRL_COEX_PHY_CODED_TX_RX_TLIM_EFF 0
165#define CONFIG_BT_CTRL_DFT_TX_POWER_LEVEL_EFF 10
166#define CONFIG_BT_CTRL_DFT_TX_POWER_LEVEL_P3 1
167#define CONFIG_BT_CTRL_HCI_MODE_VHCI 1
168#define CONFIG_BT_CTRL_HCI_TL 1
169#define CONFIG_BT_CTRL_HCI_TL_EFF 1
170#define CONFIG_BT_CTRL_HW_CCA_EFF 0
171#define CONFIG_BT_CTRL_HW_CCA_VAL 20
172#define CONFIG_BT_CTRL_MODE_EFF 1
173#define CONFIG_BT_CTRL_PINNED_TO_CORE 0
174#define CONFIG_BT_CTRL_PINNED_TO_CORE_0 1
175#define CONFIG_BT_CTRL_RX_ANTENNA_INDEX_0 1
176#define CONFIG_BT_CTRL_RX_ANTENNA_INDEX_EFF 0
177#define CONFIG_BT_CTRL_SCAN_DUPL_CACHE_SIZE 100
178#define CONFIG_BT_CTRL_SCAN_DUPL_TYPE 0
179#define CONFIG_BT_CTRL_SCAN_DUPL_TYPE_DEVICE 1
180#define CONFIG_BT_CTRL_SLEEP_CLOCK_EFF 0
181#define CONFIG_BT_CTRL_SLEEP_MODE_EFF 0
182#define CONFIG_BT_CTRL_TX_ANTENNA_INDEX_0 1
183#define CONFIG_BT_CTRL_TX_ANTENNA_INDEX_EFF 0
184#define CONFIG_BT_ENABLED 1
185#define CONFIG_BT_SOC_SUPPORT_5_0 1
186#endif
187
188#ifdef __cplusplus
189}
190#endif
191
192#endif /* DOXYGEN */
193#endif /* SDKCONFIG_ESP32S3_H */