2019-10-22 10:51 AM
I am new on STM32.I have one switch that i define it's external interrupt. i want to put my mcu in sleep mode and at another interrupt i want my mcu wake up. i don't have any idea how to write routine for wake up and sleep mode API when interrupt occurs and interrupt routine in main for switch?