/* Configs the SDIO Command and send the command.  */
void SDIO_TxCommand(SDIO_CmdConfig_T *cmdConfig)
/* Configs the SDIO Command and send the command.  */
void SDIO_TxCommand(SDIO_CmdConfig_T *cmdConfig)
{
    uint32_t tempReg = 0;
    SDIO->ARG = cmdConfig->argument;
    tempReg = SDIO->CMD;
    tempReg &= ((uint32_t)0xFFFFF800);
    tempReg |= (uint32_t)(cmdConfig->cmdIndex) | (cmdConfig->response) << 6
               | (cmdConfig->wait) << 8 | (cmdConfig->CPSM) << 10;
    SDIO->CMD = tempReg;
}