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