summaryrefslogtreecommitdiff
path: root/src/br24t_eeprom_driver.h
diff options
context:
space:
mode:
authorBrett Weiland <brett_weiland@bpcsapce.com>2022-09-27 16:14:28 -0500
committerBrett Weiland <brett_weiland@bpcsapce.com>2022-09-27 16:14:28 -0500
commit94304b11e7220f060dbc345de5fa1952d0465016 (patch)
treef16e84c54b27f67e089ded1175fbf8b561896b42 /src/br24t_eeprom_driver.h
parent7b006d6f2032ac46074d693ae59a971bee327ace (diff)
working on serial syncronization for programming eeprom
Diffstat (limited to 'src/br24t_eeprom_driver.h')
-rw-r--r--src/br24t_eeprom_driver.h5
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