⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 flash.h

📁 完整的Bell实验室的嵌入式文件系统TFS
💻 H
字号:
/* flash.h:   Header file for use with 29F800B for 16 bit mode.*/#define FLASH_TIMEOUT       1000000#define FLASHFUNCSIZE       320#define FLASH_PROTECT_WINDOW_CLOSED 0#define ALL_SECTORS -1/* Manufacturer and device ids... */#define AMD29F800T  0x000122d6#define AMD29F800B  0x00012258#define SGS29F040   0x20e2#define AMD29F040   0x01a4#define AMD29F010   0x0120#define FLASHRAM    0x9999#define Fwrite(to,frm)      (*(ftype *)to = *(ftype *)frm)#define Is_Equal(p1,p2)     (*(ftype *)p1 == *(ftype *)p2)#define Is_Not_Equal(p1,p2) (*(ftype *)p1 != *(ftype *)p2)#define NotAligned(ptr)     ((long)ptr & 1)extern int FlashProtectionWindow;struct  flashdesc {    unsigned long   id;             /* manufacturer & device id */    char        *desc;              /* ascii string */};struct  sectorinfo {    long    size;                   /* size of sector */    int     snum;                   /* number of sector (amongst possibly */                                    /* several devices) */    int     protected;              /* if set, sector is protected by window */    unsigned char   *begin;         /* base address of sector */    unsigned char   *end;           /* end address of sector */};struct  flashinfo {    unsigned long   id;             /* manufacturer & device id */    unsigned char   *base;          /* base address of device */    unsigned char   *end;           /* end address of device */    int     sectorcnt;              /* number of sectors */    int     width;                  /* 1, 2, or 4 */    int     (*fltype)();    int     (*flerase)();    int     (*flwrite)();    int     (*flewrite)();    struct sectorinfo *sectors;     /* information per sector */};extern struct flashinfo FlashBank[];

⌨️ 快捷键说明

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