For example, if I have a GPIO pin configured with low sense, and it goes low just before I call sd_power_system_off(), will the device return to System ON mode immediately, or is the pin transition lost?
For example, if I have a GPIO pin configured with low sense, and it goes low just before I call sd_power_system_off(), will the device return to System ON mode immediately, or is the pin transition lost?
Some experimenting shows that DETECT is actually level-triggered, rather than edge-triggered as stated in the data sheet, which implies there is no race condition.
Yes, there should be no race condition here, and you should come out of the sleep immediately if a wake-up condition is true when you try to enter it.