Kconfig 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  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. config MCPWM_ISR_IN_IRAM
  20. bool "Place MCPWM ISR function into IRAM"
  21. default n
  22. help
  23. If this option is not selected, the MCPWM interrupt will be deferred when the Cache
  24. is in a disabled state (e.g. Flash write/erase operation).
  25. Note that if this option is selected, all user registered ISR callbacks should never
  26. try to use cache as well. (with IRAM_ATTR)
  27. endmenu # MCPWM Configuration
  28. menu "SPI configuration"
  29. config SPI_MASTER_IN_IRAM
  30. bool "Place transmitting functions of SPI master into IRAM"
  31. default n
  32. select SPI_MASTER_ISR_IN_IRAM
  33. help
  34. Normally only the ISR of SPI master is placed in the IRAM, so that it
  35. can work without the flash when interrupt is triggered.
  36. For other functions, there's some possibility that the flash cache
  37. miss when running inside and out of SPI functions, which may increase
  38. the interval of SPI transactions.
  39. Enable this to put ``queue_trans``, ``get_trans_result`` and
  40. ``transmit`` functions into the IRAM to avoid possible cache miss.
  41. During unit test, this is enabled to measure the ideal case of api.
  42. config SPI_MASTER_ISR_IN_IRAM
  43. bool "Place SPI master ISR function into IRAM"
  44. default y
  45. help
  46. Place the SPI master ISR in to IRAM to avoid possible cache miss.
  47. Also you can forbid the ISR being disabled during flash writing
  48. access, by add ESP_INTR_FLAG_IRAM when initializing the driver.
  49. config SPI_SLAVE_IN_IRAM
  50. bool "Place transmitting functions of SPI slave into IRAM"
  51. default n
  52. select SPI_SLAVE_ISR_IN_IRAM
  53. help
  54. Normally only the ISR of SPI slave is placed in the IRAM, so that it
  55. can work without the flash when interrupt is triggered.
  56. For other functions, there's some possibility that the flash cache
  57. miss when running inside and out of SPI functions, which may increase
  58. the interval of SPI transactions.
  59. Enable this to put ``queue_trans``, ``get_trans_result`` and
  60. ``transmit`` functions into the IRAM to avoid possible cache miss.
  61. config SPI_SLAVE_ISR_IN_IRAM
  62. bool "Place SPI slave ISR function into IRAM"
  63. default y
  64. help
  65. Place the SPI slave ISR in to IRAM to avoid possible cache miss.
  66. Also you can forbid the ISR being disabled during flash writing
  67. access, by add ESP_INTR_FLAG_IRAM when initializing the driver.
  68. endmenu # SPI Configuration
  69. menu "TWAI configuration"
  70. depends on SOC_TWAI_SUPPORTED
  71. config TWAI_ISR_IN_IRAM
  72. bool "Place TWAI ISR function into IRAM"
  73. default n
  74. help
  75. Place the TWAI ISR in to IRAM. This will allow the ISR to avoid
  76. cache misses, and also be able to run whilst the cache is disabled
  77. (such as when writing to SPI Flash).
  78. Note that if this option is enabled:
  79. - Users should also set the ESP_INTR_FLAG_IRAM in the driver
  80. configuration structure when installing the driver (see docs for
  81. specifics).
  82. - Alert logging (i.e., setting of the TWAI_ALERT_AND_LOG flag)
  83. will have no effect.
  84. config TWAI_ERRATA_FIX_BUS_OFF_REC
  85. bool "Add SW workaround for REC change during bus-off"
  86. depends on IDF_TARGET_ESP32
  87. default y
  88. help
  89. When the bus-off condition is reached, the REC should be reset to 0 and frozen (via LOM) by the
  90. driver's ISR. However on the ESP32, there is an edge case where the REC will increase before the
  91. driver's ISR can respond in time (e.g., due to the rapid occurrence of bus errors), thus causing the
  92. REC to be non-zero after bus-off. A non-zero REC can prevent bus-off recovery as the bus-off recovery
  93. condition is that both TEC and REC become 0. Enabling this option will add a workaround in the driver
  94. to forcibly reset REC to zero on reaching bus-off.
  95. config TWAI_ERRATA_FIX_TX_INTR_LOST
  96. bool "Add SW workaround for TX interrupt lost errata"
  97. depends on IDF_TARGET_ESP32
  98. default y
  99. help
  100. On the ESP32, when a transmit interrupt occurs, and interrupt register is read on the same APB clock
  101. cycle, the transmit interrupt could be lost. Enabling this option will add a workaround that checks the
  102. transmit buffer status bit to recover any lost transmit interrupt.
  103. config TWAI_ERRATA_FIX_RX_FRAME_INVALID
  104. bool "Add SW workaround for invalid RX frame errata"
  105. depends on IDF_TARGET_ESP32
  106. default y
  107. help
  108. On the ESP32, when receiving a data or remote frame, if a bus error occurs in the data or CRC field,
  109. the data of the next received frame could be invalid. Enabling this option will add a workaround that
  110. will reset the peripheral on detection of this errata condition. Note that if a frame is transmitted on
  111. the bus whilst the reset is ongoing, the message will not be receive by the peripheral sent on the bus
  112. during the reset, the message will be lost.
  113. config TWAI_ERRATA_FIX_RX_FIFO_CORRUPT
  114. bool "Add SW workaround for RX FIFO corruption errata"
  115. depends on IDF_TARGET_ESP32
  116. default y
  117. help
  118. On the ESP32, when the RX FIFO overruns and the RX message counter maxes out at 64 messages, the entire
  119. RX FIFO is no longer recoverable. Enabling this option will add a workaround that resets the peripheral
  120. on detection of this errata condition. Note that if a frame is being sent on the bus during the reset
  121. bus during the reset, the message will be lost.
  122. endmenu # TWAI Configuration
  123. menu "UART configuration"
  124. config UART_ISR_IN_IRAM
  125. bool "Place UART ISR function into IRAM"
  126. default n
  127. help
  128. If this option is not selected, UART interrupt will be disabled for a long time and
  129. may cause data lost when doing spi flash operation.
  130. endmenu # UART Configuration
  131. menu "GPIO Configuration"
  132. visible if IDF_TARGET_ESP32
  133. config GPIO_ESP32_SUPPORT_SWITCH_SLP_PULL
  134. bool "Support light sleep GPIO pullup/pulldown configuration for ESP32"
  135. depends on IDF_TARGET_ESP32
  136. help
  137. This option is intended to fix the bug that ESP32 is not able to switch to configured
  138. pullup/pulldown mode in sleep.
  139. If this option is selected, chip will automatically emulate the behaviour of switching,
  140. and about 450B of source codes would be placed into IRAM.
  141. endmenu # GPIO Configuration
  142. menu "GDMA Configuration"
  143. config GDMA_CTRL_FUNC_IN_IRAM
  144. bool "Place GDMA control functions into IRAM"
  145. default n
  146. help
  147. Place GDMA control functions (like start/stop/append/reset) into IRAM,
  148. so that these functions can be IRAM-safe and able to be called in the other IRAM interrupt context.
  149. Enabling this option can improve driver performance as well.
  150. config GDMA_ISR_IRAM_SAFE
  151. bool "GDMA ISR IRAM-Safe"
  152. default n
  153. help
  154. This will ensure the GDMA interrupt handler is IRAM-Safe, allow to avoid flash
  155. cache misses, and also be able to run whilst the cache is disabled.
  156. (e.g. SPI Flash write).
  157. endmenu # GDMA Configuration
  158. menu "GPTimer Configuration"
  159. config GPTIMER_CTRL_FUNC_IN_IRAM
  160. bool "Place GPTimer control functions into IRAM"
  161. default n
  162. help
  163. Place GPTimer control functions (like start/stop) into IRAM,
  164. so that these functions can be IRAM-safe and able to be called in the other IRAM interrupt context.
  165. Enabling this option can improve driver performance as well.
  166. config GPTIMER_ISR_IRAM_SAFE
  167. bool "GPTimer ISR IRAM-Safe"
  168. default n
  169. help
  170. This will ensure the GPTimer interrupt handle is IRAM-Safe, allow to avoid flash
  171. cache misses, and also be able to run whilst the cache is disabled.
  172. (e.g. SPI Flash write)
  173. config GPTIMER_SUPPRESS_DEPRECATE_WARN
  174. bool "Suppress leagcy driver deprecated warning"
  175. default n
  176. help
  177. Wether to suppress the deprecation warnings when using legacy timer group driver (driver/timer.h).
  178. If you want to continue using the legacy driver, and don't want to see related deprecation warnings,
  179. you can enable this option.
  180. endmenu # GPTimer Configuration
  181. endmenu # Driver configurations