projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add other error flag. Include platform specific header.
[bertos.git]
/
bertos
/
cpu
/
detect.h
diff --git
a/bertos/cpu/detect.h
b/bertos/cpu/detect.h
index 33f6178cffa4efbc1d269f175ed21bfa646daa5e..7e0d0835841976c948a4b46bca71152f8d546ffd 100644
(file)
--- a/
bertos/cpu/detect.h
+++ b/
bertos/cpu/detect.h
@@
-339,8
+339,15
@@
#define CPU_AVR_ATMEGA1281 0
#endif
#define CPU_AVR_ATMEGA1281 0
#endif
+ #if defined(__AVR_ATmega1280__)
+ #define CPU_AVR_ATMEGA1280 1
+ #else
+ #define CPU_AVR_ATMEGA1280 0
+ #endif
+
#if CPU_AVR_ATMEGA32 + CPU_AVR_ATMEGA64 + CPU_AVR_ATMEGA103 + CPU_AVR_ATMEGA128 \
#if CPU_AVR_ATMEGA32 + CPU_AVR_ATMEGA64 + CPU_AVR_ATMEGA103 + CPU_AVR_ATMEGA128 \
- + CPU_AVR_ATMEGA8 + CPU_AVR_ATMEGA168 + CPU_AVR_ATMEGA328P + CPU_AVR_ATMEGA1281 != 1
+ + CPU_AVR_ATMEGA8 + CPU_AVR_ATMEGA168 + CPU_AVR_ATMEGA328P + CPU_AVR_ATMEGA1281 \
+ + CPU_AVR_ATMEGA1280 != 1
#error AVR CPU configuration error
#endif
#else
#error AVR CPU configuration error
#endif
#else
@@
-353,6
+360,7
@@
#define CPU_AVR_ATMEGA103 0
#define CPU_AVR_ATMEGA128 0
#define CPU_AVR_ATMEGA1281 0
#define CPU_AVR_ATMEGA103 0
#define CPU_AVR_ATMEGA128 0
#define CPU_AVR_ATMEGA1281 0
+ #define CPU_AVR_ATMEGA1280 0
#endif
#endif