We use stm32f103c8t6 microcontroller. I need a output for Analog watchdog,adc read continuously background. I access analog value to activate sleep mode and wake up mode. I access the POT to Low threshold(0<100) to activate sleep mode and access a high threshold (>700) to activate MCU wake up mode. But I need to ADC still read for these two conditions. So I'm already try this method to develop my code.But my output was not clear to me. I attach my code and I made a mistake pls correct me.