Fixed EEPROM macro. Added Max_Master get/save from EEPROM.

This commit is contained in:
skarg
2010-06-01 19:58:52 +00:00
parent ed40541c36
commit 44da26484d
2 changed files with 10 additions and 6 deletions
+2 -1
View File
@@ -211,7 +211,8 @@ typedef struct {
#if defined(__GNUC__)
#include <avr/eeprom.h>
#define EEPROM_DECLARE(x) x __attribute__((section (".eeprom")))
#if ((__GNUC__ < 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ < 3)))
#if ((__GNUC__ < 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ < 3)) || \
((__GNUC__ == 4) && (__GNUC_MINOR__ == 3) && (__GNUC_PATCHLEVEL__ < 4)))
/* bug in WinAVR - not quite IAR compatible */
#define __EEPUT _EEPUT
#define __EEGET _EEGET