I am using the built-in comparator on a STM32F072RB. The comparator works fine, but now I want to be able to measure the amplitude of the sine-wave (already withing 0-3.3V limits) by 'removing' the pin from the comparator and 'giving' it to the ADC Channel 1 that it also able to operate from that same pin.
How do I De-Initialize the pin from the comparator (COMP1_INP) and allocate it to the ADC_IN1? My sine-wave is on pin PA1.
I have checked the MXCube examples for the STM32F0xx family but couldn't find an appropriate example.