Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Sleep controller driver

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

Macros

#define sleep_enter()   __sleep()
 Macro for issuing the sleep instruction. More...
 

Functions

static void sleep_disable (void)
 Disable sleep. More...
 
static void sleep_enable (void)
 Enable sleep. More...
 
static void sleep_set_mode (enum SLEEP_SMODE_enum mode)
 Set new sleep mode. More...
 

#define sleep_enter ( )    __sleep()

Macro for issuing the sleep instruction.

Referenced by sleepmgr_sleep().

static void sleep_disable ( void  )
inlinestatic

Disable sleep.

Referenced by sleepmgr_sleep().

static void sleep_enable ( void  )
inlinestatic

Enable sleep.

Referenced by sleepmgr_sleep().

static void sleep_set_mode ( enum SLEEP_SMODE_enum  mode)
inlinestatic

Set new sleep mode.

Parameters
modeSleep mode, from the device IO header file.

Referenced by sleepmgr_sleep().