From c92dfc0f3ff3b3b357865470b6fdd645c8bea1be Mon Sep 17 00:00:00 2001 From: Sudeep Mohanty Date: Tue, 27 Aug 2024 16:08:56 +0200 Subject: [PATCH] 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. --- components/soc/esp32p4/include/soc/soc_caps.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/soc/esp32p4/include/soc/soc_caps.h b/components/soc/esp32p4/include/soc/soc_caps.h index b48f5fb435..73d7f4ef6c 100644 --- a/components/soc/esp32p4/include/soc/soc_caps.h +++ b/components/soc/esp32p4/include/soc/soc_caps.h @@ -122,7 +122,7 @@ #define SOC_ADC_DIG_SUPPORTED_UNIT(UNIT) 1 //Digital controller supported ADC unit #define SOC_ADC_DMA_SUPPORTED 1 #define SOC_ADC_PERIPH_NUM (2) -#define SOC_ADC_CHANNEL_NUM(PERIPH_NUM) ((PERIPH_NUM==0)? 6: 8) +#define SOC_ADC_CHANNEL_NUM(PERIPH_NUM) ((PERIPH_NUM==0)? 8: 6) #define SOC_ADC_MAX_CHANNEL_NUM (8) #define SOC_ADC_ATTEN_NUM (4)