aboutsummaryrefslogtreecommitdiffstats
path: root/os/common/ports/ARMCMx/devices/STM32F0xx/cmparams.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/common/ports/ARMCMx/devices/STM32F0xx/cmparams.h')
-rw-r--r--os/common/ports/ARMCMx/devices/STM32F0xx/cmparams.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/os/common/ports/ARMCMx/devices/STM32F0xx/cmparams.h b/os/common/ports/ARMCMx/devices/STM32F0xx/cmparams.h
index e0e842e52..608c7a159 100644
--- a/os/common/ports/ARMCMx/devices/STM32F0xx/cmparams.h
+++ b/os/common/ports/ARMCMx/devices/STM32F0xx/cmparams.h
@@ -63,6 +63,13 @@
asm module.*/
#if !defined(_FROM_ASM_)
+/* If the device type is not externally defined, for example from the Makefile,
+ then a file named board.h is included. This file must contain a device
+ definition compatible with the vendor include file.*/
+#if !defined(STM32F0XX_LD) && !defined(STM32F0XX_MD)
+#include "board.h"
+#endif
+
/* 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.*/