Microchip® Advanced Software Framework

sam4l/sleepmgr.h File Reference

Chip-specific sleep manager configuration.

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

#include <compiler.h>
#include <conf_sleepmgr.h>
#include <interrupt.h>
#include "bpm.h"

Enumerations

enum  sleepmgr_mode {
  SLEEPMGR_ACTIVE = 0,
  SLEEPMGR_SLEEP_0,
  SLEEPMGR_SLEEP_1,
  SLEEPMGR_SLEEP_2,
  SLEEPMGR_SLEEP_3,
  SLEEPMGR_WAIT,
  SLEEPMGR_RET,
  SLEEPMGR_BACKUP,
  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...