272/* The option FF_FS_REENTRANT switches the re-entrancy (thread safe) of the FatFs
273/ module itself. Note that regardless of this option, file access to different
274/ volume is always re-entrant and volume control functions, f_mount(), f_mkfs()
275/ and f_fdisk() function, are always not re-entrant. Only file/directory access
276/ to the same volume is under control of this function.
278/ 0: Disable re-entrancy. FF_FS_TIMEOUT and FF_SYNC_t have no effect.
279/ 1: Enable re-entrancy. Also user provided synchronization handlers,
280/ ff_req_grant(), ff_rel_grant(), ff_del_syncobj() and ff_cre_syncobj()
281/ function, must be added to the project. Samples are available in
284/ The FF_FS_TIMEOUT defines timeout period in unit of time tick.
285/ The FF_SYNC_t defines O/S dependent sync object type. e.g. HANDLE, ID, OS_EVENT*,
286/ SemaphoreHandle_t and etc. A header file for O/S definitions needs to be
287/ included somewhere in the scope of ff.h. */
289/* #include <windows.h> // O/S definitions */
291#define FLUSH_ON_NEW_CLUSTER MBED_CONF_FAT_CHAN_FLUSH_ON_NEW_CLUSTER /* Sync the file on every new cluster */
292#define FLUSH_ON_NEW_SECTOR MBED_CONF_FAT_CHAN_FLUSH_ON_NEW_SECTOR /* Sync the file on every new sector */
293/* Only one of these two defines needs to be set to 1. If both are set to 0
294 the file is only sync when closed.
295 Clusters are group of sectors (eg: 8 sectors). Flushing on new cluster means
296 it would be less often than flushing on new sector. Sectors are generally
297 512 Bytes long. */
300/*--- End of configuration options ---*/
Important Information for this Arm website
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
to learn how they can be disabled.
By disabling cookies, some features of the site will not work.