From a3e2fd30898b3890a53a505103b5e2535fc34533 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Thu, 26 Mar 2015 11:12:55 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7810 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/common/ports/ARMCMx/devices/STM32F0xx/cmparams.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'os/common/ports/ARMCMx/devices/STM32F0xx/cmparams.h') diff --git a/os/common/ports/ARMCMx/devices/STM32F0xx/cmparams.h b/os/common/ports/ARMCMx/devices/STM32F0xx/cmparams.h index 8e44e2029..2744a6f72 100644 --- a/os/common/ports/ARMCMx/devices/STM32F0xx/cmparams.h +++ b/os/common/ports/ARMCMx/devices/STM32F0xx/cmparams.h @@ -34,7 +34,7 @@ /** * @brief Cortex core model. */ -#define CORTEX_MODEL CORTEX_M0 +#define CORTEX_MODEL 0 /** * @brief Floating Point unit presence. @@ -74,6 +74,10 @@ assembler source files. We verify that the info matches instead.*/ #include "stm32f0xx.h" +#if CORTEX_MODEL != __CORTEX_M +#error "CMSIS __CORTEX_M mismatch" +#endif + #if CORTEX_PRIORITY_BITS != __NVIC_PRIO_BITS #error "CMSIS __NVIC_PRIO_BITS mismatch" #endif -- cgit v1.2.3