esp32/machine_adcblock: Fix ADC bit width for ESP32-S3.
This commit is contained in:
parent
6fe3856c4f
commit
ada836b834
|
@ -40,10 +40,10 @@
|
|||
#define DEFAULT_VREF 1100
|
||||
|
||||
madcblock_obj_t madcblock_obj[] = {
|
||||
#if CONFIG_IDF_TARGET_ESP32 || CONFIG_IDF_TARGET_ESP32C3
|
||||
#if CONFIG_IDF_TARGET_ESP32 || CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32S3
|
||||
{{&machine_adcblock_type}, ADC_UNIT_1, 12, -1, {0}},
|
||||
{{&machine_adcblock_type}, ADC_UNIT_2, 12, -1, {0}},
|
||||
#elif CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3
|
||||
#elif CONFIG_IDF_TARGET_ESP32S2
|
||||
{{&machine_adcblock_type}, ADC_UNIT_1, 13, -1, {0}},
|
||||
{{&machine_adcblock_type}, ADC_UNIT_2, 13, -1, {0}},
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue