diff options
Diffstat (limited to 'os/ports/GCC/ARMCMx/STM32/vectors.c')
-rw-r--r-- | os/ports/GCC/ARMCMx/STM32/vectors.c | 314 |
1 files changed, 114 insertions, 200 deletions
diff --git a/os/ports/GCC/ARMCMx/STM32/vectors.c b/os/ports/GCC/ARMCMx/STM32/vectors.c index 737ebe1bb..0b5521348 100644 --- a/os/ports/GCC/ARMCMx/STM32/vectors.c +++ b/os/ports/GCC/ARMCMx/STM32/vectors.c @@ -136,45 +136,34 @@ extern void Vector14C(void); __attribute__ ((section("vectors")))
#endif
void (*_vectors[])(void) = {
- __ram_end__,
- ResetHandler,
- NMIVector,
- HardFaultVector,
- MemManageVector,
- BusFaultVector,
- UsageFaultVector,
- Vector1C,
- Vector20,
- Vector24,
- Vector28,
- SVCallVector,
- DebugMonitorVector,
- Vector34,
- PendSVVector,
- SysTickVector,
- Vector40, Vector44, Vector48, Vector4C,
- Vector50, Vector54, Vector58, Vector5C,
- Vector60, Vector64, Vector68, Vector6C,
- Vector70, Vector74, Vector78, Vector7C,
- Vector80, Vector84, Vector88, Vector8C,
- Vector90, Vector94, Vector98, Vector9C,
- VectorA0, VectorA4, VectorA8, VectorAC,
- VectorB0, VectorB4, VectorB8, VectorBC,
- VectorC0, VectorC4, VectorC8, VectorCC,
- VectorD0, VectorD4, VectorD8, VectorDC,
- VectorE0, VectorE4, VectorE8,
-#if defined(STM32F10X_MD_VL) || defined(STM32F10X_HD) || defined(STM32F10X_CL)
- VectorEC, VectorF0, VectorF4,
+ __ram_end__, ResetHandler, NMIVector, HardFaultVector,
+ MemManageVector, BusFaultVector, UsageFaultVector, Vector1C,
+ Vector20, Vector24, Vector28, SVCallVector,
+ DebugMonitorVector, Vector34, PendSVVector, SysTickVector,
+ Vector40, Vector44, Vector48, Vector4C,
+ Vector50, Vector54, Vector58, Vector5C,
+ Vector60, Vector64, Vector68, Vector6C,
+ Vector70, Vector74, Vector78, Vector7C,
+ Vector80, Vector84, Vector88, Vector8C,
+ Vector90, Vector94, Vector98, Vector9C,
+ VectorA0, VectorA4, VectorA8, VectorAC,
+ VectorB0, VectorB4, VectorB8, VectorBC,
+ VectorC0, VectorC4, VectorC8, VectorCC,
+ VectorD0, VectorD4, VectorD8, VectorDC,
+ VectorE0, VectorE4, VectorE8,
+#if defined(STM32F10X_MD_VL) || defined(STM32F10X_HD) || \
+ defined(STM32F10X_XL) || defined(STM32F10X_CL)
+ VectorEC, VectorF0, VectorF4,
#endif
-#if defined(STM32F10X_HD) || defined(STM32F10X_CL)
- VectorF8, VectorFC, Vector100, Vector104,
- Vector108, Vector10C, Vector110, Vector114,
- Vector118, Vector11C, Vector120, Vector124,
- Vector128, Vector12C,
+#if defined(STM32F10X_HD) || defined(STM32F10X_XL) || defined(STM32F10X_CL)
+ VectorF8, VectorFC, Vector100, Vector104,
+ Vector108, Vector10C, Vector110, Vector114,
+ Vector118, Vector11C, Vector120, Vector124,
+ Vector128, Vector12C,
#endif
#if defined(STM32F10X_CL)
- Vector130, Vector134, Vector138, Vector13C,
- Vector140, Vector144, Vector148, Vector14C
+ Vector130, Vector134, Vector138, Vector13C,
+ Vector140, Vector144, Vector148, Vector14C
#endif
};
@@ -191,170 +180,95 @@ __attribute__ ((naked)) void _unhandled_exception(void) {
asm volatile (
- ".weak NMIVector \n"
- "NMIVector: \n\t"
- ".weak HardFaultVector \n"
- "HardFaultVector: \n\t"
- ".weak MemManageVector \n"
- "MemManageVector: \n\t"
- ".weak BusFaultVector \n"
- "BusFaultVector: \n\t"
- ".weak UsageFaultVector \n"
- "UsageFaultVector: \n\t"
- ".weak Vector1C \n"
- "Vector1C: \n\t"
- ".weak Vector20 \n"
- "Vector20: \n\t"
- ".weak Vector24 \n"
- "Vector24: \n\t"
- ".weak Vector28 \n"
- "Vector28: \n\t"
- ".weak SVCallVector \n"
- "SVCallVector: \n\t"
- ".weak DebugMonitorVector \n"
- "DebugMonitorVector: \n\t"
- ".weak Vector34 \n"
- "Vector34: \n\t"
- ".weak PendSVVector \n"
- "PendSVVector: \n\t"
- ".weak SysTickVector \n"
- "SysTickVector: \n\t"
- ".weak Vector40 \n"
- "Vector40: \n\t"
- ".weak Vector44 \n"
- "Vector44: \n\t"
- ".weak Vector48 \n"
- "Vector48: \n\t"
- ".weak Vector4C \n"
- "Vector4C: \n\t"
- ".weak Vector50 \n"
- "Vector50: \n\t"
- ".weak Vector54 \n"
- "Vector54: \n\t"
- ".weak Vector58 \n"
- "Vector58: \n\t"
- ".weak Vector5C \n"
- "Vector5C: \n\t"
- ".weak Vector60 \n"
- "Vector60: \n\t"
- ".weak Vector64 \n"
- "Vector64: \n\t"
- ".weak Vector68 \n"
- "Vector68: \n\t"
- ".weak Vector6C \n"
- "Vector6C: \n\t"
- ".weak Vector70 \n"
- "Vector70: \n\t"
- ".weak Vector74 \n"
- "Vector74: \n\t"
- ".weak Vector78 \n"
- "Vector78: \n\t"
- ".weak Vector7C \n"
- "Vector7C: \n\t"
- ".weak Vector80 \n"
- "Vector80: \n\t"
- ".weak Vector84 \n"
- "Vector84: \n\t"
- ".weak Vector88 \n"
- "Vector88: \n\t"
- ".weak Vector8C \n"
- "Vector8C: \n\t"
- ".weak Vector90 \n"
- "Vector90: \n\t"
- ".weak Vector94 \n"
- "Vector94: \n\t"
- ".weak Vector98 \n"
- "Vector98: \n\t"
- ".weak Vector9C \n"
- "Vector9C: \n\t"
- ".weak VectorA0 \n"
- "VectorA0: \n\t"
- ".weak VectorA4 \n"
- "VectorA4: \n\t"
- ".weak VectorA8 \n"
- "VectorA8: \n\t"
- ".weak VectorAC \n"
- "VectorAC: \n\t"
- ".weak VectorB0 \n"
- "VectorB0: \n\t"
- ".weak VectorB4 \n"
- "VectorB4: \n\t"
- ".weak VectorB8 \n"
- "VectorB8: \n\t"
- ".weak VectorBC \n"
- "VectorBC: \n\t"
- ".weak VectorC0 \n"
- "VectorC0: \n\t"
- ".weak VectorC4 \n"
- "VectorC4: \n\t"
- ".weak VectorC8 \n"
- "VectorC8: \n\t"
- ".weak VectorCC \n"
- "VectorCC: \n\t"
- ".weak VectorD0 \n"
- "VectorD0: \n\t"
- ".weak VectorD4 \n"
- "VectorD4: \n\t"
- ".weak VectorD8 \n"
- "VectorD8: \n\t"
- ".weak VectorDC \n"
- "VectorDC: \n\t"
- ".weak VectorE0 \n"
- "VectorE0: \n\t"
- ".weak VectorE4 \n"
- "VectorE4: \n\t"
- ".weak VectorE8 \n"
- "VectorE8: \n\t"
- ".weak VectorEC \n"
- "VectorEC: \n\t"
- ".weak VectorF0 \n"
- "VectorF0: \n\t"
- ".weak VectorF4 \n"
- "VectorF4: \n\t"
- ".weak VectorF8 \n"
- "VectorF8: \n\t"
- ".weak VectorFC \n"
- "VectorFC: \n\t"
- ".weak Vector100 \n"
- "Vector100: \n\t"
- ".weak Vector104 \n"
- "Vector104: \n\t"
- ".weak Vector108 \n"
- "Vector108: \n\t"
- ".weak Vector10C \n"
- "Vector10C: \n\t"
- ".weak Vector110 \n"
- "Vector110: \n\t"
- ".weak Vector114 \n"
- "Vector114: \n\t"
- ".weak Vector118 \n"
- "Vector118: \n\t"
- ".weak Vector11C \n"
- "Vector11C: \n\t"
- ".weak Vector120 \n"
- "Vector120: \n\t"
- ".weak Vector124 \n"
- "Vector124: \n\t"
- ".weak Vector128 \n"
- "Vector128: \n\t"
- ".weak Vector12C \n"
- "Vector12C: \n\t"
- ".weak Vector130 \n"
- "Vector130: \n\t"
- ".weak Vector134 \n"
- "Vector134: \n\t"
- ".weak Vector138 \n"
- "Vector138: \n\t"
- ".weak Vector13C \n"
- "Vector13C: \n\t"
- ".weak Vector140 \n"
- "Vector140: \n\t"
- ".weak Vector144 \n"
- "Vector144: \n\t"
- ".weak Vector148 \n"
- "Vector148: \n\t"
- ".weak Vector14C \n"
- "Vector14C: \n\t"
+ ".weak NMIVector \nNMIVector: \n\t"
+ ".weak HardFaultVector \nHardFaultVector: \n\t"
+ ".weak MemManageVector \nMemManageVector: \n\t"
+ ".weak BusFaultVector \nBusFaultVector: \n\t"
+ ".weak UsageFaultVector \nUsageFaultVector: \n\t"
+ ".weak Vector1C \nVector1C: \n\t"
+ ".weak Vector20 \nVector20: \n\t"
+ ".weak Vector24 \nVector24: \n\t"
+ ".weak Vector28 \nVector28: \n\t"
+ ".weak SVCallVector \nSVCallVector: \n\t"
+ ".weak DebugMonitorVector \nDebugMonitorVector: \n\t"
+ ".weak Vector34 \nVector34: \n\t"
+ ".weak PendSVVector \nPendSVVector: \n\t"
+ ".weak SysTickVector \nSysTickVector: \n\t"
+ ".weak Vector40 \nVector40: \n\t"
+ ".weak Vector44 \nVector44: \n\t"
+ ".weak Vector48 \nVector48: \n\t"
+ ".weak Vector4C \nVector4C: \n\t"
+ ".weak Vector50 \nVector50: \n\t"
+ ".weak Vector54 \nVector54: \n\t"
+ ".weak Vector58 \nVector58: \n\t"
+ ".weak Vector5C \nVector5C: \n\t"
+ ".weak Vector60 \nVector60: \n\t"
+ ".weak Vector64 \nVector64: \n\t"
+ ".weak Vector68 \nVector68: \n\t"
+ ".weak Vector6C \nVector6C: \n\t"
+ ".weak Vector70 \nVector70: \n\t"
+ ".weak Vector74 \nVector74: \n\t"
+ ".weak Vector78 \nVector78: \n\t"
+ ".weak Vector7C \nVector7C: \n\t"
+ ".weak Vector80 \nVector80: \n\t"
+ ".weak Vector84 \nVector84: \n\t"
+ ".weak Vector88 \nVector88: \n\t"
+ ".weak Vector8C \nVector8C: \n\t"
+ ".weak Vector90 \nVector90: \n\t"
+ ".weak Vector94 \nVector94: \n\t"
+ ".weak Vector98 \nVector98: \n\t"
+ ".weak Vector9C \nVector9C: \n\t"
+ ".weak VectorA0 \nVectorA0: \n\t"
+ ".weak VectorA4 \nVectorA4: \n\t"
+ ".weak VectorA8 \nVectorA8: \n\t"
+ ".weak VectorAC \nVectorAC: \n\t"
+ ".weak VectorB0 \nVectorB0: \n\t"
+ ".weak VectorB4 \nVectorB4: \n\t"
+ ".weak VectorB8 \nVectorB8: \n\t"
+ ".weak VectorBC \nVectorBC: \n\t"
+ ".weak VectorC0 \nVectorC0: \n\t"
+ ".weak VectorC4 \nVectorC4: \n\t"
+ ".weak VectorC8 \nVectorC8: \n\t"
+ ".weak VectorCC \nVectorCC: \n\t"
+ ".weak VectorD0 \nVectorD0: \n\t"
+ ".weak VectorD4 \nVectorD4: \n\t"
+ ".weak VectorD8 \nVectorD8: \n\t"
+ ".weak VectorDC \nVectorDC: \n\t"
+ ".weak VectorE0 \nVectorE0: \n\t"
+ ".weak VectorE4 \nVectorE4: \n\t"
+ ".weak VectorE8 \nVectorE8: \n\t"
+#if defined(STM32F10X_MD_VL) || defined(STM32F10X_HD) || \
+ defined(STM32F10X_XL) || defined(STM32F10X_CL)
+ ".weak VectorEC \nVectorEC: \n\t"
+ ".weak VectorF0 \nVectorF0: \n\t"
+ ".weak VectorF4 \nVectorF4: \n\t"
+#endif
+#if defined(STM32F10X_HD) || defined(STM32F10X_XL) || defined(STM32F10X_CL)
+ ".weak VectorF8 \nVectorF8: \n\t"
+ ".weak VectorFC \nVectorFC: \n\t"
+ ".weak Vector100 \nVector100: \n\t"
+ ".weak Vector104 \nVector104: \n\t"
+ ".weak Vector108 \nVector108: \n\t"
+ ".weak Vector10C \nVector10C: \n\t"
+ ".weak Vector110 \nVector110: \n\t"
+ ".weak Vector114 \nVector114: \n\t"
+ ".weak Vector118 \nVector118: \n\t"
+ ".weak Vector11C \nVector11C: \n\t"
+ ".weak Vector120 \nVector120: \n\t"
+ ".weak Vector124 \nVector124: \n\t"
+ ".weak Vector128 \nVector128: \n\t"
+ ".weak Vector12C \nVector12C: \n\t"
+#endif
+#if defined(STM32F10X_CL)
+ ".weak Vector130 \nVector130: \n\t"
+ ".weak Vector134 \nVector134: \n\t"
+ ".weak Vector138 \nVector138: \n\t"
+ ".weak Vector13C \nVector13C: \n\t"
+ ".weak Vector140 \nVector140: \n\t"
+ ".weak Vector144 \nVector144: \n\t"
+ ".weak Vector148 \nVector148: \n\t"
+ ".weak Vector14C \nVector14C: \n\t"
+#endif
);
while (TRUE)
|