Low power management file.
Copyright (c) 2018 Microchip Technology Inc. and its subsidiaries.
#include <stdint.h>
#include <stdbool.h>
#include "system_low_power.h"
#include "sw_timer.h"
#include "sys.h"
Functions | |
void | EUSART1WakeUp (void) |
static void | OnSleepTimerEvent (uint8_t param)) |
static void | SysCfgLowPower (void)) |
static void | SysCfgRun (void) |
void | SysExitFromSleep (void) |
SysSleepState_t | SysGetGoToSleepState (void) |
void | SysGoToSleep (void) |
void | SysSetGoToSleepState (SysSleepState_t sleepState) |
void | SysSleepInit (exitFromSleepCb_t exitFromSleepCb) |
void | SysSleepStart (uint32_t ms) |
Variables | |
static volatile SysSleepState_t | eusart1WakeUpState = SLEEP_ON |
static volatile bool | exitFromSleep = false |
static volatile SysSleepState_t | goToSleep = SLEEP_OFF |
static exitFromSleepCb_t | pExitFromSleepCb |
static uint8_t | sleepTimerId |
void EUSART1WakeUp | ( | void | ) |
References eusart1WakeUpState, NOP, SLEEP_OFF, SLEEP_TRANSITION_TO_OFF, and SysSetGoToSleepState().
|
static |
References SLEEP_OFF, and SysSetGoToSleepState().
|
static |
|
static |
Referenced by SysExitFromSleep().
void SysExitFromSleep | ( | void | ) |
References exitFromSleep, pExitFromSleepCb, sleepTimerId, SwTimerStop(), and SysCfgRun().
SysSleepState_t SysGetGoToSleepState | ( | void | ) |
References goToSleep.
void SysGoToSleep | ( | void | ) |
void SysSetGoToSleepState | ( | SysSleepState_t | sleepState | ) |
References exitFromSleep, goToSleep, and SLEEP_OFF.
Referenced by EUSART1WakeUp(), and OnSleepTimerEvent().
void SysSleepInit | ( | exitFromSleepCb_t | exitFromSleepCb | ) |
void SysSleepStart | ( | uint32_t | ms | ) |
|
static |
Referenced by EUSART1WakeUp().
Referenced by SysExitFromSleep(), and SysSetGoToSleepState().
|
static |
Referenced by SysGetGoToSleepState(), and SysSetGoToSleepState().
|
static |
Referenced by SysExitFromSleep().
|
static |
Referenced by SysExitFromSleep().