📄 flash.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -