Add SD Card support

This commit is contained in:
iabdalkader 2014-04-12 18:58:55 +02:00
parent 140ecd59ea
commit dbee032c6a
2 changed files with 4 additions and 1 deletions

Binary file not shown.

View File

@ -24,7 +24,7 @@
int errno;
static FATFS fatfs0;
static FATFS fatfs0, fatfs1;
void __fatal_error(const char *msg) {
printf("%s\n", msg);
@ -265,6 +265,9 @@ int main(void)
}
}
/* prepare workarea for sdcard fs */
f_mount(&fatfs1, "1:", 0);
/* Try to mount the flash fs */
bool reset_filesystem = false;
FRESULT res = f_mount(&fatfs0, "0:", 1);