aboutsummaryrefslogtreecommitdiffstats
path: root/os/rt/ports/ARMCMx/devices/STM32F0xx/cmparams.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/rt/ports/ARMCMx/devices/STM32F0xx/cmparams.h')
-rw-r--r--os/rt/ports/ARMCMx/devices/STM32F0xx/cmparams.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/os/rt/ports/ARMCMx/devices/STM32F0xx/cmparams.h b/os/rt/ports/ARMCMx/devices/STM32F0xx/cmparams.h
index 929bd10c6..df6f69208 100644
--- a/os/rt/ports/ARMCMx/devices/STM32F0xx/cmparams.h
+++ b/os/rt/ports/ARMCMx/devices/STM32F0xx/cmparams.h
@@ -66,7 +66,11 @@
/* Including the device CMSIS header. Note, we are not using the definitions
from this header because we need this file to be usable also from
assembler source files. We verify that the info matches instead.*/
-#include "stm32f30x.h"
+#include "stm32f0xx.h"
+
+#if !CORTEX_HAS_MPU != !__MPU_PRESENT
+#error "CMSIS __MPU_PRESENT mismatch"
+#endif
#if CORTEX_PRIORITY_BITS != __NVIC_PRIO_BITS
#error "CMSIS __NVIC_PRIO_BITS mismatch"