uffs_config.h File Reference

basic configuration of uffs More...

Go to the source code of this file.

Defines

#define CHANGE_MODIFY_TIME
#define MAX_CACHED_BLOCK_INFO   10
#define MAX_DIRTY_PAGES_IN_A_BLOCK   32
#define MAX_OBJECT_HANDLE   10
#define MAX_PAGE_BUFFERS   33
#define MAX_PATH_LENGTH   128
#define MINIMUN_ERASED_BLOCK   2
#define TREE_NODE_USE_DOUBLE_LINK
#define USE_NATIVE_MEMORY_ALLOCATOR


Detailed Description

basic configuration of uffs

Author:
Ricky Zheng

Definition in file uffs_config.h.


Define Documentation

#define 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.

Definition at line 77 of file uffs_config.h.

#define MAX_CACHED_BLOCK_INFO   10

Definition at line 11 of file uffs_config.h.

Referenced by uffs_InitDevice().

#define MAX_DIRTY_PAGES_IN_A_BLOCK   32

Note:
this value should be between '2' and 'max pages per block'. the smaller the value the frequently the buffer will be flushed.

Definition at line 26 of file uffs_config.h.

Referenced by uffs_InitDevice().

#define MAX_OBJECT_HANDLE   10

maximum number of object handle

Definition at line 62 of file uffs_config.h.

#define MAX_PAGE_BUFFERS   33

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'

Definition at line 19 of file uffs_config.h.

Referenced by uffs_InitDevice().

#define MAX_PATH_LENGTH   128

Definition at line 30 of file uffs_config.h.

Referenced by cmdLs(), and uffs_RenameObject().

#define MINIMUN_ERASED_BLOCK   2

UFFS will not allow appending or creating new files when the erased block is lower then MINIMUN_ERASED_BLOCK.

Definition at line 69 of file uffs_config.h.

Referenced by uffs_WriteObject().

#define TREE_NODE_USE_DOUBLE_LINK

Note:
: enable double link tree node will speed up insert/delete operation,

Definition at line 56 of file uffs_config.h.

#define 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.

Definition at line 40 of file uffs_config.h.


Generated on Sat Mar 17 15:45:45 2007 for uffs-doc by  doxygen 1.5.0