Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2132391
  • 博文数量: 288
  • 博客积分: 10594
  • 博客等级: 上将
  • 技术积分: 3469
  • 用 户 组: 普通用户
  • 注册时间: 2006-10-27 19:27
文章分类

全部博文(288)

文章存档

2012年(4)

2011年(30)

2010年(40)

2009年(32)

2008年(71)

2007年(79)

2006年(32)

分类: C/C++

2008-06-19 21:54:31


extern interrupt void IRQIsr(void);

//extern interrupt void KBD_ISR();

//*****************************
//Put your ISR routines here.
//extern interrupt void yourAppISR(void);
extern interrupt void Vscirx();
extern interrupt void isrRTI();
//Put the Function Name of your interrupt handler into this constant array.
//at the ISR location that you want.

interrupt void UnimplementedISR(void)
{
  for(;;);
}

// Added redirected ISR vectors when BootLoader is enabled.
// The application cannot have a reset vector (resides in BootLoader).
#if (EMBEDDED_BOOTLOADER == TRUE)
    // Redirected ISR vectors
    const tIsrFunc _vect[] @0xEFCC = {  /* Interrupt table */
#else
    const tIsrFunc _vect[] @0xFFCC = {  /* Interrupt table */
#endif
        isrRTI,                 /* vector 25: RT */
        UnimplementedISR,       /* vector 24: IIC */
        UnimplementedISR,       /* vector 23: ATD */
        UnimplementedISR,       /* vector 22: KBI */
        UnimplementedISR,       /* vector 21: SCI2TX */
        Vscirx,                 /* vector 20: SCI2RX */
        UnimplementedISR,       /* vector 19: SCI2ER */
        UnimplementedISR,       /* vector 18: SCI1TX */
        Vscirx,                 /* vector 17: SCI1RX */
        UnimplementedISR,       /* vector 16: SCI1ER */
        UnimplementedISR,       /* vector 15: SPI */
        UnimplementedISR,       /* vector 14: TPM2OF */
        UnimplementedISR,       /* vector 13: TPM2C4 */
        UnimplementedISR,       /* vector 12: TPM2C3 */
        UnimplementedISR,       /* vector 11: TPM2C2 */
        UnimplementedISR,       /* vector 10: TPM2C1 */
        UnimplementedISR,       /* vector 09: TPM2C0 */
        UnimplementedISR,       /* vector 08: TPM1OF */
        UnimplementedISR,       /* vector 07: TPM1C2 */
        UnimplementedISR,       /* vector 06: TPM1C1 */
        UnimplementedISR,       /* vector 05: TPM1C0 */
        UnimplementedISR,       /* vector 04: ICG */
        UnimplementedISR,       /* vector 03: Low Voltage Detect */
        IRQIsr,                 /* vector 02: IRQ pin */
        UnimplementedISR        /* vector 01: SWI */
        /*_Startup, by default in library*/ /* Reset vector */
   };

阅读(4652) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~