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 592 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 545 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 is guaranteed to have progressed to hardware.
Definition at line 240 of file sys_ctrl.h.
Referenced by HapiTrimDeviceShutDown().
|
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 265 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 220 of file sys_ctrl.h.
|
inlinestatic |
Disables reset due to OSC clock loss event.
Definition at line 431 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 409 of file sys_ctrl.h.
void SysCtrlPowerdown | ( | void | ) |
Force the system into power down.
Force the system into power down.
Definition at line 247 of file sys_ctrl.c.
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 655 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 337 of file sys_ctrl.c.
void SysCtrlShutdown | ( | void | ) |
Force the system into shutdown.
Force the system into shutdown.
Definition at line 288 of file sys_ctrl.c.
void SysCtrlStandby | ( | void | ) |
Force the system into standby mode.
Force the system into standby mode.
Definition at line 217 of file sys_ctrl.c.
|
inlinestatic |
Perform a full system reset.
Definition at line 379 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 356 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 352 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 351 of file sys_ctrl.h.
#define RSTSRC_SYSRESET (( AON_SYSCTL_RESETCTL_RESET_SRC_SYSRESET >> AON_SYSCTL_RESETCTL_RESET_SRC_S )) |
Definition at line 357 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 354 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 355 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 353 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 359 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 358 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.