Browse Source

[DFS] Add RT_USING_DFS_MNTTABLE option in Kconfig

Bernard Xiong 6 năm trước cách đây
mục cha
commit
e71763b068
1 tập tin đã thay đổi với 12 bổ sung0 xóa
  1. 12 0
      components/dfs/Kconfig

+ 12 - 0
components/dfs/Kconfig

@@ -26,6 +26,18 @@ if RT_USING_DFS
         int "The maximal number of opened files"
         default 16
 
+    config RT_USING_DFS_MNTTABLE
+        bool "Using mount table for file system"
+        default n
+        help
+            User can use mount table for automatically mount, for example:
+                const struct dfs_mount_tbl mount_table[] =
+                {
+                    {"flash0", "/", "elm", 0, 0},
+                    {0}
+                };
+            The mount_table must be terminated with NULL.
+
     config RT_USING_DFS_ELMFAT
         bool "Enable elm-chan fatfs"
         default n