summaryrefslogtreecommitdiff
path: root/src/br24t_eeprom_driver.h
blob: a289f862922b5c0cfe4e2fb06c83cca2a6205d3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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