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.
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.
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.