projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add timer support for ATMega 1280 (contributed by Fabio Bizzi)
[bertos.git]
/
bertos
/
drv
/
eeprom.c
diff --git
a/bertos/drv/eeprom.c
b/bertos/drv/eeprom.c
index 52ab70c72f7ab5f1cf8232f1b66ec818212a9905..cc9b5292ba15c34af47822c37c6d61090149ecab 100644
(file)
--- a/
bertos/drv/eeprom.c
+++ b/
bertos/drv/eeprom.c
@@
-26,7
+26,7
@@
* invalidate any other reasons why the executable file might be covered by
* the GNU General Public License.
*
* invalidate any other reasons why the executable file might be covered by
* the GNU General Public License.
*
- * Copyright 2003, 2004, 2005 Develer S.r.l. (http://www.develer.com/)
+ * Copyright 2003, 2004, 2005
, 2010
Develer S.r.l. (http://www.develer.com/)
*
* -->
*
*
* -->
*
@@
-38,6
+38,8
@@
#include "eeprom.h"
#include "eeprom.h"
+#include "cfg/cfg_i2c.h"
+
#include <cfg/macros.h> // MIN()
#include <cfg/debug.h>
#include <cfg/module.h> // MOD_CHECK()
#include <cfg/macros.h> // MIN()
#include <cfg/debug.h>
#include <cfg/module.h> // MOD_CHECK()
@@
-103,6
+105,7
@@
static const EepromInfo mem_info[] =
STATIC_ASSERT(countof(mem_info) == EEPROM_CNT);
STATIC_ASSERT(countof(mem_info) == EEPROM_CNT);
+#if !CONFIG_I2C_DISABLE_OLD_API
/**
* Copy \a size bytes from buffer \a buf to
/**
* Copy \a size bytes from buffer \a buf to
@@
-388,3
+391,5
@@
void eeprom_init(Eeprom *fd, EepromType type, e2dev_addr_t addr, bool verify)
fd->fd.seek = kfile_genericSeek;
}
fd->fd.seek = kfile_genericSeek;
}
+
+#endif /* !CONFIG_I2C_DISABLE_OLD_API */