KConfig 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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. config RT_DFS_ELM_CODE_PAGE
  24. int "OEM code page"
  25. default 437
  26. config RT_DFS_ELM_WORD_ACCESS
  27. bool "Using RT_DFS_ELM_WORD_ACCESS"
  28. default y
  29. choice
  30. prompt "Support long file name"
  31. default RT_DFS_ELM_USE_LFN_0
  32. config RT_DFS_ELM_USE_LFN_0
  33. bool "0: LFN disable"
  34. config RT_DFS_ELM_USE_LFN_1
  35. bool "1: LFN with static LFN working buffer"
  36. config RT_DFS_ELM_USE_LFN_2
  37. bool "2: LFN with dynamic LFN working buffer on the stack"
  38. config RT_DFS_ELM_USE_LFN_3
  39. bool "3: LFN with dynamic LFN working buffer on the heap"
  40. endchoice
  41. config RT_DFS_ELM_USE_LFN
  42. int
  43. default 0 if RT_DFS_ELM_USE_LFN_0
  44. default 1 if RT_DFS_ELM_USE_LFN_1
  45. default 2 if RT_DFS_ELM_USE_LFN_2
  46. default 3 if RT_DFS_ELM_USE_LFN_3
  47. config RT_DFS_ELM_MAX_LFN
  48. int "Maximal size of file name length"
  49. range 12 255
  50. default 255
  51. config RT_DFS_ELM_DRIVES
  52. int "Number of volumes (logical drives) to be used."
  53. default 2
  54. config RT_DFS_ELM_MAX_SECTOR_SIZE
  55. int "Maximum sector size to be handled."
  56. default 512
  57. help
  58. if you use some spi nor flash for fatfs, please set this the erase sector size, for example 4096.
  59. config RT_DFS_ELM_USE_ERASE
  60. bool "Enable sector erase feature"
  61. default n
  62. config RT_DFS_ELM_REENTRANT
  63. bool "Enable the reentrancy (thread safe) of the FatFs module"
  64. default y
  65. endif
  66. config RT_USING_DFS_DEVFS
  67. bool "Using devfs for device objects"
  68. default y
  69. config RT_USING_DFS_NET
  70. bool "Enable BSD socket operated by file system API"
  71. select RT_USING_LWIP
  72. select RT_USING_POSIX
  73. default n
  74. help
  75. Let BSD socket operated by file system API, such as read/write and involveed in select/poll POSIX APIs.
  76. config RT_USING_DFS_NFS
  77. bool "Using NFS v3 client file system"
  78. depends on RT_USING_LWIP
  79. default n
  80. if RT_USING_DFS_NFS
  81. config RT_NFS_HOST_EXPORT
  82. string "NFSv3 host export"
  83. default "192.168.1.5:/"
  84. endif
  85. endif
  86. endmenu