updated chan_fatfs
Fork of chan_fatfs by
Revision 8:1f9748c6b865, committed 2012-12-28
- Comitter:
- tylerjw
- Date:
- Fri Dec 28 17:12:02 2012 +0000
- Parent:
- 7:f84cf96bb008
- Commit message:
- Added f_size() macro, not tested!!!
Changed in this revision
ff.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/ff.h Wed Dec 12 16:44:58 2012 +0000 +++ b/ff.h Fri Dec 28 17:12:02 2012 +0000 @@ -445,6 +445,8 @@ char* f_gets (char*, int, FIL*); /* Get a string from the file */ #define f_eof(fp) (((fp)->fptr == (fp)->fsize) ? 1 : 0) #define f_error(fp) (((fp)->flag & FA__ERROR) ? 1 : 0) +#define f_tell(fp) ((fp)->fptr) // NOT TESTED!!! +#define f_size(fp) ((fp)->fsize) #ifndef EOF #define EOF -1 #endif