Atmel Software Framework

sleepmgr.h File Reference

Sleep manager.

Copyright (c) 2010-2016 Atmel Corporation. All rights reserved.

#include <compiler.h>
#include <parts.h>

Macros

#define CONFIG_SLEEPMGR_ENABLE
 Configuration symbol for enabling the sleep manager. More...
 

Functions

static void sleepmgr_enter_sleep (void)
 Go to sleep in the deepest allowed mode. More...
 
static enum sleepmgr_mode sleepmgr_get_sleep_mode (void)
 Retrieves the deepest allowable sleep mode. More...
 
static void sleepmgr_init (void)
 Initialize the lock counts. More...
 
static void sleepmgr_lock_mode (enum sleepmgr_mode mode)
 Increase lock count for a sleep mode. More...
 
static void sleepmgr_unlock_mode (enum sleepmgr_mode mode)
 Decrease lock count for a sleep mode. More...