I have programmed the system_off with 2 causes of wake-up on 2 different pins.
When the device is woken up, how can I check which pin is the wake cause ?
Thanks for your help !
I have programmed the system_off with 2 causes of wake-up on 2 different pins.
When the device is woken up, how can I check which pin is the wake cause ?
Thanks for your help !
True, does not look very optimum because after the wakeup and before you read the pins, their status might have changed. For example if the wakeup is caused by a button connected to a gpio, then we hope that the button is still pressed after the wakeup till we read the button status.
similar discussion here