Skip to content

Commit c92dfc0

Browse files
fix(adc): Corrected the ADC channel number caps for esp32p4
This commit fixes the incorrect soc_caps for the ADC channel numbers on the esp32p4.
1 parent fc6b33b commit c92dfc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/soc/esp32p4/include/soc/soc_caps.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
#define SOC_ADC_DIG_SUPPORTED_UNIT(UNIT) 1 //Digital controller supported ADC unit
123123
#define SOC_ADC_DMA_SUPPORTED 1
124124
#define SOC_ADC_PERIPH_NUM (2)
125-
#define SOC_ADC_CHANNEL_NUM(PERIPH_NUM) ((PERIPH_NUM==0)? 6: 8)
125+
#define SOC_ADC_CHANNEL_NUM(PERIPH_NUM) ((PERIPH_NUM==0)? 8: 6)
126126
#define SOC_ADC_MAX_CHANNEL_NUM (8)
127127
#define SOC_ADC_ATTEN_NUM (4)
128128

0 commit comments

Comments
 (0)