Subversion Repositories NaviCtrl

Rev

Rev 171 | Rev 360 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 171 Rev 324
Line 640... Line 640...
640
// Funtion:     SDC_Deinit(void);
640
// Funtion:     SDC_Deinit(void);
641
// 
641
// 
642
// Description: This function deinitialises the SDCard interface. 
642
// Description: This function deinitialises the SDCard interface. 
643
//                              
643
//                              
644
//
644
//
645
// Returnvalue: the function returns 0 if the initialisation was successfull otherwise the function returns an errorcode.
645
// Returnvalue: the function returns 0 if the deinitialisation was successfull otherwise the function returns an errorcode.
646
//________________________________________________________________________________________________________________________________________
646
//________________________________________________________________________________________________________________________________________
Line 647... Line 647...
647
 
647
 
648
SD_Result_t SDC_Deinit(void)
648
SD_Result_t SDC_Deinit(void)
649
{
649
{
Line 705... Line 705...
705
                {
705
                {
706
                        result = SD_ERROR_TIMEOUT;
706
                        result = SD_ERROR_TIMEOUT;
707
                        goto end;
707
                        goto end;
708
                }
708
                }
709
        }while((rsp & 0x11) != 0x01 );
709
        }while((rsp & 0x11) != 0x01 );
-
 
710
       
710
        // analyse data response token
711
        // analyse data response token
711
        switch(rsp & DATA_RESPONSE_MASK)
712
        switch(rsp & DATA_RESPONSE_MASK)
712
        {
713
        {
713
                case DATA_RESPONSE_OK:
714
                case DATA_RESPONSE_OK:
714
                        result = SD_SUCCESS;
715
                        result = SD_SUCCESS;