Rev 146 | Rev 171 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 146 | Rev 149 | ||
---|---|---|---|
Line 606... | Line 606... | ||
606 | } |
606 | } |
Line 607... | Line 607... | ||
607 | 607 | ||
608 | switch(SDCardInfo.Version) |
608 | switch(SDCardInfo.Version) |
609 | { |
609 | { |
610 | case VER_1X: |
610 | case VER_1X: |
611 | UART1_PutString(" SD-CARD V1.x"); |
611 | UART1_PutString(" SD-CARD V1.x"); |
612 | break; |
612 | break; |
613 | case VER_20: |
613 | case VER_20: |
614 | UART1_PutString(" SD-CARD V2.0 or later"); |
614 | UART1_PutString(" SD-CARD V2.0 or later"); |
615 | default: |
615 | default: |
616 | break; |
616 | break; |
617 | } |
617 | } |
618 | u16 mb_size = (u16)(SDCardInfo.Capacity/(1024L*1024L)); |
618 | u16 mb_size = (u16)(SDCardInfo.Capacity/(1024L*1024L)); |
619 | sprintf(text, "\r\n Capacity = %i MB", mb_size); |
619 | sprintf(text, "\r\n Capacity = %i MB", mb_size); |
Line 620... | Line 620... | ||
620 | UART1_PutString(text); |
620 | UART1_PutString(text); |
621 | 621 | ||
622 | SDC_PrintCID((u8 *)&SDCardInfo.CID); |
622 | SDC_PrintCID((u8 *)&SDCardInfo.CID); |