Add definitions for 24C32, 24C64 and 24C128 eeproms. Use the right eeprom type.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 11 Jan 2012 14:40:01 +0000 (14:40 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 11 Jan 2012 14:40:01 +0000 (14:40 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@5228 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/drv/eeprom.c
bertos/drv/eeprom.h

index 26bd90fb3d63a46c8985b483d51cbf495001eaae..82fb9590f6126524ce8d63a76290df2ab1f706b9 100644 (file)
@@ -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,
index d53c7976290bb8968e3e5aba054505f467526e26..accbba6f83eb88365f4b5446b2e8ab1b7e512b8e 100644 (file)
@@ -72,6 +72,9 @@ typedef enum EepromType
 {
        EEPROM_24XX08,
        EEPROM_24XX16,
+       EEPROM_24XX32,
+       EEPROM_24XX64,
+       EEPROM_24XX128,
        EEPROM_24XX256,
        EEPROM_24XX512,
        EEPROM_24XX1024,