OpenCores
URL https://opencores.org/ocsvn/ion/ion/trunk

Subversion Repositories ion

[/] [ion/] [trunk/] [src/] [sdboot/] [sdboot.c] - Diff between revs 246 and 248

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 246 Rev 248
Line 15... Line 15...
void die (              /* Stop with dying message */
void die (              /* Stop with dying message */
        FRESULT rc      /* FatFs return value */
        FRESULT rc      /* FatFs return value */
)
)
{
{
    switch(rc){
    switch(rc){
    case FR_NOT_READY:      printf("Disk absent.");
    case FR_NOT_READY:      printf("Disk absent."); break;
    case FR_DISK_ERR:       printf("Low level disk i/o error.");
    case FR_DISK_ERR:       printf("Low level disk i/o error."); break;
    case FR_NO_FILESYSTEM:  printf("No valid filesystem in drive.");
    case FR_NO_FILESYSTEM:  printf("No valid filesystem in drive."); break;
    case FR_NO_FILE:        printf("File not found.");
    case FR_NO_FILE:        printf("File not found."); break;
    default:                printf("Failed with rc=%u.", rc);
    default:                printf("Failed with rc=%u.", rc); break;
    }
    }
    printf("\n");
    printf("\n");
        for (;;) ;
        for (;;) ;
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.