📄 uffs_config.h
字号:
/** * \file uffs_config.h * \brief basic configuration of uffs * \author Ricky Zheng */#ifndef _UFFS_CONFIG_H_#define _UFFS_CONFIG_H_/** \def MAX_CACHED_BLOCK_INFO */#define MAX_CACHED_BLOCK_INFO 10/**
* \def MAX_PAGE_BUFFERS
* \note the bigger value will bring better read/write performance.
* but few writing performance will be improved when this
* value is become larger than 'max pages per block'
*/#define MAX_PAGE_BUFFERS 33/**
* \def MAX_DIRTY_PAGES_IN_A_BLOCK
* \note this value should be between '2' and 'max pages per block'.
* the smaller the value the frequently the buffer will be flushed.
*/
#define MAX_DIRTY_PAGES_IN_A_BLOCK 32
/** \def MAX_PATH_LENGTH */#define MAX_PATH_LENGTH 128
/**
* \def USE_NATIVE_MEMORY_ALLOCATOR
* \note the native memory allocator should only be used for
* tracking memory leak bugs or tracking memory consuming.
* In your final product, you either disable the native memory
* allocator or use the system heap as the memory pool for the
* native memory allocator.
*/
#define USE_NATIVE_MEMORY_ALLOCATOR
/**
* \def FLUSH_BUF_AFTER_WRITE
* \note UFFS will write all data directly into flash in
* each 'write' call if you enable this option.
* (which means lesser data lost when power failue but lower writing performance)
* we recomment not open this define for normal applications.
*/
//#define FLUSH_BUF_AFTER_WRITE
/**
* \def TREE_NODE_USE_DOUBLE_LINK
* \note: enable double link tree node will speed up insert/delete operation,
*/
#define TREE_NODE_USE_DOUBLE_LINK
/** * \def MAX_OBJECT_HANDLE * maximum number of object handle */#define MAX_OBJECT_HANDLE 10/**
* \def MINIMUN_ERASED_BLOCK
* UFFS will not allow appending or creating new files when the erased block
* is lower then MINIMUN_ERASED_BLOCK.
*/#define MINIMUN_ERASED_BLOCK 2
/**
* \def CHANGE_MODIFY_TIME
* If defined, closing a file which is opened for writing/appending will
* update the file's modify time as well. Disable this feature will save a
* lot of writing activities if you frequently open files for write and close it.
*/#define CHANGE_MODIFY_TIME#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -