diff options
Diffstat (limited to 'os/ports/GCC/ARMCMx/LPC11xx')
-rw-r--r-- | os/ports/GCC/ARMCMx/LPC11xx/vectors.c | 96 |
1 files changed, 47 insertions, 49 deletions
diff --git a/os/ports/GCC/ARMCMx/LPC11xx/vectors.c b/os/ports/GCC/ARMCMx/LPC11xx/vectors.c index 2fd25a686..c51a89e25 100644 --- a/os/ports/GCC/ARMCMx/LPC11xx/vectors.c +++ b/os/ports/GCC/ARMCMx/LPC11xx/vectors.c @@ -114,57 +114,55 @@ __attribute__ ((naked)) #endif
void _unhandled_exception(void) {
- asm volatile (
- ".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"
- );
-
while (TRUE)
;
}
+void NMIVector(void) __attribute__((weak, alias("_unhandled_exception")));
+void HardFaultVector(void) __attribute__((weak, alias("_unhandled_exception")));
+void MemManageVector(void) __attribute__((weak, alias("_unhandled_exception")));
+void BusFaultVector(void) __attribute__((weak, alias("_unhandled_exception")));
+void UsageFaultVector(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 SVCallVector(void) __attribute__((weak, alias("_unhandled_exception")));
+void DebugMonitorVector(void) __attribute__((weak, alias("_unhandled_exception")));
+void Vector34(void) __attribute__((weak, alias("_unhandled_exception")));
+void PendSVVector(void) __attribute__((weak, alias("_unhandled_exception")));
+void SysTickVector(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")));
+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")));
+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")));
+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")));
+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")));
+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")));
+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")));
+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")));
+
/** @} */
|