Functions | |
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) |
OBSOLETE: 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) |
|
inlinestatic |
Open the latches in the AON IOC interface and in padring.
Use this function to unfreeze the latches that retained on the IOs driven by the device. This function should not be called before the application has reinitialized the IO configuration that will drive the IOs to the desired level.
Definition at line 271 of file pwr_ctrl.h.
|
inlinestatic |
Close the latches in the AON IOC interface and in padring.
Use this function to unfreeze the current value retained on the IOs driven by the device. This is required if it is desired to maintain the level of any IO driven when going through a shutdown/powerdown cycle.
Definition at line 246 of file pwr_ctrl.h.
|
inlinestatic |
OBSOLETE: Get the last known reset source of the system.
Recommend using function SysCtrlResetSourceGet() instead of this one. This function returns reset source but does not cover if waking up from shutdown. This function can be seen as a subset of function SysCtrlResetSourceGet() and will be removed in a future release.
Definition at line 222 of file pwr_ctrl.h.
|
inlinestatic |
Get the main power source.
Use this function to retrieve the current active power source.
When the System CPU is active it can never be powered by uLDO as this is too weak a power source.
Definition at line 180 of file pwr_ctrl.h.
void PowerCtrlSourceSet | ( | uint32_t | ui32PowerConfig | ) |
Set (Request) the main power source.
ui32PowerConfig | is a bitmask indicating the target power source. |
Definition at line 59 of file pwr_ctrl.c.
#define PWRCTRL_ACTIVE 0x00000001 |
Definition at line 101 of file pwr_ctrl.h.
#define PWRCTRL_IOSEG2_DISABLE 0x00000100 |
Definition at line 114 of file pwr_ctrl.h.
#define PWRCTRL_IOSEG2_ENABLE 0x00000400 |
Definition at line 112 of file pwr_ctrl.h.
#define PWRCTRL_IOSEG3_DISABLE 0x00000200 |
Definition at line 113 of file pwr_ctrl.h.
#define PWRCTRL_IOSEG3_ENABLE 0x00000800 |
Definition at line 111 of file pwr_ctrl.h.
#define PWRCTRL_POWER_DOWN 0x00000004 |
Definition at line 103 of file pwr_ctrl.h.
#define PWRCTRL_PWRSRC_DCDC 0x00000001 |
Definition at line 115 of file pwr_ctrl.h.
Referenced by PowerCtrlSourceGet(), and PowerCtrlSourceSet().
#define PWRCTRL_PWRSRC_GLDO 0x00000000 |
Definition at line 116 of file pwr_ctrl.h.
Referenced by PowerCtrlSourceGet(), and PowerCtrlSourceSet().
#define PWRCTRL_PWRSRC_ULDO 0x00000002 |
Definition at line 117 of file pwr_ctrl.h.
Referenced by PowerCtrlSourceSet().
#define PWRCTRL_RST_CLK_LOSS 0x00000005 |
Definition at line 129 of file pwr_ctrl.h.
#define PWRCTRL_RST_PIN 0x00000001 |
Definition at line 125 of file pwr_ctrl.h.
#define PWRCTRL_RST_POWER_ON 0x00000000 |
Definition at line 124 of file pwr_ctrl.h.
#define PWRCTRL_RST_SW_PIN 0x00000006 |
Definition at line 130 of file pwr_ctrl.h.
#define PWRCTRL_RST_VDD_BOD 0x00000003 |
Definition at line 127 of file pwr_ctrl.h.
#define PWRCTRL_RST_VDDR_BOD 0x00000004 |
Definition at line 128 of file pwr_ctrl.h.
#define PWRCTRL_RST_VDDS_BOD 0x00000002 |
Definition at line 126 of file pwr_ctrl.h.
#define PWRCTRL_RST_WARM 0x00000007 |
Definition at line 131 of file pwr_ctrl.h.
#define PWRCTRL_SHUTDOWN 0x00000008 |
Definition at line 104 of file pwr_ctrl.h.
#define PWRCTRL_STANDBY 0x00000002 |
Definition at line 102 of file pwr_ctrl.h.