diff options
Diffstat (limited to 'os/common/ports/ARMCMx/devices/STM32L0xx')
-rw-r--r-- | os/common/ports/ARMCMx/devices/STM32L0xx/cmparams.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/os/common/ports/ARMCMx/devices/STM32L0xx/cmparams.h b/os/common/ports/ARMCMx/devices/STM32L0xx/cmparams.h index 2d227d1ef..850793a0f 100644 --- a/os/common/ports/ARMCMx/devices/STM32L0xx/cmparams.h +++ b/os/common/ports/ARMCMx/devices/STM32L0xx/cmparams.h @@ -34,7 +34,7 @@ /**
* @brief Cortex core model.
*/
-#define CORTEX_MODEL CORTEX_M0PLUS
+#define CORTEX_MODEL 0
/**
* @brief Floating Point unit presence.
@@ -71,6 +71,10 @@ assembler source files. We verify that the info matches instead.*/
#include "stm32l0xx.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
|