From edfd941531726c508a978af9df645709fa539ed9 Mon Sep 17 00:00:00 2001 From: batt Date: Thu, 3 Jun 2010 15:37:03 +0000 Subject: [PATCH] Add support for 24XX08 eeproms, signed-off by Giovanni Casano. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3891 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/drv/eeprom.c | 6 ++++++ bertos/drv/eeprom.h | 1 + 2 files changed, 7 insertions(+) diff --git a/bertos/drv/eeprom.c b/bertos/drv/eeprom.c index 7240fcca..6149dbf3 100644 --- a/bertos/drv/eeprom.c +++ b/bertos/drv/eeprom.c @@ -70,6 +70,12 @@ */ static const EepromInfo mem_info[] = { + { + /* 24XX08 */ + .has_dev_addr = false, + .blk_size = 0x10, + .e2_size = 0x400, + }, { /* 24XX16 */ .has_dev_addr = false, diff --git a/bertos/drv/eeprom.h b/bertos/drv/eeprom.h index f1d7faf5..d2a09b17 100644 --- a/bertos/drv/eeprom.h +++ b/bertos/drv/eeprom.h @@ -52,6 +52,7 @@ */ typedef enum EepromType { + EEPROM_24XX08, EEPROM_24XX16, EEPROM_24XX256, EEPROM_24XX512, -- 2.25.1