From 0e0f2439bec88d0fad6f76b80f44612ccbb3c12a Mon Sep 17 00:00:00 2001 From: bsx Date: Fri, 16 Dec 2011 22:09:09 +0100 Subject: [PATCH] create proper header for filesystem util functions --- firmware/applications/final/nickname.c | 1 + firmware/filesystem/util.h | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 firmware/filesystem/util.h diff --git a/firmware/applications/final/nickname.c b/firmware/applications/final/nickname.c index 9f62162..a14fab6 100644 --- a/firmware/applications/final/nickname.c +++ b/firmware/applications/final/nickname.c @@ -12,6 +12,7 @@ #include "filesystem/ff.h" #include "filesystem/select.h" #include "filesystem/execute.h" +#include "filesystem/util.h" #include diff --git a/firmware/filesystem/util.h b/firmware/filesystem/util.h new file mode 100644 index 0000000..c522395 --- /dev/null +++ b/firmware/filesystem/util.h @@ -0,0 +1,10 @@ +#ifndef _UTIL_H +#define _UTIL_H 1 + +void fsInit(); +void fsReInit(); +int readFile(char * filename, char * data, int len); +int readTextFile(char * filename, char * data, int len); +int writeFile(char * filename, char * data, int len); + +#endif /* _UTIL_H */