예제 #1
0
static BOOL SDSendCommand(UINT8 idx, UINT32 arg) {

	// sanity checking on parameters
	if(idx >= TOTAL_COMMANDS) {
		OALMSG(1, (TEXT("SDBootMDD: %s: command index is invalid\r\n"),TEXT(__FUNCTION__)));
		return FALSE;
	}

	if( cmdTable[idx].isAppCmd && !SDSendCommand( APP_CMD, HIGH_SHIFT(g_cardRCA) ) ) {
		return FALSE;
	} 

	return PDD_SDSendCommand(
		cmdTable[idx].index,
		arg,
		cmdTable[idx].resp,
		cmdTable[idx].type,
		cmdTable[idx].isRead);
}
예제 #2
0
파일: sdmdd.c 프로젝트: blueskycoco/d5
static BOOL SDSendCommand(UINT8 idx, UINT32 arg) 
{

    // sanity checking on parameters
    if(idx >= TOTAL_COMMANDS) {
//        KITLOutputDebugString("SDBootMDD: SDSendCommand: command index is invalid\r\n");
        return FALSE;
    }

    if( cmdTable[idx].isAppCmd && !SDSendCommand( APP_CMD, HIGH_SHIFT(g_cardRCA) ) ) {
        return FALSE;
    } 

    return PDD_SDSendCommand(
        cmdTable[idx].index,
        arg,
        cmdTable[idx].resp,
        cmdTable[idx].type,
        cmdTable[idx].isRead);
}