Add support for 24XX1024 memories, fix some warnings.
[bertos.git] / bertos / drv / eeprom.h
index 15c565535e343bd77d6d3bc78ef0146fb4e29b94..995919ae184c422ebc77e051fff43a1571c5ebae 100644 (file)
  * All Rights Reserved.
  * -->
  *
- * \brief Driver for the 24xx16 and 24xx256 I2C EEPROMS (interface)
- *
- * \version $Id$
+ * \brief Driver for the 24xx16 and 24xx256 I2C EEPROMS.
  *
  * \author Stefano Fedrigo <aleph@develer.com>
  * \author Bernie Innocenti <bernie@codewiz.org>
  *
+ * $WIZ$ module_name = "eeprom"
+ * $WIZ$ module_depends = "kfile", "i2c"
  */
 
 #ifndef DRV_EEPROM_H
 #define DRV_EEPROM_H
 
 #include <cfg/compiler.h>
+
 #include <kern/kfile.h>
 
 
  */
 typedef enum EepromType
 {
+       EEPROM_24XX08,
        EEPROM_24XX16,
        EEPROM_24XX256,
        EEPROM_24XX512,
+       EEPROM_24XX1024,
        EEPROM_CNT,
 } EepromType;
 
@@ -83,7 +86,7 @@ typedef struct Eeprom
 /**
  * Convert + ASSERT from generic KFile to Eeprom.
  */
-INLINE Eeprom * EEPROM(KFile *fd)
+INLINE Eeprom * EEPROM_CAST(KFile *fd)
 {
        ASSERT(fd->_type == KFT_EEPROM);
        return (Eeprom *)fd;