河北水利局项目
This commit is contained in:
19
filedata/filedatawr.c
Normal file
19
filedata/filedatawr.c
Normal file
@@ -0,0 +1,19 @@
|
||||
#include "file.h"
|
||||
#include "filedata.h"
|
||||
|
||||
extern bool I2C_eeprom_write_buf(u16 startAddr, u8 * buf, u16 length);
|
||||
extern bool I2C_eeprom_read_buf(u16 addr, u8 * buf, u16 length);
|
||||
extern void waterdata_printf(struct waterdata_struct * waterdata);
|
||||
|
||||
void file_curtime_write(uint8_t * buf,uint8_t len)
|
||||
{
|
||||
I2C_eeprom_write_buf(IIC_CUR_TIME_ADDR,buf,len);
|
||||
}
|
||||
|
||||
void file_curtime_read(uint8_t * buf,uint8_t len)
|
||||
{
|
||||
I2C_eeprom_read_buf(IIC_CUR_TIME_ADDR,buf,len);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user