From: asterix Date: Wed, 11 Jan 2012 14:40:01 +0000 (+0000) Subject: Add definitions for 24C32, 24C64 and 24C128 eeproms. Use the right eeprom type. X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=ee28b0a27ccfcf160e6cde5632bb5966608bbc90;p=bertos.git Add definitions for 24C32, 24C64 and 24C128 eeproms. Use the right eeprom type. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@5228 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/drv/eeprom.c b/bertos/drv/eeprom.c index 26bd90fb..82fb9590 100644 --- a/bertos/drv/eeprom.c +++ b/bertos/drv/eeprom.c @@ -82,6 +82,24 @@ static const EepromInfo mem_info[] = .blk_size = 0x10, .e2_size = 0x800, }, + { + /* 24XX32 */ + .has_dev_addr = true, + .blk_size = 0x20, + .e2_size = 0x1000, + }, + { + /* 24XX64 */ + .has_dev_addr = true, + .blk_size = 0x20, + .e2_size = 0x2000, + }, + { + /* 24XX128 */ + .has_dev_addr = true, + .blk_size = 0x40, + .e2_size = 0x4000, + }, { /* 24XX256 */ .has_dev_addr = true, diff --git a/bertos/drv/eeprom.h b/bertos/drv/eeprom.h index d53c7976..accbba6f 100644 --- a/bertos/drv/eeprom.h +++ b/bertos/drv/eeprom.h @@ -72,6 +72,9 @@ typedef enum EepromType { EEPROM_24XX08, EEPROM_24XX16, + EEPROM_24XX32, + EEPROM_24XX64, + EEPROM_24XX128, EEPROM_24XX256, EEPROM_24XX512, EEPROM_24XX1024,