Kconfig 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565
  1. menu "ESP System Settings"
  2. # Insert chip-specific cpu config
  3. rsource "./port/soc/$IDF_TARGET/Kconfig.cpu"
  4. orsource "./port/soc/$IDF_TARGET/Kconfig.cache"
  5. orsource "./port/soc/$IDF_TARGET/Kconfig.memory"
  6. orsource "./port/soc/$IDF_TARGET/Kconfig.tracemem"
  7. choice ESP_SYSTEM_PANIC
  8. prompt "Panic handler behaviour"
  9. default ESP_SYSTEM_PANIC_PRINT_REBOOT
  10. help
  11. If FreeRTOS detects unexpected behaviour or an unhandled exception, the panic handler is
  12. invoked. Configure the panic handler's action here.
  13. config ESP_SYSTEM_PANIC_PRINT_HALT
  14. bool "Print registers and halt"
  15. help
  16. Outputs the relevant registers over the serial port and halt the
  17. processor. Needs a manual reset to restart.
  18. config ESP_SYSTEM_PANIC_PRINT_REBOOT
  19. bool "Print registers and reboot"
  20. help
  21. Outputs the relevant registers over the serial port and immediately
  22. reset the processor.
  23. config ESP_SYSTEM_PANIC_SILENT_REBOOT
  24. bool "Silent reboot"
  25. help
  26. Just resets the processor without outputting anything
  27. config ESP_SYSTEM_PANIC_GDBSTUB
  28. bool "GDBStub on panic"
  29. select ESP_GDBSTUB_ENABLED
  30. help
  31. Invoke gdbstub on the serial port, allowing for gdb to attach to it to do a postmortem
  32. of the crash.
  33. config ESP_SYSTEM_GDBSTUB_RUNTIME
  34. bool "GDBStub at runtime"
  35. select ESP_GDBSTUB_ENABLED
  36. depends on !IDF_TARGET_ESP32C2
  37. help
  38. Invoke gdbstub on the serial port, allowing for gdb to attach to it and to do a debug on runtime.
  39. endchoice
  40. config ESP_SYSTEM_SINGLE_CORE_MODE
  41. bool
  42. default n
  43. help
  44. Only initialize and use the main core.
  45. config ESP_SYSTEM_RTC_EXT_XTAL
  46. # This is a High Layer Kconfig option, invisible, can be selected by other Kconfig option
  47. # e.g. It will be selected on when RTC_CLK_SRC_EXT_CRYS is on
  48. bool
  49. default n
  50. config ESP_SYSTEM_RTC_EXT_OSC
  51. # This is a High Layer Kconfig option, invisible, can be selected by other Kconfig option
  52. # e.g. It will be selected on when ESPX_RTC_CLK_SRC_EXT_OSC is on
  53. bool
  54. default n
  55. config ESP_SYSTEM_RTC_EXT_XTAL_BOOTSTRAP_CYCLES
  56. int "Bootstrap cycles for external 32kHz crystal"
  57. depends on ESP_SYSTEM_RTC_EXT_XTAL
  58. default 5 if IDF_TARGET_ESP32
  59. default 0
  60. range 0 32768
  61. help
  62. To reduce the startup time of an external RTC crystal,
  63. we bootstrap it with a 32kHz square wave for a fixed number of cycles.
  64. Setting 0 will disable bootstrapping (if disabled, the crystal may take
  65. longer to start up or fail to oscillate under some conditions).
  66. If this value is too high, a faulty crystal may initially start and then fail.
  67. If this value is too low, an otherwise good crystal may not start.
  68. To accurately determine if the crystal has started,
  69. set a larger "Number of cycles for RTC_SLOW_CLK calibration" (about 3000).
  70. config ESP_SYSTEM_RTC_FAST_MEM_AS_HEAP_DEPCHECK
  71. bool
  72. default y if IDF_TARGET_ESP32 && FREERTOS_UNICORE
  73. default y if IDF_TARGET_ESP32S2
  74. default y if IDF_TARGET_ESP32C3
  75. default y if IDF_TARGET_ESP32S3
  76. default y if IDF_TARGET_ESP32H2
  77. depends on !IDF_TARGET_ESP32C2
  78. config ESP_SYSTEM_ALLOW_RTC_FAST_MEM_AS_HEAP
  79. bool "Enable RTC fast memory for dynamic allocations"
  80. default y
  81. depends on ESP_SYSTEM_RTC_FAST_MEM_AS_HEAP_DEPCHECK
  82. help
  83. This config option allows to add RTC fast memory region to system heap with capability
  84. similar to that of DRAM region but without DMA. This memory will be consumed first per
  85. heap initialization order by early startup services and scheduler related code. Speed
  86. wise RTC fast memory operates on APB clock and hence does not have much performance impact.
  87. config ESP_SYSTEM_USE_EH_FRAME
  88. bool "Generate and use eh_frame for backtracing"
  89. default n
  90. depends on IDF_TARGET_ARCH_RISCV
  91. help
  92. Generate DWARF information for each function of the project. These information will parsed and used to
  93. perform backtracing when panics occur. Activating this option will activate asynchronous frame unwinding
  94. and generation of both .eh_frame and .eh_frame_hdr sections, resulting in a bigger binary size (20% to
  95. 100% larger). The main purpose of this option is to be able to have a backtrace parsed and printed by
  96. the program itself, regardless of the serial monitor used.
  97. This option shall NOT be used for production.
  98. menu "Memory protection"
  99. config ESP_SYSTEM_PMP_IDRAM_SPLIT
  100. bool "Enable IRAM/DRAM split protection"
  101. depends on SOC_CPU_IDRAM_SPLIT_USING_PMP
  102. default "y"
  103. help
  104. If enabled, the CPU watches all the memory access and raises an exception in case
  105. of any memory violation. This feature automatically splits
  106. the SRAM memory, using PMP, into data and instruction segments and sets Read/Execute permissions
  107. for the instruction part (below given splitting address) and Read/Write permissions
  108. for the data part (above the splitting address). The memory protection is effective
  109. on all access through the IRAM0 and DRAM0 buses.
  110. config ESP_SYSTEM_MEMPROT_FEATURE
  111. bool "Enable memory protection"
  112. depends on SOC_MEMPROT_SUPPORTED
  113. default "y"
  114. help
  115. If enabled, the permission control module watches all the memory access and fires the panic handler
  116. if a permission violation is detected. This feature automatically splits
  117. the SRAM memory into data and instruction segments and sets Read/Execute permissions
  118. for the instruction part (below given splitting address) and Read/Write permissions
  119. for the data part (above the splitting address). The memory protection is effective
  120. on all access through the IRAM0 and DRAM0 buses.
  121. config ESP_SYSTEM_MEMPROT_FEATURE_LOCK
  122. depends on ESP_SYSTEM_MEMPROT_FEATURE
  123. bool "Lock memory protection settings"
  124. default "y"
  125. help
  126. Once locked, memory protection settings cannot be changed anymore.
  127. The lock is reset only on the chip startup.
  128. endmenu # Memory protection
  129. config ESP_SYSTEM_EVENT_QUEUE_SIZE
  130. int "System event queue size"
  131. default 32
  132. help
  133. Config system event queue size in different application.
  134. config ESP_SYSTEM_EVENT_TASK_STACK_SIZE
  135. int "Event loop task stack size"
  136. default 2304
  137. help
  138. Config system event task stack size in different application.
  139. config ESP_MAIN_TASK_STACK_SIZE
  140. int "Main task stack size"
  141. default 3584
  142. help
  143. Configure the "main task" stack size. This is the stack of the task
  144. which calls app_main(). If app_main() returns then this task is deleted
  145. and its stack memory is freed.
  146. choice ESP_MAIN_TASK_AFFINITY
  147. prompt "Main task core affinity"
  148. default ESP_MAIN_TASK_AFFINITY_CPU0
  149. help
  150. Configure the "main task" core affinity. This is the used core of the task
  151. which calls app_main(). If app_main() returns then this task is deleted.
  152. config ESP_MAIN_TASK_AFFINITY_CPU0
  153. bool "CPU0"
  154. config ESP_MAIN_TASK_AFFINITY_CPU1
  155. bool "CPU1"
  156. depends on !FREERTOS_UNICORE
  157. config ESP_MAIN_TASK_AFFINITY_NO_AFFINITY
  158. bool "No affinity"
  159. endchoice
  160. config ESP_MAIN_TASK_AFFINITY
  161. hex
  162. default 0x0 if ESP_MAIN_TASK_AFFINITY_CPU0
  163. default 0x1 if ESP_MAIN_TASK_AFFINITY_CPU1
  164. default FREERTOS_NO_AFFINITY if ESP_MAIN_TASK_AFFINITY_NO_AFFINITY
  165. config ESP_MINIMAL_SHARED_STACK_SIZE
  166. int "Minimal allowed size for shared stack"
  167. default 2048
  168. help
  169. Minimal value of size, in bytes, accepted to execute a expression
  170. with shared stack.
  171. choice ESP_CONSOLE_UART
  172. prompt "Channel for console output"
  173. default ESP_CONSOLE_UART_DEFAULT
  174. help
  175. Select where to send console output (through stdout and stderr).
  176. - Default is to use UART0 on pre-defined GPIOs.
  177. - If "Custom" is selected, UART0 or UART1 can be chosen,
  178. and any pins can be selected.
  179. - If "None" is selected, there will be no console output on any UART, except
  180. for initial output from ROM bootloader. This ROM output can be suppressed by
  181. GPIO strapping or EFUSE, refer to chip datasheet for details.
  182. - On chips with USB OTG peripheral, "USB CDC" option redirects output to the
  183. CDC port. This option uses the CDC driver in the chip ROM.
  184. This option is incompatible with TinyUSB stack.
  185. - On chips with an USB serial/JTAG debug controller, selecting the option
  186. for that redirects output to the CDC/ACM (serial port emulation) component
  187. of that device.
  188. config ESP_CONSOLE_UART_DEFAULT
  189. bool "Default: UART0"
  190. config ESP_CONSOLE_USB_CDC
  191. bool "USB CDC"
  192. # && !TINY_USB is because the ROM CDC driver is currently incompatible with TinyUSB.
  193. depends on (IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3) && !TINY_USB
  194. config ESP_CONSOLE_USB_SERIAL_JTAG
  195. bool "USB Serial/JTAG Controller"
  196. select ESPTOOLPY_NO_STUB if IDF_TARGET_ESP32C3 #ESPTOOL-252
  197. depends on IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S3
  198. config ESP_CONSOLE_UART_CUSTOM
  199. bool "Custom UART"
  200. config ESP_CONSOLE_NONE
  201. bool "None"
  202. endchoice
  203. choice ESP_CONSOLE_SECONDARY
  204. depends on IDF_TARGET_ESP32S3 || IDF_TARGET_ESP32C3
  205. prompt "Channel for console secondary output"
  206. default ESP_CONSOLE_SECONDARY_USB_SERIAL_JTAG
  207. help
  208. This secondary option supports output through other specific port like USB_SERIAL_JTAG
  209. when UART0 port as a primary is selected but not connected. This secondary output currently only supports
  210. non-blocking mode without using REPL. If you want to output in blocking mode with REPL or
  211. input through this secondary port, please change the primary config to this port
  212. in `Channel for console output` menu.
  213. config ESP_CONSOLE_SECONDARY_NONE
  214. bool "No secondary console"
  215. config ESP_CONSOLE_SECONDARY_USB_SERIAL_JTAG
  216. bool "USB_SERIAL_JTAG PORT"
  217. depends on !ESP_CONSOLE_USB_SERIAL_JTAG
  218. help
  219. This option supports output through USB_SERIAL_JTAG port when the UART0 port is not connected.
  220. The output currently only supports non-blocking mode without using the console.
  221. If you want to output in blocking mode with REPL or input through USB_SERIAL_JTAG port,
  222. please change the primary config to ESP_CONSOLE_USB_SERIAL_JTAG above.
  223. endchoice
  224. config ESP_CONSOLE_UART
  225. # Internal option, indicates that console UART is used (and not USB, for example)
  226. bool
  227. default y if ESP_CONSOLE_UART_DEFAULT || ESP_CONSOLE_UART_CUSTOM
  228. config ESP_CONSOLE_MULTIPLE_UART
  229. bool
  230. default y if !IDF_TARGET_ESP32C3 && !IDF_TARGET_ESP32H2 && !IDF_TARGET_ESP32C2
  231. choice ESP_CONSOLE_UART_NUM
  232. prompt "UART peripheral to use for console output (0-1)"
  233. depends on ESP_CONSOLE_UART_CUSTOM && ESP_CONSOLE_MULTIPLE_UART
  234. default ESP_CONSOLE_UART_CUSTOM_NUM_0
  235. help
  236. This UART peripheral is used for console output from the ESP-IDF Bootloader and the app.
  237. If the configuration is different in the Bootloader binary compared to the app binary, UART
  238. is reconfigured after the bootloader exits and the app starts.
  239. Due to an ESP32 ROM bug, UART2 is not supported for console output
  240. via esp_rom_printf.
  241. config ESP_CONSOLE_UART_CUSTOM_NUM_0
  242. bool "UART0"
  243. config ESP_CONSOLE_UART_CUSTOM_NUM_1
  244. bool "UART1"
  245. endchoice
  246. config ESP_CONSOLE_UART_NUM
  247. int
  248. default 0 if ESP_CONSOLE_UART_DEFAULT
  249. default 0 if !ESP_CONSOLE_MULTIPLE_UART
  250. default 0 if ESP_CONSOLE_UART_CUSTOM_NUM_0
  251. default 1 if ESP_CONSOLE_UART_CUSTOM_NUM_1
  252. default -1 if !ESP_CONSOLE_UART
  253. config ESP_CONSOLE_UART_TX_GPIO
  254. int "UART TX on GPIO#"
  255. depends on ESP_CONSOLE_UART_CUSTOM
  256. range 0 46
  257. default 1 if IDF_TARGET_ESP32
  258. default 20 if IDF_TARGET_ESP32C2
  259. default 21 if IDF_TARGET_ESP32C3
  260. default 43
  261. help
  262. This GPIO is used for console UART TX output in the ESP-IDF Bootloader and the app (including
  263. boot log output and default standard output and standard error of the app).
  264. If the configuration is different in the Bootloader binary compared to the app binary, UART
  265. is reconfigured after the bootloader exits and the app starts.
  266. config ESP_CONSOLE_UART_RX_GPIO
  267. int "UART RX on GPIO#"
  268. depends on ESP_CONSOLE_UART_CUSTOM
  269. range 0 46
  270. default 3 if IDF_TARGET_ESP32
  271. default 19 if IDF_TARGET_ESP32C2
  272. default 20 if IDF_TARGET_ESP32C3
  273. default 44
  274. help
  275. This GPIO is used for UART RX input in the ESP-IDF Bootloader and the app (including
  276. default default standard input of the app).
  277. Note: The default ESP-IDF Bootloader configures this pin but doesn't read anything from the UART.
  278. If the configuration is different in the Bootloader binary compared to the app binary, UART
  279. is reconfigured after the bootloader exits and the app starts.
  280. config ESP_CONSOLE_UART_BAUDRATE
  281. int
  282. prompt "UART console baud rate" if ESP_CONSOLE_UART_CUSTOM
  283. depends on ESP_CONSOLE_UART
  284. default 74880 if (IDF_TARGET_ESP32C2 && XTAL_FREQ_26)
  285. default 115200
  286. range 1200 4000000 if !PM_ENABLE
  287. range 1200 1000000 if PM_ENABLE
  288. help
  289. This baud rate is used by both the ESP-IDF Bootloader and the app (including
  290. boot log output and default standard input/output/error of the app).
  291. The app's maximum baud rate depends on the UART clock source. If Power Management is disabled,
  292. the UART clock source is the APB clock and all baud rates in the available range will be sufficiently
  293. accurate. If Power Management is enabled, REF_TICK clock source is used so the baud rate is divided
  294. from 1MHz. Baud rates above 1Mbps are not possible and values between 500Kbps and 1Mbps may not be
  295. accurate.
  296. If the configuration is different in the Bootloader binary compared to the app binary, UART
  297. is reconfigured after the bootloader exits and the app starts.
  298. config ESP_CONSOLE_USB_CDC_RX_BUF_SIZE
  299. int "Size of USB CDC RX buffer"
  300. depends on ESP_CONSOLE_USB_CDC
  301. default 64
  302. range 4 16384
  303. help
  304. Set the size of USB CDC RX buffer. Increase the buffer size if your application
  305. is often receiving data over USB CDC.
  306. config ESP_CONSOLE_USB_CDC_SUPPORT_ETS_PRINTF
  307. bool "Enable esp_rom_printf / ESP_EARLY_LOG via USB CDC"
  308. depends on ESP_CONSOLE_USB_CDC
  309. default n
  310. help
  311. If enabled, esp_rom_printf and ESP_EARLY_LOG output will also be sent over USB CDC.
  312. Disabling this option saves about 1kB or RAM.
  313. config ESP_INT_WDT
  314. bool "Interrupt watchdog"
  315. default n if IDF_TARGET_ESP32C2 # add support in IDF-4114
  316. default y
  317. help
  318. This watchdog timer can detect if the FreeRTOS tick interrupt has not been called for a certain time,
  319. either because a task turned off interrupts and did not turn them on for a long time, or because an
  320. interrupt handler did not return. It will try to invoke the panic handler first and failing that
  321. reset the SoC.
  322. config ESP_INT_WDT_TIMEOUT_MS
  323. int "Interrupt watchdog timeout (ms)"
  324. depends on ESP_INT_WDT
  325. default 300 if !(SPIRAM && IDF_TARGET_ESP32)
  326. default 800 if (SPIRAM && IDF_TARGET_ESP32)
  327. range 10 10000
  328. help
  329. The timeout of the watchdog, in miliseconds. Make this higher than the FreeRTOS tick rate.
  330. config ESP_INT_WDT_CHECK_CPU1
  331. bool "Also watch CPU1 tick interrupt"
  332. depends on ESP_INT_WDT && !FREERTOS_UNICORE
  333. default y
  334. help
  335. Also detect if interrupts on CPU 1 are disabled for too long.
  336. config ESP_TASK_WDT
  337. bool "Initialize Task Watchdog Timer on startup"
  338. default y
  339. select FREERTOS_ENABLE_TASK_SNAPSHOT
  340. help
  341. The Task Watchdog Timer can be used to make sure individual tasks are still
  342. running. Enabling this option will cause the Task Watchdog Timer to be
  343. initialized automatically at startup. The Task Watchdog timer can be
  344. initialized after startup as well (see Task Watchdog Timer API Reference)
  345. config ESP_TASK_WDT_PANIC
  346. bool "Invoke panic handler on Task Watchdog timeout"
  347. depends on ESP_TASK_WDT
  348. default n
  349. help
  350. If this option is enabled, the Task Watchdog Timer will be configured to
  351. trigger the panic handler when it times out. This can also be configured
  352. at run time (see Task Watchdog Timer API Reference)
  353. config ESP_TASK_WDT_TIMEOUT_S
  354. int "Task Watchdog timeout period (seconds)"
  355. depends on ESP_TASK_WDT
  356. range 1 60
  357. default 5
  358. help
  359. Timeout period configuration for the Task Watchdog Timer in seconds.
  360. This is also configurable at run time (see Task Watchdog Timer API Reference)
  361. config ESP_TASK_WDT_CHECK_IDLE_TASK_CPU0
  362. bool "Watch CPU0 Idle Task"
  363. depends on ESP_TASK_WDT
  364. default y
  365. help
  366. If this option is enabled, the Task Watchdog Timer will watch the CPU0
  367. Idle Task. Having the Task Watchdog watch the Idle Task allows for detection
  368. of CPU starvation as the Idle Task not being called is usually a symptom of
  369. CPU starvation. Starvation of the Idle Task is detrimental as FreeRTOS household
  370. tasks depend on the Idle Task getting some runtime every now and then.
  371. config ESP_TASK_WDT_CHECK_IDLE_TASK_CPU1
  372. bool "Watch CPU1 Idle Task"
  373. depends on ESP_TASK_WDT && !FREERTOS_UNICORE
  374. default y
  375. help
  376. If this option is enabled, the Task Wtachdog Timer will wach the CPU1
  377. Idle Task.
  378. config ESP_XT_WDT
  379. bool "Initialize XTAL32K watchdog timer on startup"
  380. depends on !IDF_TARGET_ESP32 && (ESP_SYSTEM_RTC_EXT_OSC || ESP_SYSTEM_RTC_EXT_XTAL)
  381. default n
  382. help
  383. This watchdog timer can detect oscillation failure of the XTAL32K_CLK. When such a failure
  384. is detected the hardware can be set up to automatically switch to BACKUP32K_CLK and generate
  385. an interrupt.
  386. config ESP_XT_WDT_TIMEOUT
  387. int "XTAL32K watchdog timeout period"
  388. depends on ESP_XT_WDT
  389. range 1 255
  390. default 200
  391. help
  392. Timeout period configuration for the XTAL32K watchdog timer based on RTC_CLK.
  393. config ESP_XT_WDT_BACKUP_CLK_ENABLE
  394. bool "Automatically switch to BACKUP32K_CLK when timer expires"
  395. depends on ESP_XT_WDT
  396. default y
  397. help
  398. Enable this to automatically switch to BACKUP32K_CLK as the source of RTC_SLOW_CLK when
  399. the watchdog timer expires.
  400. config ESP_PANIC_HANDLER_IRAM
  401. bool "Place panic handler code in IRAM"
  402. default n
  403. help
  404. If this option is disabled (default), the panic handler code is placed in flash not IRAM.
  405. This means that if ESP-IDF crashes while flash cache is disabled, the panic handler will
  406. automatically re-enable flash cache before running GDB Stub or Core Dump. This adds some minor
  407. risk, if the flash cache status is also corrupted during the crash.
  408. If this option is enabled, the panic handler code (including required UART functions) is placed
  409. in IRAM. This may be necessary to debug some complex issues with crashes while flash cache is
  410. disabled (for example, when writing to SPI flash) or when flash cache is corrupted when an exception
  411. is triggered.
  412. config ESP_DEBUG_STUBS_ENABLE
  413. bool "OpenOCD debug stubs"
  414. default COMPILER_OPTIMIZATION_LEVEL_DEBUG
  415. depends on !ESP32_TRAX && !ESP32S2_TRAX && !ESP32S3_TRAX
  416. help
  417. Debug stubs are used by OpenOCD to execute pre-compiled onboard code
  418. which does some useful debugging stuff, e.g. GCOV data dump.
  419. config ESP_DEBUG_OCDAWARE
  420. bool "Make exception and panic handlers JTAG/OCD aware"
  421. default y
  422. select FREERTOS_DEBUG_OCDAWARE
  423. help
  424. The FreeRTOS panic and unhandled exception handers can detect a JTAG OCD debugger and
  425. instead of panicking, have the debugger stop on the offending instruction.
  426. choice ESP_SYSTEM_CHECK_INT_LEVEL
  427. prompt "Interrupt level to use for Interrupt Watchdog and other system checks"
  428. default ESP_SYSTEM_CHECK_INT_LEVEL_4
  429. help
  430. Interrupt level to use for Interrupt Watchdog and other system checks.
  431. config ESP_SYSTEM_CHECK_INT_LEVEL_5
  432. bool "Level 5 interrupt"
  433. depends on IDF_TARGET_ESP32
  434. help
  435. Using level 5 interrupt for Interrupt Watchdog and other system checks.
  436. config ESP_SYSTEM_CHECK_INT_LEVEL_4
  437. bool "Level 4 interrupt"
  438. depends on !BTDM_CTRL_HLI
  439. help
  440. Using level 4 interrupt for Interrupt Watchdog and other system checks.
  441. endchoice
  442. # Insert chip-specific system config
  443. rsource "./port/soc/$IDF_TARGET/Kconfig.system"
  444. config ESP_SYSTEM_BROWNOUT_INTR
  445. bool
  446. default n
  447. help
  448. This config allows to trigger an interrupt when brownout detected. Software restart will be done
  449. at the end of the default callback.
  450. Two occasions need to restart the chip with interrupt so far.
  451. (1). For ESP32 version 1, brown-out reset function doesn't work (see ESP32 errata 3.4).
  452. So that we must restart from interrupt.
  453. (2). For special workflow, the chip needs do more things instead of restarting directly. This part
  454. needs to be done in callback function of interrupt.
  455. endmenu # ESP System Settings
  456. menu "IPC (Inter-Processor Call)"
  457. config ESP_IPC_TASK_STACK_SIZE
  458. int "Inter-Processor Call (IPC) task stack size"
  459. range 512 65536 if !APPTRACE_ENABLE
  460. range 2048 65536 if APPTRACE_ENABLE
  461. default 2048 if APPTRACE_ENABLE
  462. default 1280 if !APPTRACE_ENABLE && IDF_TARGET_ESP32S3
  463. default 1024
  464. help
  465. Configure the IPC tasks stack size. An IPC task runs on each core (in dual core mode), and allows for
  466. cross-core function calls. See IPC documentation for more details. The default IPC stack size should be
  467. enough for most common simple use cases. However, users can increase/decrease the stack size to their
  468. needs.
  469. config ESP_IPC_USES_CALLERS_PRIORITY
  470. bool "IPC runs at caller's priority"
  471. default y
  472. depends on !FREERTOS_UNICORE
  473. help
  474. If this option is not enabled then the IPC task will keep behavior same as prior to that of ESP-IDF v4.0,
  475. hence IPC task will run at (configMAX_PRIORITIES - 1) priority.
  476. config ESP_IPC_ISR_ENABLE
  477. bool
  478. default y if !FREERTOS_UNICORE
  479. help
  480. The IPC ISR feature is similar to the IPC feature except that the callback function is executed in the
  481. context of a High Priority Interrupt. The IPC ISR feature is itended for low latency execution of simple
  482. callbacks written in assembly on another CPU. Due to being run in a High Priority Interrupt, the assembly
  483. callbacks must be written with particular restrictions (see "IPC" and "High-Level Interrupt" docs for more
  484. details).
  485. endmenu # "IPC (Inter-Processor Call)