diff options
Diffstat (limited to 'src/br24t_eeprom_driver.h')
-rw-r--r-- | src/br24t_eeprom_driver.h | 5 |
1 files changed, 3 insertions, 2 deletions
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 <stdint.h> #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 |