aboutsummaryrefslogtreecommitdiffstats
path: root/os/common/ports/ARMCMx/devices/STM32L1xx/cmparams.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-10-01 12:26:11 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-10-01 12:26:11 +0000
commit2acabf55f6ca9d992803b629157b971358fb76f6 (patch)
tree7a92ab866fa399f1d0da0d7c863f5edb6eb6a1e1 /os/common/ports/ARMCMx/devices/STM32L1xx/cmparams.h
parent422c00db0343feee328b00bfe0b5cf971ed752df (diff)
downloadChibiOS-2acabf55f6ca9d992803b629157b971358fb76f6.tar.gz
ChibiOS-2acabf55f6ca9d992803b629157b971358fb76f6.tar.bz2
ChibiOS-2acabf55f6ca9d992803b629157b971358fb76f6.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6340 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/common/ports/ARMCMx/devices/STM32L1xx/cmparams.h')
-rw-r--r--os/common/ports/ARMCMx/devices/STM32L1xx/cmparams.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/os/common/ports/ARMCMx/devices/STM32L1xx/cmparams.h b/os/common/ports/ARMCMx/devices/STM32L1xx/cmparams.h
index 39be9d4fa..76dcb200e 100644
--- a/os/common/ports/ARMCMx/devices/STM32L1xx/cmparams.h
+++ b/os/common/ports/ARMCMx/devices/STM32L1xx/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(STM32L1XX_MD) && !defined(STM32L1XX_MDP) && !defined(STM32L1XX_HD)
+#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.*/