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