2krom写满了,都不知道怎么优化了

This commit is contained in:
2021-10-24 17:27:41 +08:00
parent b8bf07f4cf
commit 564e56fad6
27 changed files with 7967 additions and 6711 deletions
+38
View File
@@ -0,0 +1,38 @@
/*
* eeprom.h
*
* Created on: Oct 24, 2021
* Author: wuwenfeng
*/
#ifndef EEPROM_H_
#define EEPROM_H_
#include "main.h"
#define EEPROM_ADDRESS 0xa0
typedef struct eeprom_write_buff
{
struct eeprom_write_buff *next;
uint16_t add;
char date;
}eeprom_write_buff;
typedef struct eeprom_write_buff_info
{
eeprom_write_buff *buff;
eeprom_write_buff *head;
eeprom_write_buff *end;
uint32_t save_time;
uint8_t save_timeout;
uint8_t save_busy:1;
}eeprom_write_buff_info;
void EPPROM_SLOWWRITE_INIT();
void EEPROM_SLOWWRITE_SERVER();
void EEPROM_READ_BATY(uint16_t IN_DEVICE_ADD,char *DATAS,uint16_t LONG);
void EEPROM_WRITE_BATY(uint16_t IN_DEVICE_ADD,char *DATAS,uint16_t LONG);
#endif /* EEPROM_H_ */