Kconfig 23 KB

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