int CMD13(void)//SEND_STATUS { int response0; rSDICARG=RCA<<16; // CMD13(RCA,stuff bit) rSDICCON=(0x1<<9)|(0x1<<8)|0x4d; // sht_resp, wait_resp, start, CMD13 //-- Check end of CMD13 if(!Chk_CMDend(13, 1)) return 0; //Uart_Printf("rSDIRSP0=0x%x\n", rSDIRSP0); if(rSDIRSP0&0x100) //Uart_Printf("Ready for Data\n"); // else //Uart_Printf("Not Ready\n"); response0=rSDIRSP0; response0 &= 0x3c00; response0 = response0 >> 9; //Uart_Printf("Current Status=%d\n", response0); if(response0==6) Test_SDI(); rSDICSTA=0xa00; // Clear cmd_end(with rsp) return 1; }
void Main(void) { Port_Init(); //IO端口初始化 Isr_Init(); //中断初始化 Uart_Init(0,115200);//串口初始化 Uart_Select(0); Uart_Printf("\n\nDM2410 Experiment System (ADS) Ver1.10\n") ;//打印系统信息 Test_SDI(); }