This is a low-level driver implementation for the AVR XMEGA sleep controller.
- Note
- To minimize the code overhead, these functions do not feature interrupt-protected access since they are likely to be called inside interrupt handlers or in applications where such protection is not necessary. If such protection is needed, it must be ensured by the calling code.
Quick Start Guide
See Quick Start Guide for the XMEGA Sleep Driver
#define sleep_enter |
( |
| ) |
__sleep() |
static void sleep_disable |
( |
void |
| ) |
|
|
inlinestatic |
static void sleep_enable |
( |
void |
| ) |
|
|
inlinestatic |
static void sleep_set_mode |
( |
enum SLEEP_SMODE_enum |
mode | ) |
|
|
inlinestatic |
Set new sleep mode.
- Parameters
-
mode | Sleep mode, from the device IO header file. |
Referenced by sleepmgr_sleep().