I want to configure two pins to be able to wake up both from System ON and OFF and know which pin was pressed
is it possible?
I want to configure two pins to be able to wake up both from System ON and OFF and know which pin was pressed
is it possible?
Oh yes, that should work, hopefully the pin state remains the same during the wakeup process and while reading the pins again.
Oh yes, that should work, hopefully the pin state remains the same during the wakeup process and while reading the pins again.
I've two buttons pins 16 and 17 just after wake up i'll check in GPIO->IN which one of them has the value 1 to know wich one was pressed. is it wrong?
Thank you very much for your help
It is right, but then we hope that when we press the button that woke the system, it is still pressed while we read the GPIO status. Normally it will take around 800us for the clocks to stabilize. So if you press longer and if you read the pin status fast after the boot then it is reasonable to think that this way will work.
I see thank you very much