/* This function waits until the SDIO DMA data transfer is finished.  */
void SD_ProcessDMAIRQ(void)
/* This function waits until the SDIO DMA data transfer is finished.  */
void SD_ProcessDMAIRQ(void)
{
  if(DMA2->ISR & DMA2_FLAG_TC4)
  {
    DMAEndOfTransfer = 0x01;
    DMA_ClearFlag(DMA2_FLAG_TC4 | DMA2_FLAG_TE4 | DMA2_FLAG_HT4 | DMA2_FLAG_GL4);
  }
}