aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2015-03-22 10:46:21 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2015-03-22 10:46:21 +0000
commitf11fa0ce071b42e3dd47f991e62f0b54c41455bf (patch)
tree81c7df9ce9167d9c9d6e6222f63ed147703f2420
parentd7d7513ca89af5d50562e4b7710f5321c8db35f3 (diff)
downloadChibiOS-f11fa0ce071b42e3dd47f991e62f0b54c41455bf.tar.gz
ChibiOS-f11fa0ce071b42e3dd47f991e62f0b54c41455bf.tar.bz2
ChibiOS-f11fa0ce071b42e3dd47f991e62f0b54c41455bf.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7790 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r--os/common/ports/ARMCMx/devices/STM32F1xx/cmparams.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/os/common/ports/ARMCMx/devices/STM32F1xx/cmparams.h b/os/common/ports/ARMCMx/devices/STM32F1xx/cmparams.h
index 723a8b9b2..30d81bcc9 100644
--- a/os/common/ports/ARMCMx/devices/STM32F1xx/cmparams.h
+++ b/os/common/ports/ARMCMx/devices/STM32F1xx/cmparams.h
@@ -46,10 +46,6 @@
*/
#define CORTEX_PRIORITY_BITS 4
-/* The following code is not processed when the file is included from an
- 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.*/
@@ -60,6 +56,10 @@
#include "board.h"
#endif
+/* The following code is not processed when the file is included from an
+ asm module.*/
+#if !defined(_FROM_ASM_)
+
/* 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.*/
@@ -73,6 +73,8 @@
#error "CMSIS __NVIC_PRIO_BITS mismatch"
#endif
+#endif /* !defined(_FROM_ASM_) */
+
#if defined(STM32F10X_CL)
#define __NVECTORS 72
#elif defined(STM32F10X_XL)
@@ -96,8 +98,6 @@
*/
#define CORTEX_NUM_VECTORS __NVECTORS
-#endif /* !defined(_FROM_ASM_) */
-
#endif /* _CMPARAMS_H_ */
/** @} */