WakeUp
Last updated
Last updated
Class to make wake up a microcontroller from deepsleep using a low-power timer.
Type
Name
static void
static void
static void
static void
Class to make wake up a microcontroller from deepsleep using a low-power timer.
Set the timeout
Parameters:
s required time in seconds
Set the timeout
Parameters:
ms required time in milliseconds
Attach a function to be called after timeout This is optional, if you just want to wake up you do not need to attach a function. Important: Many targets will run the wake-up routine at reduced clock speed, afterwards clock speed is restored. This means that clock speed dependent functions, such as printf might end up distorted.
It uses the new Callback system to attach functions.
Parameters:
*function function to call
Calibrate the timer Some of the low-power timers have very bad accuracy. This function calibrates it against the main timer. Warning: Blocks for 100ms!
The documentation for this class was generated from the following file: D:/w/hw-libs/\_libs\_/libraries/WakeUp.h
(uint32_t s)
(uint32_t ms)
(Callback< void()> function)
(void)