Add ReInit to be used after msc mode

This commit is contained in:
Stefan `Sec` Zehl 2011-08-01 23:51:41 +02:00
parent 4ed86ed5bc
commit 60e31bbfaf
1 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,4 @@
#include <sysdefs.h>
#include <ff.h> #include <ff.h>
FATFS FatFs; /* File system object for logical drive */ FATFS FatFs; /* File system object for logical drive */
@ -23,6 +24,11 @@ void fsInit(){
f_mount(0, &FatFs); f_mount(0, &FatFs);
}; };
void fsReInit(){
f_mount(0, NULL);
f_mount(0, &FatFs);
};
int readFile(char * filename, char * data, int len){ int readFile(char * filename, char * data, int len){
FIL file; FIL file;
UINT readbytes; UINT readbytes;