📄 flash_49bv.h
字号:
//*-----------------------------------------------------------------------------//* ATMEL Microcontroller Software Support - ROUSSET -//*-----------------------------------------------------------------------------//* The software is delivered "AS IS" without warranty or condition of any//* kind, either express, implied or statutory. This includes without//* limitation any warranty or condition with respect to merchantability or//* fitness for any particular purpose, or against the infringements of//* intellectual property rights of others.//*-----------------------------------------------------------------------------//* File Name : flash_49BV.h//* Object : FLASH definition file ://* AT49BV1604/AT49BV1604T//* AT49BV1614/AT49BV1604T//*//* 1.0 17/04/99 JPP : Creation//*-----------------------------------------------------------------------------#ifndef flash_49BV_h#define flash_49BV_h#define TRUE 1#define FALSE 0typedef long flash_word ;/* Error message */#define ERASED_SECTOR 0xFF#define UNERASED_SECTOR 0x00#define FLASH_SECTOR_ERROR -1#define KILO_BYTES 1024/* Defines organization structure */typedef struct OrgDef{ int sector_number ; int sector_size ;} OrgDef ;/* Defines organization structure */typedef struct SectorDef{ int sector ;} SectorDef ;/* Defines Flash device definition structure */typedef struct FlashDef{ char name[200]; short type; short manufacturer; long mask; long add; long load_add; int sector_nb; OrgDef org[128]; SectorDef erase_sector[128];}FlashDef;/* Function Prototyping File */extern void at91_init_flash_table ( FlashDef *FlashTable);extern unsigned int at91_check_erase_sector ( FlashDef *FlashTable,flash_word sector_id);extern void at91_set_erase_sector ( FlashDef *FlashTable,flash_word sector_id);extern int at91_get_flash_sector ( FlashDef *FlashTable,flash_word load_addr, flash_word base_addr);extern flash_word at91_get_flash_sector_size ( FlashDef *FlashTable, int sector);extern void printFlashInfo ( char *message,int * len,FlashDef *FlashTable);#endif /* flash_49BV_h */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -