/* Configures the SDIO Dataaccording to the specified parameters in the dataConfig.  */
void SDIO_ConfigData(SDIO_DataConfig_T *dataConfig)
/* Configures the SDIO Dataaccording to the specified parameters in the dataConfig.  */
void SDIO_ConfigData(SDIO_DataConfig_T *dataConfig)
{
    uint32_t tmpreg = 0;
    SDIO->DATATIME = dataConfig->dataTimeOut;
    SDIO->DATALEN = dataConfig->dataLength;
    tmpreg = SDIO->DCTRL;
    tmpreg &= 0xFFFFFF08;
    tmpreg |= (uint32_t)dataConfig->dataBlockSize | dataConfig->transferDir
              | dataConfig->transferMode | dataConfig->DPSM;
    SDIO->DCTRL = tmpreg;
}