Microchip® Advanced Software Framework

sam/sleepmgr.h File Reference

SAM3/SAM4 Sleep manager implementation.

Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries.

#include <compiler.h>
#include <conf_sleepmgr.h>
#include <sleep.h>
#include <interrupt.h>

Enumerations

enum  sleepmgr_mode {
  SLEEPMGR_ACTIVE = 0,
  SLEEPMGR_SLEEP_WFE,
  SLEEPMGR_SLEEP_WFI,
  SLEEPMGR_WAIT_FAST,
  SLEEPMGR_WAIT,
  SLEEPMGR_NR_OF_MODES
}
 Sleep mode locks. More...
 

Functions

static void sleepmgr_sleep (const enum sleepmgr_mode sleep_mode)
 

Variables

Internal arrays
uint8_t sleepmgr_locks []
 Sleep mode lock counters. More...