KConfig 4.3 KB

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