314,7 → 314,7 |
{ |
u8 pn[6]; |
u16 temp1, temp2; |
|
/* |
sprintf(text, "\r\n Manufacturer ID: %i\r\n", pCID[0]); |
UART1_PutString(text); |
memcpy(pn, &pCID[1], 2); |
333,6 → 333,7 |
sprintf(text,"%02X", pCID[9+temp1]); |
UART1_PutString(text); |
} |
*/ |
UART1_PutString("\r\n"); |
temp1 = pCID[14] & 0x0F; // month |
temp2 = ((pCID[14]>>4)|(pCID[13]<<4)) + 2000; // year |
533,7 → 534,7 |
// here is the right place to inrease the SPI baud rate to maximum |
|
SSC_Speed(speed); |
if(print) { sprintf(text,"\r\n Setting SPI speed to %d ", SPI_Speed);UART1_PutString(text); } |
if(print) { sprintf(text,"\r\n Setting SD-Card speed to %d ", SPI_Speed);UART1_PutString(text); } |
|
SSC_Enable(); // set SD_CS high |
|