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 | PowerCtrlPadSleepEnable (void) |
Enables pad sleep in order to latch device outputs before shutdown. More... | |
static void | PowerCtrlPadSleepDisable (void) |
Disables pad sleep in order to unlatch device outputs after wakeup from shutdown. More... | |
|
inlinestatic |
Disables pad sleep in order to unlatch device outputs after wakeup from shutdown.
This function must be called by the application after the device wakes up from shutdown.
See SysCtrlShutdown() for more information about how to enter shutdown and how to wake up from shutdown.
Referenced by SysCtrlShutdownWithAbort().
|
inlinestatic |
Enables pad sleep in order to latch device outputs before shutdown.
See SysCtrlShutdown() for more information about how to enter shutdown and how to wake up from shutdown.
Referenced by SysCtrlShutdownWithAbort().
|
inlinestatic |
OBSOLETE: Get the last known reset source of the system.
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.
|
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.
void PowerCtrlSourceSet | ( | uint32_t | ui32PowerConfig | ) |
Set (Request) the main power source.
ui32PowerConfig | is a bitmask indicating the target power source. |
#define PWRCTRL_ACTIVE 0x00000001 |
#define PWRCTRL_IOSEG2_DISABLE 0x00000100 |
#define PWRCTRL_IOSEG2_ENABLE 0x00000400 |
#define PWRCTRL_IOSEG3_DISABLE 0x00000200 |
#define PWRCTRL_IOSEG3_ENABLE 0x00000800 |
#define PWRCTRL_POWER_DOWN 0x00000004 |
#define PWRCTRL_PWRSRC_DCDC 0x00000001 |
Referenced by PowerCtrlSourceGet(), and PowerCtrlSourceSet().
#define PWRCTRL_PWRSRC_GLDO 0x00000000 |
Referenced by PowerCtrlSourceGet(), and PowerCtrlSourceSet().
#define PWRCTRL_PWRSRC_ULDO 0x00000002 |
Referenced by PowerCtrlSourceSet().
#define PWRCTRL_RST_CLK_LOSS 0x00000005 |
#define PWRCTRL_RST_PIN 0x00000001 |
#define PWRCTRL_RST_POWER_ON 0x00000000 |
#define PWRCTRL_RST_SW_PIN 0x00000006 |
#define PWRCTRL_RST_VDD_BOD 0x00000003 |
#define PWRCTRL_RST_VDDR_BOD 0x00000004 |
#define PWRCTRL_RST_VDDS_BOD 0x00000002 |
#define PWRCTRL_RST_WARM 0x00000007 |
#define PWRCTRL_SHUTDOWN 0x00000008 |
#define PWRCTRL_STANDBY 0x00000002 |