291/* The option FF_FS_REENTRANT switches the re-entrancy (thread safe) of the FatFs
292/ module itself. Note that regardless of this option, file access to different
293/ volume is always re-entrant and volume control functions, f_mount(), f_mkfs()
294/ and f_fdisk() function, are always not re-entrant. Only file/directory access
295/ to the same volume is under control of this function.
296/
297/ 0: Disable re-entrancy. FF_FS_TIMEOUT and FF_SYNC_t have no effect.
298/ 1: Enable re-entrancy. Also user provided synchronization handlers,
299/ ff_req_grant(), ff_rel_grant(), ff_del_syncobj() and ff_cre_syncobj()
300/ function, must be added to the project. Samples are available in
301/ option/syscall.c.
302/
303/ The FF_FS_TIMEOUT defines timeout period in unit of time tick.
304/ The FF_SYNC_t defines O/S dependent sync object type. e.g. HANDLE, ID, OS_EVENT*,
305/ SemaphoreHandle_t and etc. A header file for O/S definitions needs to be
306/ included somewhere in the scope of ff.h. */
307
308/* #include <windows.h> // O/S definitions */
309
310#define FLUSH_ON_NEW_CLUSTER MBED_CONF_FAT_CHAN_FLUSH_ON_NEW_CLUSTER /* Sync the file on every new cluster */
311#define FLUSH_ON_NEW_SECTOR MBED_CONF_FAT_CHAN_FLUSH_ON_NEW_SECTOR /* Sync the file on every new sector */
312/* Only one of these two defines needs to be set to 1. If both are set to 0
313 the file is only sync when closed.
314 Clusters are group of sectors (eg: 8 sectors). Flushing on new cluster means
315 it would be less often than flushing on new sector. Sectors are generally
316 512 Bytes long. */
317
318
319/*--- End of configuration options ---*/
Important Information for this Arm website
This site uses cookies to store information on your computer.
By continuing to use our site, you consent to our cookies.
If you are not happy with the use of these cookies, please review our
Cookie Policy
to learn how they can be disabled.
By disabling cookies, some features of the site will not work.