diff options
author | Brett Weiland <brett_weiland@bpcspace.com> | 2022-09-09 18:33:15 -0500 |
---|---|---|
committer | Brett Weiland <brett_weiland@bpcspace.com> | 2022-09-09 18:33:15 -0500 |
commit | 7b006d6f2032ac46074d693ae59a971bee327ace (patch) | |
tree | 60963598d99001e0850e34d6271db8bd65e04fa4 /src/br24t_eeprom_driver.h |
init
Diffstat (limited to 'src/br24t_eeprom_driver.h')
-rw-r--r-- | src/br24t_eeprom_driver.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/br24t_eeprom_driver.h b/src/br24t_eeprom_driver.h new file mode 100644 index 0000000..a289f86 --- /dev/null +++ b/src/br24t_eeprom_driver.h @@ -0,0 +1,21 @@ +#ifndef __BR24_INC +#define __BR24_INC + +#include <stdint.h> +#include "i2c.h" + +#define EEPROM_I2C_ADDR 0x50 //fix to represent custom address setting + + +#ifdef FLASH_EEPROM +void flash_eeprom(); +#endif + +typedef uint16_t EEPROM_ADDR; + +#define EEPROM_READBYTE(addr) i2c_read_reg_addr16(EEPROM_I2C_ADDR, addr); + + +#endif + + |