X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Fdetect.h;h=3c4712d25f1fd72f8fbcfcd7657f75274a05d0b3;hb=41d14f76b5f57cce434048251df63eb6bbdb1df0;hp=19fb80b73c51154e387a1dbcdf1aa517193e109b;hpb=f8c584f3103f75c95ed0821e96c8675456b8f48e;p=bertos.git diff --git a/bertos/cpu/detect.h b/bertos/cpu/detect.h index 19fb80b7..3c4712d2 100644 --- a/bertos/cpu/detect.h +++ b/bertos/cpu/detect.h @@ -39,7 +39,13 @@ #if defined(__arm__) /* GCC */ \ || defined(__ARM4TM__) /* IAR: defined for all cores >= 4tm */ #define CPU_ARM 1 - #define CPU_ID arm + + // Cortex-M3 core family + #if defined(__ARM_LM3S1968__) + #define CPU_ID lm3s + #else + #define CPU_ID arm + #endif // AT91SAM7S core family #if defined(__ARM_AT91SAM7S32__)