am29lv160db.h

来自「NXP LPC系列AMR7的开发程序源码(LCD」· C头文件 代码 · 共 31 行

H
31
字号
/*
 * AM29LV160DB flash chip.
 *
 * The AM29LV160DB is organized into 35 individual sectors as follows:
 *
 *	 0-0    16Kb sectors	0x00000000-0x00003fff
 *	 1-2     8Kb sectors	0x00004000-0x00007fff
 *	 3-3    32Kb sectors	0x00008000-0x0000ffff
 *	 4-34   62Kb sectors	0x00010000-0x001fffff
 *
 */

/* Describe the sector layout of the current flash chip */
static struct{
  unsigned int type_num;      /*  Number of sector types */
  struct{
    unsigned int size;        /*  Size of the current sector type */
    unsigned int num;         /*  Number of sector of the current type */
  }type[4];
  unsigned int erasebits[2];  /*  Each bit indicates whether the current
                                  sector has been erase or not */  
}flash_sector_descriptor = {4, 
                            {{1024*16,  1}, 
                             {1024* 8,  2}, 
                             {1024*32,  1}, 
                             {1024*64, 31}
                            },
                            {0,0}
                           };

⌨️ 快捷键说明

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