|
1234567891011121314151617181920212223242526272829303132333435 |
- #ifndef _FLASH_H_
- #define _FLASH_H_
-
- #include "stm32f10x.h"
-
-
-
- /** ע:ÿдǰȲҪ洢λڵҳǺEEPROMIJ֮ͬFlash߱Ĺܣ
- ֻȲдʱֻ֧ҳ */
- //flash洢ʱ16λʽ洢,
- #define PC_NUM_ADDR 0x08030000 //ݴ洢ʼַ 0X08030000-0X08030023
-
- #define STORE_DATA_NUM 10 //еݸ
- extern u16 StoreBuffer[STORE_DATA_NUM];//Ҫдflashе
- extern u8 Save_Buffer[STORE_DATA_NUM*2];//Ҫͨڶ
-
- typedef unsigned char BOOL;
- typedef unsigned char BYTE;
- typedef unsigned short WORD;
- typedef unsigned long DWORD;
-
- //void Startwritedata(DWORD addr); //ڿԵַaddrʼġҳд
- //void Write_Complete(void); //ijҳд
- //void SavePara(DWORD addr,WORD data); //ַָaddrдݣֽڣ
- //WORD GetPara(DWORD addr); //ȡַָaddrݣֽڣ
- //void Savestr_to_flash(DWORD addr,WORD *str,WORD len);//һݴ浽ԣaddrΪʼַ
- //void Readstr_of_flash(DWORD addr,WORD *str,WORD len);//ӣaddrΪʼַȡһַ
-
- void SavePara_to_flash(void); //豸ڵ
- void Readpara_from_flash(void); //ȡϴζϵʱ豸еһЩ
-
- #endif
-
-
-
|