Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Main Page
Related Pages
Supported Boards
Modules
Namespaces
Namespace List
Namespace Members
All
Functions
Variables
Enumerations
Data Structures
Data Structures
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
w
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Enumerator
Related Symbols
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
_
a
b
c
d
e
f
g
h
i
k
l
m
n
p
q
r
s
t
u
v
w
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
►
RIOT OS
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
sdkconfig_esp32.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_ESP32_H
23
#define SDKCONFIG_ESP32_H
24
25
#ifndef DOXYGEN
26
27
#ifdef __cplusplus
28
extern
"C"
{
29
#endif
30
36
/* Mapping of Kconfig defines to the respective enumeration values */
37
#if CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ_2
38
#define CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ 2
39
#elif CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ_5
40
#define CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ 5
41
#elif CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ_10
42
#define CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ 10
43
#elif CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ_20
44
#define CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ 20
45
#elif CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ_40
46
#define CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ 40
47
#elif CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ_80
48
#define CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ 80
49
#elif CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ_160
50
#define CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ 160
51
#elif CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ_240
52
#define CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ 240
53
#endif
54
58
#ifndef CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ
59
#define CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ 80
60
#endif
66
#define CONFIG_ESP32_RTC_CLK_CAL_CYCLES (8 * 1024)
67
71
#define CONFIG_EFUSE_MAX_BLK_LEN 192
72
#define CONFIG_EFUSE_CODE_SCHEME_COMPAT_3_4 1
73
77
#define CONFIG_ESP_MAC_ADDR_UNIVERSE_WIFI_STA 1
78
#define CONFIG_ESP_MAC_ADDR_UNIVERSE_WIFI_AP 1
79
#define CONFIG_ESP_MAC_ADDR_UNIVERSE_BT 1
80
#define CONFIG_ESP_MAC_ADDR_UNIVERSE_ETH 1
81
#define CONFIG_ESP32_UNIVERSAL_MAC_ADDRESSES 4
82
86
#define CONFIG_ESP_TIMER_IMPL_FRC2 1
87
#define CONFIG_ESP_CONSOLE_MULTIPLE_UART 1
88
89
#define CONFIG_ESP32_DEBUG_OCDAWARE 1
90
#define CONFIG_ESP32_REV_MIN 0
91
92
#define CONFIG_ESP32_BROWNOUT_DET 1
93
#define CONFIG_ESP32_BROWNOUT_DET_LVL 0
94
#define CONFIG_BROWNOUT_DET CONFIG_ESP32_BROWNOUT_DET
95
96
#define CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY 2000
97
#define CONFIG_ESP32_TRACEMEM_RESERVE_DRAM 0x0
98
#define CONFIG_ESP32_ULP_COPROC_RESERVE_MEM 0
99
103
#define CONFIG_ESP_SLEEP_RTC_BUS_ISO_WORKAROUND 1
104
108
#define CONFIG_ADC_CAL_EFUSE_TP_ENABLE 1
109
#define CONFIG_ADC_CAL_EFUSE_VREF_ENABLE 1
110
#define CONFIG_ADC_CAL_LUT_ENABLE 1
111
115
#define CONFIG_ESP_PHY_REDUCE_TX_POWER 1
116
#define CONFIG_ESP32_REDUCE_PHY_TX_POWER CONFIG_ESP_PHY_REDUCE_TX_POWER
117
#define CONFIG_REDUCE_PHY_TX_POWER CONFIG_ESP_PHY_REDUCE_TX_POWER
118
125
#ifndef CONFIG_ESP32_XTAL_FREQ
126
#define CONFIG_ESP32_XTAL_FREQ 0
127
#endif
128
129
#ifdef MODULE_ESP_RTC_TIMER_32K
130
#define CONFIG_ESP32_RTC_CLK_SRC_EXT_CRYS 1
131
#endif
132
#define CONFIG_ESP32_RTC_XTAL_BOOTSTRAP_CYCLES 100
133
137
#ifdef MODULE_ESP_SPI_RAM
138
#define CONFIG_ESP32_SPIRAM_SUPPORT 1
139
#define CONFIG_D0WD_PSRAM_CLK_IO 17
140
#define CONFIG_D0WD_PSRAM_CS_IO 16
141
#define CONFIG_D2WD_PSRAM_CLK_IO 9
142
#define CONFIG_D2WD_PSRAM_CS_IO 10
143
#define CONFIG_PICO_PSRAM_CS_IO 10
144
#define CONFIG_SPIRAM_BANKSWITCH_ENABLE 1
145
#define CONFIG_SPIRAM_BANKSWITCH_RESERVE 8
146
#define CONFIG_SPIRAM_CACHE_WORKAROUND 1
147
#define CONFIG_SPIRAM_CACHE_WORKAROUND_STRATEGY_MEMW 1
148
#define CONFIG_SPIRAM_SPIWP_SD3_PIN 7
149
#define CONFIG_SPIRAM_SUPPORT CONFIG_ESP32_SPIRAM_SUPPORT
150
#endif
151
155
#ifdef MODULE_ESP_ETH
156
#define CONFIG_ETH_USE_ESP32_EMAC 1
157
#define CONFIG_ETH_PHY_INTERFACE_RMII 1
158
#define CONFIG_ETH_RMII_CLK_INPUT 1
159
#define CONFIG_ETH_RMII_CLK_IN_GPIO 0
160
#define CONFIG_ETH_DMA_BUFFER_SIZE 512
161
#define CONFIG_ETH_DMA_RX_BUFFER_NUM 10
162
#define CONFIG_ETH_DMA_TX_BUFFER_NUM 10
163
#endif
164
168
#ifdef MODULE_ESP_BLE
169
#define CONFIG_BTDM_BLE_ADV_REPORT_DISCARD_THRSHOLD 20
170
#define CONFIG_BTDM_BLE_ADV_REPORT_FLOW_CTRL_SUPP 1
171
#define CONFIG_BTDM_BLE_ADV_REPORT_FLOW_CTRL_NUM 100
172
#define CONFIG_BTDM_BLE_DEFAULT_SCA_250PPM 1
173
#define CONFIG_BTDM_BLE_SCAN_DUPL 1
174
#define CONFIG_BTDM_BLE_SLEEP_CLOCK_ACCURACY_INDEX_EFF 1
175
#define CONFIG_BTDM_CTRL_BLE_MAX_CONN 3
176
#define CONFIG_BTDM_CTRL_BLE_MAX_CONN_EFF 3
177
#define CONFIG_BTDM_CTRL_BR_EDR_MAX_ACL_CONN_EFF 0
178
#define CONFIG_BTDM_CTRL_BR_EDR_MAX_SYNC_CONN_EFF 0
179
#define CONFIG_BTDM_CTRL_BR_EDR_SCO_DATA_PATH_EFF 0
180
#define CONFIG_BTDM_CTRL_FULL_SCAN_SUPPORTED 1
181
#define CONFIG_BTDM_CTRL_HCI_MODE_VHCI 1
182
#define CONFIG_BTDM_CTRL_HLI 0
/* ESP-IDF uses 1 by default */
183
#define CONFIG_BTDM_CTRL_LPCLK_SEL_MAIN_XTAL 1
184
#define CONFIG_BTDM_CTRL_MODE_BLE_ONLY 1
185
#define CONFIG_BTDM_CTRL_MODEM_SLEEP 1
186
#define CONFIG_BTDM_CTRL_MODEM_SLEEP_MODE_ORIG 1
187
#define CONFIG_BTDM_CTRL_PCM_ROLE_EFF 0
188
#define CONFIG_BTDM_CTRL_PCM_POLAR_EFF 0
189
#define CONFIG_BTDM_CTRL_PINNED_TO_CORE_0 1
190
#define CONFIG_BTDM_CTRL_PINNED_TO_CORE 0
191
#define CONFIG_BTDM_RESERVE_DRAM 0xe000
/* at least 0xdb5c, we use 56 kB */
192
#define CONFIG_BTDM_SCAN_DUPL_CACHE_SIZE 200
193
#define CONFIG_BTDM_SCAN_DUPL_TYPE_DEVICE 1
194
#define CONFIG_BTDM_SCAN_DUPL_TYPE 0
195
196
#define CONFIG_BLE_ADV_REPORT_DISCARD_THRSHOLD CONFIG_ BTDM_BLE_ADV_REPORT_DISCARD_THRSHOLD
197
#define CONFIG_BLE_ADV_REPORT_FLOW_CONTROL_NUM CONFIG_ BTDM_BLE_ADV_REPORT_FLOW_CTRL_NUM
198
#define CONFIG_BLE_ADV_REPORT_FLOW_CONTROL_SUPPORTED CONFIG_BTDM_BLE_ADV_REPORT_FLOW_CTRL_SUPP
199
#define CONFIG_BLE_SCAN_DUPLICATE CONFIG_BTDM_BLE_SCAN_DUPL
200
#define CONFIG_BTDM_CONTROLLER_BLE_MAX_CONN CONFIG_BTDM_CTRL_BLE_MAX_CONN
201
#define CONFIG_BTDM_CONTROLLER_FULL_SCAN_SUPPORTED CONFIG_BTDM_CTRL_FULL_SCAN_SUPPORTED
202
#define CONFIG_BTDM_CONTROLLER_HCI_MODE_VHCI CONFIG_BTDM_CTRL_HCI_MODE_VHCI
203
#define CONFIG_BTDM_CONTROLLER_MODEM_SLEEP CONFIG_BTDM_CTRL_MODEM_SLEEP
204
#define CONFIG_BTDM_CONTROLLER_MODE_BLE_ONLY CONFIG_BTDM_CTRL_MODE_BLE_ONLY
205
#define CONFIG_DUPLICATE_SCAN_CACHE_SIZE CONFIG_BTDM_SCAN_DUPL_CACHE_SIZE
206
#define CONFIG_SCAN_DUPLICATE_BY_DEVICE_ADDR CONFIG_BTDM_SCAN_DUPL_TYPE_DEVICE
207
208
#else
209
210
#define CONFIG_BTDM_RESERVE_DRAM 0
211
212
#endif
213
214
#ifdef __cplusplus
215
}
216
#endif
217
218
#endif
/* DOXYGEN */
219
#endif
/* SDKCONFIG_ESP32_H */
Generated on Thu Apr 3 2025 15:28:51 by
1.12.0