Hi expert,
I use the AGPIO and want to enable the ADC function.
But I just found the ADC sample is not right. and the registe AGPIOCTRLA is not right.
it is still 0, which tells me it is GPIO function. but it should change it to 1 according to the below function
GPIO_setPinConfig(GPIO_20_GPIO20);
// AGPIO -> Analog mode selected
GPIO_setAnalogMode(20, GPIO_ANALOG_ENABLED);
so I just want to hope you can retest the function GPIO_setAnalogMode(uint32_t pin, GPIO_AnalogMode mode) ,check whether it can work or not.
BR
Emma