mcu/drv/fsl_flash_driver_c90tfs.c
/*FUNCTION**********************************************************************
 *
 * Function Name : EERAMSetProtection
 * Description   : Sets protection to the intended protection status for EEPROM us
 * area of FlexRam. This is subject to a protection transition restriction.
 * If there is a setting violation, it returns failed information and
 * the current protection status will not be changed.
 *
 * Implements    : EERAMSetProtection_Activity
 *END**************************************************************************/
FUNCTION

Function Name : EERAMSetProtection
Description   : Sets protection to the intended protection status for EEPROM us
area of FlexRam. This is subject to a protection transition restriction.
If there is a setting violation, it returns failed information and
the current protection status will not be changed.

Implements    : EERAMSetProtection_Activity
END
FUNCTION Function Name : EERAMSetProtection Description : Sets protection to the intended protection status for EEPROM us area of FlexRam . This is subject to a protection transition restriction . If there is a setting violation it returns failed information and the current protection status will not be changed . Implements : EERAMSetProtection_Activity END
flash_drv_status_t EERAMSetProtection(uint8_t protectStatus)
{
    flash_drv_status_t ret = FTFx_OK;    
    if (0U == (FTFx_FCNFG & FTFx_FCNFG_EEERDY_MASK))
    {
        ret = FTFx_ERR_NOEEE;
    }
    else
    {
        FTFx_FEPROT = protectStatus;
        if (protectStatus != FTFx_FEPROT)
        {
            ret = FTFx_ERR_CHANGEPROT;
        }
        else
        {
        }
    }
    return (ret);
}
flash_drv_status_t EERAMSetProtection ( uint8_t protectStatus ) { flash_drv_status_t ret = FTFx_OK ; if ( 0U == ( FTFx_FCNFG & FTFx_FCNFG_EEERDY_MASK ) ) { ret = FTFx_ERR_NOEEE ; } else { FTFx_FEPROT = protectStatus ; if ( protectStatus != FTFx_FEPROT ) { ret = FTFx_ERR_CHANGEPROT ; } else { } } return ( ret ) ; }
FUNCTION
FUNCTION
/* Return code variable */ /* Check if FlexRAM is set for EEPROM */ /* FlexRAM is not set for EEPROM */ /* Do nothing */