build system works

This commit is contained in:
Wolfgang Draxinger
2013-12-22 19:07:27 +01:00
parent 217ddb1e32
commit e9b41c8d6b
3 changed files with 68 additions and 58 deletions

View File

@@ -61,13 +61,15 @@
#include "avr_compiler.h"
#ifndef MAPPED_EEPROM_START
#define MAPPED_EEPROM_START 0x1000
#endif
#define EEPROM_PAGESIZE 32
#define EEPROM(_pageAddr, _byteAddr) \
((uint8_t *) MAPPED_EEPROM_START)[_pageAddr*EEPROM_PAGESIZE + _byteAddr]
/* Definitions of macros. */
/*! \brief Enable EEPROM block sleep-when-not-used mode.