aboutsummaryrefslogtreecommitdiffstats
path: root/os/common/startup
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2018-01-01 15:46:37 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2018-01-01 15:46:37 +0000
commite5b7a9f72317f21038406c8998c76058efbfa157 (patch)
tree724be28e21cf2ebd0216fd0db9f524c229d39173 /os/common/startup
parent19ede34bedb36684ff607dde29ec417cacafb75f (diff)
downloadChibiOS-e5b7a9f72317f21038406c8998c76058efbfa157.tar.gz
ChibiOS-e5b7a9f72317f21038406c8998c76058efbfa157.tar.bz2
ChibiOS-e5b7a9f72317f21038406c8998c76058efbfa157.zip
ARM Cortex-M vectors table rewritten in asm.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11212 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/common/startup')
-rw-r--r--os/common/startup/ARMCMx/compilers/GCC/crt0_v6m.S6
-rw-r--r--os/common/startup/ARMCMx/compilers/GCC/crt0_v7m.S6
-rw-r--r--os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f0xx.mk6
-rw-r--r--os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f1xx.mk6
-rw-r--r--os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f2xx.mk6
-rw-r--r--os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f3xx.mk6
-rw-r--r--os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f4xx.mk6
-rw-r--r--os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f7xx.mk6
-rw-r--r--os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32h7xx.mk6
-rw-r--r--os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32l0xx.mk6
-rw-r--r--os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32l1xx.mk6
-rw-r--r--os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32l4xx.mk6
-rw-r--r--os/common/startup/ARMCMx/compilers/GCC/vectors.S776
-rw-r--r--os/common/startup/ARMCMx/compilers/GCC/vectors.c630
-rw-r--r--os/common/startup/ARMCMx/compilers/GCC/vectors.h112
15 files changed, 812 insertions, 778 deletions
diff --git a/os/common/startup/ARMCMx/compilers/GCC/crt0_v6m.S b/os/common/startup/ARMCMx/compilers/GCC/crt0_v6m.S
index d0c6db645..9e1fb4346 100644
--- a/os/common/startup/ARMCMx/compilers/GCC/crt0_v6m.S
+++ b/os/common/startup/ARMCMx/compilers/GCC/crt0_v6m.S
@@ -142,12 +142,12 @@
.text
/*
- * Reset handler.
+ * CRT0 entry point.
*/
.align 2
.thumb_func
- .global Reset_Handler
-Reset_Handler:
+ .global _crt0_entry
+_crt0_entry:
/* Interrupts are globally masked initially.*/
cpsid i
diff --git a/os/common/startup/ARMCMx/compilers/GCC/crt0_v7m.S b/os/common/startup/ARMCMx/compilers/GCC/crt0_v7m.S
index ac56cec3a..866904521 100644
--- a/os/common/startup/ARMCMx/compilers/GCC/crt0_v7m.S
+++ b/os/common/startup/ARMCMx/compilers/GCC/crt0_v7m.S
@@ -171,12 +171,12 @@
.text
/*
- * Reset handler.
+ * CRT0 entry point.
*/
.align 2
.thumb_func
- .global Reset_Handler
-Reset_Handler:
+ .global _crt0_entry
+_crt0_entry:
/* Interrupts are globally masked initially.*/
cpsid i
diff --git a/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f0xx.mk b/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f0xx.mk
index 48e705742..ed83c118c 100644
--- a/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f0xx.mk
+++ b/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f0xx.mk
@@ -1,8 +1,8 @@
# List of the ChibiOS generic STM32F0xx startup and CMSIS files.
-STARTUPSRC = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/crt1.c \
- $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/vectors.c
+STARTUPSRC = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/crt1.c
-STARTUPASM = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/crt0_v6m.S
+STARTUPASM = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/crt0_v6m.S \
+ $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/vectors.S
STARTUPINC = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC \
$(CHIBIOS)/os/common/startup/ARMCMx/devices/STM32F0xx \
diff --git a/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f1xx.mk b/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f1xx.mk
index 6cb329b4b..d72083041 100644
--- a/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f1xx.mk
+++ b/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f1xx.mk
@@ -1,8 +1,8 @@
# List of the ChibiOS generic STM32F1xx startup and CMSIS files.
-STARTUPSRC = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/crt1.c \
- $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/vectors.c
+STARTUPSRC = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/crt1.c
-STARTUPASM = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/crt0_v7m.S
+STARTUPASM = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/crt0_v7m.S \
+ $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/vectors.S
STARTUPINC = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC \
$(CHIBIOS)/os/common/startup/ARMCMx/devices/STM32F1xx \
diff --git a/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f2xx.mk b/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f2xx.mk
index e216b5cb0..a14470559 100644
--- a/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f2xx.mk
+++ b/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f2xx.mk
@@ -1,8 +1,8 @@
# List of the ChibiOS generic STM32F2xx startup and CMSIS files.
-STARTUPSRC = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/crt1.c \
- $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/vectors.c
+STARTUPSRC = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/crt1.c
-STARTUPASM = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/crt0_v7m.S
+STARTUPASM = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/crt0_v7m.S \
+ $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/vectors.S
STARTUPINC = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC \
$(CHIBIOS)/os/common/startup/ARMCMx/devices/STM32F2xx \
diff --git a/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f3xx.mk b/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f3xx.mk
index 454b4faa2..ab8dd22d1 100644
--- a/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f3xx.mk
+++ b/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f3xx.mk
@@ -1,8 +1,8 @@
# List of the ChibiOS generic STM32F3xx startup and CMSIS files.
-STARTUPSRC = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/crt1.c \
- $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/vectors.c
+STARTUPSRC = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/crt1.c
-STARTUPASM = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/crt0_v7m.S
+STARTUPASM = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/crt0_v7m.S \
+ $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/vectors.S
STARTUPINC = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC \
$(CHIBIOS)/os/common/startup/ARMCMx/devices/STM32F3xx \
diff --git a/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f4xx.mk b/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f4xx.mk
index b78fecc01..1a38afa54 100644
--- a/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f4xx.mk
+++ b/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f4xx.mk
@@ -1,8 +1,8 @@
# List of the ChibiOS generic STM32F4xx startup and CMSIS files.
-STARTUPSRC = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/crt1.c \
- $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/vectors.c
+STARTUPSRC = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/crt1.c
-STARTUPASM = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/crt0_v7m.S
+STARTUPASM = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/crt0_v7m.S \
+ $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/vectors.S
STARTUPINC = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC \
$(CHIBIOS)/os/common/startup/ARMCMx/devices/STM32F4xx \
diff --git a/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f7xx.mk b/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f7xx.mk
index 0f6bc77b8..b2c0f7144 100644
--- a/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f7xx.mk
+++ b/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f7xx.mk
@@ -1,8 +1,8 @@
# List of the ChibiOS generic STM32F7xx startup and CMSIS files.
-STARTUPSRC = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/crt1.c \
- $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/vectors.c
+STARTUPSRC = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/crt1.c
-STARTUPASM = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/crt0_v7m.S
+STARTUPASM = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/crt0_v7m.S \
+ $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/vectors.S
STARTUPINC = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC \
$(CHIBIOS)/os/common/startup/ARMCMx/devices/STM32F7xx \
diff --git a/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32h7xx.mk b/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32h7xx.mk
index c01646cc3..9b3b18d93 100644
--- a/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32h7xx.mk
+++ b/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32h7xx.mk
@@ -1,8 +1,8 @@
# List of the ChibiOS generic STM32H7xx startup and CMSIS files.
-STARTUPSRC = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/crt1.c \
- $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/vectors.c
+STARTUPSRC = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/crt1.c
-STARTUPASM = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/crt0_v7m.S
+STARTUPASM = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/crt0_v7m.S \
+ $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/vectors.S
STARTUPINC = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC \
$(CHIBIOS)/os/common/startup/ARMCMx/devices/STM32H7xx \
diff --git a/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32l0xx.mk b/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32l0xx.mk
index a1fd9ad0f..5a2ec8e60 100644
--- a/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32l0xx.mk
+++ b/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32l0xx.mk
@@ -1,8 +1,8 @@
# List of the ChibiOS generic STM32L0xx startup and CMSIS files.
-STARTUPSRC = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/crt1.c \
- $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/vectors.c
+STARTUPSRC = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/crt1.c
-STARTUPASM = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/crt0_v6m.S
+STARTUPASM = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/crt0_v6m.S \
+ $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/vectors.S
STARTUPINC = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC \
$(CHIBIOS)/os/common/startup/ARMCMx/devices/STM32L0xx \
diff --git a/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32l1xx.mk b/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32l1xx.mk
index 4c4c7e09b..c37a4bdd9 100644
--- a/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32l1xx.mk
+++ b/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32l1xx.mk
@@ -1,8 +1,8 @@
# List of the ChibiOS generic STM32L1xx startup and CMSIS files.
-STARTUPSRC = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/crt1.c \
- $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/vectors.c
+STARTUPSRC = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/crt1.c
-STARTUPASM = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/crt0_v7m.S
+STARTUPASM = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/crt0_v7m.S \
+ $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/vectors.S
STARTUPINC = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC \
$(CHIBIOS)/os/common/startup/ARMCMx/devices/STM32L1xx \
diff --git a/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32l4xx.mk b/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32l4xx.mk
index ce3f5fa47..4a8db1a87 100644
--- a/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32l4xx.mk
+++ b/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32l4xx.mk
@@ -1,8 +1,8 @@
# List of the ChibiOS generic STM32L4xx startup and CMSIS files.
-STARTUPSRC = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/crt1.c \
- $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/vectors.c
+STARTUPSRC = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/crt1.c
-STARTUPASM = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/crt0_v7m.S
+STARTUPASM = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/crt0_v7m.S \
+ $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/vectors.S
STARTUPINC = $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC \
$(CHIBIOS)/os/common/startup/ARMCMx/devices/STM32L4xx \
diff --git a/os/common/startup/ARMCMx/compilers/GCC/vectors.S b/os/common/startup/ARMCMx/compilers/GCC/vectors.S
new file mode 100644
index 000000000..8702c5348
--- /dev/null
+++ b/os/common/startup/ARMCMx/compilers/GCC/vectors.S
@@ -0,0 +1,776 @@
+/*
+ ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+*/
+
+/**
+ * @file ARMCMx/GCC/vectors.S
+ * @brief Interrupt vectors for Cortex-Mx devices.
+ *
+ * @defgroup ARMCMx_GCC_VECTORS Cortex-Mx Interrupt Vectors
+ * @{
+ */
+
+#define _FROM_ASM_
+#include "cmparams.h"
+
+#if (CORTEX_NUM_VECTORS % 8) != 0
+#error "the constant CORTEX_NUM_VECTORS must be a multiple of 8"
+#endif
+
+#if (CORTEX_NUM_VECTORS < 8) || (CORTEX_NUM_VECTORS > 240)
+#error "the constant CORTEX_NUM_VECTORS must be between 8 and 240 inclusive"
+#endif
+
+/*===========================================================================*/
+/* Module constants. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Module pre-compile time settings. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Code section. */
+/*===========================================================================*/
+
+#if !defined(__DOXYGEN__)
+
+ .syntax unified
+ .cpu cortex-m0
+ .thumb
+
+ .section .vectors, "ax"
+ .align 4
+ .globl _vectors
+_vectors:
+ .long __main_stack_end__
+ .long Reset_Handler
+ .long NMI_Handler
+ .long HardFault_Handler
+ .long MemManage_Handler
+ .long BusFault_Handler
+ .long UsageFault_Handler
+ .long Vector1C
+ .long Vector20
+ .long Vector24
+ .long Vector28
+ .long SVC_Handler
+ .long DebugMon_Handler
+ .long Vector34
+ .long PendSV_Handler
+ .long SysTick_Handler
+ .long Vector40, Vector44, Vector48, Vector4C
+#if CORTEX_NUM_VECTORS > 4
+ .long Vector50, Vector54, Vector58, Vector5C
+#endif
+#if CORTEX_NUM_VECTORS > 8
+ .long Vector60, Vector64, Vector68, Vector6C
+#endif
+#if CORTEX_NUM_VECTORS > 12
+ .long Vector70, Vector74, Vector78, Vector7C
+#endif
+#if CORTEX_NUM_VECTORS > 16
+ .long Vector80, Vector84, Vector88, Vector8C
+#endif
+#if CORTEX_NUM_VECTORS > 20
+ .long Vector90, Vector94, Vector98, Vector9C
+#endif
+#if CORTEX_NUM_VECTORS > 24
+ .long VectorA0, VectorA4, VectorA8, VectorAC
+#endif
+#if CORTEX_NUM_VECTORS > 28
+ .long VectorB0, VectorB4, VectorB8, VectorBC
+#endif
+#if CORTEX_NUM_VECTORS > 32
+ .long VectorC0, VectorC4, VectorC8, VectorCC
+#endif
+#if CORTEX_NUM_VECTORS > 36
+ .long VectorD0, VectorD4, VectorD8, VectorDC
+#endif
+#if CORTEX_NUM_VECTORS > 40
+ .long VectorE0, VectorE4, VectorE8, VectorEC
+#endif
+#if CORTEX_NUM_VECTORS > 44
+ .long VectorF0, VectorF4, VectorF8, VectorFC
+#endif
+#if CORTEX_NUM_VECTORS > 48
+ .long Vector100, Vector104, Vector108, Vector10C
+#endif
+#if CORTEX_NUM_VECTORS > 52
+ .long Vector110, Vector114, Vector118, Vector11C
+#endif
+#if CORTEX_NUM_VECTORS > 56
+ .long Vector120, Vector124, Vector128, Vector12C
+#endif
+#if CORTEX_NUM_VECTORS > 60
+ .long Vector130, Vector134, Vector138, Vector13C
+#endif
+#if CORTEX_NUM_VECTORS > 64
+ .long Vector140, Vector144, Vector148, Vector14C
+#endif
+#if CORTEX_NUM_VECTORS > 68
+ .long Vector150, Vector154, Vector158, Vector15C
+#endif
+#if CORTEX_NUM_VECTORS > 72
+ .long Vector160, Vector164, Vector168, Vector16C
+#endif
+#if CORTEX_NUM_VECTORS > 76
+ .long Vector170, Vector174, Vector178, Vector17C
+#endif
+#if CORTEX_NUM_VECTORS > 80
+ .long Vector180, Vector184, Vector188, Vector18C
+#endif
+#if CORTEX_NUM_VECTORS > 84
+ .long Vector190, Vector194, Vector198, Vector19C
+#endif
+#if CORTEX_NUM_VECTORS > 88
+ .long Vector1A0, Vector1A4, Vector1A8, Vector1AC
+#endif
+#if CORTEX_NUM_VECTORS > 92
+ .long Vector1B0, Vector1B4, Vector1B8, Vector1BC
+#endif
+#if CORTEX_NUM_VECTORS > 96
+ .long Vector1C0, Vector1C4, Vector1C8, Vector1CC
+#endif
+#if CORTEX_NUM_VECTORS > 100
+ .long Vector1D0, Vector1D4, Vector1D8, Vector1DC
+#endif
+#if CORTEX_NUM_VECTORS > 104
+ .long Vector1E0, Vector1E4, Vector1E8, Vector1EC
+#endif
+#if CORTEX_NUM_VECTORS > 108
+ .long Vector1F0, Vector1F4, Vector1F8, Vector1FC
+#endif
+#if CORTEX_NUM_VECTORS > 112
+ .long Vector200, Vector204, Vector208, Vector20C
+#endif
+#if CORTEX_NUM_VECTORS > 116
+ .long Vector210, Vector214, Vector218, Vector21C
+#endif
+#if CORTEX_NUM_VECTORS > 120
+ .long Vector220, Vector224, Vector228, Vector22C
+#endif
+#if CORTEX_NUM_VECTORS > 124
+ .long Vector230, Vector234, Vector238, Vector23C
+#endif
+#if CORTEX_NUM_VECTORS > 128
+ .long Vector240, Vector244, Vector248, Vector24C
+#endif
+#if CORTEX_NUM_VECTORS > 132
+ .long Vector250, Vector254, Vector258, Vector25C
+#endif
+#if CORTEX_NUM_VECTORS > 136
+ .long Vector260, Vector264, Vector268, Vector26C
+#endif
+#if CORTEX_NUM_VECTORS > 140
+ .long Vector270, Vector274, Vector278, Vector27C
+#endif
+#if CORTEX_NUM_VECTORS > 144
+ .long Vector280, Vector284, Vector288, Vector28C
+#endif
+#if CORTEX_NUM_VECTORS > 148
+ .long Vector290, Vector294, Vector298, Vector29C
+#endif
+#if CORTEX_NUM_VECTORS > 152
+ .long Vector2A0, Vector2A4, Vector2A8, Vector2AC
+#endif
+#if CORTEX_NUM_VECTORS > 156
+ .long Vector2B0, Vector2B4, Vector2B8, Vector2BC
+#endif
+#if CORTEX_NUM_VECTORS > 160
+ .long Vector2C0, Vector2C4, Vector2C8, Vector2CC
+#endif
+#if CORTEX_NUM_VECTORS > 164
+ .long Vector2D0, Vector2D4, Vector2D8, Vector2DC
+#endif
+#if CORTEX_NUM_VECTORS > 168
+ .long Vector2E0, Vector2E4, Vector2E8, Vector2EC
+#endif
+#if CORTEX_NUM_VECTORS > 172
+ .long Vector2F0, Vector2F4, Vector2F8, Vector2FC
+#endif
+#if CORTEX_NUM_VECTORS > 176
+ .long Vector300, Vector304, Vector308, Vector30C
+#endif
+#if CORTEX_NUM_VECTORS > 180
+ .long Vector310, Vector314, Vector318, Vector31C
+#endif
+#if CORTEX_NUM_VECTORS > 184
+ .long Vector320, Vector324, Vector328, Vector32C
+#endif
+#if CORTEX_NUM_VECTORS > 188
+ .long Vector330, Vector334, Vector338, Vector33C
+#endif
+#if CORTEX_NUM_VECTORS > 192
+ .long Vector340, Vector344, Vector348, Vector34C
+#endif
+#if CORTEX_NUM_VECTORS > 196
+ .long Vector350, Vector354, Vector358, Vector35C
+#endif
+#if CORTEX_NUM_VECTORS > 200
+ .long Vector360, Vector364, Vector368, Vector36C
+#endif
+#if CORTEX_NUM_VECTORS > 204
+ .long Vector370, Vector374, Vector378, Vector37C
+#endif
+#if CORTEX_NUM_VECTORS > 208
+ .long Vector380, Vector384, Vector388, Vector38C
+#endif
+#if CORTEX_NUM_VECTORS > 212
+ .long Vector390, Vector394, Vector398, Vector39C
+#endif
+#if CORTEX_NUM_VECTORS > 216
+ .long Vector3A0, Vector3A4, Vector3A8, Vector3AC
+#endif
+#if CORTEX_NUM_VECTORS > 220
+ .long Vector3B0, Vector3B4, Vector3B8, Vector3BC
+#endif
+#if CORTEX_NUM_VECTORS > 224
+ .long Vector3C0, Vector3C4, Vector3C8, Vector3CC
+#endif
+#if CORTEX_NUM_VECTORS > 228
+ .long Vector3D0, Vector3D4, Vector3D8, Vector3DC
+#endif
+#if CORTEX_NUM_VECTORS > 232
+ .long Vector3E0, Vector3E4, Vector3E8, Vector3EC
+#endif
+#if CORTEX_NUM_VECTORS > 236
+ .long Vector3F0, Vector3F4, Vector3F8, Vector3FC
+#endif
+
+ .text
+
+ .align 2
+ .thumb_func
+ .weak Reset_Handler
+Reset_Handler:
+ b _crt0_entry
+
+ .thumb_func
+ .weak NMI_Handler,
+ .weak HardFault_Handler
+ .weak MemManage_Handler
+ .weak BusFault_Handler
+ .weak UsageFault_Handler
+ .weak Vector1C
+ .weak Vector20
+ .weak Vector24
+ .weak Vector28
+ .weak SVC_Handler
+ .weak DebugMon_Handler
+ .weak Vector34
+ .weak PendSV_Handler
+ .weak SysTick_Handler
+ .weak Vector40, Vector44, Vector48, Vector4C
+#if CORTEX_NUM_VECTORS > 4
+ .weak Vector50, Vector54, Vector58, Vector5C
+#endif
+#if CORTEX_NUM_VECTORS > 8
+ .weak Vector60, Vector64, Vector68, Vector6C
+#endif
+#if CORTEX_NUM_VECTORS > 12
+ .weak Vector70, Vector74, Vector78, Vector7C
+#endif
+#if CORTEX_NUM_VECTORS > 16
+ .weak Vector80, Vector84, Vector88, Vector8C
+#endif
+#if CORTEX_NUM_VECTORS > 20
+ .weak Vector90, Vector94, Vector98, Vector9C
+#endif
+#if CORTEX_NUM_VECTORS > 24
+ .weak VectorA0, VectorA4, VectorA8, VectorAC
+#endif
+#if CORTEX_NUM_VECTORS > 28
+ .weak VectorB0, VectorB4, VectorB8, VectorBC
+#endif
+#if CORTEX_NUM_VECTORS > 32
+ .weak VectorC0, VectorC4, VectorC8, VectorCC
+#endif
+#if CORTEX_NUM_VECTORS > 36
+ .weak VectorD0, VectorD4, VectorD8, VectorDC
+#endif
+#if CORTEX_NUM_VECTORS > 40
+ .weak VectorE0, VectorE4, VectorE8, VectorEC
+#endif
+#if CORTEX_NUM_VECTORS > 44
+ .weak VectorF0, VectorF4, VectorF8, VectorFC
+#endif
+#if CORTEX_NUM_VECTORS > 48
+ .weak Vector100, Vector104, Vector108, Vector10C
+#endif
+#if CORTEX_NUM_VECTORS > 52
+ .weak Vector110, Vector114, Vector118, Vector11C
+#endif
+#if CORTEX_NUM_VECTORS > 56
+ .weak Vector120, Vector124, Vector128, Vector12C
+#endif
+#if CORTEX_NUM_VECTORS > 60
+ .weak Vector130, Vector134, Vector138, Vector13C
+#endif
+#if CORTEX_NUM_VECTORS > 64
+ .weak Vector140, Vector144, Vector148, Vector14C
+#endif
+#if CORTEX_NUM_VECTORS > 68
+ .weak Vector150, Vector154, Vector158, Vector15C
+#endif
+#if CORTEX_NUM_VECTORS > 72
+ .weak Vector160, Vector164, Vector168, Vector16C
+#endif
+#if CORTEX_NUM_VECTORS > 76
+ .weak Vector170, Vector174, Vector178, Vector17C
+#endif
+#if CORTEX_NUM_VECTORS > 80
+ .weak Vector180, Vector184, Vector188, Vector18C
+#endif
+#if CORTEX_NUM_VECTORS > 84
+ .weak Vector190, Vector194, Vector198, Vector19C
+#endif
+#if CORTEX_NUM_VECTORS > 88
+ .weak Vector1A0, Vector1A4, Vector1A8, Vector1AC
+#endif
+#if CORTEX_NUM_VECTORS > 92
+ .weak Vector1B0, Vector1B4, Vector1B8, Vector1BC
+#endif
+#if CORTEX_NUM_VECTORS > 96
+ .weak Vector1C0, Vector1C4, Vector1C8, Vector1CC
+#endif
+#if CORTEX_NUM_VECTORS > 100
+ .weak Vector1D0, Vector1D4, Vector1D8, Vector1DC
+#endif
+#if CORTEX_NUM_VECTORS > 104
+ .weak Vector1E0, Vector1E4, Vector1E8, Vector1EC
+#endif
+#if CORTEX_NUM_VECTORS > 108
+ .weak Vector1F0, Vector1F4, Vector1F8, Vector1FC
+#endif
+#if CORTEX_NUM_VECTORS > 112
+ .weak Vector200, Vector204, Vector208, Vector20C
+#endif
+#if CORTEX_NUM_VECTORS > 116
+ .weak Vector210, Vector214, Vector218, Vector21C
+#endif
+#if CORTEX_NUM_VECTORS > 120
+ .weak Vector220, Vector224, Vector228, Vector22C
+#endif
+#if CORTEX_NUM_VECTORS > 124
+ .weak Vector230, Vector234, Vector238, Vector23C
+#endif
+#if CORTEX_NUM_VECTORS > 128
+ .weak Vector240, Vector244, Vector248, Vector24C
+#endif
+#if CORTEX_NUM_VECTORS > 132
+ .weak Vector250, Vector254, Vector258, Vector25C
+#endif
+#if CORTEX_NUM_VECTORS > 136
+ .weak Vector260, Vector264, Vector268, Vector26C
+#endif
+#if CORTEX_NUM_VECTORS > 140
+ .weak Vector270, Vector274, Vector278, Vector27C
+#endif
+#if CORTEX_NUM_VECTORS > 144
+ .weak Vector280, Vector284, Vector288, Vector28C
+#endif
+#if CORTEX_NUM_VECTORS > 148
+ .weak Vector290, Vector294, Vector298, Vector29C
+#endif
+#if CORTEX_NUM_VECTORS > 152
+ .weak Vector2A0, Vector2A4, Vector2A8, Vector2AC
+#endif
+#if CORTEX_NUM_VECTORS > 156
+ .weak Vector2B0, Vector2B4, Vector2B8, Vector2BC
+#endif
+#if CORTEX_NUM_VECTORS > 160
+ .weak Vector2C0, Vector2C4, Vector2C8, Vector2CC
+#endif
+#if CORTEX_NUM_VECTORS > 164
+ .weak Vector2D0, Vector2D4, Vector2D8, Vector2DC
+#endif
+#if CORTEX_NUM_VECTORS > 168
+ .weak Vector2E0, Vector2E4, Vector2E8, Vector2EC
+#endif
+#if CORTEX_NUM_VECTORS > 172
+ .weak Vector2F0, Vector2F4, Vector2F8, Vector2FC
+#endif
+#if CORTEX_NUM_VECTORS > 176
+ .weak Vector300, Vector304, Vector308, Vector30C
+#endif
+#if CORTEX_NUM_VECTORS > 180
+ .weak Vector310, Vector314, Vector318, Vector31C
+#endif
+#if CORTEX_NUM_VECTORS > 184
+ .weak Vector320, Vector324, Vector328, Vector32C
+#endif
+#if CORTEX_NUM_VECTORS > 188
+ .weak Vector330, Vector334, Vector338, Vector33C
+#endif
+#if CORTEX_NUM_VECTORS > 192
+ .weak Vector340, Vector344, Vector348, Vector34C
+#endif
+#if CORTEX_NUM_VECTORS > 196
+ .weak Vector350, Vector354, Vector358, Vector35C
+#endif
+#if CORTEX_NUM_VECTORS > 200
+ .weak Vector360, Vector364, Vector368, Vector36C
+#endif
+#if CORTEX_NUM_VECTORS > 204
+ .weak Vector370, Vector374, Vector378, Vector37C
+#endif
+#if CORTEX_NUM_VECTORS > 208
+ .weak Vector380, Vector384, Vector388, Vector38C
+#endif
+#if CORTEX_NUM_VECTORS > 212
+ .weak Vector390, Vector394, Vector398, Vector39C
+#endif
+#if CORTEX_NUM_VECTORS > 216
+ .weak Vector3A0, Vector3A4, Vector3A8, Vector3AC
+#endif
+#if CORTEX_NUM_VECTORS > 220
+ .weak Vector3B0, Vector3B4, Vector3B8, Vector3BC
+#endif
+#if CORTEX_NUM_VECTORS > 224
+ .weak Vector3C0, Vector3C4, Vector3C8, Vector3CC
+#endif
+#if CORTEX_NUM_VECTORS > 228
+ .weak Vector3D0, Vector3D4, Vector3D8, Vector3DC
+#endif
+#if CORTEX_NUM_VECTORS > 232
+ .weak Vector3E0, Vector3E4, Vector3E8, Vector3EC
+#endif
+#if CORTEX_NUM_VECTORS > 236
+ .weak Vector3F0, Vector3F4, Vector3F8, Vector3FC
+#endif
+
+NMI_Handler:
+HardFault_Handler:
+MemManage_Handler:
+BusFault_Handler:
+UsageFault_Handler:
+Vector1C:
+Vector20:
+Vector24:
+Vector28:
+SVC_Handler:
+DebugMon_Handler:
+Vector34:
+PendSV_Handler:
+SysTick_Handler:
+Vector40:
+Vector44:
+Vector48:
+Vector4C:
+Vector50:
+Vector54:
+Vector58:
+Vector5C:
+#if CORTEX_NUM_VECTORS > 8
+Vector60:
+Vector64:
+Vector68:
+Vector6C:
+Vector70:
+Vector74:
+Vector78:
+Vector7C:
+#endif
+#if CORTEX_NUM_VECTORS > 16
+Vector80:
+Vector84:
+Vector88:
+Vector8C:
+Vector90:
+Vector94:
+Vector98:
+Vector9C:
+#endif
+#if CORTEX_NUM_VECTORS > 24
+VectorA0:
+VectorA4:
+VectorA8:
+VectorAC:
+VectorB0:
+VectorB4:
+VectorB8:
+VectorBC:
+#endif
+#if CORTEX_NUM_VECTORS > 32
+VectorC0:
+VectorC4:
+VectorC8:
+VectorCC:
+VectorD0:
+VectorD4:
+VectorD8:
+VectorDC:
+#endif
+#if CORTEX_NUM_VECTORS > 40
+VectorE0:
+VectorE4:
+VectorE8:
+VectorEC:
+VectorF0:
+VectorF4:
+VectorF8:
+VectorFC:
+#endif
+#if CORTEX_NUM_VECTORS > 48
+Vector100:
+Vector104:
+Vector108:
+Vector10C:
+Vector110:
+Vector114:
+Vector118:
+Vector11C:
+#endif
+#if CORTEX_NUM_VECTORS > 56
+Vector120:
+Vector124:
+Vector128:
+Vector12C:
+Vector130:
+Vector134:
+Vector138:
+Vector13C:
+#endif
+#if CORTEX_NUM_VECTORS > 64
+Vector140:
+Vector144:
+Vector148:
+Vector14C:
+Vector150:
+Vector154:
+Vector158:
+Vector15C:
+#endif
+#if CORTEX_NUM_VECTORS > 72
+Vector160:
+Vector164:
+Vector168:
+Vector16C:
+Vector170:
+Vector174:
+Vector178:
+Vector17C:
+#endif
+#if CORTEX_NUM_VECTORS > 80
+Vector180:
+Vector184:
+Vector188:
+Vector18C:
+Vector190:
+Vector194:
+Vector198:
+Vector19C:
+#endif
+#if CORTEX_NUM_VECTORS > 88
+Vector1A0:
+Vector1A4:
+Vector1A8:
+Vector1AC:
+Vector1B0:
+Vector1B4:
+Vector1B8:
+Vector1BC:
+#endif
+#if CORTEX_NUM_VECTORS > 96
+Vector1C0:
+Vector1C4:
+Vector1C8:
+Vector1CC:
+Vector1D0:
+Vector1D4:
+Vector1D8:
+Vector1DC:
+#endif
+#if CORTEX_NUM_VECTORS > 104
+Vector1E0:
+Vector1E4:
+Vector1E8:
+Vector1EC:
+Vector1F0:
+Vector1F4:
+Vector1F8:
+Vector1FC:
+#endif
+#if CORTEX_NUM_VECTORS > 112
+Vector200:
+Vector204:
+Vector208:
+Vector20C:
+Vector210:
+Vector214:
+Vector218:
+Vector21C:
+#endif
+#if CORTEX_NUM_VECTORS > 120
+Vector220:
+Vector224:
+Vector228:
+Vector22C:
+Vector230:
+Vector234:
+Vector238:
+Vector23C:
+#endif
+#if CORTEX_NUM_VECTORS > 128
+Vector240:
+Vector244:
+Vector248:
+Vector24C:
+Vector250:
+Vector254:
+Vector258:
+Vector25C:
+#endif
+#if CORTEX_NUM_VECTORS > 136
+Vector260:
+Vector264:
+Vector268:
+Vector26C:
+Vector270:
+Vector274:
+Vector278:
+Vector27C:
+#endif
+#if CORTEX_NUM_VECTORS > 144
+Vector280:
+Vector284:
+Vector288:
+Vector28C:
+Vector290:
+Vector294:
+Vector298:
+Vector29C:
+#endif
+#if CORTEX_NUM_VECTORS > 152
+Vector2A0:
+Vector2A4:
+Vector2A8:
+Vector2AC:
+Vector2B0:
+Vector2B4:
+Vector2B8:
+Vector2BC:
+#endif
+#if CORTEX_NUM_VECTORS > 160
+Vector2C0:
+Vector2C4:
+Vector2C8:
+Vector2CC:
+Vector2D0:
+Vector2D4:
+Vector2D8:
+Vector2DC:
+#endif
+#if CORTEX_NUM_VECTORS > 168
+Vector2E0:
+Vector2E4:
+Vector2E8:
+Vector2EC:
+Vector2F0:
+Vector2F4:
+Vector2F8:
+Vector2FC:
+#endif
+#if CORTEX_NUM_VECTORS > 176
+Vector300:
+Vector304:
+Vector308:
+Vector30C:
+Vector310:
+Vector314:
+Vector318:
+Vector31C:
+#endif
+#if CORTEX_NUM_VECTORS > 184
+Vector320:
+Vector324:
+Vector328:
+Vector32C:
+Vector330:
+Vector334:
+Vector338:
+Vector33C:
+#endif
+#if CORTEX_NUM_VECTORS > 192
+Vector340:
+Vector344:
+Vector348:
+Vector34C:
+Vector350:
+Vector354:
+Vector358:
+Vector35C:
+#endif
+#if CORTEX_NUM_VECTORS > 200
+Vector360:
+Vector364:
+Vector368:
+Vector36C:
+Vector370:
+Vector374:
+Vector378:
+Vector37C:
+#endif
+#if CORTEX_NUM_VECTORS > 208
+Vector380:
+Vector384:
+Vector388:
+Vector38C:
+Vector390:
+Vector394:
+Vector398:
+Vector39C:
+#endif
+#if CORTEX_NUM_VECTORS > 216
+Vector3A0:
+Vector3A4:
+Vector3A8:
+Vector3AC:
+Vector3B0:
+Vector3B4:
+Vector3B8:
+Vector3BC:
+#endif
+#if CORTEX_NUM_VECTORS > 224
+Vector3C0:
+Vector3C4:
+Vector3C8:
+Vector3CC:
+Vector3D0:
+Vector3D4:
+Vector3D8:
+Vector3DC:
+#endif
+#if CORTEX_NUM_VECTORS > 232
+Vector3E0:
+Vector3E4:
+Vector3E8:
+Vector3EC:
+Vector3F0:
+Vector3F4:
+Vector3F8:
+Vector3FC:
+#endif
+ b _unhandled_exception
+
+ .thumb_func
+ .weak _unhandled_exception
+_unhandled_exception:
+ b _unhandled_exception
+
+#endif /* !defined(__DOXYGEN__) */
+
+/** @} */
diff --git a/os/common/startup/ARMCMx/compilers/GCC/vectors.c b/os/common/startup/ARMCMx/compilers/GCC/vectors.c
deleted file mode 100644
index 60844bd7e..000000000
--- a/os/common/startup/ARMCMx/compilers/GCC/vectors.c
+++ /dev/null
@@ -1,630 +0,0 @@
-/*
- ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
-
-/**
- * @file ARMCMx/compilers/GCC/vectors.c
- * @brief Interrupt vectors for Cortex-Mx devices.
- *
- * @defgroup ARMCMx_VECTORS Cortex-Mx Interrupt Vectors
- * @{
- */
-
-#include <stdbool.h>
-#include <stdint.h>
-
-#include "vectors.h"
-
-#if (CORTEX_NUM_VECTORS % 8) != 0
-#error "the constant CORTEX_NUM_VECTORS must be a multiple of 8"
-#endif
-
-#if (CORTEX_NUM_VECTORS < 8) || (CORTEX_NUM_VECTORS > 240)
-#error "the constant CORTEX_NUM_VECTORS must be between 8 and 240 inclusive"
-#endif
-
-/**
- * @brief Unhandled exceptions handler.
- * @details Any undefined exception vector points to this function by default.
- * This function simply stops the system into an infinite loop.
- *
- * @notapi
- */
-/*lint -save -e9075 [8.4] All symbols are invoked from asm context.*/
-__attribute__((weak))
-void _unhandled_exception(void) {
-/*lint -restore*/
-
- while (true) {
- }
-}
-
-#if !defined(__DOXYGEN__)
-extern uint32_t __main_stack_end__;
-void Reset_Handler(void);
-void NMI_Handler(void) __attribute__((weak, alias("_unhandled_exception")));
-void HardFault_Handler(void) __attribute__((weak, alias("_unhandled_exception")));
-void MemManage_Handler(void) __attribute__((weak, alias("_unhandled_exception")));
-void BusFault_Handler(void) __attribute__((weak, alias("_unhandled_exception")));
-void UsageFault_Handler(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector1C(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector20(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector24(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector28(void) __attribute__((weak, alias("_unhandled_exception")));
-void SVC_Handler(void) __attribute__((weak, alias("_unhandled_exception")));
-void DebugMon_Handler(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector34(void) __attribute__((weak, alias("_unhandled_exception")));
-void PendSV_Handler(void) __attribute__((weak, alias("_unhandled_exception")));
-void SysTick_Handler(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector40(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector44(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector48(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector4C(void) __attribute__((weak, alias("_unhandled_exception")));
-#if CORTEX_NUM_VECTORS > 4
-void Vector50(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector54(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector58(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector5C(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 8
-void Vector60(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector64(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector68(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector6C(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 12
-void Vector70(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector74(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector78(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector7C(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 16
-void Vector80(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector84(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector88(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector8C(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 20
-void Vector90(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector94(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector98(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector9C(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 24
-void VectorA0(void) __attribute__((weak, alias("_unhandled_exception")));
-void VectorA4(void) __attribute__((weak, alias("_unhandled_exception")));
-void VectorA8(void) __attribute__((weak, alias("_unhandled_exception")));
-void VectorAC(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 28
-void VectorB0(void) __attribute__((weak, alias("_unhandled_exception")));
-void VectorB4(void) __attribute__((weak, alias("_unhandled_exception")));
-void VectorB8(void) __attribute__((weak, alias("_unhandled_exception")));
-void VectorBC(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 32
-void VectorC0(void) __attribute__((weak, alias("_unhandled_exception")));
-void VectorC4(void) __attribute__((weak, alias("_unhandled_exception")));
-void VectorC8(void) __attribute__((weak, alias("_unhandled_exception")));
-void VectorCC(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 36
-void VectorD0(void) __attribute__((weak, alias("_unhandled_exception")));
-void VectorD4(void) __attribute__((weak, alias("_unhandled_exception")));
-void VectorD8(void) __attribute__((weak, alias("_unhandled_exception")));
-void VectorDC(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 40
-void VectorE0(void) __attribute__((weak, alias("_unhandled_exception")));
-void VectorE4(void) __attribute__((weak, alias("_unhandled_exception")));
-void VectorE8(void) __attribute__((weak, alias("_unhandled_exception")));
-void VectorEC(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 44
-void VectorF0(void) __attribute__((weak, alias("_unhandled_exception")));
-void VectorF4(void) __attribute__((weak, alias("_unhandled_exception")));
-void VectorF8(void) __attribute__((weak, alias("_unhandled_exception")));
-void VectorFC(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 48
-void Vector100(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector104(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector108(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector10C(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 52
-void Vector110(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector114(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector118(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector11C(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 56
-void Vector120(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector124(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector128(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector12C(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 60
-void Vector130(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector134(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector138(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector13C(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 64
-void Vector140(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector144(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector148(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector14C(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 68
-void Vector150(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector154(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector158(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector15C(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 72
-void Vector160(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector164(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector168(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector16C(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 76
-void Vector170(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector174(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector178(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector17C(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 80
-void Vector180(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector184(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector188(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector18C(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 84
-void Vector190(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector194(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector198(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector19C(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 88
-void Vector1A0(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector1A4(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector1A8(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector1AC(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 92
-void Vector1B0(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector1B4(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector1B8(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector1BC(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 96
-void Vector1C0(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector1C4(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector1C8(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector1CC(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 100
-void Vector1D0(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector1D4(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector1D8(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector1DC(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 104
-void Vector1E0(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector1E4(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector1E8(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector1EC(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 108
-void Vector1F0(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector1F4(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector1F8(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector1FC(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 112
-void Vector200(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector204(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector208(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector20C(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 116
-void Vector210(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector214(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector218(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector21C(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 120
-void Vector220(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector224(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector228(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector22C(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 124
-void Vector230(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector234(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector238(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector23C(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 128
-void Vector240(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector244(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector248(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector24C(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 132
-void Vector250(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector254(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector258(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector25C(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 136
-void Vector260(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector264(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector268(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector26C(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 140
-void Vector270(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector274(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector278(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector27C(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 144
-void Vector280(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector284(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector288(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector28C(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 148
-void Vector290(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector294(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector298(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector29C(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 152
-void Vector2A0(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector2A4(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector2A8(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector2AC(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 156
-void Vector2B0(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector2B4(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector2B8(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector2BC(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 160
-void Vector2C0(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector2C4(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector2C8(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector2CC(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 164
-void Vector2D0(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector2D4(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector2D8(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector2DC(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 168
-void Vector2E0(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector2E4(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector2E8(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector2EC(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 172
-void Vector2F0(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector2F4(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector2F8(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector2FC(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 176
-void Vector300(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector304(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector308(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector30C(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 180
-void Vector310(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector314(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector318(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector31C(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 184
-void Vector320(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector324(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector328(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector32C(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 188
-void Vector330(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector334(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector338(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector33C(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 192
-void Vector340(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector344(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector348(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector34C(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 196
-void Vector350(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector354(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector358(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector35C(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 200
-void Vector360(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector364(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector368(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector36C(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 204
-void Vector370(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector374(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector378(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector37C(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 208
-void Vector380(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector384(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector388(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector38C(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 212
-void Vector390(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector394(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector398(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector39C(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 216
-void Vector3A0(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector3A4(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector3A8(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector3AC(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 220
-void Vector3B0(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector3B4(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector3B8(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector3BC(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 224
-void Vector3C0(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector3C4(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector3C8(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector3CC(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 228
-void Vector3D0(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector3D4(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector3D8(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector3DC(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 232
-void Vector3E0(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector3E4(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector3E8(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector3EC(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#if CORTEX_NUM_VECTORS > 236
-void Vector3F0(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector3F4(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector3F8(void) __attribute__((weak, alias("_unhandled_exception")));
-void Vector3FC(void) __attribute__((weak, alias("_unhandled_exception")));
-#endif
-#endif /* !defined(__DOXYGEN__) */
-
-/**
- * @brief STM32 vectors table.
- */
-#if !defined(__DOXYGEN__)
-#if !defined(VECTORS_SECTION)
-__attribute__ ((used, aligned(128), section(".vectors")))
-#else
-__attribute__ ((used, aligned(128), section(VECTORS_SECTION)))
-#endif
-#endif
-/*lint -save -e9075 [8.4] All symbols are invoked from asm context.*/
-vectors_t _vectors = {
-/*lint -restore*/
- &__main_stack_end__,Reset_Handler, NMI_Handler, HardFault_Handler,
- MemManage_Handler, BusFault_Handler, UsageFault_Handler, Vector1C,
- Vector20, Vector24, Vector28, SVC_Handler,
- DebugMon_Handler, Vector34, PendSV_Handler, SysTick_Handler,
- {
- Vector40, Vector44, Vector48, Vector4C,
-#if CORTEX_NUM_VECTORS > 4
- Vector50, Vector54, Vector58, Vector5C,
-#endif
-#if CORTEX_NUM_VECTORS > 8
- Vector60, Vector64, Vector68, Vector6C,
-#endif
-#if CORTEX_NUM_VECTORS > 12
- Vector70, Vector74, Vector78, Vector7C,
-#endif
-#if CORTEX_NUM_VECTORS > 16
- Vector80, Vector84, Vector88, Vector8C,
-#endif
-#if CORTEX_NUM_VECTORS > 20
- Vector90, Vector94, Vector98, Vector9C,
-#endif
-#if CORTEX_NUM_VECTORS > 24
- VectorA0, VectorA4, VectorA8, VectorAC,
-#endif
-#if CORTEX_NUM_VECTORS > 28
- VectorB0, VectorB4, VectorB8, VectorBC,
-#endif
-#if CORTEX_NUM_VECTORS > 32
- VectorC0, VectorC4, VectorC8, VectorCC,
-#endif
-#if CORTEX_NUM_VECTORS > 36
- VectorD0, VectorD4, VectorD8, VectorDC,
-#endif
-#if CORTEX_NUM_VECTORS > 40
- VectorE0, VectorE4, VectorE8, VectorEC,
-#endif
-#if CORTEX_NUM_VECTORS > 44
- VectorF0, VectorF4, VectorF8, VectorFC,
-#endif
-#if CORTEX_NUM_VECTORS > 48
- Vector100, Vector104, Vector108, Vector10C,
-#endif
-#if CORTEX_NUM_VECTORS > 52
- Vector110, Vector114, Vector118, Vector11C,
-#endif
-#if CORTEX_NUM_VECTORS > 56
- Vector120, Vector124, Vector128, Vector12C,
-#endif
-#if CORTEX_NUM_VECTORS > 60
- Vector130, Vector134, Vector138, Vector13C,
-#endif
-#if CORTEX_NUM_VECTORS > 64
- Vector140, Vector144, Vector148, Vector14C,
-#endif
-#if CORTEX_NUM_VECTORS > 68
- Vector150, Vector154, Vector158, Vector15C,
-#endif
-#if CORTEX_NUM_VECTORS > 72
- Vector160, Vector164, Vector168, Vector16C,
-#endif
-#if CORTEX_NUM_VECTORS > 76
- Vector170, Vector174, Vector178, Vector17C,
-#endif
-#if CORTEX_NUM_VECTORS > 80
- Vector180, Vector184, Vector188, Vector18C,
-#endif
-#if CORTEX_NUM_VECTORS > 84
- Vector190, Vector194, Vector198, Vector19C,
-#endif
-#if CORTEX_NUM_VECTORS > 88
- Vector1A0, Vector1A4, Vector1A8, Vector1AC,
-#endif
-#if CORTEX_NUM_VECTORS > 92
- Vector1B0, Vector1B4, Vector1B8, Vector1BC,
-#endif
-#if CORTEX_NUM_VECTORS > 96
- Vector1C0, Vector1C4, Vector1C8, Vector1CC,
-#endif
-#if CORTEX_NUM_VECTORS > 100
- Vector1D0, Vector1D4, Vector1D8, Vector1DC,
-#endif
-#if CORTEX_NUM_VECTORS > 104
- Vector1E0, Vector1E4, Vector1E8, Vector1EC,
-#endif
-#if CORTEX_NUM_VECTORS > 108
- Vector1F0, Vector1F4, Vector1F8, Vector1FC,
-#endif
-#if CORTEX_NUM_VECTORS > 112
- Vector200, Vector204, Vector208, Vector20C,
-#endif
-#if CORTEX_NUM_VECTORS > 116
- Vector210, Vector214, Vector218, Vector21C,
-#endif
-#if CORTEX_NUM_VECTORS > 120
- Vector220, Vector224, Vector228, Vector22C,
-#endif
-#if CORTEX_NUM_VECTORS > 124
- Vector230, Vector234, Vector238, Vector23C,
-#endif
-#if CORTEX_NUM_VECTORS > 128
- Vector240, Vector244, Vector248, Vector24C,
-#endif
-#if CORTEX_NUM_VECTORS > 132
- Vector250, Vector254, Vector258, Vector25C,
-#endif
-#if CORTEX_NUM_VECTORS > 136
- Vector260, Vector264, Vector268, Vector26C,
-#endif
-#if CORTEX_NUM_VECTORS > 140
- Vector270, Vector274, Vector278, Vector27C,
-#endif
-#if CORTEX_NUM_VECTORS > 144
- Vector280, Vector284, Vector288, Vector28C,
-#endif
-#if CORTEX_NUM_VECTORS > 148
- Vector290, Vector294, Vector298, Vector29C,
-#endif
-#if CORTEX_NUM_VECTORS > 152
- Vector2A0, Vector2A4, Vector2A8, Vector2AC,
-#endif
-#if CORTEX_NUM_VECTORS > 156
- Vector2B0, Vector2B4, Vector2B8, Vector2BC,
-#endif
-#if CORTEX_NUM_VECTORS > 160
- Vector2C0, Vector2C4, Vector2C8, Vector2CC,
-#endif
-#if CORTEX_NUM_VECTORS > 164
- Vector2D0, Vector2D4, Vector2D8, Vector2DC,
-#endif
-#if CORTEX_NUM_VECTORS > 168
- Vector2E0, Vector2E4, Vector2E8, Vector2EC,
-#endif
-#if CORTEX_NUM_VECTORS > 172
- Vector2F0, Vector2F4, Vector2F8, Vector2FC,
-#endif
-#if CORTEX_NUM_VECTORS > 176
- Vector300, Vector304, Vector308, Vector30C,
-#endif
-#if CORTEX_NUM_VECTORS > 180
- Vector310, Vector314, Vector318, Vector31C,
-#endif
-#if CORTEX_NUM_VECTORS > 184
- Vector320, Vector324, Vector328, Vector32C,
-#endif
-#if CORTEX_NUM_VECTORS > 188
- Vector330, Vector334, Vector338, Vector33C,
-#endif
-#if CORTEX_NUM_VECTORS > 192
- Vector340, Vector344, Vector348, Vector34C,
-#endif
-#if CORTEX_NUM_VECTORS > 196
- Vector350, Vector354, Vector358, Vector35C,
-#endif
-#if CORTEX_NUM_VECTORS > 200
- Vector360, Vector364, Vector368, Vector36C,
-#endif
-#if CORTEX_NUM_VECTORS > 204
- Vector370, Vector374, Vector378, Vector37C,
-#endif
-#if CORTEX_NUM_VECTORS > 208
- Vector380, Vector384, Vector388, Vector38C,
-#endif
-#if CORTEX_NUM_VECTORS > 212
- Vector390, Vector394, Vector398, Vector39C,
-#endif
-#if CORTEX_NUM_VECTORS > 216
- Vector3A0, Vector3A4, Vector3A8, Vector3AC,
-#endif
-#if CORTEX_NUM_VECTORS > 220
- Vector3B0, Vector3B4, Vector3B8, Vector3BC,
-#endif
-#if CORTEX_NUM_VECTORS > 224
- Vector3C0, Vector3C4, Vector3C8, Vector3CC,
-#endif
-#if CORTEX_NUM_VECTORS > 228
- Vector3D0, Vector3D4, Vector3D8, Vector3DC
-#endif
-#if CORTEX_NUM_VECTORS > 232
- Vector3E0, Vector3E4, Vector3E8, Vector3EC
-#endif
-#if CORTEX_NUM_VECTORS > 236
- Vector3F0, Vector3F4, Vector3F8, Vector3FC
-#endif
- }
-};
-
-/** @} */
diff --git a/os/common/startup/ARMCMx/compilers/GCC/vectors.h b/os/common/startup/ARMCMx/compilers/GCC/vectors.h
deleted file mode 100644
index 3a76aaab3..000000000
--- a/os/common/startup/ARMCMx/compilers/GCC/vectors.h
+++ /dev/null
@@ -1,112 +0,0 @@
-/*
- ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
-
-/**
- * @file ARMCMx/compilers/GCC/vectors.h
- * @brief Interrupt vectors for Cortex-Mx devices.
- *
- * @defgroup ARMCMx_VECTORS Cortex-Mx Interrupt Vectors
- * @{
- */
-
-#ifndef VECTORS_H
-#define VECTORS_H
-
-#include "cmparams.h"
-
-/* This inclusion can be used to remap vectors using different names.
- * Example:
- * #define Vector7C UartRX_Handler
- * This can be useful when using 3rd part libraries that assume specific
- * vector names.
- */
-#if defined(VECTORS_USE_CONF)
-#include "vectorsconf.h"
-#endif
-
-/*===========================================================================*/
-/* Module constants. */
-/*===========================================================================*/
-
-/*===========================================================================*/
-/* Module pre-compile time settings. */
-/*===========================================================================*/
-
-/*===========================================================================*/
-/* Derived constants and error checks. */
-/*===========================================================================*/
-
-/*===========================================================================*/
-/* Module data structures and types. */
-/*===========================================================================*/
-
-#if !defined(_FROM_ASM_)
-/**
- * @brief Type of an IRQ vector.
- */
-typedef void (*irq_vector_t)(void);
-
-/**
- * @brief Type of a structure representing the whole vectors table.
- */
-typedef struct {
- uint32_t *init_stack;
- irq_vector_t reset_handler;
- irq_vector_t nmi_handler;
- irq_vector_t hardfault_handler;
- irq_vector_t memmanage_handler;
- irq_vector_t busfault_handler;
- irq_vector_t usagefault_handler;
- irq_vector_t vector1c;
- irq_vector_t vector20;
- irq_vector_t vector24;
- irq_vector_t vector28;
- irq_vector_t svc_handler;
- irq_vector_t debugmonitor_handler;
- irq_vector_t vector34;
- irq_vector_t pendsv_handler;
- irq_vector_t systick_handler;
- irq_vector_t vectors[CORTEX_NUM_VECTORS];
-} vectors_t;
-#endif /* !defined(_FROM_ASM_) */
-
-/*===========================================================================*/
-/* Module macros. */
-/*===========================================================================*/
-
-/*===========================================================================*/
-/* External declarations. */
-/*===========================================================================*/
-
-#if !defined(_FROM_ASM_)
-extern vectors_t _vectors;
-#endif
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef __cplusplus
-}
-#endif
-
-/*===========================================================================*/
-/* Module inline functions. */
-/*===========================================================================*/
-
-#endif /* VECTORS_H */
-
-/** @} */