diff options
author | inmarket <andrewh@inmarket.com.au> | 2015-03-11 00:16:09 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2015-03-11 00:16:09 +1000 |
commit | 84ae564bfc20337a1cee21c734c1cea5bb6a272c (patch) | |
tree | c40164e5ea422303dc93e10939a5d4b8289879d5 /src/gfile/gfile.h | |
parent | 865b7887d067254259e67d67c046497caa616d2c (diff) | |
download | uGFX-84ae564bfc20337a1cee21c734c1cea5bb6a272c.tar.gz uGFX-84ae564bfc20337a1cee21c734c1cea5bb6a272c.tar.bz2 uGFX-84ae564bfc20337a1cee21c734c1cea5bb6a272c.zip |
Support ChibiOS V3 changes to the FileStream API
Diffstat (limited to 'src/gfile/gfile.h')
-rw-r--r-- | src/gfile/gfile.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gfile/gfile.h b/src/gfile/gfile.h index cc1e9c4b..ad590fbc 100644 --- a/src/gfile/gfile.h +++ b/src/gfile/gfile.h @@ -307,20 +307,21 @@ extern "C" { #if (GFILE_NEED_CHIBIOSFS && GFX_USE_OS_CHIBIOS) || defined(__DOXYGEN__) /** - * @brief Open file from a ChibiOS BaseFileStream + * @brief Open file from a ChibiOS FileStream * - * @param[in] BaseFileStreamPtr The BaseFileStream to open as a GFILE + * @param[in] FileStreamPtr The BaseFileStream (ChibiOS V2) or FileStream (ChibiOS V3) to open as a GFILE * @param[in] mode The mode. * * @return Valid GFILE on success, 0 otherwise * * @note The modes are the same modes as in @p gfileOpen(). The - * open mode is NOT compared against the BaseFileStream capabilities. + * open mode is NOT compared against the FileStream capabilities. * @note Supported operations are: read, write, getpos, setpos, eof and getsize * * @api */ - GFILE * gfileOpenBaseFileStream(void *BaseFileStreamPtr, const char *mode); + GFILE * gfileOpenChibiOSFileStream(void *FileStreamPtr, const char *mode); + #define gfileOpenBaseFileStream(f,m) gfileOpenChibiOSFileStream(f,m) #endif #if GFILE_NEED_MEMFS || defined(__DOXYGEN__) |