|| defined(__ARM4TM__) /* IAR: defined for all cores >= 4tm */
#define CPU_ARM 1
#define CPU_ID arm
- #define CPU_CORE_NAME "ARM7TDMI"
+ #define CPU_CORE_NAME "ARM7TDMI"
// AT91SAM7S core family
#if defined(__ARM_AT91SAM7S32__)
#if defined (__MSP430__)
#define CPU_MSP430 1
#define CPU_ID msp430
- #define CPU_CORE_NAME "MSP430F2274"
+ #define CPU_CORE_NAME "MSP430"
- #if defined(__MSP430_2274__)
- #define CPU_MSP430_2274 1
- #define CPU_NAME "2274"
+ #if defined(__MSP430F2274__)
+ #define CPU_MSP430F2274 1
+ #define CPU_NAME "MSP430F2274"
#else
- #define CPU_MSP430_2274 0
+ #define CPU_MSP430F2274 0
+ #endif
+
+ #if defined(__MSP430G2231__)
+ #define CPU_MSP430G2231 1
+ #define CPU_NAME "MSP430G2231"
+ #else
+ #define CPU_MSP430G2231 0
+ #endif
+
+ #if CPU_MSP430F2274 + CPU_MSP430G2231 != 1
+ #error MSP430 CPU configuration error
#endif
#else
- #define CPU_MSP430 0
+ #define CPU_MSP430 0
+ #define CPU_MSP430F2274 0
+ #define CPU_MSP430G2231 0
#endif