Kconfig 23 KB

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