Kconfig 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558
  1. menu "ESP32S2-specific"
  2. # TODO: this component simply shouldn't be included
  3. # in the build at the CMake level, but this is currently
  4. # not working so we just hide all items here
  5. visible if IDF_TARGET_ESP32S2
  6. choice ESP32S2_DEFAULT_CPU_FREQ_MHZ
  7. prompt "CPU frequency"
  8. default ESP32S2_DEFAULT_CPU_FREQ_160 if !IDF_ENV_FPGA
  9. default ESP32S2_DEFAULT_CPU_FREQ_FPGA if IDF_ENV_FPGA
  10. help
  11. CPU frequency to be set on application startup.
  12. config ESP32S2_DEFAULT_CPU_FREQ_FPGA
  13. depends on IDF_ENV_FPGA
  14. bool "FPGA"
  15. config ESP32S2_DEFAULT_CPU_FREQ_80
  16. bool "80 MHz"
  17. config ESP32S2_DEFAULT_CPU_FREQ_160
  18. bool "160 MHz"
  19. config ESP32S2_DEFAULT_CPU_FREQ_240
  20. bool "240 MHz"
  21. endchoice
  22. config ESP32S2_DEFAULT_CPU_FREQ_MHZ
  23. int
  24. default 40 if IDF_ENV_FPGA
  25. default 80 if ESP32S2_DEFAULT_CPU_FREQ_80
  26. default 160 if ESP32S2_DEFAULT_CPU_FREQ_160
  27. default 240 if ESP32S2_DEFAULT_CPU_FREQ_240
  28. menu "Cache config"
  29. choice ESP32S2_INSTRUCTION_CACHE_SIZE
  30. prompt "Instruction cache size"
  31. default ESP32S2_INSTRUCTION_CACHE_8KB
  32. help
  33. Instruction cache size to be set on application startup.
  34. If you use 8KB instruction cache rather than 16KB instruction cache,
  35. then the other 8KB will be added to the heap.
  36. config ESP32S2_INSTRUCTION_CACHE_8KB
  37. bool "8KB"
  38. config ESP32S2_INSTRUCTION_CACHE_16KB
  39. bool "16KB"
  40. endchoice
  41. choice ESP32S2_INSTRUCTION_CACHE_LINE_SIZE
  42. prompt "Instruction cache line size"
  43. default ESP32S2_INSTRUCTION_CACHE_LINE_32B
  44. help
  45. Instruction cache line size to be set on application startup.
  46. config ESP32S2_INSTRUCTION_CACHE_LINE_16B
  47. bool "16 Bytes"
  48. config ESP32S2_INSTRUCTION_CACHE_LINE_32B
  49. bool "32 Bytes"
  50. endchoice
  51. choice ESP32S2_DATA_CACHE_SIZE
  52. prompt "Data cache size"
  53. default ESP32S2_DATA_CACHE_8KB
  54. help
  55. Data cache size to be set on application startup.
  56. If you use 8KB data cache rather than 16KB data cache, the other 8KB will be added to the heap.
  57. config ESP32S2_DATA_CACHE_0KB
  58. depends on !ESP32S2_SPIRAM_SUPPORT
  59. bool "0KB"
  60. config ESP32S2_DATA_CACHE_8KB
  61. bool "8KB"
  62. config ESP32S2_DATA_CACHE_16KB
  63. bool "16KB"
  64. endchoice
  65. choice ESP32S2_DATA_CACHE_LINE_SIZE
  66. prompt "Data cache line size"
  67. default ESP32S2_DATA_CACHE_LINE_32B
  68. help
  69. Data cache line size to be set on application startup.
  70. config ESP32S2_DATA_CACHE_LINE_16B
  71. bool "16 Bytes"
  72. config ESP32S2_DATA_CACHE_LINE_32B
  73. bool "32 Bytes"
  74. endchoice
  75. config ESP32S2_INSTRUCTION_CACHE_WRAP
  76. bool "Enable instruction cache wrap"
  77. default "n"
  78. help
  79. If enabled, instruction cache will use wrap mode to read spi flash (maybe spiram).
  80. The wrap length equals to INSTRUCTION_CACHE_LINE_SIZE.
  81. However, it depends on complex conditions.
  82. config ESP32S2_DATA_CACHE_WRAP
  83. bool "Enable data cache wrap"
  84. default "n"
  85. help
  86. If enabled, data cache will use wrap mode to read spiram (maybe spi flash).
  87. The wrap length equals to DATA_CACHE_LINE_SIZE.
  88. However, it depends on complex conditions.
  89. endmenu # Cache config
  90. # Note: to support SPIRAM across multiple chips, check CONFIG_SPIRAM
  91. # instead
  92. config ESP32S2_SPIRAM_SUPPORT
  93. bool "Support for external, SPI-connected RAM"
  94. default "n"
  95. select SPIRAM
  96. help
  97. This enables support for an external SPI RAM chip, connected in parallel with the
  98. main SPI flash chip.
  99. menu "SPI RAM config"
  100. depends on ESP32S2_SPIRAM_SUPPORT
  101. choice SPIRAM_TYPE
  102. prompt "Type of SPI RAM chip in use"
  103. default SPIRAM_TYPE_AUTO
  104. config SPIRAM_TYPE_AUTO
  105. bool "Auto-detect"
  106. config SPIRAM_TYPE_ESPPSRAM16
  107. bool "ESP-PSRAM16 or APS1604"
  108. config SPIRAM_TYPE_ESPPSRAM32
  109. bool "ESP-PSRAM32 or IS25WP032"
  110. config SPIRAM_TYPE_ESPPSRAM64
  111. bool "ESP-PSRAM64 or LY68L6400"
  112. endchoice
  113. config SPIRAM_SIZE
  114. int
  115. default -1 if SPIRAM_TYPE_AUTO
  116. default 2097152 if SPIRAM_TYPE_ESPPSRAM16
  117. default 4194304 if SPIRAM_TYPE_ESPPSRAM32
  118. default 8388608 if SPIRAM_TYPE_ESPPSRAM64
  119. default 0
  120. menu "PSRAM clock and cs IO for ESP32S2"
  121. depends on ESP32S2_SPIRAM_SUPPORT
  122. config DEFAULT_PSRAM_CLK_IO
  123. int "PSRAM CLK IO number"
  124. range 0 33
  125. default 30
  126. help
  127. The PSRAM CLOCK IO can be any unused GPIO, user can config it based on hardware design.
  128. config DEFAULT_PSRAM_CS_IO
  129. int "PSRAM CS IO number"
  130. range 0 33
  131. default 26
  132. help
  133. The PSRAM CS IO can be any unused GPIO, user can config it based on hardware design.
  134. endmenu
  135. config SPIRAM_SPIWP_SD3_PIN
  136. int "SPI PSRAM WP(SD3) Pin when customising pins via eFuse (read help)"
  137. depends on ESPTOOLPY_FLASHMODE_DIO || ESPTOOLPY_FLASHMODE_DOUT
  138. range 0 33
  139. default 28
  140. help
  141. This value is ignored unless flash mode is set to DIO or DOUT and the SPI flash pins have been
  142. overriden by setting the eFuses SPI_PAD_CONFIG_xxx.
  143. Different from esp32 chip, on esp32s2, the WP pin would also be defined in efuse. This value would only
  144. be used if the WP pin recorded in efuse SPI_PAD_CONFIG_xxx is invalid.
  145. When flash mode is set to QIO or QOUT, the PSRAM WP pin will be set as the value configured in
  146. bootloader.
  147. config SPIRAM_FETCH_INSTRUCTIONS
  148. bool "Cache fetch instructions from SPI RAM"
  149. default n
  150. help
  151. If enabled, instruction in flash will be copied into SPIRAM.
  152. If SPIRAM_RODATA also enabled,
  153. you can run the instruction when erasing or programming the flash.
  154. config SPIRAM_RODATA
  155. bool "Cache load read only data from SPI RAM"
  156. default n
  157. help
  158. If enabled, radata in flash will be copied into SPIRAM.
  159. If SPIRAM_FETCH_INSTRUCTIONS also enabled,
  160. you can run the instruction when erasing or programming the flash.
  161. config SPIRAM_USE_AHB_DBUS3
  162. bool "Enable AHB DBUS3 to access SPIRAM"
  163. default n
  164. help
  165. If Enabled, if SPI_CONFIG_SIZE is bigger then 10MB+576KB,
  166. then you can have 4MB more space to map the SPIRAM.
  167. However, the AHB bus is slower than other data cache buses.
  168. choice SPIRAM_SPEED
  169. prompt "Set RAM clock speed"
  170. default SPIRAM_SPEED_40M
  171. help
  172. Select the speed for the SPI RAM chip.
  173. If SPI RAM is enabled, we only support three combinations of SPI speed mode we supported now:
  174. 1. Flash SPI running at 40Mhz and RAM SPI running at 40Mhz
  175. 2. Flash SPI running at 80Mhz and RAM SPI running at 40Mhz
  176. 3. Flash SPI running at 80Mhz and RAM SPI running at 80Mhz
  177. Note: If the third mode(80Mhz+80Mhz) is enabled for SPI RAM of type 32MBit, one of the HSPI/VSPI host
  178. will be occupied by the system. Which SPI host to use can be selected by the config item
  179. SPIRAM_OCCUPY_SPI_HOST. Application code should never touch HSPI/VSPI hardware in this case. The
  180. option to select 80MHz will only be visible if the flash SPI speed is also 80MHz.
  181. (ESPTOOLPY_FLASHFREQ_80M is true)
  182. config SPIRAM_SPEED_80M
  183. bool "80MHz clock speed"
  184. config SPIRAM_SPEED_40M
  185. bool "40Mhz clock speed"
  186. config SPIRAM_SPEED_26M
  187. bool "26Mhz clock speed"
  188. config SPIRAM_SPEED_20M
  189. bool "20Mhz clock speed"
  190. endchoice
  191. # insert non-chip-specific items here
  192. source "$IDF_PATH/components/esp_common/Kconfig.spiram.common"
  193. endmenu
  194. config ESP32S2_MEMMAP_TRACEMEM
  195. bool
  196. default "n"
  197. config ESP32S2_MEMMAP_TRACEMEM_TWOBANKS
  198. bool
  199. default "n"
  200. config ESP32S2_TRAX
  201. bool "Use TRAX tracing feature"
  202. default "n"
  203. select ESP32S2_MEMMAP_TRACEMEM
  204. help
  205. The ESP32S2 contains a feature which allows you to trace the execution path the processor
  206. has taken through the program. This is stored in a chunk of 32K (16K for single-processor)
  207. of memory that can't be used for general purposes anymore. Disable this if you do not know
  208. what this is.
  209. config ESP32S2_TRACEMEM_RESERVE_DRAM
  210. hex
  211. default 0x8000 if ESP32S2_MEMMAP_TRACEMEM && ESP32S2_MEMMAP_TRACEMEM_TWOBANKS
  212. default 0x4000 if ESP32S2_MEMMAP_TRACEMEM && !ESP32S2_MEMMAP_TRACEMEM_TWOBANKS
  213. default 0x0
  214. choice ESP32S2_UNIVERSAL_MAC_ADDRESSES
  215. bool "Number of universally administered (by IEEE) MAC address"
  216. default ESP32S2_UNIVERSAL_MAC_ADDRESSES_TWO
  217. help
  218. Configure the number of universally administered (by IEEE) MAC addresses.
  219. During initialization, MAC addresses for each network interface are generated or derived from a
  220. single base MAC address.
  221. If the number of universal MAC addresses is Two, all interfaces (WiFi station, WiFi softap) receive a
  222. universally administered MAC address. They are generated sequentially by adding 0, and 1 (respectively)
  223. to the final octet of the base MAC address. If the number of universal MAC addresses is one,
  224. only WiFi station receives a universally administered MAC address.
  225. It's generated by adding 0 to the base MAC address.
  226. The WiFi softap receives local MAC addresses. It's derived from the universal WiFi station MAC addresses.
  227. When using the default (Espressif-assigned) base MAC address, either setting can be used. When using
  228. a custom universal MAC address range, the correct setting will depend on the allocation of MAC
  229. addresses in this range (either 1 or 2 per device.)
  230. config ESP32S2_UNIVERSAL_MAC_ADDRESSES_ONE
  231. bool "One"
  232. select ESP_MAC_ADDR_UNIVERSE_WIFI_STA
  233. config ESP32S2_UNIVERSAL_MAC_ADDRESSES_TWO
  234. bool "Two"
  235. select ESP_MAC_ADDR_UNIVERSE_WIFI_STA
  236. select ESP_MAC_ADDR_UNIVERSE_WIFI_AP
  237. endchoice
  238. config ESP32S2_UNIVERSAL_MAC_ADDRESSES
  239. int
  240. default 1 if ESP32S2_UNIVERSAL_MAC_ADDRESSES_ONE
  241. default 2 if ESP32S2_UNIVERSAL_MAC_ADDRESSES_TWO
  242. config ESP32S2_ULP_COPROC_ENABLED
  243. bool "Enable Ultra Low Power (ULP) Coprocessor"
  244. default "n"
  245. help
  246. Set to 'y' if you plan to load a firmware for the coprocessor.
  247. If this option is enabled, further coprocessor configuration will appear in the Components menu.
  248. config ESP32S2_ULP_COPROC_RESERVE_MEM
  249. int
  250. prompt "RTC slow memory reserved for coprocessor" if ESP32S2_ULP_COPROC_ENABLED
  251. default 512 if ESP32S2_ULP_COPROC_ENABLED
  252. range 32 8192 if ESP32S2_ULP_COPROC_ENABLED
  253. default 0 if !ESP32S2_ULP_COPROC_ENABLED
  254. range 0 0 if !ESP32S2_ULP_COPROC_ENABLED
  255. help
  256. Bytes of memory to reserve for ULP coprocessor firmware & data.
  257. Data is reserved at the beginning of RTC slow memory.
  258. config ESP32S2_DEBUG_OCDAWARE
  259. bool "Make exception and panic handlers JTAG/OCD aware"
  260. default y
  261. select FREERTOS_DEBUG_OCDAWARE
  262. help
  263. The FreeRTOS panic and unhandled exception handers can detect a JTAG OCD debugger and
  264. instead of panicking, have the debugger stop on the offending instruction.
  265. config ESP32S2_DEBUG_STUBS_ENABLE
  266. bool "OpenOCD debug stubs"
  267. default COMPILER_OPTIMIZATION_LEVEL_DEBUG
  268. depends on !ESP32S2_TRAX
  269. help
  270. Debug stubs are used by OpenOCD to execute pre-compiled onboard code which does some useful debugging,
  271. e.g. GCOV data dump.
  272. config ESP32S2_BROWNOUT_DET
  273. bool "Hardware brownout detect & reset"
  274. default y
  275. help
  276. The ESP32-S2 has a built-in brownout detector which can detect if the voltage is lower than
  277. a specific value. If this happens, it will reset the chip in order to prevent unintended
  278. behaviour.
  279. choice ESP32S2_BROWNOUT_DET_LVL_SEL
  280. prompt "Brownout voltage level"
  281. depends on ESP32S2_BROWNOUT_DET
  282. default ESP32S2_BROWNOUT_DET_LVL_SEL_7
  283. help
  284. The brownout detector will reset the chip when the supply voltage is approximately
  285. below this level. Note that there may be some variation of brownout voltage level
  286. between each ESP3-S2 chip.
  287. #The voltage levels here are estimates, more work needs to be done to figure out the exact voltages
  288. #of the brownout threshold levels.
  289. config ESP32S2_BROWNOUT_DET_LVL_SEL_7
  290. bool "2.44V"
  291. config ESP32S2_BROWNOUT_DET_LVL_SEL_6
  292. bool "2.56V"
  293. config ESP32S2_BROWNOUT_DET_LVL_SEL_5
  294. bool "2.67V"
  295. config ESP32S2_BROWNOUT_DET_LVL_SEL_4
  296. bool "2.84V"
  297. config ESP32S2_BROWNOUT_DET_LVL_SEL_3
  298. bool "2.98V"
  299. config ESP32S2_BROWNOUT_DET_LVL_SEL_2
  300. bool "3.19V"
  301. config ESP32S2_BROWNOUT_DET_LVL_SEL_1
  302. bool "3.30V"
  303. endchoice
  304. config ESP32S2_BROWNOUT_DET_LVL
  305. int
  306. default 1 if ESP32S2_BROWNOUT_DET_LVL_SEL_1
  307. default 2 if ESP32S2_BROWNOUT_DET_LVL_SEL_2
  308. default 3 if ESP32S2_BROWNOUT_DET_LVL_SEL_3
  309. default 4 if ESP32S2_BROWNOUT_DET_LVL_SEL_4
  310. default 5 if ESP32S2_BROWNOUT_DET_LVL_SEL_5
  311. default 6 if ESP32S2_BROWNOUT_DET_LVL_SEL_6
  312. default 7 if ESP32S2_BROWNOUT_DET_LVL_SEL_7
  313. # Note about the use of "FRC1" name: currently FRC1 timer is not used for
  314. # high resolution timekeeping anymore. Instead the esp_timer API, implemented
  315. # using FRC2 timer, is used.
  316. # FRC1 name in the option name is kept for compatibility.
  317. choice ESP32S2_TIME_SYSCALL
  318. prompt "Timers used for gettimeofday function"
  319. default ESP32S2_TIME_SYSCALL_USE_RTC_FRC1
  320. help
  321. This setting defines which hardware timers are used to
  322. implement 'gettimeofday' and 'time' functions in C library.
  323. - If both high-resolution and RTC timers are used, timekeeping will
  324. continue in deep sleep. Time will be reported at 1 microsecond
  325. resolution. This is the default, and the recommended option.
  326. - If only high-resolution timer is used, gettimeofday will
  327. provide time at microsecond resolution.
  328. Time will not be preserved when going into deep sleep mode.
  329. - If only RTC timer is used, timekeeping will continue in
  330. deep sleep, but time will be measured at 6.(6) microsecond
  331. resolution. Also the gettimeofday function itself may take
  332. longer to run.
  333. - If no timers are used, gettimeofday and time functions
  334. return -1 and set errno to ENOSYS.
  335. - When RTC is used for timekeeping, two RTC_STORE registers are
  336. used to keep time in deep sleep mode.
  337. config ESP32S2_TIME_SYSCALL_USE_RTC_FRC1
  338. bool "RTC and high-resolution timer"
  339. config ESP32S2_TIME_SYSCALL_USE_RTC
  340. bool "RTC"
  341. config ESP32S2_TIME_SYSCALL_USE_FRC1
  342. bool "High-resolution timer"
  343. config ESP32S2_TIME_SYSCALL_USE_NONE
  344. bool "None"
  345. endchoice
  346. choice ESP32S2_RTC_CLK_SRC
  347. prompt "RTC clock source"
  348. default ESP32S2_RTC_CLK_SRC_INT_RC
  349. help
  350. Choose which clock is used as RTC clock source.
  351. - "Internal 90kHz oscillator" option provides lowest deep sleep current
  352. consumption, and does not require extra external components. However
  353. frequency stability with respect to temperature is poor, so time may
  354. drift in deep/light sleep modes.
  355. - "External 32kHz crystal" provides better frequency stability, at the
  356. expense of slightly higher (1uA) deep sleep current consumption.
  357. - "External 32kHz oscillator" allows using 32kHz clock generated by an
  358. external circuit. In this case, external clock signal must be connected
  359. to 32K_XP pin. Amplitude should be <1.2V in case of sine wave signal,
  360. and <1V in case of square wave signal. Common mode voltage should be
  361. 0.1 < Vcm < 0.5Vamp, where Vamp is the signal amplitude.
  362. Additionally, 1nF capacitor must be connected between 32K_XN pin and
  363. ground. 32K_XN pin can not be used as a GPIO in this case.
  364. - "Internal 8MHz oscillator divided by 256" option results in higher
  365. deep sleep current (by 5uA) but has better frequency stability than
  366. the internal 90kHz oscillator. It does not require external components.
  367. config ESP32S2_RTC_CLK_SRC_INT_RC
  368. bool "Internal 90kHz RC oscillator"
  369. config ESP32S2_RTC_CLK_SRC_EXT_CRYS
  370. bool "External 32kHz crystal"
  371. config ESP32S2_RTC_CLK_SRC_EXT_OSC
  372. bool "External 32kHz oscillator at 32K_XP pin"
  373. config ESP32S2_RTC_CLK_SRC_INT_8MD256
  374. bool "Internal 8MHz oscillator, divided by 256 (~32kHz)"
  375. endchoice
  376. config ESP32S2_RTC_CLK_CAL_CYCLES
  377. int "Number of cycles for RTC_SLOW_CLK calibration"
  378. default 3000 if ESP32S2_RTC_CLK_SRC_EXT_CRYS
  379. default 576 if ESP32S2_RTC_CLK_SRC_INT_RC
  380. range 0 125000
  381. help
  382. When the startup code initializes RTC_SLOW_CLK, it can perform
  383. calibration by comparing the RTC_SLOW_CLK frequency with main XTAL
  384. frequency. This option sets the number of RTC_SLOW_CLK cycles measured
  385. by the calibration routine. Higher numbers increase calibration
  386. precision, which may be important for applications which spend a lot of
  387. time in deep sleep. Lower numbers reduce startup time.
  388. When this option is set to 0, clock calibration will not be performed at
  389. startup, and approximate clock frequencies will be assumed:
  390. - 150000 Hz if internal RC oscillator is used as clock source. For this use value 1024.
  391. - 32768 Hz if the 32k crystal oscillator is used. For this use value 3000 or more.
  392. In case more value will help improve the definition of the launch of the crystal.
  393. If the crystal could not start, it will be switched to internal RC.
  394. config ESP32S2_RTC_XTAL_CAL_RETRY
  395. int "Number of attempts to repeat 32k XTAL calibration"
  396. default 3
  397. depends on ESP32S2_RTC_CLK_SRC_EXT_CRYS
  398. help
  399. Number of attempts to repeat 32k XTAL calibration
  400. before giving up and switching to the internal RC.
  401. Increase this option if the 32k crystal oscillator
  402. does not start and switches to internal RC.
  403. config ESP32S2_DISABLE_BASIC_ROM_CONSOLE
  404. bool "Permanently disable BASIC ROM Console"
  405. default n
  406. help
  407. If set, the first time the app boots it will disable the BASIC ROM Console
  408. permanently (by burning an eFuse).
  409. Otherwise, the BASIC ROM Console starts on reset if no valid bootloader is
  410. read from the flash.
  411. (Enabling secure boot also disables the BASIC ROM Console by default.)
  412. config ESP32S2_NO_BLOBS
  413. bool "No Binary Blobs"
  414. depends on !BT_ENABLED
  415. default n
  416. help
  417. If enabled, this disables the linking of binary libraries in the application build. Note
  418. that after enabling this Wi-Fi/Bluetooth will not work.
  419. endmenu # ESP32S2-Specific
  420. menu "Power Management"
  421. # TODO: this component simply shouldn't be included
  422. # in the build at the CMake level, but this is currently
  423. # not working so we just hide all items here
  424. visible if IDF_TARGET_ESP32S2
  425. config PM_ENABLE
  426. bool "Support for power management"
  427. default n
  428. help
  429. If enabled, application is compiled with support for power management.
  430. This option has run-time overhead (increased interrupt latency,
  431. longer time to enter idle state), and it also reduces accuracy of
  432. RTOS ticks and timers used for timekeeping.
  433. Enable this option if application uses power management APIs.
  434. config PM_DFS_INIT_AUTO
  435. bool "Enable dynamic frequency scaling (DFS) at startup"
  436. depends on PM_ENABLE
  437. default n
  438. help
  439. If enabled, startup code configures dynamic frequency scaling.
  440. Max CPU frequency is set to CONFIG_ESP32S2_DEFAULT_CPU_FREQ_MHZ setting,
  441. min frequency is set to XTAL frequency.
  442. If disabled, DFS will not be active until the application
  443. configures it using esp_pm_configure function.
  444. config PM_USE_RTC_TIMER_REF
  445. bool "Use RTC timer to prevent time drift (EXPERIMENTAL)"
  446. depends on PM_ENABLE && (ESP32S2_TIME_SYSCALL_USE_RTC || ESP32S2_TIME_SYSCALL_USE_RTC_FRC1)
  447. default n
  448. help
  449. When APB clock frequency changes, high-resolution timer (esp_timer)
  450. scale and base value need to be adjusted. Each adjustment may cause
  451. small error, and over time such small errors may cause time drift.
  452. If this option is enabled, RTC timer will be used as a reference to
  453. compensate for the drift.
  454. It is recommended that this option is only used if 32k XTAL is selected
  455. as RTC clock source.
  456. config PM_PROFILING
  457. bool "Enable profiling counters for PM locks"
  458. depends on PM_ENABLE
  459. default n
  460. help
  461. If enabled, esp_pm_* functions will keep track of the amount of time
  462. each of the power management locks has been held, and esp_pm_dump_locks
  463. function will print this information.
  464. This feature can be used to analyze which locks are preventing the chip
  465. from going into a lower power state, and see what time the chip spends
  466. in each power saving mode. This feature does incur some run-time
  467. overhead, so should typically be disabled in production builds.
  468. config PM_TRACE
  469. bool "Enable debug tracing of PM using GPIOs"
  470. depends on PM_ENABLE
  471. default n
  472. help
  473. If enabled, some GPIOs will be used to signal events such as RTOS ticks,
  474. frequency switching, entry/exit from idle state. Refer to pm_trace.c
  475. file for the list of GPIOs.
  476. This feature is intended to be used when analyzing/debugging behavior
  477. of power management implementation, and should be kept disabled in
  478. applications.
  479. endmenu # "Power Management"