flash.h
来自「使用avr--cc2420模块程序,需要原理图的联系 QQ:120304948」· C头文件 代码 · 共 32 行
H
32 行
#ifndef __FLASH_H__
#define __FLASH_H__
void storage_init();
void flash_set_switch(unsigned long);
/* chip erase */
void ChipErase();
/* Sector ERASE */
void SectorErase(unsigned char *pAdd);
/* read data from memory */
void ReadData(unsigned char *pBuf, unsigned char *pAdd);
/* write data into memory */
void WriteData(unsigned char *pBuf, unsigned char *pAdd);
/* set write enable latch */
void SetWriteEnable();
/* Reset write enable lath */
void ResetWriteEnable();
/* read state register */
unsigned char ReadRDSR(void);
/* Write Status Register */
void WriteWRSR(unsigned char BP0, unsigned char BP1);
/* is flash get ready */
void GetReady();
void flash_init_pin();
void inital_flash(void);
void ReadRDID(void);
unsigned char ReadByte(void);
void WriteByte(unsigned char ch);
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?