aboutsummaryrefslogtreecommitdiffstats
path: root/os/ports/GCC/ARMCMx
diff options
context:
space:
mode:
Diffstat (limited to 'os/ports/GCC/ARMCMx')
-rw-r--r--os/ports/GCC/ARMCMx/STM32F10x/vectors.s7
1 files changed, 7 insertions, 0 deletions
diff --git a/os/ports/GCC/ARMCMx/STM32F10x/vectors.s b/os/ports/GCC/ARMCMx/STM32F10x/vectors.s
index 58b0f8aea..0d516fb04 100644
--- a/os/ports/GCC/ARMCMx/STM32F10x/vectors.s
+++ b/os/ports/GCC/ARMCMx/STM32F10x/vectors.s
@@ -20,6 +20,13 @@
.syntax unified
.thumb
+/* If the macro is not defined in the Makefile then a board.h file must be
+ provided containing the definition of the STM32 family member.*/
+#if !defined(STM32F10X_LD) && !defined(STM32F10X_MD) && \
+ !defined(STM32F10X_HD) && !defined(STM32F10X_CL)
+#include "board.h"
+#endif
+
.section vectors
_vectors:
.word __ram_end__