X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Fdetect.h;h=7e9c23198a24fb4100c3514eb93b7eaba1876346;hb=9792a2d2230d9e4e8bd3dec96e37e4107a6d8a37;hp=fe940cb07082149429c2f6a20190aaf3df4f6a53;hpb=9f6449b9229aa4bf2f4085df5e7fe44e16c57183;p=bertos.git diff --git a/bertos/cpu/detect.h b/bertos/cpu/detect.h index fe940cb0..7e9c2319 100644 --- a/bertos/cpu/detect.h +++ b/bertos/cpu/detect.h @@ -192,17 +192,31 @@ #define CPU_CM3_LM3S8962 0 #endif + #if defined (__ARM_STM32P103__) + #define CPU_CM3_STM32 1 + #define CPU_CM3_STM32P103 1 + #else + #define CPU_CM3_STM32P103 0 + #endif + #if defined (CPU_CM3_LM3S) #if CPU_CM3_LM3S1968 + CPU_CM3_LM3S8962 + 0 != 1 #error Luminary Cortex-M3 CPU configuration error #endif + #define CPU_CM3_STM32 0 + #elif defined (CPU_CM3_STM32) + #if CPU_CM3_STM32P103 + 0 != 1 + #error STM32 Cortex-M3 CPU configuration error + #endif + #define CPU_CM3_LM3S 0 /* #elif Add other Cortex-M3 families here */ #else #define CPU_CM3_LM3S 0 + #define CPU_CM3_STM32 0 #endif - #if CPU_CM3_LM3S + 0 /* Add other Cortex-M3 families here */ != 1 + #if CPU_CM3_LM3S + CPU_CM3_STM32 + 0 /* Add other Cortex-M3 families here */ != 1 #error Cortex-M3 CPU configuration error #endif @@ -214,6 +228,10 @@ #define CPU_CM3_LM3S1968 0 #define CPU_CM3_LM3S8968 0 + + #define CPU_CM3_STM32 0 + + #define CPU_CM3_STM32P103 0 #endif #if (defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)) \