mcu/drv/fsl_flash_driver_c90tfs.c
/*FUNCTION**********************************************************************
 *
 * Function Name : FlashEraseSuspend
 * Description   : Suspend a current 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 the RWW error.
 *
 * Implements    : FlashEraseSuspend_Activity
 *END**************************************************************************/
FUNCTION

Function Name : FlashEraseSuspend
Description   : Suspend a current 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 the RWW error.

Implements    : FlashEraseSuspend_Activity
END
FUNCTION Function Name : FlashEraseSuspend Description : Suspend a current 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 the RWW error . Implements : FlashEraseSuspend_Activity END
void FlashEraseSuspend(void)
{
    if ((FTFx_FSTAT & FTFx_FSTAT_CCIF_MASK) == 0U)
    {
        FTFx_FCNFG |= FTFx_FCNFG_ERSSUSP_MASK;
        while ((FTFx_FSTAT & FTFx_FSTAT_CCIF_MASK) == 0U)
        {
        }
    }
}
void FlashEraseSuspend ( void ) { if ( ( FTFx_FSTAT & FTFx_FSTAT_CCIF_MASK ) == 0U ) { FTFx_FCNFG |= FTFx_FCNFG_ERSSUSP_MASK ; while ( ( FTFx_FSTAT & FTFx_FSTAT_CCIF_MASK ) == 0U ) { } } }
FUNCTION
FUNCTION
/* Wait till CCIF bit is set */