void Isr_Init(void) { pISR_UNDEF = (U32)HaltUndef; pISR_SWI = (U32)HaltSwi; pISR_PABORT = (U32)HaltPabort; pISR_DABORT = (U32)HaltDabort; rINTMOD = 0x0; // All=IRQ mode rINTMSK = BIT_ALLMSK; // All interrupt is masked. }
void HaltUndef(void) { puts("Undefined instruction exception!!!
"); // printf("Undefined instruction at 0x%08x!!!
", addr); // printf("0x%08x, 0x%08x
", rSRCPND, rINTPND); while(1); }
有人知道上面的代码是什么意思吗? |