aboutsummaryrefslogtreecommitdiffstats
path: root/os/common/startup/ARMCMx/devices/STM32H7xx/cmparams.h
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2018-04-13 08:44:43 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2018-04-13 08:44:43 +0000
commitaa3c1d12b36791a5983d34934698a7f49c930b94 (patch)
tree3f65a6f8f9ce7c83e8b9009ac25c79adfe657609 /os/common/startup/ARMCMx/devices/STM32H7xx/cmparams.h
parent5a60288080d3095f87258b94e8d89ad02b6265c8 (diff)
downloadChibiOS-aa3c1d12b36791a5983d34934698a7f49c930b94.tar.gz
ChibiOS-aa3c1d12b36791a5983d34934698a7f49c930b94.tar.bz2
ChibiOS-aa3c1d12b36791a5983d34934698a7f49c930b94.zip
Fixed bug #935.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11915 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/common/startup/ARMCMx/devices/STM32H7xx/cmparams.h')
-rw-r--r--os/common/startup/ARMCMx/devices/STM32H7xx/cmparams.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/os/common/startup/ARMCMx/devices/STM32H7xx/cmparams.h b/os/common/startup/ARMCMx/devices/STM32H7xx/cmparams.h
index 5068a538a..272f42998 100644
--- a/os/common/startup/ARMCMx/devices/STM32H7xx/cmparams.h
+++ b/os/common/startup/ARMCMx/devices/STM32H7xx/cmparams.h
@@ -43,6 +43,13 @@
*/
#define CORTEX_PRIORITY_BITS 4
+/* 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(STM32H743xx) && !defined(STM32H753xx)
+#include "board.h"
+#endif
+
/**
* @brief Number of interrupt vectors.
* @note This number does not include the 16 system vectors and must be
@@ -54,13 +61,6 @@
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(STM32H743xx) && !defined(STM32H753xx)
-#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.*/