X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=drv%2Feeprom.c;h=4e7f615fe6068e8589a35482d4ecd6aa4f2c1cf1;hb=2535cb94ec2183791128f8bbd109ca69a960cf78;hp=9eeb011a96110813474f051e3318d0ee93f33ad1;hpb=0c154bc0927a32f77467f32aac3cc3507baa97ca;p=bertos.git diff --git a/drv/eeprom.c b/drv/eeprom.c old mode 100755 new mode 100644 index 9eeb011a..4e7f615f --- a/drv/eeprom.c +++ b/drv/eeprom.c @@ -1,8 +1,33 @@ -/*! +/** * \file * * * \brief Driver for the 24xx16 and 24xx256 I2C EEPROMS (implementation) @@ -14,36 +39,13 @@ * \author Bernardo Innocenti */ -/*#* - *#* $Log$ - *#* Revision 1.19 2006/03/20 17:49:50 bernie - *#* Make the TWI driver more generic to work with devices other than EEPROMS. - *#* - *#* Revision 1.18 2005/11/27 23:33:40 bernie - *#* Use appconfig.h instead of cfg/config.h. - *#* - *#* Revision 1.17 2005/04/11 19:10:27 bernie - *#* Include top-level headers from cfg/ subdir. - *#* - *#* Revision 1.16 2005/03/01 23:25:09 bernie - *#* Prune CVS log. - *#* - *#* Revision 1.11 2004/10/26 08:35:31 bernie - *#* Reset watchdog for long operations. - *#* - *#* Revision 1.10 2004/09/20 03:31:22 bernie - *#* Sanitize for C++. - *#* - *#* Revision 1.9 2004/09/14 21:03:46 bernie - *#* Use debug.h instead of kdebug.h. - *#*/ - #include "eeprom.h" #include #include // CONFIG_EEPROM_VERIFY #include // MIN() -#include +#include +#include CPU_HEADER(twi) #include #include // cpu_to_be16() @@ -68,7 +70,7 @@ -/*! +/** * Copy \c count bytes from buffer \c buf to * eeprom at address \c addr. */ @@ -134,7 +136,7 @@ static bool eeprom_writeRaw(e2addr_t addr, const void *buf, size_t count) #if CONFIG_EEPROM_VERIFY -/*! +/** * Check that the contents of an EEPROM range * match with a provided data buffer. * @@ -194,7 +196,7 @@ bool eeprom_write(e2addr_t addr, const void *buf, size_t count) } -/*! +/** * Copy \c count bytes at address \c addr * from eeprom to RAM to buffer \c buf. * @@ -240,7 +242,7 @@ bool eeprom_read(e2addr_t addr, void *buf, size_t count) } -/*! +/** * Write a single character \a c at address \a addr. */ bool eeprom_write_char(e2addr_t addr, char c) @@ -249,7 +251,7 @@ bool eeprom_write_char(e2addr_t addr, char c) } -/*! +/** * Read a single character at address \a addr. * * \return the requested character or -1 in case of failure. @@ -265,7 +267,7 @@ int eeprom_read_char(e2addr_t addr) } -/*! +/** * Erase specified part of eeprom, writing 0xFF. * * \param addr starting address @@ -290,7 +292,7 @@ void eeprom_erase(e2addr_t addr, size_t count) } -/*! +/** * Initialize TWI module. */ void eeprom_init(void)