24#include "boards/board.h"
32 extern void sleep(uint8_t mode);
86 ::power::sleep((uint8_t) mode);
This class contains the API for handling power sleep modes.
static void set_default_mode(board::SleepMode mode)
Set the default sleep mode, that will be used by next calls to Power::sleep() and time::yield().
static void sleep()
Enter power sleep mode as defined by Power::set_default_mode().
static void sleep(board::SleepMode mode)
Enter a specific power sleep mode.
SleepMode
Defines all available sleep modes for target MCU.
Defines simple API to handle AVR power sleep modes.