void SysCtrl_DCDC_VoltageConditionalControl | ( | void | ) |
Turns DCDC on or off depending of what is considered to be optimal usage.
This function controls the DCDC only if both the following CCFG settings are true:
The DCDC is configured in accordance to the CCFG settings when turned on.
This function should be called periodically.
Definition at line 473 of file sys_ctrl.c.
void SysCtrlAdjustRechargeAfterPowerDown | ( | void | ) |
Adjust Recharge calculations to be used next.
This function shall be called just after returning from Power Down.
Reads the results from the adaptive recharge controller and current chip temperature. This is used as additional information when calculating optimal recharge controller settings next time (When SysCtrlSetRechargeBeforePowerDown() is called next time).
Definition at line 426 of file sys_ctrl.c.
|
inlinestatic |
Sync all accesses to the AON register interface.
When this function returns, all writes to the AON register interface are guaranteed to have propagated to hardware. The function will return immediately if no AON writes are pending; otherwise, it will wait for the next AON clock before returning.
Definition at line 196 of file sys_ctrl.h.
Referenced by SetupAfterColdResetWakeupFromShutDownCfg3().
|
inlinestatic |
Update all interfaces to AON.
When this function returns, at least 1 clock cycle has progressed on the AON domain, so that any outstanding updates to and from the AON interface is guaranteed to be in sync.
Definition at line 223 of file sys_ctrl.h.
|
inlinestatic |
Get the CPU core clock frequency.
Use this function to get the current clock frequency for the CPU.
The CPU can run from 48 MHz and down to 750kHz. The frequency is defined by the combined division factor of the SYSBUS and the CPU clock divider.
Definition at line 173 of file sys_ctrl.h.
|
inlinestatic |
Disables reset due to OSC clock loss event.
Definition at line 384 of file sys_ctrl.h.
|
inlinestatic |
Enables reset if OSC clock loss event is asserted.
Clock loss circuit in analog domain must be enabled as well in order to actually enable for a clock loss reset to occur OSCClockLossEventEnable().
Definition at line 362 of file sys_ctrl.h.
void SysCtrlPowerEverything | ( | void | ) |
Power up everything.
Definition at line 121 of file sys_ctrl.c.
uint32_t SysCtrlResetSourceGet | ( | void | ) |
Returns last reset source (including "wakeup from shutdown").
Definition at line 538 of file sys_ctrl.c.
void SysCtrlSetRechargeBeforePowerDown | ( | uint32_t | xoscPowerMode | ) |
Set Recharge values before entering Power Down.
This function shall be called just before entering Power Down. It calculates an optimal and safe recharge setting of the adaptive recharge controller. The results of previous setting are also taken into account.
xoscPowerMode | (typically running in XOSC_IN_HIGH_POWER_MODE all the time).
|
Definition at line 218 of file sys_ctrl.c.
|
inlinestatic |
Perform a full system reset.
Definition at line 332 of file sys_ctrl.h.
#define CPU_DEEP_SLEEP 0x00000002 |
Definition at line 128 of file sys_ctrl.h.
#define CPU_RUN 0x00000000 |
Definition at line 126 of file sys_ctrl.h.
#define CPU_SLEEP 0x00000001 |
Definition at line 127 of file sys_ctrl.h.
#define RSTSRC_CLK_LOSS (( AON_SYSCTL_RESETCTL_RESET_SRC_CLK_LOSS ) >> ( AON_SYSCTL_RESETCTL_RESET_SRC_S )) |
Definition at line 309 of file sys_ctrl.h.
#define RSTSRC_PIN_RESET (( AON_SYSCTL_RESETCTL_RESET_SRC_PIN_RESET ) >> ( AON_SYSCTL_RESETCTL_RESET_SRC_S )) |
Definition at line 305 of file sys_ctrl.h.
#define RSTSRC_PWR_ON (( AON_SYSCTL_RESETCTL_RESET_SRC_PWR_ON ) >> ( AON_SYSCTL_RESETCTL_RESET_SRC_S )) |
Definition at line 304 of file sys_ctrl.h.
#define RSTSRC_SYSRESET (( AON_SYSCTL_RESETCTL_RESET_SRC_SYSRESET ) >> ( AON_SYSCTL_RESETCTL_RESET_SRC_S )) |
Definition at line 310 of file sys_ctrl.h.
#define RSTSRC_VDD_LOSS (( AON_SYSCTL_RESETCTL_RESET_SRC_VDD_LOSS ) >> ( AON_SYSCTL_RESETCTL_RESET_SRC_S )) |
Definition at line 307 of file sys_ctrl.h.
#define RSTSRC_VDDR_LOSS (( AON_SYSCTL_RESETCTL_RESET_SRC_VDDR_LOSS ) >> ( AON_SYSCTL_RESETCTL_RESET_SRC_S )) |
Definition at line 308 of file sys_ctrl.h.
#define RSTSRC_VDDS_LOSS (( AON_SYSCTL_RESETCTL_RESET_SRC_VDDS_LOSS ) >> ( AON_SYSCTL_RESETCTL_RESET_SRC_S )) |
Definition at line 306 of file sys_ctrl.h.
#define RSTSRC_WAKEUP_FROM_SHUTDOWN ((( AON_SYSCTL_RESETCTL_RESET_SRC_M ) >> ( AON_SYSCTL_RESETCTL_RESET_SRC_S )) + 1 ) |
Definition at line 312 of file sys_ctrl.h.
Referenced by SysCtrlResetSourceGet().
#define RSTSRC_WARMRESET (( AON_SYSCTL_RESETCTL_RESET_SRC_WARMRESET ) >> ( AON_SYSCTL_RESETCTL_RESET_SRC_S )) |
Definition at line 311 of file sys_ctrl.h.
#define SYSCTRL_SYSBUS_OFF 0x00000000 |
Definition at line 119 of file sys_ctrl.h.
#define SYSCTRL_SYSBUS_ON 0x00000001 |
Definition at line 118 of file sys_ctrl.h.
#define XOSC_IN_HIGH_POWER_MODE 0 |
Definition at line 135 of file sys_ctrl.h.
Referenced by SysCtrlSetRechargeBeforePowerDown().
#define XOSC_IN_LOW_POWER_MODE 1 |
Definition at line 136 of file sys_ctrl.h.