In FLASH_DRV_EraseSuspend function in while loop count of 0x40 is used
while (((FTFx_FSTAT & FTFx_FSTAT_CCIF_MASK) == 0U) && (count > 0U))
and
In FLASH_DRV_EraseResume function, in while loop count of 0x20 is used
while ((0U == (FTFx_FSTAT & FTFx_FSTAT_CCIF_MASK)) && (i < RESUME_WAIT_CNT))
what is the significance of these check? if clock speed changes what will be the impact of these checks.
Solved! Go to Solution.
Hi Pradeep,
This makes sure that functions are not stuck there if for some reasons the CCIF flag is not set.
I don't know why these constants were selected though.
BR, Daniel
Hi Pradeep,
This makes sure that functions are not stuck there if for some reasons the CCIF flag is not set.
I don't know why these constants were selected though.
BR, Daniel