mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 18:50:34 +03:00
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:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user