Solved
How to switch GPIO PORT's individual pin into analog input mode without disabling whole GPIO port before going into Stop mode, how to do it?
..
..
For example, to set PA5 to analog mode:
GPIOA_MODER |= (3 << (5 * 2));
where 3 is 0b11 for Analog Mode as given by GPIOx_MODER description in the GPIO chapter of RM; 5 is for PA5; 2 is because there are 2 bits per pin in GPIOx_MODER.
JW
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.