boardSupplySetWakeup (Function) |
Top Previous Next |
This function is used to configure the system to wake from suspend when the external power is applied or removed. It is similar to using the PowerFail and PowerApply parameters on pmWaitEvent.
pmSuspend return codes for this wake-up source:
Input:
Enable : BOOL (default: TRUE) Set to true to enable the wake-up, set to false to disable it.
Fail : BOOL (default: TRUE) If set to true, the device will wake when the external power is removed.
Apply : BOOL (default: FALSE) If set to true, the device will wake when the external power is connected.
Returns:
Declaration: FUNCTION ALIGN boardSupplySetWakeup:INT;
Example: INCLUDE rtcu.inc |