19 #if !defined(SMC_HAL_H)
78 #if FEATURE_SMC_HAS_HIGH_SPEED_RUN_MODE
83 #if FEATURE_SMC_HAS_WAIT_VLPW
89 #if FEATURE_SMC_HAS_PSTOPO
93 #if FEATURE_SMC_HAS_STOPO
189 #if FEATURE_SMC_HAS_HIGH_SPEED_RUN_MODE
200 #if FEATURE_SMC_HAS_STOPO
204 #if FEATURE_SMC_HAS_PSTOPO
227 #if defined(__cplusplus)
309 uint32_t regValue = baseAddr->
PMCTRL;
312 baseAddr->
PMCTRL = regValue;
329 uint32_t regValue = baseAddr->
PMCTRL;
364 uint32_t regValue = baseAddr->
PMCTRL;
367 baseAddr->
PMCTRL = regValue;
382 uint32_t regValue = baseAddr->
PMCTRL;
415 uint32_t regValue = baseAddr->
PMCTRL;
433 #if FEATURE_SMC_HAS_STOPO
449 uint32_t regValue = baseAddr->
STOPCTRL;
469 uint32_t regValue = baseAddr->
STOPCTRL;
489 #if FEATURE_SMC_HAS_PSTOPO
491 #error "Unimplemented"
513 uint32_t regValue = baseAddr->
PMSTAT;
546 #if defined(__cplusplus)
#define SMC_PMCTRL_RUNM_SHIFT
static smc_stop_option_t SMC_HAL_GetStopOption(const SMC_Type *const baseAddr)
Gets the configuration of the STOPO option.
static smc_run_mode_t SMC_HAL_GetRunModeControl(const SMC_Type *const baseAddr)
Gets the current RUN mode configuration setting.
#define SMC_PMCTRL_STOPM_MASK
bool SMC_HAL_GetProtectionMode(const SMC_Type *const baseAddr, const power_modes_protect_t protect)
Gets the the current power mode protection setting.
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.
#define SMC_PMSTAT_PMSTAT_MASK
power_manager_modes_t powerModeName
#define SMC_PMCTRL_STOPM(x)
SMC module version number Implements smc_version_info_t_Class.
void SMC_HAL_SetProtectionMode(SMC_Type *const baseAddr, const smc_power_mode_protection_config_t *const protectConfig)
Configures all power mode protection settings.
static smc_stop_mode_t SMC_HAL_GetVlpsaModeControl(const SMC_Type *const baseAddr)
Checks whether the last very low power stop sequence has been aborted.
static void SMC_HAL_SetStopModeControl(SMC_Type *const baseAddr, const smc_stop_mode_t stopMode)
Configures the STOP mode control setting.
status_t
Status return codes. Common error codes will be a unified enumeration (C enum) that will contain all ...
smc_stop_option_t
STOP option Implements smc_stop_option_t_Class.
#define SMC_PMCTRL_STOPM_SHIFT
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.
void SMC_HAL_GetVersion(const SMC_Type *const baseAddr, smc_version_info_t *const versionInfo)
Get the version of the SMC module.
Power mode control configuration used for calling the SMC_SYS_SetPowerMode API Implements smc_power_m...
Power mode user configuration structure.
static void SMC_HAL_SetStopOption(SMC_Type *const baseAddr, const smc_stop_option_t option)
Configures the STOPO (Stop Option).
#define SMC_PMCTRL_VLPSA_MASK
power_modes_protect_t
Power Modes Protection Implements power_modes_protect_t_Class.
#define SMC_STOPCTRL_STOPO(x)
#define SMC_STOPCTRL_STOPO_SHIFT
#define SMC_PMCTRL_VLPSA_SHIFT
power_manager_modes_t powerMode
#define SMC_PMCTRL_RUNM(x)
power_mode_stat_t
Power Modes in PMSTAT Implements power_mode_stat_t_Class.
static smc_stop_mode_t SMC_HAL_GetStopModeControl(const SMC_Type *const baseAddr)
Gets the current STOP mode control settings.
#define SMC_STOPCTRL_STOPO_MASK
#define SMC_PMSTAT_PMSTAT_SHIFT
#define SMC_PMCTRL_RUNM_MASK
smc_stop_mode_t
Stop mode definition Implements smc_stop_mode_t_Class.
smc_stop_option_t stopOptionValue