I find the operation of flash memory is synchronous in AN13388. Can I change it to asynchronous?
The sample code in AN13388 is followed.
I don't want to wait for the MCRS[DONE].
Thank you.
tFLASH_STATUS FLASH_ExecSeq (register uint32_t mask)
{
register tFLASH_STATUS status;
FLASH->MCR |= mask; /* initiate sequence */
FLASH->MCR |= FLASH_MCR_EHV_MASK; /* enable high voltage */
while(!(FLASH->MCRS&FLASH_MCRS_DONE_MASK)); /* wait until MCRS[DONE]=1 */
FLASH->MCR &=~FLASH_MCR_EHV_MASK; /* disable high voltage */
status = FLASH_GetStatus(); /* read main interface status */
FLASH->MCR &=~mask; /* close sequence */
return status;
}