Note reason for including <macros.h>
[bertos.git] / drv / eeprom.c
index 718a52deed541506eabe4a2740083ec5acde8a1a..ed5db170c8156430062239921f334aa8af27646d 100755 (executable)
 
 /*
  * $Log$
+ * Revision 1.7  2004/08/24 16:48:40  bernie
+ * Note reason for including <macros.h>
+ *
+ * Revision 1.6  2004/08/24 14:27:20  bernie
+ * Doxygen fix.
+ *
+ * Revision 1.5  2004/08/24 13:46:48  bernie
+ * Include <macros.h>.
+ *
  * Revision 1.4  2004/08/10 06:57:22  bernie
  * eeprom_erase(): New function.
  *
  * Import into DevLib.
  *
  */
+
 #include "eeprom.h"
+
 #include <mware/byteorder.h> /* cpu_to_be16() */
 #include <drv/kdebug.h>
 #include <hw.h>
+#include <macros.h>  // MIN()
+
 #include <string.h> // memset()
 
 #include <avr/twi.h>
 
+
 /* Wait for TWINT flag set: bus is ready */
 #define WAIT_TWI_READY  do {} while (!(TWCR & BV(TWINT)))
 
@@ -333,8 +347,8 @@ int eeprom_read_char(e2addr_t addr)
 /*!
  * Erase specified part of eeprom, writing 0xFF.
  *
- * \param addr  starting address
- * \param len   length of block to erase
+ * \param addr   starting address
+ * \param count  length of block to erase
  */
 void eeprom_erase(e2addr_t addr, size_t count)
 {