?? flash.h
字號(hào):
/************************************************************************************
* Copyright (c) 2004,西安銘朗電子科技有限責(zé)任公司
* All rights reserved.
*
* 文件名稱(chēng): flash.h
* 文件標(biāo)識(shí): none
* 適用器件: w29c020
*
* 摘 要: 本文件是字庫(kù)(GB2312)讀寫(xiě)子程序頭文件;使用外部22.1184MHz晶振.
*
* 當(dāng)前版本:1.0
* 作 者:盧 陽(yáng)
* 完成日期:2004年11月14日
*
* 歷史版本:0.9
* 原作者 : 李林利
* 完成日期:2004年1月1日
*************************************************************************************/
/************************************************************************************
// 常量及全局變量定義
*************************************************************************************/
#define bool unsigned char
/************************************************************************************/
// 函數(shù)外部引用聲明
void flash_write_protect(bool flag);
void flash_chip_erase(void);
void flash_write_byte(unsigned long address, unsigned char dat);
void flash_write_byte_save(unsigned long address, unsigned char dat);
void flash_write_string(unsigned long address, unsigned char *dat_sta, unsigned char count);
void flash_write_page(unsigned long address, unsigned char *dat);
void flash_write_block(unsigned long address, unsigned char *dat);
unsigned char flash_read_byte(unsigned long address);
void flash_read_page(unsigned long address, unsigned char *buf);
/************************************************************************************/
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -