/*FUNCTION********************************************************************** * * Function Name : SMC_HAL_SetPorMode * Description : Config the POR (power-on-reset) option * This function will set the POR power option setting. It controls whether the * POR detect circuit (for brown-out detection) is enabled in certain stop mode. * The setting will be either enable or disable the above feature when POR * happened. Refer to reference manual for details. * *END**************************************************************************/ void SMC_HAL_SetPorMode(uint32_t baseAddr, smc_por_option_t option) { #if FSL_FEATURE_SMC_USE_VLLSCTRL_REG BW_SMC_VLLSCTRL_PORPO(baseAddr, option); #else BW_SMC_STOPCTRL_PORPO(baseAddr, option); #endif }
/*FUNCTION********************************************************************** * * Function Name : smc_hal_config_por_power_option * Description : Config the POR (power-on-reset) option * This function will set the POR power option setting. It controls whether the * POR detect circuit (for brown-out detection) is enabled in certain stop mode. * The setting will be either enable or disable the above feature when POR * happened. Refer to reference manual for details. * *END**************************************************************************/ void smc_hal_config_por_power_option(smc_por_option_t option) { #if FSL_FEATURE_SMC_USE_VLLSCTRL_REG BW_SMC_VLLSCTRL_PORPO(option); #else BW_SMC_STOPCTRL_PORPO(option); #endif }