📄 exceptions.c
字号:
#include "cortexm3.h"
void NMIException(void)
{ while(1); }
void HardFaultException(void)
{ while(1); }
void MemManageException(void)
{ while(1); }
void BusFaultException(void)
{ while(1); }
void UsageFaultException(void)
{ while(1); }
void DebugMonitor(void)
{ while(1); }
void SVCHandler(void)
{ while(1); }
void PendSVC(void)
{ while(1); }
void SysTickHandler(void)
{ while(1); }
/* This table extends the minimal table provided
* by the ARM standard library
*/
#pragma arm section rwdata="exceptions_area"
ExecFuncPtr exception_table[] = {
/* (ExecFuncPtr)&Image$$ARM_LIB_STACK$$ZI$$Limit, *//* Initial SP, already provided by library */
/* (ExecFuncPtr)&__main, *//* Initial PC, already provided by library */
&NMIException,
&HardFaultException,
&MemManageException,
&BusFaultException,
&UsageFaultException,
0, 0, 0, 0, /* Reserved */
(ExecFuncPtr)&SVCHandler,
&DebugMonitor,
0, /* Reserved */
&PendSVC,
&SysTickHandler
/* Configurable interrupts start here...*/
};
#pragma arm section
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -