Kconfig 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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_WORKDIR
  10. bool "Using working directory"
  11. default y
  12. config DFS_FILESYSTEMS_MAX
  13. int "The maximal number of mounted file system"
  14. default 4 if RT_USING_DFS_NFS
  15. default 2
  16. config DFS_FILESYSTEM_TYPES_MAX
  17. int "The maximal number of file system type"
  18. default 4 if RT_USING_DFS_NFS
  19. default 2
  20. config DFS_FD_MAX
  21. int "The maximal number of opened files"
  22. default 16
  23. config RT_USING_DFS_MNTTABLE
  24. bool "Using mount table for file system"
  25. default n
  26. help
  27. User can use mount table for automatically mount, for example:
  28. const struct dfs_mount_tbl mount_table[] =
  29. {
  30. {"flash0", "/", "elm", 0, 0},
  31. {0}
  32. };
  33. The mount_table must be terminated with NULL.
  34. config RT_USING_DFS_ELMFAT
  35. bool "Enable elm-chan fatfs"
  36. default n
  37. help
  38. FatFs is a generic FAT/exFAT file system module for small embedded systems.
  39. if RT_USING_DFS_ELMFAT
  40. menu "elm-chan's FatFs, Generic FAT Filesystem Module"
  41. config RT_DFS_ELM_CODE_PAGE
  42. int "OEM code page"
  43. default 437
  44. config RT_DFS_ELM_WORD_ACCESS
  45. bool "Using RT_DFS_ELM_WORD_ACCESS"
  46. default y
  47. choice
  48. prompt "Support long file name"
  49. default RT_DFS_ELM_USE_LFN_3
  50. config RT_DFS_ELM_USE_LFN_0
  51. bool "0: LFN disable"
  52. config RT_DFS_ELM_USE_LFN_1
  53. bool "1: LFN with static LFN working buffer"
  54. config RT_DFS_ELM_USE_LFN_2
  55. bool "2: LFN with dynamic LFN working buffer on the stack"
  56. config RT_DFS_ELM_USE_LFN_3
  57. bool "3: LFN with dynamic LFN working buffer on the heap"
  58. endchoice
  59. config RT_DFS_ELM_USE_LFN
  60. int
  61. default 0 if RT_DFS_ELM_USE_LFN_0
  62. default 1 if RT_DFS_ELM_USE_LFN_1
  63. default 2 if RT_DFS_ELM_USE_LFN_2
  64. default 3 if RT_DFS_ELM_USE_LFN_3
  65. config RT_DFS_ELM_MAX_LFN
  66. int "Maximal size of file name length"
  67. range 12 255
  68. default 255
  69. config RT_DFS_ELM_DRIVES
  70. int "Number of volumes (logical drives) to be used."
  71. default 2
  72. config RT_DFS_ELM_MAX_SECTOR_SIZE
  73. int "Maximum sector size to be handled."
  74. default 512
  75. help
  76. if you use some spi nor flash for fatfs, please set this the erase sector size, for example 4096.
  77. config RT_DFS_ELM_USE_ERASE
  78. bool "Enable sector erase feature"
  79. default n
  80. config RT_DFS_ELM_REENTRANT
  81. bool "Enable the reentrancy (thread safe) of the FatFs module"
  82. default y
  83. endmenu
  84. endif
  85. config RT_USING_DFS_DEVFS
  86. bool "Using devfs for device objects"
  87. default y
  88. config RT_USING_DFS_ROMFS
  89. bool "Enable ReadOnly file system on flash"
  90. default n
  91. config RT_USING_DFS_RAMFS
  92. bool "Enable RAM file system"
  93. select RT_USING_MEMHEAP
  94. default n
  95. config RT_USING_DFS_NFS
  96. bool "Using NFS v3 client file system"
  97. depends on RT_USING_LWIP
  98. default n
  99. if RT_USING_DFS_NFS
  100. config RT_NFS_HOST_EXPORT
  101. string "NFSv3 host export"
  102. default "192.168.1.5:/"
  103. endif
  104. endif
  105. endmenu