ff_config.h 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*--------------------------------------------------------------------------/
  2. / FatFs - FAT file system module include file R0.06 (C)ChaN, 2008
  3. /---------------------------------------------------------------------------/
  4. / FatFs module is an experimenal project to implement FAT file system to
  5. / cheap microcontrollers. This is a free software and is opened for education,
  6. / research and development under license policy of following trems.
  7. /
  8. / Copyright (C) 2008, ChaN, all right reserved.
  9. /
  10. / * The FatFs module is a free software and there is no warranty.
  11. / * You can use, modify and/or redistribute it for personal, non-profit or
  12. / commercial use without any restriction under your responsibility.
  13. / * Redistributions of source code must retain the above copyright notice.
  14. /
  15. /---------------------------------------------------------------------------*/
  16. #define _MCU_ENDIAN 2
  17. /* The _MCU_ENDIAN defines which access method is used to the FAT structure.
  18. / 1: Enable word access.
  19. / 2: Disable word access and use byte-by-byte access instead.
  20. / When the architectural byte order of the MCU is big-endian and/or address
  21. / miss-aligned access results incorrect behavior, the _MCU_ENDIAN must be set to 2.
  22. / If it is not the case, it can also be set to 1 for good code efficiency. */
  23. #define _FS_READONLY 0
  24. /* Setting _FS_READONLY to 1 defines read only configuration. This removes
  25. / writing functions, f_write, f_sync, f_unlink, f_mkdir, f_chmod, f_rename,
  26. / f_truncate and useless f_getfree. */
  27. #define _FS_MINIMIZE 0
  28. /* The _FS_MINIMIZE option defines minimization level to remove some functions.
  29. / 0: Full function.
  30. / 1: f_stat, f_getfree, f_unlink, f_mkdir, f_chmod, f_truncate and f_rename are removed.
  31. / 2: f_opendir and f_readdir are removed in addition to level 1.
  32. / 3: f_lseek is removed in addition to level 2. */
  33. #define _USE_STRFUNC 0
  34. /* To enable string functions, set _USE_STRFUNC to 1 or 2. */
  35. #define _USE_MKFS 0
  36. /* When _USE_MKFS is set to 1 and _FS_READONLY is set to 0, f_mkfs function is
  37. / enabled. */
  38. #define _DRIVES 1
  39. /* Number of logical drives to be used. This affects the size of internal table. */
  40. #define _MULTI_PARTITION 0
  41. /* When _MULTI_PARTITION is set to 0, each logical drive is bound to same
  42. / physical drive number and can mount only 1st primaly partition. When it is
  43. / set to 1, each logical drive can mount a partition listed in Drives[]. */
  44. #define _USE_FSINFO 0
  45. /* To enable FSInfo support on FAT32 volume, set _USE_FSINFO to 1. */
  46. #define _USE_SJIS 0
  47. /* When _USE_SJIS is set to 1, Shift-JIS code transparency is enabled, otherwise
  48. / only US-ASCII(7bit) code can be accepted as file/directory name. */
  49. #define _USE_NTFLAG 0
  50. /* When _USE_NTFLAG is set to 1, upper/lower case of the file name is preserved.
  51. / Note that the files are always accessed in case insensitive. */
  52. #define _FAT32 1
  53. /* To enable FAT32 support in addition of FAT12/16, set _FAT32 to 1. For tinyfat*/