From 94304b11e7220f060dbc345de5fa1952d0465016 Mon Sep 17 00:00:00 2001 From: Brett Weiland Date: Tue, 27 Sep 2022 16:14:28 -0500 Subject: working on serial syncronization for programming eeprom --- src/br24t_eeprom_driver.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/br24t_eeprom_driver.h') diff --git a/src/br24t_eeprom_driver.h b/src/br24t_eeprom_driver.h index a289f86..0e57786 100644 --- a/src/br24t_eeprom_driver.h +++ b/src/br24t_eeprom_driver.h @@ -4,7 +4,7 @@ #include #include "i2c.h" -#define EEPROM_I2C_ADDR 0x50 //fix to represent custom address setting +#define EEPROM_I2C_ADDR 0x50 #ifdef FLASH_EEPROM @@ -13,7 +13,8 @@ void flash_eeprom(); typedef uint16_t EEPROM_ADDR; -#define EEPROM_READBYTE(addr) i2c_read_reg_addr16(EEPROM_I2C_ADDR, addr); +#define EEPROM_READBYTE(addr) i2c_read_reg_addr16(EEPROM_I2C_ADDR, addr) +#define EEPROM_WRITEBYTE(addr, data) i2c_write_reg_addr16(EEPROM_I2C_ADDR, addr, data); #endif -- cgit v1.2.3