Kconfig 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. menu "Device virtual file system"
  2. config RT_USING_DFS
  3. bool "Using device virtual file system"
  4. select RT_USING_MUTEX
  5. default y
  6. help
  7. The device file system is a light weight virtual file system.
  8. if RT_USING_DFS
  9. config DFS_USING_POSIX
  10. bool "Using posix-like functions, open/read/write/close"
  11. default y
  12. config DFS_USING_WORKDIR
  13. bool "Using working directory"
  14. default y
  15. config DFS_FILESYSTEMS_MAX
  16. int "The maximal number of mounted file system"
  17. default 4
  18. config DFS_FILESYSTEM_TYPES_MAX
  19. int "The maximal number of file system type"
  20. default 4
  21. config DFS_FD_MAX
  22. int "The maximal number of opened files"
  23. default 16
  24. config RT_USING_DFS_MNTTABLE
  25. bool "Using mount table for file system"
  26. default n
  27. help
  28. User can use mount table for automatically mount, for example:
  29. const struct dfs_mount_tbl mount_table[] =
  30. {
  31. {"flash0", "/", "elm", 0, 0},
  32. {0}
  33. };
  34. The mount_table must be terminated with NULL.
  35. config RT_USING_DFS_ELMFAT
  36. bool "Enable elm-chan fatfs"
  37. default n
  38. help
  39. FatFs is a generic FAT/exFAT file system module for small embedded systems.
  40. if RT_USING_DFS_ELMFAT
  41. menu "elm-chan's FatFs, Generic FAT Filesystem Module"
  42. config RT_DFS_ELM_CODE_PAGE
  43. int "OEM code page"
  44. default 437
  45. config RT_DFS_ELM_WORD_ACCESS
  46. bool "Using RT_DFS_ELM_WORD_ACCESS"
  47. default y
  48. choice
  49. prompt "Support long file name"
  50. default RT_DFS_ELM_USE_LFN_3
  51. config RT_DFS_ELM_USE_LFN_0
  52. bool "0: LFN disable"
  53. config RT_DFS_ELM_USE_LFN_1
  54. bool "1: LFN with static LFN working buffer"
  55. config RT_DFS_ELM_USE_LFN_2
  56. bool "2: LFN with dynamic LFN working buffer on the stack"
  57. config RT_DFS_ELM_USE_LFN_3
  58. bool "3: LFN with dynamic LFN working buffer on the heap"
  59. endchoice
  60. config RT_DFS_ELM_USE_LFN
  61. int
  62. default 0 if RT_DFS_ELM_USE_LFN_0
  63. default 1 if RT_DFS_ELM_USE_LFN_1
  64. default 2 if RT_DFS_ELM_USE_LFN_2
  65. default 3 if RT_DFS_ELM_USE_LFN_3
  66. choice
  67. prompt "Support unicode for long file name"
  68. default RT_DFS_ELM_LFN_UNICODE_0
  69. config RT_DFS_ELM_LFN_UNICODE_0
  70. bool "0: ANSI/OEM in current CP (TCHAR = char)"
  71. config RT_DFS_ELM_LFN_UNICODE_1
  72. bool "1: Unicode in UTF-16 (TCHAR = WCHAR)"
  73. config RT_DFS_ELM_LFN_UNICODE_2
  74. bool "2: Unicode in UTF-8 (TCHAR = char)"
  75. config RT_DFS_ELM_LFN_UNICODE_3
  76. bool "3: Unicode in UTF-32 (TCHAR = DWORD)"
  77. endchoice
  78. config RT_DFS_ELM_LFN_UNICODE
  79. int
  80. default 0 if RT_DFS_ELM_LFN_UNICODE_0
  81. default 1 if RT_DFS_ELM_LFN_UNICODE_1
  82. default 2 if RT_DFS_ELM_LFN_UNICODE_2
  83. default 3 if RT_DFS_ELM_LFN_UNICODE_3
  84. config RT_DFS_ELM_MAX_LFN
  85. int "Maximal size of file name length"
  86. range 12 255
  87. default 255
  88. config RT_DFS_ELM_DRIVES
  89. int "Number of volumes (logical drives) to be used."
  90. default 2
  91. config RT_DFS_ELM_MAX_SECTOR_SIZE
  92. int "Maximum sector size to be handled."
  93. default 512
  94. help
  95. If you use some spi nor flash for fatfs, please set this the erase sector size, for example 4096.
  96. config RT_DFS_ELM_USE_ERASE
  97. bool "Enable sector erase feature"
  98. default n
  99. config RT_DFS_ELM_REENTRANT
  100. bool "Enable the reentrancy (thread safe) of the FatFs module"
  101. default y
  102. config RT_DFS_ELM_MUTEX_TIMEOUT
  103. int "Timeout of thread-safe protection mutex"
  104. range 0 1000000
  105. default 3000
  106. depends on RT_DFS_ELM_REENTRANT
  107. endmenu
  108. endif
  109. config RT_USING_DFS_DEVFS
  110. bool "Using devfs for device objects"
  111. default n
  112. config RT_USING_DFS_ROMFS
  113. bool "Enable ReadOnly file system on flash"
  114. default n
  115. config RT_USING_DFS_RAMFS
  116. bool "Enable RAM file system"
  117. select RT_USING_MEMHEAP
  118. default n
  119. config RT_USING_DFS_NFS
  120. bool "Using NFS v3 client file system"
  121. depends on RT_USING_LWIP
  122. default n
  123. if RT_USING_DFS_NFS
  124. config RT_NFS_HOST_EXPORT
  125. string "NFSv3 host export"
  126. default "192.168.1.5:/"
  127. endif
  128. endif
  129. endmenu