Loading...
Searching...
No Matches
sdkconfig_esp32s2.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_ESP32S2_H
23#define SDKCONFIG_ESP32S2_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_ESP32S2_DEFAULT_CPU_FREQ_MHZ_2
38#define CONFIG_ESP32S2_DEFAULT_CPU_FREQ_MHZ 2
39#elif CONFIG_ESP32S2_DEFAULT_CPU_FREQ_MHZ_5
40#define CONFIG_ESP32S2_DEFAULT_CPU_FREQ_MHZ 5
41#elif CONFIG_ESP32S2_DEFAULT_CPU_FREQ_MHZ_10
42#define CONFIG_ESP32S2_DEFAULT_CPU_FREQ_MHZ 10
43#elif CONFIG_ESP32S2_DEFAULT_CPU_FREQ_MHZ_20
44#define CONFIG_ESP32S2_DEFAULT_CPU_FREQ_MHZ 20
45#elif CONFIG_ESP32S2_DEFAULT_CPU_FREQ_MHZ_40
46#define CONFIG_ESP32S2_DEFAULT_CPU_FREQ_MHZ 40
47#elif CONFIG_ESP32S2_DEFAULT_CPU_FREQ_MHZ_80
48#define CONFIG_ESP32S2_DEFAULT_CPU_FREQ_MHZ 80
49#elif CONFIG_ESP32S2_DEFAULT_CPU_FREQ_MHZ_160
50#define CONFIG_ESP32S2_DEFAULT_CPU_FREQ_MHZ 160
51#elif CONFIG_ESP32S2_DEFAULT_CPU_FREQ_MHZ_240
52#define CONFIG_ESP32S2_DEFAULT_CPU_FREQ_MHZ 240
53#endif
54
58#ifndef CONFIG_ESP32S2_DEFAULT_CPU_FREQ_MHZ
59#define CONFIG_ESP32S2_DEFAULT_CPU_FREQ_MHZ 80
60#endif
66#define CONFIG_ESP32S2_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_ESP32S2_UNIVERSAL_MAC_ADDRESSES 2
79
83#define CONFIG_ESPTOOLPY_FLASHFREQ_80M 1
84#define CONFIG_ESPTOOLPY_FLASHFREQ "80m"
85
89#define CONFIG_ESP_TIMER_IMPL_SYSTIMER 1
90#define CONFIG_ESP_CONSOLE_MULTIPLE_UART 1
91
92#define CONFIG_ESP32S2_DEBUG_OCDAWARE 1
93
94#define CONFIG_ESP32S2_BROWNOUT_DET 1
95#define CONFIG_ESP32S2_BROWNOUT_DET_LVL 7
96
97#define CONFIG_ESP32S2_TRACEMEM_RESERVE_DRAM 0x0
98#define CONFIG_ESP32S2_ULP_COPROC_RESERVE_MEM 0
99
103#define CONFIG_ESP_SLEEP_RTC_BUS_ISO_WORKAROUND 1
104
108#ifdef MODULE_ESP_IDF_USB
109#define CONFIG_USB_OTG_SUPPORTED 1
110#endif
114#ifdef MODULE_ESP_SPI_RAM
115#define CONFIG_ESP32S2_SPIRAM_SUPPORT 1
116#ifdef MODULE_ESP_SPI_OCT
117#define CONFIG_SPIRAM_MODE_OCT 1
118#else
119#define CONFIG_SPIRAM_MODE_QUAD 1
120#endif
121#define CONFIG_DEFAULT_PSRAM_CLK_IO 30
122#define CONFIG_DEFAULT_PSRAM_CS_IO 26
123#define CONFIG_SPIRAM_SUPPORT CONFIG_ESP32S2_SPIRAM_SUPPORT
124#endif
125
129#define CONFIG_ESP32S2_INSTRUCTION_CACHE_8KB 1
130#define CONFIG_ESP32S2_INSTRUCTION_CACHE_LINE_32B 1
131#define CONFIG_ESP32S2_DATA_CACHE_8KB 1
132#define CONFIG_ESP32S2_DATA_CACHE_LINE_32B 1
133
137#define CONFIG_ESP_SYSTEM_MEMPROT_DEPCHECK 1
138#define CONFIG_ESP_SYSTEM_MEMPROT_FEATURE 0 /* default enabled */
139#define CONFIG_ESP_SYSTEM_MEMPROT_FEATURE_LOCK 0 /* default enabled */
140#define CONFIG_ESP_SYSTEM_MEMPROT_CPU_PREFETCH_PAD_SIZE 16
141#define CONFIG_ESP_SYSTEM_MEMPROT_MEM_ALIGN_SIZE 4
142
143#ifdef __cplusplus
144}
145#endif
146
147#endif /* DOXYGEN */
148#endif /* SDKCONFIG_ESP32S2_H */