The official µGFX library repository. http://ugfx.io

pffconf.h 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /*---------------------------------------------------------------------------/
  2. / Petit FatFs - Configuration file R0.03 (C)ChaN, 2014
  3. /---------------------------------------------------------------------------*/
  4. #ifndef _PFFCONF
  5. #define _PFFCONF 4004 /* Revision ID */
  6. /*---------------------------------------------------------------------------/
  7. / Function Configurations
  8. /---------------------------------------------------------------------------*/
  9. #define _USE_READ 1 /* Enable pf_read() function */
  10. #define _USE_DIR GFILE_NEED_FILELISTS /* Enable pf_opendir() and pf_readdir() function */
  11. #define _USE_LSEEK 1 /* Enable pf_lseek() function */
  12. #define _USE_WRITE 0 /* Enable pf_write() function */
  13. #define _FS_FAT12 0 /* Enable FAT12 */
  14. #define _FS_FAT16 1 /* Enable FAT16 */
  15. #define _FS_FAT32 1 /* Enable FAT32 */
  16. /*---------------------------------------------------------------------------/
  17. / Locale and Namespace Configurations
  18. /---------------------------------------------------------------------------*/
  19. #define _USE_LCC 0 /* Allow lower case characters for path name */
  20. #define _CODE_PAGE 437
  21. /* The _CODE_PAGE specifies the code page to be used on the target system.
  22. / SBCS code pages with _USE_LCC == 1 requiers a 128 byte of case conversion
  23. / table. This might occupy RAM on some platforms, e.g. avr-gcc.
  24. / When _USE_LCC == 0, _CODE_PAGE has no effect.
  25. /
  26. / 932 - Japanese Shift_JIS (DBCS, OEM, Windows)
  27. / 936 - Simplified Chinese GBK (DBCS, OEM, Windows)
  28. / 949 - Korean (DBCS, OEM, Windows)
  29. / 950 - Traditional Chinese Big5 (DBCS, OEM, Windows)
  30. / 1250 - Central Europe (Windows)
  31. / 1251 - Cyrillic (Windows)
  32. / 1252 - Latin 1 (Windows)
  33. / 1253 - Greek (Windows)
  34. / 1254 - Turkish (Windows)
  35. / 1255 - Hebrew (Windows)
  36. / 1256 - Arabic (Windows)
  37. / 1257 - Baltic (Windows)
  38. / 1258 - Vietnam (OEM, Windows)
  39. / 437 - U.S. (OEM)
  40. / 720 - Arabic (OEM)
  41. / 737 - Greek (OEM)
  42. / 775 - Baltic (OEM)
  43. / 850 - Multilingual Latin 1 (OEM)
  44. / 858 - Multilingual Latin 1 + Euro (OEM)
  45. / 852 - Latin 2 (OEM)
  46. / 855 - Cyrillic (OEM)
  47. / 866 - Russian (OEM)
  48. / 857 - Turkish (OEM)
  49. / 862 - Hebrew (OEM)
  50. / 874 - Thai (OEM, Windows)
  51. */
  52. /*---------------------------------------------------------------------------/
  53. / System Configurations
  54. /---------------------------------------------------------------------------*/
  55. #define _WORD_ACCESS 0
  56. /* The _WORD_ACCESS option is an only platform dependent option. It defines
  57. / which access method is used to the word data on the FAT volume.
  58. /
  59. / 0: Byte-by-byte access. Always compatible with all platforms.
  60. / 1: Word access. Do not choose this unless under both the following conditions.
  61. /
  62. / * Address misaligned memory access is always allowed for ALL instructions.
  63. / * Byte order on the memory is little-endian.
  64. /
  65. / If it is the case, _WORD_ACCESS can also be set to 1 to improve performance and
  66. / reduce code size. Following table shows an example of some processor types.
  67. /
  68. / ARM7TDMI 0 ColdFire 0 V850E 0
  69. / Cortex-M3 0 Z80 0/1 V850ES 0/1
  70. / Cortex-M0 0 RX600(LE) 0/1 TLCS-870 0/1
  71. / AVR 0/1 RX600(BE) 0 TLCS-900 0/1
  72. / AVR32 0 RL78 0 R32C 0
  73. / PIC18 0/1 SH-2 0 M16C 0/1
  74. / PIC24 0 H8S 0 MSP430 0
  75. / PIC32 0 H8/300H 0 x86 0/1
  76. */
  77. #endif /* _PFFCONF */