/*FUNCTION********************************************************************** * * Function Name : smc_hal_get_por_power_config * Description : Config the PSTOPOR (Partial Stop Option) * This function will set the PSTOPOR option. It controls whether a Partial * Stop mode is entered when STOPM=STOP. When entering a Partial Stop mode from * RUN mode, the PMC, MCG and flash remain fully powered, allowing the device * to wakeup almost instantaneously at the expense of higher power consumption. * In PSTOP2, only system clocks are gated allowing peripherals running on bus * clock to remain fully functional. In PSTOP1, both system and bus clocks are * gated. Refer to smc_pstop_option_t for supported options. Refer to reference * manual for details. * *END**************************************************************************/ void smc_hal_config_pstop_power_option(smc_pstop_option_t option) { BW_SMC_PMCTRL_STOPM(option); }
/*FUNCTION********************************************************************** * * Function Name : SMC_HAL_SetStopMode * Description : Config the STOP mode control setting * This function will set the stop mode settings. For example, normal stop mode, * very lower power stop mode, etc. Refer to smc_stop_mode_t for supported stop * mode on the chip family. Refer to reference manual for details about the * stop mode. * *END**************************************************************************/ void SMC_HAL_SetStopMode(uint32_t baseAddr, smc_stop_mode_t stopMode) { BW_SMC_PMCTRL_STOPM(baseAddr, stopMode); }
/*FUNCTION********************************************************************** * * Function Name : smc_hal_power_mode_config_stop * Description : Config the STOP mode control setting * This function will set the stop mode settings. For example, normal stop mode, * very lower power stop mode, etc. Refer to smc_stop_mode_t for supported stop * mode on the chip family. Refer to reference manual for details about the * stop mode. * *END**************************************************************************/ void smc_hal_power_mode_config_stop(smc_stop_mode_t stopMode) { BW_SMC_PMCTRL_STOPM(stopMode); }