//----- 4. Send the command to the MMC controller -----
switch(respType)
{
case NoResponse: // Response is not required, but make sure the command was sent
DEBUGMSG (SDHC_RESPONSE_ZONE,(TEXT("SendCommand no response required")));
vm_pSDIReg->SDICCON = START_COMMAND | COMMAND_START_BIT | (Cmd & MAX_CMD_VALUE);
你提到的这几个地方加:
1.
sdhcslot.cpp里BusRequestHandler( PSD_BUS_REQUEST pRequest)函数有
case ResponseR7:
wRegCommand |= CMD_RESPONSE_R1_R5_R6_R7;
break;
2.
sdiocontrollerbase.cpp里SendCommand(UINT16 Cmd, UINT32 Arg, UINT16 respType, BOOL bDataTransfer)函数里在case ResponseR6:下面加case ResponseR7:
case ResponseR1: // Short response required
case ResponseR1b:
case ResponseR3:
case ResponseR4:
case ResponseR5:
case ResponseR6: case ResponseR7: