/** * MCI interrupt handler. Forwards the event to the MCI driver handlers. */ void HSMCI_Handler(void) { uint32_t i; for (i = 0; i < BOARD_NUM_MCI; i ++) { MCID_Handler(&mciDrv[i]); } }
/** * Check if the command is finished */ uint32_t MCID_IsCmdCompleted(sMcid *pMcid) { sSdmmcCommand *pCmd = pMcid->pCmd; if (pMcid->bPolling) { MCID_Handler(pMcid); } if (pMcid->bState == MCID_CMD) { return 0; } if (pCmd) { return 0; } return 1; }