#include <stdbool.h>
#include <stdint.h>
#include <inc/hw_types.h>
#include <inc/hw_memmap.h>
#include <inc/hw_ints.h>
#include <inc/hw_aon_wuc.h>
#include <inc/hw_aon_sysctl.h>
#include <inc/hw_aon_rtc.h>
#include <inc/hw_adi_2_refsys.h>
#include <driverlib/debug.h>
#include <driverlib/interrupt.h>
#include <driverlib/osc.h>
#include <driverlib/cpu.h>
#include <driverlib/prcm.h>
#include <driverlib/aon_wuc.h>
#include <driverlib/aon_ioc.h>
#include <driverlib/aux_wuc.h>
#include <driverlib/adi.h>
Go to the source code of this file.
Macros | |
#define | PWRCTRL_ACTIVE 0x00000001 |
#define | PWRCTRL_STANDBY 0x00000002 |
#define | PWRCTRL_POWER_DOWN 0x00000004 |
#define | PWRCTRL_SHUTDOWN 0x00000008 |
#define | PWRCTRL_IOSEG3_ENABLE 0x00000800 |
#define | PWRCTRL_IOSEG2_ENABLE 0x00000400 |
#define | PWRCTRL_IOSEG3_DISABLE 0x00000200 |
#define | PWRCTRL_IOSEG2_DISABLE 0x00000100 |
#define | PWRCTRL_PWRSRC_DCDC 0x00000001 |
#define | PWRCTRL_PWRSRC_GLDO 0x00000000 |
#define | PWRCTRL_PWRSRC_ULDO 0x00000002 |
#define | PWRCTRL_RST_POWER_ON 0x00000000 |
#define | PWRCTRL_RST_PIN 0x00000001 |
#define | PWRCTRL_RST_VDDS_BOD 0x00000002 |
#define | PWRCTRL_RST_VDD_BOD 0x00000003 |
#define | PWRCTRL_RST_VDDR_BOD 0x00000004 |
#define | PWRCTRL_RST_CLK_LOSS 0x00000005 |
#define | PWRCTRL_RST_SW_PIN 0x00000006 |
#define | PWRCTRL_RST_WARM 0x00000007 |
Functions | |
void | PowerCtrlStateSet (uint32_t ui32Powerstate) |
Force the system into low power modes. More... | |
void | PowerCtrlSourceSet (uint32_t ui32PowerConfig) |
Set (Request) the main power source. More... | |
static uint32_t | PowerCtrlSourceGet (void) |
Get the main power source. More... | |
static uint32_t | PowerCtrlResetSourceGet (void) |
Get the last known reset source of the system. More... | |
static void | PowerCtrlIOFreezeEnable (void) |
Close the latches in the AON IOC interface and in padring. More... | |
static void | PowerCtrlIOFreezeDisable (void) |