Kconfig 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. if RT_USING_DFS_V1
  2. config DFS_FILESYSTEMS_MAX
  3. int "The maximal number of mounted file system"
  4. default 4
  5. config DFS_FILESYSTEM_TYPES_MAX
  6. int "The maximal number of file system type"
  7. default 4
  8. config RT_USING_DFS_ELMFAT
  9. bool "Enable elm-chan fatfs"
  10. default n
  11. help
  12. FatFs is a generic FAT/exFAT file system module for small embedded systems.
  13. if RT_USING_DFS_ELMFAT
  14. menu "elm-chan's FatFs, Generic FAT Filesystem Module"
  15. config RT_DFS_ELM_CODE_PAGE
  16. int "OEM code page"
  17. default 437
  18. config RT_DFS_ELM_WORD_ACCESS
  19. bool "Using RT_DFS_ELM_WORD_ACCESS"
  20. default y
  21. choice
  22. prompt "Support long file name"
  23. default RT_DFS_ELM_USE_LFN_3
  24. config RT_DFS_ELM_USE_LFN_0
  25. bool "0: LFN disable"
  26. config RT_DFS_ELM_USE_LFN_1
  27. bool "1: LFN with static LFN working buffer"
  28. config RT_DFS_ELM_USE_LFN_2
  29. bool "2: LFN with dynamic LFN working buffer on the stack"
  30. config RT_DFS_ELM_USE_LFN_3
  31. bool "3: LFN with dynamic LFN working buffer on the heap"
  32. endchoice
  33. config RT_DFS_ELM_USE_LFN
  34. int
  35. default 0 if RT_DFS_ELM_USE_LFN_0
  36. default 1 if RT_DFS_ELM_USE_LFN_1
  37. default 2 if RT_DFS_ELM_USE_LFN_2
  38. default 3 if RT_DFS_ELM_USE_LFN_3
  39. choice
  40. prompt "Support unicode for long file name"
  41. default RT_DFS_ELM_LFN_UNICODE_0
  42. config RT_DFS_ELM_LFN_UNICODE_0
  43. bool "0: ANSI/OEM in current CP (TCHAR = char)"
  44. config RT_DFS_ELM_LFN_UNICODE_1
  45. bool "1: Unicode in UTF-16 (TCHAR = WCHAR)"
  46. config RT_DFS_ELM_LFN_UNICODE_2
  47. bool "2: Unicode in UTF-8 (TCHAR = char)"
  48. config RT_DFS_ELM_LFN_UNICODE_3
  49. bool "3: Unicode in UTF-32 (TCHAR = DWORD)"
  50. endchoice
  51. config RT_DFS_ELM_LFN_UNICODE
  52. int
  53. default 0 if RT_DFS_ELM_LFN_UNICODE_0
  54. default 1 if RT_DFS_ELM_LFN_UNICODE_1
  55. default 2 if RT_DFS_ELM_LFN_UNICODE_2
  56. default 3 if RT_DFS_ELM_LFN_UNICODE_3
  57. config RT_DFS_ELM_MAX_LFN
  58. int "Maximal size of file name length"
  59. range 12 255
  60. default 255
  61. config RT_DFS_ELM_DRIVES
  62. int "Number of volumes (logical drives) to be used."
  63. default 2
  64. config RT_DFS_ELM_MAX_SECTOR_SIZE
  65. int "Maximum sector size to be handled."
  66. default 512
  67. help
  68. If you use some spi nor flash for fatfs, please set this the erase sector size, for example 4096.
  69. config RT_DFS_ELM_USE_ERASE
  70. bool "Enable sector erase feature"
  71. default n
  72. config RT_DFS_ELM_REENTRANT
  73. bool "Enable the reentrancy (thread safe) of the FatFs module"
  74. default y
  75. config RT_DFS_ELM_MUTEX_TIMEOUT
  76. int "Timeout of thread-safe protection mutex"
  77. range 0 1000000
  78. default 3000
  79. depends on RT_DFS_ELM_REENTRANT
  80. endmenu
  81. endif
  82. config RT_USING_DFS_DEVFS
  83. bool "Using devfs for device objects"
  84. default y
  85. config RT_USING_DFS_ROMFS
  86. bool "Enable ReadOnly file system on flash"
  87. default n
  88. config RT_USING_DFS_CROMFS
  89. bool "Enable ReadOnly compressed file system on flash"
  90. default n
  91. # select PKG_USING_ZLIB
  92. config RT_USING_DFS_RAMFS
  93. bool "Enable RAM file system"
  94. select RT_USING_MEMHEAP
  95. default n
  96. config RT_USING_DFS_TMPFS
  97. bool "Enable TMP file system"
  98. default n
  99. config RT_USING_DFS_NFS
  100. bool "Using NFS v3 client file system"
  101. depends on RT_USING_LWIP
  102. default n
  103. if RT_USING_DFS_NFS
  104. config RT_NFS_HOST_EXPORT
  105. string "NFSv3 host export"
  106. default "192.168.1.5:/"
  107. endif
  108. endif