vectortable_xbee.c

来自「nRF24E1 sample xBee development」· C语言 代码 · 共 70 行

C
70
字号
/*****************************************************************
* Interrupt Vector Table 
*
* (c) Copyright 2006, MaxStream, Inc.
*
******************************************************************/

#include "pub_def.h"

#ifdef TARGET_XBEE
typedef void(*tIsrFunc)(void);

extern void _Startup(void);
extern interrupt void IRQIsr(void);

//extern interrupt void KBD_ISR();

//*****************************
//Put your ISR routines here.
//extern interrupt void yourAppISR(void);
extern interrupt void Vscirx();

//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).

//#define USE_MAXSTREAM_BOOTLOADER  //Enable this to program with XCTU
                                    //Disable to program with BDM/Multilink

#ifdef USE_MAXSTREAM_BOOTLOADER
    const tIsrFunc _vect[] @0xFDCC = {  /* Interrupt table */
#else
    const tIsrFunc _vect[] @0xFFCC = {  /* Interrupt table */
#endif
        UnimplementedISR,       /* 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/*_Startup, by default in library*/ /* Reset vector */
   };
   
#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?