Question
How to set GPIO as analog
I wish to know how Can I set a pin as analog input for ADC.
Bits 31:0MODE[15:0][1:0]: Port x configuration I/O pin y (y = 15 to 0)
These bits are written by software to configure the I/O mode.
00: Input mode
01: General purpose output mode
10: Alternate function mode
11: Analog mode (reset state)GPIO_MODER_MODE14_? | GPIO_MODER_MODE15_?;
