faluserdirective.h

来自「Nand Flash Translation Layer 用于nandflas」· C头文件 代码 · 共 56 行

H
56
字号




#ifndef __FALUSERDIRECTIVE__H__
#define __FALUSERDIRECTIVE__H__




//*********** PARTIOTION **************///

#define UD_START_PARTITION 0

/*indicates the block physical number of the Nand 
flash where start the partition dedicated to data 
storage  */


#define UD_END_PARTITION   4095

/*indicates the block physical number of the Nand 
flash where end the partition dedicated to data 
storage  */


#define HIDE_BLOCK_NUMBER	20

/*= indicates the block physical numbers of the 
Nand flash that the Translation Module reserves 
to allocate the Leaves of the tree structure 
and possible bad blocks that can be present in device*/


#define MAXIMUM_REWRITING	10
/*is the number maximum writing possible before GC*/

#define SPACE_TO_FREE 40//40
#define VB_SIZE				1
/* indicates block physical numbers of the Nand 
flash that compose one Virtual Block */


#define GARBAGE_THRESHOLD	99
/* is the threshold in percentage over 
which the Translation Module executes a Garbage 
Collector that prunes best tree */


#define MINIMAL_RAM			0
/*indicates through a Boolean variable if the 
Translation Module must reduce at minimum the 
space occupied in RAM of the data structure */

#endif //__FALUSERDIRECTIVE__H__

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?