Merge branch 'test/add_adc_wifi_test_thresh_on_v4.4' into 'release/v4.4'

test: added adc wifi test thresh for esp32, s2, c3, s3 on v4.4

See merge request espressif/esp-idf!20116
This commit is contained in:
morris 2022-09-13 14:50:00 +08:00
commit 3b03bee2a4

View File

@ -33,22 +33,22 @@ static const char* TAG = "test_adc2";
#define ADC2_CHAN1 ADC2_CHANNEL_9
#define ADC_WIDTH ADC_WIDTH_BIT_12
#define ADC_HIGH 4095
#define ADC_ERROR_THRES 20
#define ADC_ERROR_THRES 200
#elif CONFIG_IDF_TARGET_ESP32S2
#define ADC2_CHAN1 ADC2_CHANNEL_7
#define ADC_WIDTH ADC_WIDTH_BIT_13
#define ADC_HIGH 8191
#define ADC_ERROR_THRES 100
#define ADC_ERROR_THRES 200
#elif CONFIG_IDF_TARGET_ESP32C3
#define ADC2_CHAN1 ADC2_CHANNEL_0
#define ADC_WIDTH ADC_WIDTH_BIT_12
#define ADC_HIGH 4095
#define ADC_ERROR_THRES 100
#define ADC_ERROR_THRES 200
#elif CONFIG_IDF_TARGET_ESP32S3
#define ADC2_CHAN1 ADC2_CHANNEL_0
#define ADC_WIDTH ADC_WIDTH_BIT_12
#define ADC_HIGH 4095
#define ADC_ERROR_THRES 100
#define ADC_ERROR_THRES 200
#endif
#define ADC_LOW 0