projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Release version 2.4.2.
[bertos.git]
/
bertos
/
fs
/
fat.h
diff --git
a/bertos/fs/fat.h
b/bertos/fs/fat.h
index 34b20bbac1a7e2725fd562264984857384509ae0..3e7dc787a1a8da95b1d4ee127640ab4fde373947 100644
(file)
--- a/
bertos/fs/fat.h
+++ b/
bertos/fs/fat.h
@@
-32,6
+32,9
@@
*
* \brief FatFS: kfile interface for FatFS module by ChaN.
*
*
* \brief FatFS: kfile interface for FatFS module by ChaN.
*
+ * This driver needs some low level hardware access functions. An example implementation
+ * is provided in sd.h.
+ *
* \version $Id$
*
* \author Luca Ottaviano <lottaviano@develer.com>
* \version $Id$
*
* \author Luca Ottaviano <lottaviano@develer.com>
@@
-65,9
+68,15
@@
INLINE FatFile * FATFILE_CAST(KFile *fd)
/**
* Initialize \a file and open \a file_path for reading.
/**
* 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 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);
* \sa ff.h for return code meaning and \a mode flags.
*/
FRESULT fatfile_open(FatFile *file, const char *file_path, BYTE mode);