Kconfig 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. menu "Device virtual file system"
  2. config RT_USING_DFS
  3. bool "Using device virtual file system"
  4. default y
  5. help
  6. The device file system is a light weight virtual file system.
  7. if RT_USING_DFS
  8. config DFS_USING_WORKDIR
  9. bool "Using working directory"
  10. default y
  11. config DFS_FILESYSTEMS_MAX
  12. int "The maximal number of mounted file system"
  13. default 2
  14. config DFS_FILESYSTEM_TYPES_MAX
  15. int "The maximal number of file system type"
  16. default 2
  17. config DFS_FD_MAX
  18. int "The maximal number of opened files"
  19. default 4
  20. config RT_USING_DFS_ELMFAT
  21. bool "Enable elm-chan fatfs"
  22. default y
  23. help
  24. FatFs is a generic FAT/exFAT file system module for small embedded systems.
  25. if RT_USING_DFS_ELMFAT
  26. menu "elm-chan's FatFs, Generic FAT Filesystem Module"
  27. config RT_DFS_ELM_CODE_PAGE
  28. int "OEM code page"
  29. default 437
  30. config RT_DFS_ELM_WORD_ACCESS
  31. bool "Using RT_DFS_ELM_WORD_ACCESS"
  32. default y
  33. choice
  34. prompt "Support long file name"
  35. default RT_DFS_ELM_USE_LFN_0
  36. config RT_DFS_ELM_USE_LFN_0
  37. bool "0: LFN disable"
  38. config RT_DFS_ELM_USE_LFN_1
  39. bool "1: LFN with static LFN working buffer"
  40. config RT_DFS_ELM_USE_LFN_2
  41. bool "2: LFN with dynamic LFN working buffer on the stack"
  42. config RT_DFS_ELM_USE_LFN_3
  43. bool "3: LFN with dynamic LFN working buffer on the heap"
  44. endchoice
  45. config RT_DFS_ELM_USE_LFN
  46. int
  47. default 0 if RT_DFS_ELM_USE_LFN_0
  48. default 1 if RT_DFS_ELM_USE_LFN_1
  49. default 2 if RT_DFS_ELM_USE_LFN_2
  50. default 3 if RT_DFS_ELM_USE_LFN_3
  51. config RT_DFS_ELM_MAX_LFN
  52. int "Maximal size of file name length"
  53. range 12 255
  54. default 255
  55. config RT_DFS_ELM_DRIVES
  56. int "Number of volumes (logical drives) to be used."
  57. default 2
  58. config RT_DFS_ELM_MAX_SECTOR_SIZE
  59. int "Maximum sector size to be handled."
  60. default 512
  61. help
  62. if you use some spi nor flash for fatfs, please set this the erase sector size, for example 4096.
  63. config RT_DFS_ELM_USE_ERASE
  64. bool "Enable sector erase feature"
  65. default n
  66. config RT_DFS_ELM_REENTRANT
  67. bool "Enable the reentrancy (thread safe) of the FatFs module"
  68. default y
  69. endmenu
  70. endif
  71. config RT_USING_DFS_DEVFS
  72. bool "Using devfs for device objects"
  73. default y
  74. config RT_USING_DFS_NET
  75. bool "Enable BSD socket operated by file system API"
  76. select RT_USING_LWIP
  77. select RT_USING_POSIX
  78. default n
  79. help
  80. Let BSD socket operated by file system API, such as read/write and involveed in select/poll POSIX APIs.
  81. if RT_USING_DFS_NET
  82. config HAVE_SYS_SELECT_H
  83. bool "Toolchains/libc have provided sys/select.h"
  84. default n
  85. help
  86. Toolchains/libc have provided sys/select.h file, therefore, disable the sys/select.h in RT-Thread.
  87. config HAVE_SYS_SOCKET_H
  88. bool "Toolchains/libc have provided sys/socket.h"
  89. default n
  90. help
  91. Toolchains/libc have provided sys/socket.h file, therefore, disable the sys/socket.h in RT-Thread.
  92. endif
  93. config RT_USING_DFS_ROMFS
  94. bool "Enable ReadOnly file system on flash"
  95. default n
  96. config RT_USING_DFS_RAMFS
  97. bool "Enable RAM file system"
  98. default n
  99. config RT_USING_DFS_UFFS
  100. bool "Enable UFFS file system: Ultra-low-cost Flash File System"
  101. select RT_USING_MTD_NAND
  102. default n
  103. if RT_USING_DFS_UFFS
  104. choice
  105. prompt "UFFS ECC mode"
  106. default RT_UFFS_ECC_MODE_1
  107. config RT_UFFS_ECC_MODE_0
  108. bool "0: Do not use ECC"
  109. config RT_UFFS_ECC_MODE_1
  110. bool "1: UFFS calculate the ECC"
  111. config RT_UFFS_ECC_MODE_2
  112. bool "2: Flash driver(or by hardware) calculate the ECC"
  113. config RT_UFFS_ECC_MODE_3
  114. bool "3: Hardware calculate the ECC and automatically write to spare."
  115. endchoice
  116. config RT_UFFS_ECC_MODE
  117. int
  118. default 0 if RT_UFFS_ECC_MODE_0
  119. default 1 if RT_UFFS_ECC_MODE_1
  120. default 2 if RT_UFFS_ECC_MODE_2
  121. default 3 if RT_UFFS_ECC_MODE_3
  122. endif
  123. config RT_USING_DFS_NFS
  124. bool "Using NFS v3 client file system"
  125. depends on RT_USING_LWIP
  126. default n
  127. if RT_USING_DFS_NFS
  128. config RT_NFS_HOST_EXPORT
  129. string "NFSv3 host export"
  130. default "192.168.1.5:/"
  131. endif
  132. endif
  133. endmenu