update credits
[librepilot.git] / flight / pios / inc / pios_flash_eeprom.h
blobd31e4370b3747c08fe9035beae497beb1d99a88a
1 /**
2 ******************************************************************************
4 * @file pios_flash_eeprom.h
5 * @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2014.
6 * @brief API to interface to EEPROM chips using the common flash api
7 * --
8 * @see The GNU Public License (GPL) Version 3
10 *****************************************************************************/
11 #ifndef FLIGHT_PIOS_INC_PIOS_FLASH_EEPROM_H_
12 #define FLIGHT_PIOS_INC_PIOS_FLASH_EEPROM_H_
13 #include <pios_flash.h>
14 struct pios_flash_eeprom_cfg {
15 uint16_t page_len;
16 uint32_t total_size;
18 extern const struct pios_flash_driver pios_EEPROM_flash_driver;
19 int32_t PIOS_Flash_EEPROM_Init(uintptr_t *flash_id, struct pios_flash_eeprom_cfg *cfg, int32_t i2c_adapter, uint32_t i2c_addr);
21 #endif /* FLIGHT_PIOS_INC_PIOS_FLASH_EEPROM_H_ */