/* 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 & SD_SDIO_DMA_FLAG_TC)
  {
    DMAEndOfTransfer = 0x01;
    DMA_ClearFlag(SD_SDIO_DMA_FLAG_TC | SD_SDIO_DMA_FLAG_TE | SD_SDIO_DMA_FLAG_HT | SD_SDIO_DMA_FLAG_GL);
  }
}