mcu/drv/fsl_flash_driver_c90tfs.c
/*FUNCTION**********************************************************************
 *
 * Function Name : FlashVerifyAllBlock
 * Description   : Checks to see if the P-Flash and/or D-Flash, EEPROM
 * backup area, and D-Flash IFR have been erased to the specified read
 * margin level, if applicable, and releases security if the readout passes.
 *
 * Implements    : FlashVerifyAllBlock_Activity
 *END**************************************************************************/
FUNCTION

Function Name : FlashVerifyAllBlock
Description   : Checks to see if the P-Flash and/or D-Flash, EEPROM
backup area, and D-Flash IFR have been erased to the specified read
margin level, if applicable, and releases security if the readout passes.

Implements    : FlashVerifyAllBlock_Activity
END
FUNCTION Function Name : FlashVerifyAllBlock Description : Checks to see if the P - Flash and / or D - Flash EEPROM backup area and D - Flash IFR have been erased to the specified read margin level if applicable and releases security if the readout passes . Implements : FlashVerifyAllBlock_Activity END
flash_drv_status_t FlashVerifyAllBlock(const flash_ssd_config_t * pSSDConfig, \
                                       uint8_t marginLevel, \
                                       flash_command_sequence_t pFlashCommandSequence)
{
#ifdef DEV_ERROR_DETECT
    DEV_ASSERT(pSSDConfig != NULL);
    DEV_ASSERT(pFlashCommandSequence != NULL);
#endif
    flash_drv_status_t ret;    
    CLEAR_FTFx_FSTAT_ERROR_BITS;
    FTFx_FCCOB0 = FTFx_VERIFY_ALL_BLOCK;
    FTFx_FCCOB1 = marginLevel;
    ret = pFlashCommandSequence(pSSDConfig);
    return (ret);
}
flash_drv_status_t FlashVerifyAllBlock ( const flash_ssd_config_t * pSSDConfig , uint8_t marginLevel , flash_command_sequence_t pFlashCommandSequence ) { #ifdef DEV_ERROR_DETECT DEV_ASSERT ( pSSDConfig != NULL ) ; DEV_ASSERT ( pFlashCommandSequence != NULL ) ; #endif flash_drv_status_t ret ; CLEAR_FTFx_FSTAT_ERROR_BITS ; FTFx_FCCOB0 = FTFx_VERIFY_ALL_BLOCK ; FTFx_FCCOB1 = marginLevel ; ret = pFlashCommandSequence ( pSSDConfig ) ; return ( ret ) ; }
FUNCTION
FUNCTION
/* Return code variable */ /* Clear RDCOLERR & ACCERR & FPVIOL flag in flash status register. Write 1 to clear */ /* Passing parameter to the command */ /* Calling flash command sequence function to execute the command */