Kconfig 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. menu "Driver configurations"
  2. menu "ADC configuration"
  3. config ADC_FORCE_XPD_FSM
  4. bool "Use the FSM to control ADC power"
  5. default n
  6. help
  7. ADC power can be controlled by the FSM instead of software. This allows the ADC to
  8. be shut off when it is not working leading to lower power consumption. However
  9. using the FSM control ADC power will increase the noise of ADC.
  10. config ADC_DISABLE_DAC
  11. bool "Disable DAC when ADC2 is used on GPIO 25 and 26"
  12. default y
  13. help
  14. If this is set, the ADC2 driver will disable the output of the DAC corresponding to the specified
  15. channel. This is the default value.
  16. For testing, disable this option so that we can measure the output of DAC by internal ADC.
  17. endmenu # ADC Configuration
  18. menu "MCPWM configuration"
  19. depends on SOC_MCPWM_SUPPORTED
  20. config MCPWM_ISR_IN_IRAM
  21. bool "Place MCPWM ISR function into IRAM"
  22. default n
  23. help
  24. If this option is not selected, the MCPWM interrupt will be deferred when the Cache
  25. is in a disabled state (e.g. Flash write/erase operation).
  26. Note that if this option is selected, all user registered ISR callbacks should never
  27. try to use cache as well. (with IRAM_ATTR)
  28. endmenu # MCPWM Configuration
  29. menu "SPI configuration"
  30. config SPI_MASTER_IN_IRAM
  31. bool "Place transmitting functions of SPI master into IRAM"
  32. default n
  33. select SPI_MASTER_ISR_IN_IRAM
  34. help
  35. Normally only the ISR of SPI master is placed in the IRAM, so that it
  36. can work without the flash when interrupt is triggered.
  37. For other functions, there's some possibility that the flash cache
  38. miss when running inside and out of SPI functions, which may increase
  39. the interval of SPI transactions.
  40. Enable this to put ``queue_trans``, ``get_trans_result`` and
  41. ``transmit`` functions into the IRAM to avoid possible cache miss.
  42. During unit test, this is enabled to measure the ideal case of api.
  43. config SPI_MASTER_ISR_IN_IRAM
  44. bool "Place SPI master ISR function into IRAM"
  45. default y
  46. help
  47. Place the SPI master ISR in to IRAM to avoid possible cache miss.
  48. Also you can forbid the ISR being disabled during flash writing
  49. access, by add ESP_INTR_FLAG_IRAM when initializing the driver.
  50. config SPI_SLAVE_IN_IRAM
  51. bool "Place transmitting functions of SPI slave into IRAM"
  52. default n
  53. select SPI_SLAVE_ISR_IN_IRAM
  54. help
  55. Normally only the ISR of SPI slave is placed in the IRAM, so that it
  56. can work without the flash when interrupt is triggered.
  57. For other functions, there's some possibility that the flash cache
  58. miss when running inside and out of SPI functions, which may increase
  59. the interval of SPI transactions.
  60. Enable this to put ``queue_trans``, ``get_trans_result`` and
  61. ``transmit`` functions into the IRAM to avoid possible cache miss.
  62. config SPI_SLAVE_ISR_IN_IRAM
  63. bool "Place SPI slave ISR function into IRAM"
  64. default y
  65. help
  66. Place the SPI slave ISR in to IRAM to avoid possible cache miss.
  67. Also you can forbid the ISR being disabled during flash writing
  68. access, by add ESP_INTR_FLAG_IRAM when initializing the driver.
  69. endmenu # SPI Configuration
  70. menu "TWAI configuration"
  71. depends on SOC_TWAI_SUPPORTED
  72. config TWAI_ISR_IN_IRAM
  73. bool "Place TWAI ISR function into IRAM"
  74. default n
  75. help
  76. Place the TWAI ISR in to IRAM. This will allow the ISR to avoid
  77. cache misses, and also be able to run whilst the cache is disabled
  78. (such as when writing to SPI Flash).
  79. Note that if this option is enabled:
  80. - Users should also set the ESP_INTR_FLAG_IRAM in the driver
  81. configuration structure when installing the driver (see docs for
  82. specifics).
  83. - Alert logging (i.e., setting of the TWAI_ALERT_AND_LOG flag)
  84. will have no effect.
  85. config TWAI_ERRATA_FIX_BUS_OFF_REC
  86. bool "Add SW workaround for REC change during bus-off"
  87. depends on IDF_TARGET_ESP32
  88. default y
  89. help
  90. When the bus-off condition is reached, the REC should be reset to 0 and frozen (via LOM) by the
  91. driver's ISR. However on the ESP32, there is an edge case where the REC will increase before the
  92. driver's ISR can respond in time (e.g., due to the rapid occurrence of bus errors), thus causing the
  93. REC to be non-zero after bus-off. A non-zero REC can prevent bus-off recovery as the bus-off recovery
  94. condition is that both TEC and REC become 0. Enabling this option will add a workaround in the driver
  95. to forcibly reset REC to zero on reaching bus-off.
  96. config TWAI_ERRATA_FIX_TX_INTR_LOST
  97. bool "Add SW workaround for TX interrupt lost errata"
  98. depends on IDF_TARGET_ESP32
  99. default y
  100. help
  101. On the ESP32, when a transmit interrupt occurs, and interrupt register is read on the same APB clock
  102. cycle, the transmit interrupt could be lost. Enabling this option will add a workaround that checks the
  103. transmit buffer status bit to recover any lost transmit interrupt.
  104. config TWAI_ERRATA_FIX_RX_FRAME_INVALID
  105. bool "Add SW workaround for invalid RX frame errata"
  106. depends on IDF_TARGET_ESP32
  107. default y
  108. help
  109. On the ESP32, when receiving a data or remote frame, if a bus error occurs in the data or CRC field,
  110. the data of the next received frame could be invalid. Enabling this option will add a workaround that
  111. will reset the peripheral on detection of this errata condition. Note that if a frame is transmitted on
  112. the bus whilst the reset is ongoing, the message will not be receive by the peripheral sent on the bus
  113. during the reset, the message will be lost.
  114. config TWAI_ERRATA_FIX_RX_FIFO_CORRUPT
  115. bool "Add SW workaround for RX FIFO corruption errata"
  116. depends on IDF_TARGET_ESP32
  117. default y
  118. help
  119. On the ESP32, when the RX FIFO overruns and the RX message counter maxes out at 64 messages, the entire
  120. RX FIFO is no longer recoverable. Enabling this option will add a workaround that resets the peripheral
  121. on detection of this errata condition. Note that if a frame is being sent on the bus during the reset
  122. bus during the reset, the message will be lost.
  123. endmenu # TWAI Configuration
  124. menu "Temperature sensor Configuration"
  125. depends on SOC_TEMP_SENSOR_SUPPORTED
  126. config TEMP_SENSOR_SUPPRESS_DEPRECATE_WARN
  127. bool "Suppress legacy driver deprecated warning"
  128. default n
  129. help
  130. Wether to suppress the deprecation warnings when using legacy temperature sensor driver
  131. (driver/temp_sensor.h). If you want to continue using the legacy driver,
  132. and don't want to see related deprecation warnings, you can enable this option.
  133. config TEMP_SENSOR_ENABLE_DEBUG_LOG
  134. bool "Enable debug log"
  135. default n
  136. help
  137. Wether to enable the debug log message for temperature sensor driver.
  138. Note that, this option only controls the temperature sensor driver log, won't affect other drivers.
  139. endmenu # TEMP_SENSOR Configuration
  140. menu "UART configuration"
  141. config UART_ISR_IN_IRAM
  142. bool "Place UART ISR function into IRAM"
  143. default n
  144. help
  145. If this option is not selected, UART interrupt will be disabled for a long time and
  146. may cause data lost when doing spi flash operation.
  147. endmenu # UART Configuration
  148. menu "GPIO Configuration"
  149. config GPIO_ESP32_SUPPORT_SWITCH_SLP_PULL
  150. bool "Support light sleep GPIO pullup/pulldown configuration for ESP32"
  151. depends on IDF_TARGET_ESP32
  152. help
  153. This option is intended to fix the bug that ESP32 is not able to switch to configured
  154. pullup/pulldown mode in sleep.
  155. If this option is selected, chip will automatically emulate the behaviour of switching,
  156. and about 450B of source codes would be placed into IRAM.
  157. endmenu # GPIO Configuration
  158. menu "GDMA Configuration"
  159. depends on SOC_GDMA_SUPPORTED
  160. config GDMA_CTRL_FUNC_IN_IRAM
  161. bool "Place GDMA control functions into IRAM"
  162. default n
  163. help
  164. Place GDMA control functions (like start/stop/append/reset) into IRAM,
  165. so that these functions can be IRAM-safe and able to be called in the other IRAM interrupt context.
  166. Enabling this option can improve driver performance as well.
  167. config GDMA_ISR_IRAM_SAFE
  168. bool "GDMA ISR IRAM-Safe"
  169. default n
  170. help
  171. This will ensure the GDMA interrupt handler is IRAM-Safe, allow to avoid flash
  172. cache misses, and also be able to run whilst the cache is disabled.
  173. (e.g. SPI Flash write).
  174. endmenu # GDMA Configuration
  175. menu "GPTimer Configuration"
  176. config GPTIMER_CTRL_FUNC_IN_IRAM
  177. bool "Place GPTimer control functions into IRAM"
  178. default n
  179. help
  180. Place GPTimer control functions (like start/stop) into IRAM,
  181. so that these functions can be IRAM-safe and able to be called in the other IRAM interrupt context.
  182. Enabling this option can improve driver performance as well.
  183. config GPTIMER_ISR_IRAM_SAFE
  184. bool "GPTimer ISR IRAM-Safe"
  185. default n
  186. help
  187. Ensure the GPTimer interrupt is IRAM-Safe by allowing the interrupt handler to be
  188. executable when the cache is disabled (e.g. SPI Flash write).
  189. config GPTIMER_SUPPRESS_DEPRECATE_WARN
  190. bool "Suppress legacy driver deprecated warning"
  191. default n
  192. help
  193. Wether to suppress the deprecation warnings when using legacy timer group driver (driver/timer.h).
  194. If you want to continue using the legacy driver, and don't want to see related deprecation warnings,
  195. you can enable this option.
  196. config GPTIMER_ENABLE_DEBUG_LOG
  197. bool "Enable debug log"
  198. default n
  199. help
  200. Wether to enable the debug log message for GPTimer driver.
  201. Note that, this option only controls the GPTimer driver log, won't affect other drivers.
  202. endmenu # GPTimer Configuration
  203. menu "PCNT Configuration"
  204. depends on SOC_PCNT_SUPPORTED
  205. config PCNT_CTRL_FUNC_IN_IRAM
  206. bool "Place PCNT control functions into IRAM"
  207. default n
  208. help
  209. Place PCNT control functions (like start/stop) into IRAM,
  210. so that these functions can be IRAM-safe and able to be called in the other IRAM interrupt context.
  211. Enabling this option can improve driver performance as well.
  212. config PCNT_ISR_IRAM_SAFE
  213. bool "PCNT ISR IRAM-Safe"
  214. default n
  215. help
  216. Ensure the PCNT interrupt is IRAM-Safe by allowing the interrupt handler to be
  217. executable when the cache is disabled (e.g. SPI Flash write).
  218. config PCNT_SUPPRESS_DEPRECATE_WARN
  219. bool "Suppress legacy driver deprecated warning"
  220. default n
  221. help
  222. Wether to suppress the deprecation warnings when using legacy PCNT driver (driver/pcnt.h).
  223. If you want to continue using the legacy driver, and don't want to see related deprecation warnings,
  224. you can enable this option.
  225. config PCNT_ENABLE_DEBUG_LOG
  226. bool "Enable debug log"
  227. default n
  228. help
  229. Wether to enable the debug log message for PCNT driver.
  230. Note that, this option only controls the PCNT driver log, won't affect other drivers.
  231. endmenu # PCNT Configuration
  232. endmenu # Driver configurations