/* check whether FMC bank0 is ready or not  */
fmc_state_enum fmc_bank0_ready_wait(uint32_t timeout)
/* check whether FMC bank0 is ready or not  */
fmc_state_enum fmc_bank0_ready_wait(uint32_t timeout)
{
    fmc_state_enum fmc_state = FMC_BUSY;
    do{
        fmc_state = fmc_bank0_state_get();
        timeout--;
    }while((FMC_BUSY == fmc_state) && (0x00U != timeout));
    if(FMC_BUSY == fmc_state){
        fmc_state = FMC_TOERR;
    }
    return fmc_state;
}