Subversion Repositories NaviCtrl

Rev

Rev 362 | Rev 365 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 362 Rev 364
Line 283... Line 283...
283
        }
283
        }
284
        // Read two bytes CRC16-Data checksum
284
        // Read two bytes CRC16-Data checksum
285
        crc16 = SSC_GetChar(); // highbyte first        
285
        crc16 = SSC_GetChar(); // highbyte first        
286
        crc16 = (crc16<<8)|SSC_GetChar(); // lowbyte last
286
        crc16 = (crc16<<8)|SSC_GetChar(); // lowbyte last
287
/*      if(crc16 != CRC16(Buffer, len)) result = SD_ERROR_CRC_DATA;
287
/*      if(crc16 != CRC16(Buffer, len)) result = SD_ERROR_CRC_DATA;
-
 
288
        else */
288
        else */result = SD_SUCCESS;
289
        result = SD_SUCCESS;
Line 289... Line 290...
289
       
290
       
290
        end:
291
        end:
291
        if(result != SD_SUCCESS)
292
        if(result != SD_SUCCESS)
292
        {
293
        {
Line 629... Line 630...
629
//________________________________________________________________________________________________________________________________________
630
//________________________________________________________________________________________________________________________________________
Line 630... Line 631...
630
 
631
 
631
SD_Result_t SDC_Deinit(void)
632
SD_Result_t SDC_Deinit(void)
632
{
633
{
633
        UART1_PutString("\r\n SDC deinit...");
634
        UART1_PutString("\r\n SDC deinit...");
Line 634... Line 635...
634
        SSC_Deinit();
635
        // SSC_Deinit();
635
 
636
 
636
        SDCardInfo.Valid = 0;
637
        SDCardInfo.Valid = 0;