We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fae44bf commit 7e56d54Copy full SHA for 7e56d54
libraries/SrcWrapper/src/stm32/analog.cpp
@@ -781,8 +781,12 @@ uint16_t adc_read_value(PinName pin, uint32_t resolution)
781
uint32_t bank = 0;
782
783
if ((pin & PADC_BASE) && (pin < ANA_START)) {
784
-#if defined(STM32H7xx)
+#if defined(STM32H7xx) || defined(STM32MP1xx)
785
+#ifdef ADC3
786
AdcHandle.Instance = ADC3;
787
+#else
788
+ AdcHandle.Instance = ADC2;
789
+#endif
790
#else
791
AdcHandle.Instance = ADC1;
792
#if defined(ADC5) && defined(ADC_CHANNEL_TEMPSENSOR_ADC5)
0 commit comments