Hello,
I am trying to keep an output active (high) while going into ext sleep mode.
Is this possible?
Greetings Vincenzo
Keywords:
Device:
Hello,
I am trying to keep an output active (high) while going into ext sleep mode.
Is this possible?
Greetings Vincenzo
Hi vincenzo.
Yes, when the device is in sleep mode the outputs are automatically latched in the state they had before going to sleep, you should pay attention though when waking up since when the device wakes up the periph_init() function gets executed, so the GPIO_ConfigurePin is executed are will switch the pin back to its previous state, so you will have to be aware of the state of the pin when waking up and configure the pin according to its current state.
Thanks MT_dialog