Kconfig 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. menu "Driver Configurations"
  2. menu "Legacy ADC Configuration"
  3. config ADC_DISABLE_DAC
  4. depends on SOC_DAC_SUPPORTED
  5. bool "Disable DAC when ADC2 is used on GPIO 25 and 26"
  6. default y
  7. help
  8. If this is set, the ADC2 driver will disable the output of the DAC corresponding to the specified
  9. channel. This is the default value.
  10. For testing, disable this option so that we can measure the output of DAC by internal ADC.
  11. config ADC_SUPPRESS_DEPRECATE_WARN
  12. bool "Suppress legacy driver deprecated warning"
  13. default n
  14. help
  15. Wether to suppress the deprecation warnings when using legacy adc driver (driver/adc.h).
  16. If you want to continue using the legacy driver, and don't want to see related deprecation warnings,
  17. you can enable this option.
  18. menu "Legacy ADC Calibration Configuration"
  19. config ADC_CAL_EFUSE_TP_ENABLE
  20. depends on IDF_TARGET_ESP32
  21. bool "Use Two Point Values"
  22. default "y"
  23. help
  24. Some ESP32s have Two Point calibration values burned into eFuse BLOCK3.
  25. This option will allow the ADC calibration component to characterize the
  26. ADC-Voltage curve using Two Point values if they are available.
  27. config ADC_CAL_EFUSE_VREF_ENABLE
  28. depends on IDF_TARGET_ESP32
  29. bool "Use eFuse Vref"
  30. default "y"
  31. help
  32. Some ESP32s have Vref burned into eFuse BLOCK0. This option will allow
  33. the ADC calibration component to characterize the ADC-Voltage curve using
  34. eFuse Vref if it is available.
  35. config ADC_CAL_LUT_ENABLE
  36. depends on IDF_TARGET_ESP32
  37. bool "Use Lookup Tables"
  38. default "y"
  39. help
  40. This option will allow the ADC calibration component to use Lookup Tables
  41. to correct for non-linear behavior in 11db attenuation. Other attenuations
  42. do not exhibit non-linear behavior hence will not be affected by this option.
  43. config ADC_CALI_SUPPRESS_DEPRECATE_WARN
  44. bool "Suppress legacy driver deprecated warning"
  45. default n
  46. help
  47. Wether to suppress the deprecation warnings when using legacy adc calibration
  48. driver (esp_adc_cal.h).
  49. If you want to continue using the legacy driver, and don't want to see related
  50. deprecation warnings, you can enable this option.
  51. endmenu
  52. endmenu # ADC Configuration
  53. orsource "./twai/Kconfig.twai"
  54. menu "Temperature sensor Configuration"
  55. depends on SOC_TEMP_SENSOR_SUPPORTED
  56. config TEMP_SENSOR_SUPPRESS_DEPRECATE_WARN
  57. bool "Suppress legacy driver deprecated warning"
  58. default n
  59. help
  60. Wether to suppress the deprecation warnings when using legacy temperature sensor driver
  61. (driver/temp_sensor.h). If you want to continue using the legacy driver,
  62. and don't want to see related deprecation warnings, you can enable this option.
  63. config TEMP_SENSOR_ENABLE_DEBUG_LOG
  64. bool "Enable debug log"
  65. default n
  66. help
  67. Wether to enable the debug log message for temperature sensor driver.
  68. Note that, this option only controls the temperature sensor driver log, won't affect other drivers.
  69. config TEMP_SENSOR_ISR_IRAM_SAFE
  70. depends on SOC_TEMPERATURE_SENSOR_INTR_SUPPORT
  71. bool "Temperature sensor ISR IRAM-Safe"
  72. default n
  73. help
  74. Ensure the Temperature Sensor interrupt is IRAM-Safe by allowing the interrupt handler to be
  75. executable when the cache is disabled (e.g. SPI Flash write).
  76. endmenu # TEMP_SENSOR Configuration
  77. orsource "./uart/Kconfig.uart"
  78. menu "Sigma Delta Modulator Configuration"
  79. depends on SOC_SDM_SUPPORTED
  80. config SDM_CTRL_FUNC_IN_IRAM
  81. bool "Place SDM control functions into IRAM"
  82. default n
  83. help
  84. Place SDM control functions (like set_duty) into IRAM,
  85. so that these functions can be IRAM-safe and able to be called in the other IRAM interrupt context.
  86. Enabling this option can improve driver performance as well.
  87. config SDM_SUPPRESS_DEPRECATE_WARN
  88. bool "Suppress legacy driver deprecated warning"
  89. default n
  90. help
  91. Wether to suppress the deprecation warnings when using legacy sigma delta driver.
  92. If you want to continue using the legacy driver, and don't want to see related deprecation warnings,
  93. you can enable this option.
  94. config SDM_ENABLE_DEBUG_LOG
  95. bool "Enable debug log"
  96. default n
  97. help
  98. Wether to enable the debug log message for SDM driver.
  99. Note that, this option only controls the SDM driver log, won't affect other drivers.
  100. endmenu # Sigma Delta Modulator Configuration
  101. menu "Analog Comparator Configuration"
  102. depends on SOC_ANA_CMPR_SUPPORTED
  103. config ANA_CMPR_ISR_IRAM_SAFE
  104. bool "Analog comparator ISR IRAM-Safe"
  105. default n
  106. help
  107. Ensure the Analog Comparator interrupt is IRAM-Safe by allowing the interrupt handler to be
  108. executable when the cache is disabled (e.g. SPI Flash write).
  109. config ANA_CMPR_CTRL_FUNC_IN_IRAM
  110. bool "Place Analog Comparator control functions into IRAM"
  111. default n
  112. help
  113. Place Analog Comparator control functions (like ana_cmpr_set_internal_reference) into IRAM,
  114. so that these functions can be IRAM-safe and able to be called in an IRAM interrupt context.
  115. Enabling this option can improve driver performance as well.
  116. config ANA_CMPR_ENABLE_DEBUG_LOG
  117. bool "Enable debug log"
  118. default n
  119. help
  120. Wether to enable the debug log message for Analog Comparator driver.
  121. Note that, this option only controls the Analog Comparator driver log, won't affect other drivers.
  122. endmenu # Analog Comparator Configuration
  123. orsource "./rmt/Kconfig.rmt"
  124. menu "I2S Configuration"
  125. depends on SOC_I2S_SUPPORTED
  126. config I2S_ISR_IRAM_SAFE
  127. bool "I2S ISR IRAM-Safe"
  128. default n
  129. help
  130. Ensure the I2S interrupt is IRAM-Safe by allowing the interrupt handler to be
  131. executable when the cache is disabled (e.g. SPI Flash write).
  132. config I2S_SUPPRESS_DEPRECATE_WARN
  133. bool "Suppress leagcy driver deprecated warning"
  134. default n
  135. help
  136. Enable this option will suppress the deprecation warnings of using APIs in legacy I2S driver.
  137. config I2S_ENABLE_DEBUG_LOG
  138. bool "Enable I2S debug log"
  139. default n
  140. help
  141. Wether to enable the debug log message for I2S driver.
  142. Note that, this option only controls the I2S driver log, will not affect other drivers.
  143. endmenu # I2S Configuration
  144. menu "DAC Configuration"
  145. depends on SOC_DAC_SUPPORTED
  146. config DAC_CTRL_FUNC_IN_IRAM
  147. bool "Place DAC control functions into IRAM"
  148. default n
  149. help
  150. Place DAC control functions (e.g. 'dac_oneshot_output_voltage') into IRAM,
  151. so that this function can be IRAM-safe and able to be called in the other IRAM interrupt context.
  152. Enabling this option can improve driver performance as well.
  153. config DAC_ISR_IRAM_SAFE
  154. bool "DAC ISR IRAM-Safe"
  155. default n
  156. help
  157. Ensure the DAC interrupt is IRAM-Safe by allowing the interrupt handler to be
  158. executable when the cache is disabled (e.g. SPI Flash write).
  159. config DAC_SUPPRESS_DEPRECATE_WARN
  160. bool "Suppress legacy driver deprecated warning"
  161. default n
  162. help
  163. Wether to suppress the deprecation warnings when using legacy DAC driver (driver/dac.h).
  164. If you want to continue using the legacy driver, and don't want to see related deprecation warnings,
  165. you can enable this option.
  166. config DAC_ENABLE_DEBUG_LOG
  167. bool "Enable debug log"
  168. default n
  169. help
  170. Wether to enable the debug log message for DAC driver.
  171. Note that, this option only controls the DAC driver log, won't affect other drivers.
  172. config DAC_DMA_AUTO_16BIT_ALIGN
  173. bool "Align the continuous data to 16 bit automatically"
  174. depends on SOC_DAC_DMA_16BIT_ALIGN
  175. default y
  176. help
  177. Whether to left shift the continuous data to align every bytes to 16 bits in the driver.
  178. On ESP32, although the DAC resolution is only 8 bits,
  179. the hardware requires 16 bits data in continuous mode.
  180. By enabling this option, the driver will left shift 8 bits for the input data automatically.
  181. Only disable this option when you decide to do this step by yourself.
  182. Note that the driver will allocate a new piece of memory to save the converted data.
  183. endmenu # DAC Configuration
  184. menu "USB Serial/JTAG Configuration"
  185. depends on SOC_USB_SERIAL_JTAG_SUPPORTED
  186. config USJ_NO_AUTO_LS_ON_CONNECTION
  187. bool "Don't enter the automatic light sleep when USB Serial/JTAG port is connected"
  188. depends on PM_ENABLE && ESP_CONSOLE_USB_SERIAL_JTAG_ENABLED && !SOC_USB_SERIAL_JTAG_SUPPORT_LIGHT_SLEEP
  189. default n
  190. help
  191. If enabled, the chip will constantly monitor the connection status of the USB Serial/JTAG port. As long
  192. as the USB Serial/JTAG is connected, a ESP_PM_NO_LIGHT_SLEEP power management lock will be acquired to
  193. prevent the system from entering light sleep.
  194. This option can be useful if serial monitoring is needed via USB Serial/JTAG while power management is
  195. enabled, as the USB Serial/JTAG cannot work under light sleep and after waking up from light sleep.
  196. Note. This option can only control the automatic Light-Sleep behavior. If esp_light_sleep_start() is
  197. called manually from the program, enabling this option will not prevent light sleep entry even if the
  198. USB Serial/JTAG is in use.
  199. endmenu # USB Serial/JTAG Configuration
  200. menu "Parallel IO Configuration"
  201. depends on SOC_PARLIO_SUPPORTED
  202. config PARLIO_ENABLE_DEBUG_LOG
  203. bool "Enable debug log"
  204. default n
  205. help
  206. Wether to enable the debug log message for parallel IO driver.
  207. Note that, this option only controls the parallel IO driver log, won't affect other drivers.
  208. config PARLIO_ISR_IRAM_SAFE
  209. bool "Parallel IO ISR IRAM-Safe"
  210. default n
  211. select GDMA_CTRL_FUNC_IN_IRAM # the driver needs to start the GDMA in the interrupt
  212. help
  213. Ensure the Parallel IO interrupt is IRAM-Safe by allowing the interrupt handler to be
  214. executable when the cache is disabled (e.g. SPI Flash write).
  215. endmenu # Parallel IO Configuration
  216. orsource "./ledc/Kconfig.ledc"
  217. menu "I2C Configuration"
  218. config I2C_ISR_IRAM_SAFE
  219. bool "I2C ISR IRAM-Safe"
  220. default n
  221. help
  222. Ensure the I2C interrupt is IRAM-Safe by allowing the interrupt handler to be
  223. executable when the cache is disabled (e.g. SPI Flash write).
  224. note: This cannot be used in the I2C legacy driver.
  225. config I2C_ENABLE_DEBUG_LOG
  226. bool "Enable I2C debug log"
  227. default n
  228. help
  229. Wether to enable the debug log message for I2C driver.
  230. Note that this option only controls the I2C driver log, will not affect other drivers.
  231. note: This cannot be used in the I2C legacy driver.
  232. endmenu # I2C Configurations
  233. endmenu # Driver configurations