fix(soc): correct ESP32 ADC sample frequency thresholds

Use literal frequency thresholds so the SoC capability Kconfig generator preserves the 20 kHz to 2 MHz range.

(Closes https://github.com/espressif/esp-idf/issues/16151)
This commit is contained in:
gaoxu
2026-09-10 10:37:33 +08:00
committed by BOT
parent db93793288
commit 965a12cab4
2 changed files with 4 additions and 4 deletions
@@ -249,11 +249,11 @@ config SOC_ADC_DIGI_MONITOR_NUM
config SOC_ADC_SAMPLE_FREQ_THRES_HIGH
int
default 2
default 2000000
config SOC_ADC_SAMPLE_FREQ_THRES_LOW
int
default 20
default 20000
config SOC_ADC_RTC_MIN_BITWIDTH
int
+2 -2
View File
@@ -135,8 +135,8 @@
#define SOC_ADC_DIGI_RESULT_BYTES (2)
#define SOC_ADC_DIGI_DATA_BYTES_PER_CONV (4)
#define SOC_ADC_DIGI_MONITOR_NUM (0U) // to reference `IDF_TARGET_SOC_ADC_DIGI_MONITOR_NUM` in document
#define SOC_ADC_SAMPLE_FREQ_THRES_HIGH (2*1000*1000)
#define SOC_ADC_SAMPLE_FREQ_THRES_LOW (20*1000)
#define SOC_ADC_SAMPLE_FREQ_THRES_HIGH (2000000)
#define SOC_ADC_SAMPLE_FREQ_THRES_LOW (20000)
/*!< RTC */
#define SOC_ADC_RTC_MIN_BITWIDTH (9)