Move kfile interface to the io/ directory.
[bertos.git] / bertos / fs / fat.h
index 0dd1529f752568e36df92fedbae4a0a07cbd0853..26d0d1c08a037eeb1ad425f5bb04003dd6346f09 100644 (file)
@@ -48,7 +48,7 @@
 #ifndef FS_FAT_H
 #define FS_FAT_H
 
-#include <kern/kfile.h>
+#include <io/kfile.h>
 #include "fatfs/ff.h"
 
 typedef struct FatFile
@@ -68,9 +68,15 @@ INLINE FatFile * FATFILE_CAST(KFile *fd)
 
 /**
  * Initialize \a file and open \a file_path for reading.
+ *
+ * \a mode is a OR combination of various flags, you can use \a FA_READ for
+ * read access or \a FA_WRITE for write access.
+ * The function returns \a FR_OK if success, other values (defined in ff.h) in case
+ * of failure.
+ *
  * \param file A pointer to a FatFile structure.
  * \param file_path The file path on the filesystem.
- * \param mode Open mode for the file.
+ * \param mode Open mode for the file, which can be OR'ed together
  * \sa ff.h for return code meaning and \a mode flags.
  */
 FRESULT fatfile_open(FatFile *file, const char *file_path, BYTE mode);