[DFS] Fix the UFFS compiling issue.
This commit is contained in:
parent
5bc690336b
commit
67fff44fdd
@ -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
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -29,6 +29,27 @@
|
||||
#include "uffs/uffs_public.h"
|
||||
|
||||
/* the UFFS ECC mode opitons */
|
||||
#ifndef RT_UFFS_ECC_MODE
|
||||
#define RT_UFFS_ECC_MODE 1
|
||||
#endif
|
||||
|
||||
/*
|
||||
* RT_UFFS_ECC_MODE:
|
||||
* 0, Do not use ECC
|
||||
* 1, UFFS calculate the ECC
|
||||
* 2, Flash driver(or by hardware) calculate the ECC
|
||||
* 3, Hardware calculate the ECC and automatically write to spare.
|
||||
*/
|
||||
#if RT_UFFS_ECC_MODE == 0
|
||||
#define RT_CONFIG_UFFS_ECC_MODE UFFS_ECC_NONE
|
||||
#elif RT_UFFS_ECC_MODE == 1
|
||||
#define RT_CONFIG_UFFS_ECC_MODE UFFS_ECC_SOFT
|
||||
#elif RT_UFFS_ECC_MODE == 2
|
||||
#define RT_CONFIG_UFFS_ECC_MODE UFFS_ECC_HW
|
||||
#elif RT_UFFS_ECC_MODE == 3
|
||||
#define RT_CONFIG_UFFS_ECC_MODE UFFS_ECC_HW_AUTO
|
||||
#endif
|
||||
|
||||
/* #define RT_CONFIG_UFFS_ECC_MODE UFFS_ECC_HW_AUTO */
|
||||
/* #define RT_CONFIG_UFFS_ECC_MODE UFFS_ECC_SOFT */
|
||||
/* #define RT_CONFIG_UFFS_ECC_MODE UFFS_ECC_NONE */
|
||||
|
Loading…
x
Reference in New Issue
Block a user