summaryrefslogtreecommitdiff
path: root/components/dfs/KConfig
diff options
context:
space:
mode:
authorbernard <[email protected]>2017-10-25 16:23:02 +0800
committerbernard <[email protected]>2017-10-25 16:23:02 +0800
commit67fff44fdd3340a84dc6834023eeca4b9aaf3d2c (patch)
treee86be8c2002cba970c34a19528bfef5441629db3 /components/dfs/KConfig
parent5bc690336bfb2e8fe19c848a684e393af1b9f8a6 (diff)
[DFS] Fix the UFFS compiling issue.
Diffstat (limited to 'components/dfs/KConfig')
-rw-r--r--components/dfs/KConfig27
1 files changed, 27 insertions, 0 deletions
diff --git a/components/dfs/KConfig b/components/dfs/KConfig
index e833157dc1..97379b3e4e 100644
--- a/components/dfs/KConfig
+++ b/components/dfs/KConfig
@@ -109,6 +109,33 @@ if RT_USING_DFS
select RT_USING_MTD_NAND
default n
+ if RT_USING_DFS_UFFS
+ choice
+ prompt "UFFS ECC mode"
+ default RT_UFFS_ECC_MODE_1
+
+ config RT_UFFS_ECC_MODE_0
+ bool "0: Do not use ECC"
+
+ config RT_UFFS_ECC_MODE_1
+ bool "1: UFFS calculate the ECC"
+
+ config RT_UFFS_ECC_MODE_2
+ bool "2: Flash driver(or by hardware) calculate the ECC"
+
+ config RT_UFFS_ECC_MODE_3
+ bool "3: Hardware calculate the ECC and automatically write to spare."
+ endchoice
+
+ config RT_UFFS_ECC_MODE
+ int
+ default 0 if RT_UFFS_ECC_MODE_0
+ default 1 if RT_UFFS_ECC_MODE_1
+ default 2 if RT_UFFS_ECC_MODE_2
+ default 3 if RT_UFFS_ECC_MODE_3
+
+ endif
+
config RT_USING_DFS_NFS
bool "Using NFS v3 client file system"
depends on RT_USING_LWIP