Issue while setting pins as Analog to save power
Hello everyone, I'm trying to set all the pins(except 11) of port F of STM32L476 as Analog to save power.
for(uint8_t GPIO_PIN = 0; GPIO_PIN < 16; GPIO_PIN++)
{
if(GPIO_PIN != 11) GPIOF->MODER |= (3 << (GPIO_PIN * 2));
}
But it resets my program while executing these lines.
