aboutsummaryrefslogtreecommitdiffstats
path: root/os/common/ports/ARMCMx/devices/STM32L1xx/cmparams.h
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2015-08-06 09:21:52 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2015-08-06 09:21:52 +0000
commit3814399a1a06326128db62ea521e0ce4eb3e79da (patch)
tree4f3900353513593ee26acc739182524f392a1b61 /os/common/ports/ARMCMx/devices/STM32L1xx/cmparams.h
parentadb186c90adbf6ae1fc37bbc68673943286715bf (diff)
downloadChibiOS-3814399a1a06326128db62ea521e0ce4eb3e79da.tar.gz
ChibiOS-3814399a1a06326128db62ea521e0ce4eb3e79da.tar.bz2
ChibiOS-3814399a1a06326128db62ea521e0ce4eb3e79da.zip
Updated STM32L1xx ST header files and related changes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8166 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.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/os/common/ports/ARMCMx/devices/STM32L1xx/cmparams.h b/os/common/ports/ARMCMx/devices/STM32L1xx/cmparams.h
index 2c52fef39..84304e4ad 100644
--- a/os/common/ports/ARMCMx/devices/STM32L1xx/cmparams.h
+++ b/os/common/ports/ARMCMx/devices/STM32L1xx/cmparams.h
@@ -60,7 +60,17 @@
/* 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)
+#if !defined(STM32L100xB) && !defined(STM32L100xBA) && \
+ !defined(STM32L100xC) && !defined(STM32L151xB) && \
+ !defined(STM32L151xBA) && !defined(STM32L151xC) && \
+ !defined(STM32L151xCA) && !defined(STM32L151xD) && \
+ !defined(STM32L151xDX) && !defined(STM32L151xE) && \
+ !defined(STM32L152xB) && !defined(STM32L152xBA) && \
+ !defined(STM32L152xC) && !defined(STM32L152xCA) && \
+ !defined(STM32L152xD) && !defined(STM32L152xDX) && \
+ !defined(STM32L152xE) && !defined(STM32L162xC) && \
+ !defined(STM32L162xCA) && !defined(STM32L162xD) && \
+ !defined(STM32L162xDX) && !defined(STM32L162xE)
#include "board.h"
#endif
@@ -77,6 +87,9 @@
#error "CMSIS __NVIC_PRIO_BITS mismatch"
#endif
+/* Fix for yet another consistency error in ST headers.*/
+#define SVCall_IRQn SVC_IRQn
+
#endif /* !defined(_FROM_ASM_) */
#endif /* _CMPARAMS_H_ */