Sleep controller driver
Functions |
static void | sleep_set_mode (enum SLEEP_SMODE_enum mode) |
| Set new sleep mode.
|
Detailed Description
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.
Function Documentation
static void sleep_set_mode |
( |
enum SLEEP_SMODE_enum |
mode |
) |
[inline, static] |
Set new sleep mode.
- Parameters:
-
| mode | Sleep mode, from the device IO header file. |
Definition at line 91 of file sleep.h.
Referenced by sleepmgr_enter_sleep().
00092 {
00093 SLEEP.CTRL = mode | (SLEEP.CTRL & ~SLEEP_SMODE_gm);
00094 }