mcu/drv/fsl_flash_driver_c90tfs.c
/*FUNCTION**********************************************************************
 *
 * Function Name : EERAMGetProtection
 * Description   : Retrieves which EEPROM sections of FlexRAM are protected
 * against program and erase operations. Considering the time consumption
 * for getting protection is very low and even can be ignored, it is not necessary
 * to utilize the Callback function to support the time-critical events
 *
 * Implements    : EERAMGetProtection_Activity
 *END**************************************************************************/
FUNCTION

Function Name : EERAMGetProtection
Description   : Retrieves which EEPROM sections of FlexRAM are protected
against program and erase operations. Considering the time consumption
for getting protection is very low and even can be ignored, it is not necessary
to utilize the Callback function to support the time-critical events

Implements    : EERAMGetProtection_Activity
END
FUNCTION Function Name : EERAMGetProtection Description : Retrieves which EEPROM sections of FlexRAM are protected against program and erase operations . Considering the time consumption for getting protection is very low and even can be ignored it is not necessary to utilize the Callback function to support the time - critical events Implements : EERAMGetProtection_Activity END
flash_drv_status_t EERAMGetProtection(uint8_t* protectStatus)
{
#ifdef DEV_ERROR_DETECT
    DEV_ASSERT(protectStatus != NULL);
#endif
    flash_drv_status_t ret = FTFx_OK;    
    if ((FTFx_FCNFG & FTFx_FCNFG_EEERDY_MASK) == FTFx_FCNFG_EEERDY_MASK)
    {
        *protectStatus = FTFx_FEPROT;
    }
    else
    {
        ret = FTFx_ERR_NOEEE;
    }
    return (ret);
}
flash_drv_status_t EERAMGetProtection ( uint8_t * protectStatus ) { #ifdef DEV_ERROR_DETECT DEV_ASSERT ( protectStatus != NULL ) ; #endif flash_drv_status_t ret = FTFx_OK ; if ( ( FTFx_FCNFG & FTFx_FCNFG_EEERDY_MASK ) == FTFx_FCNFG_EEERDY_MASK ) { * protectStatus = FTFx_FEPROT ; } else { ret = FTFx_ERR_NOEEE ; } return ( ret ) ; }
FUNCTION
FUNCTION
/* Return code variable */ /* Check if EERAM is set for EEPROM */