LEAVE_FF is only used within FatFs.
 
Symbols
loading...
Files
loading...

LEAVE_FF macro

Syntax

#define LEAVE_FF(fs, res) { unlock_fs(fs, res); return res; }

Arguments

fs

res

References

LocationText
ff.c:464
#define LEAVE_FF(fs, res) { unlock_fs(fs, res); return res; }
ff.c:467
#define LEAVE_FF(fs, res) return res
ff.c:455
#define ABORT(fs, res) { fp->err = (BYTE)(res); LEAVE_FF(fs, res); }
ff.c:582
#define INIT_NAMBUF(fs) { lfn = ff_memalloc((_MAX_LFN+1)*2); if (!lfn) LEAVE_FF(fs, FR_NOT_ENOUGH_CORE); (fs)->lfnbuf = lfn; }
ff.c:3298
LEAVE_FF(fs, res);
ff.c:3501
LEAVE_FF(fs, res);
ff.c:3528
if (res != FR_OK || (res = (FRESULT)fp->err) != FR_OK) LEAVE_FF(fs, res); /* Check validity */
ff.c:3529
if (!(fp->flag & FA_READ)) LEAVE_FF(fs, FR_DENIED); /* Check access mode */
ff.c:3600
LEAVE_FF(fs, FR_OK);
ff.c:3627
if (res != FR_OK || (res = (FRESULT)fp->err) != FR_OK) LEAVE_FF(fs, res); /* Check validity */
ff.c:3628
if (!(fp->flag & FA_WRITE)) LEAVE_FF(fs, FR_DENIED); /* Check access mode */
ff.c:3722
LEAVE_FF(fs, FR_OK);
ff.c:3750
if (disk_write(fs->drv, fp->buf, fp->sect, 1) != RES_OK) LEAVE_FF(fs, FR_DISK_ERR);
ff.c:3801
LEAVE_FF(fs, res);
ff.c:4021
if (res != FR_OK) LEAVE_FF(fs, res);
ff.c:4152
LEAVE_FF(fs, res);
ff.c:4222
LEAVE_FF(fs, res);
ff.c:4291
LEAVE_FF(fs, res);
ff.c:4378
LEAVE_FF(dj.obj.fs, res);
ff.c:4465
LEAVE_FF(fs, res);
ff.c:4485
if (res != FR_OK || (res = (FRESULT)fp->err) != FR_OK) LEAVE_FF(fs, res);
ff.c:4486
if (!(fp->flag & FA_WRITE)) LEAVE_FF(fs, FR_DENIED); /* Check access mode */
ff.c:4515
LEAVE_FF(fs, res);
ff.c:4610
LEAVE_FF(fs, res);
ff.c:4707
LEAVE_FF(fs, res);
ff.c:4810
LEAVE_FF(fs, res);