avrwristwatch/src/br24t_eeprom_driver.h
Brett Weiland 7b006d6f20 init
2022-09-09 18:33:15 -05:00

22 lines
317 B
C

#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