mcu/drv/fsl_flash_driver_c90tfs.c
/*FUNCTION**********************************************************************
 *
 * Function Name : DFlashGetProtection
 * Description   : Retrieves current P-Flash protection status. 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    : DFlashGetProtection_Activity
 *END**************************************************************************/
FUNCTION

Function Name : DFlashGetProtection
Description   : Retrieves current P-Flash protection status. 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    : DFlashGetProtection_Activity
END
FUNCTION Function Name : DFlashGetProtection Description : Retrieves current P - Flash protection status . 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 : DFlashGetProtection_Activity END
flash_drv_status_t DFlashGetProtection(const flash_ssd_config_t * pSSDConfig, \
                                       uint8_t* protectStatus)
{
#ifdef DEV_ERROR_DETECT
    DEV_ASSERT(pSSDConfig != NULL);
    DEV_ASSERT(protectStatus != NULL);
#endif
    flash_drv_status_t ret = FTFx_OK;    
    if (pSSDConfig->DFlashSize == 0U)
    {
        ret = FTFx_ERR_EFLASHONLY;
    }
    else
    {
        *protectStatus = FTFx_FDPROT;
    }
    return (ret);
}
flash_drv_status_t DFlashGetProtection ( const flash_ssd_config_t * pSSDConfig , uint8_t * protectStatus ) { #ifdef DEV_ERROR_DETECT DEV_ASSERT ( pSSDConfig != NULL ) ; DEV_ASSERT ( protectStatus != NULL ) ; #endif flash_drv_status_t ret = FTFx_OK ; if ( pSSDConfig -> DFlashSize == 0U ) { ret = FTFx_ERR_EFLASHONLY ; } else { * protectStatus = FTFx_FDPROT ; } return ( ret ) ; }
FUNCTION
FUNCTION
/* Return code variable */ /* Check if size of DFlash = 0 */