aboutsummaryrefslogtreecommitdiff
path: root/LUFA/Common/Common.h
diff options
context:
space:
mode:
authorDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2011-03-21 11:10:02 +0000
committerDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2011-03-21 11:10:02 +0000
commit3d0202abe1124ce89436968dfaebbf5189b15045 (patch)
treeed1db5d5b56343dd26549f3804f08ee6e1975eb9 /LUFA/Common/Common.h
parent2ee4fb0693a55e5c1bc5923ad482fbea383030f1 (diff)
Add in new architecture attribute defines to selectively remove the EEPROM and FLASH memory space functions on architectures which do not have seperate memory address spaces.
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1721 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'LUFA/Common/Common.h')
-rw-r--r--LUFA/Common/Common.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/LUFA/Common/Common.h b/LUFA/Common/Common.h
index b7d564aa..42662ef3 100644
--- a/LUFA/Common/Common.h
+++ b/LUFA/Common/Common.h
@@ -80,7 +80,11 @@
typedef uint8_t uint_reg_t;
- #define ARCH_LITTLE_ENDIAN
+ #define ARCH_HAS_EEPROM_ADDRESS_SPACE
+ #define ARCH_HAS_FLASH_ADDRESS_SPACE
+ #define ARCH_HAS_MULTI_ADDRESS_SPACE
+ #define ARCH_LITTLE_ENDIAN
+
#include "Endianness.h"
#elif (ARCH == ARCH_UC3)
#include <avr32/io.h>
@@ -94,12 +98,12 @@
#define _delay_ms(x)
#define memcmp_P(...) memcmp(__VA_ARGS__)
#define memcpy_P(...) memcpy(__VA_ARGS__)
- #define USE_RAM_DESCRIPTORS
// ==================================================
typedef uint32_t uint_reg_t;
#define ARCH_BIG_ENDIAN
+
#include "Endianness.h"
#else
#error Unknown device architecture specified.