mcu/drv/fsl_flash_driver_c90tfs.c
/*FUNCTION**********************************************************************
 *
 * Function Name : FlashEraseResume
 * Description   : Resume a previous suspended operation of Flash erase sector command
 * This function must be located in RAM memory or different Flash blocks which are targeted
 * for writing to avoid RWW error.
 *
 * Implements    : FlashEraseResume_Activity
 *END**************************************************************************/
FUNCTION

Function Name : FlashEraseResume
Description   : Resume a previous suspended operation of Flash erase sector command
This function must be located in RAM memory or different Flash blocks which are targeted
for writing to avoid RWW error.

Implements    : FlashEraseResume_Activity
END
FUNCTION Function Name : FlashEraseResume Description : Resume a previous suspended operation of Flash erase sector command This function must be located in RAM memory or different Flash blocks which are targeted for writing to avoid RWW error . Implements : FlashEraseResume_Activity END
void FlashEraseResume(void)
{
    uint16_t i = 0U;    
    if ((FTFx_FCNFG & FTFx_FCNFG_ERSSUSP_MASK) == FTFx_FCNFG_ERSSUSP_MASK)
    {
        FTFx_FSTAT |= FTFx_FSTAT_CCIF_MASK;
        while ((0U == (FTFx_FSTAT & FTFx_FSTAT_CCIF_MASK)) || (i < RESUME_WAIT_CNT))
        {
            i++;
        }
    }
}
void FlashEraseResume ( void ) { uint16_t i = 0U ; if ( ( FTFx_FCNFG & FTFx_FCNFG_ERSSUSP_MASK ) == FTFx_FCNFG_ERSSUSP_MASK ) { FTFx_FSTAT |= FTFx_FSTAT_CCIF_MASK ; while ( ( 0U == ( FTFx_FSTAT & FTFx_FSTAT_CCIF_MASK ) ) || ( i < RESUME_WAIT_CNT ) ) { i ++ ; } } }
FUNCTION
FUNCTION
/* Counter variable */ /* Check ERSSUSP bit of the flash configuration register */ /* Clear CCIF to launch command */ /* Wait for completion of this command */