107 #define POWER_SET_MODE_TIMEOUT 1000U
255 #if FEATURE_SMC_HAS_HIGH_SPEED_RUN_MODE
300 #if FEATURE_SMC_HAS_HIGH_SPEED_RUN_MODE
343 #if FEATURE_SMC_HAS_HIGH_SPEED_RUN_MODE
440 #if FEATURE_SMC_HAS_WAIT_VLPW
442 case POWER_MANAGER_WAIT:
456 case POWER_MANAGER_VLPW:
470 #if FEATURE_SMC_HAS_PSTOPO
472 case POWER_MANAGER_PSTOP1:
474 case POWER_MANAGER_PSTOP2:
477 #if FEATURE_SMC_HAS_STOPO
497 #if FEATURE_SMC_HAS_PSTOPO
498 halModeConfig.pstopOption =
true;
500 if (POWER_MANAGER_PSTOP1 == configPtr->
powerMode)
502 halModeConfig.pstopOptionValue = SMC_PSTOP_STOP1;
504 else if(POWER_MANAGER_PSTOP2 == configPtr->
powerMode)
506 halModeConfig.pstopOptionValue = SMC_PSTOP_STOP2;
510 halModeConfig.pstopOptionValue = SMC_PSTOP_STOP;
513 #if FEATURE_SMC_HAS_STOPO
static status_t POWER_SYS_SwitchToRunningPowerMode(const power_manager_user_config_t *const configPtr)
status_t POWER_SYS_DoSetMode(const power_manager_user_config_t *const configPtr)
static status_t POWER_SYS_SwitchToSleepingPowerMode(const power_manager_user_config_t *const configPtr)
static power_mode_stat_t SMC_HAL_GetPowerModeStatus(const SMC_Type *const baseAddr)
Gets the current power mode stat.
Power mode protection configuration Implements smc_power_mode_protection_config_t_Class.
power_manager_modes_t powerModeName
status_t POWER_SYS_DoInit(void)
void SMC_HAL_SetProtectionMode(SMC_Type *const baseAddr, const smc_power_mode_protection_config_t *const protectConfig)
Configures all power mode protection settings.
#define POWER_SET_MODE_TIMEOUT
status_t
Status return codes. Common error codes will be a unified enumeration (C enum) that will contain all ...
power_manager_state_t gPowerManagerState
Power manager internal structure.
#define S32_SCB_SCR_SLEEPONEXIT_MASK
status_t POWER_SYS_DoDeinit(void)
power_manager_modes_t POWER_SYS_GetCurrentMode(void)
This function returns currently running power mode.
power_manager_modes_t
Power modes enumeration.
static void SMC_HAL_SetRunModeControl(SMC_Type *const baseAddr, const smc_run_mode_t runMode)
Configures the the RUN mode control setting.
status_t SMC_HAL_SetPowerMode(SMC_Type *const baseAddr, const smc_power_mode_config_t *const powerModeConfig)
Configures the power mode.
smc_run_mode_t
Run mode definition Implements smc_run_mode_t_Class.
Power mode control configuration used for calling the SMC_SYS_SetPowerMode API Implements smc_power_m...
Power mode user configuration structure.
Power manager internal state structure.
power_manager_modes_t powerMode
power_mode_stat_t
Power Modes in PMSTAT Implements power_mode_stat_t_Class.
static status_t POWER_SYS_WaitForModeStatus(smc_run_mode_t mode)
smc_stop_option_t stopOptionValue