⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xgvectors.h

📁 关于XD256的应用实例,用于汽车电子开发之用
💻 H
字号:
/*****************************************************
     XGVectors.h - Declares the XGATE channel numbers
 ----------------------------------------------------
  
 *****************************************************/
#ifndef __XGVECTORS_H_
#define __XGVECTORS_H_

/* XGATE vector table */
typedef void (*_NEAR XGATE_Function)(void *);

typedef struct {
  XGATE_Function pc;        /* pointer to the handler */
  void *dataptr;            /* pointer to the data of the handler */
} XGATE_TableEntry;


#pragma CONST_SEG XGATE_CONST

extern const XGATE_TableEntry XGATE_VectorTable[0x80]; 

#pragma CONST_SEG DEFAULT

/* Channel numbers */

#define XSRAM20KCh  0x30
#define XGSwErrorCh 0x31
#define XGSwTrig7Ch 0x32
#define XGSwTrig6Ch 0x33
#define XGSwTrig5Ch 0x34
#define XGSwTrig4Ch 0x35
#define XGSwTrig3Ch 0x36
#define XGSwTrig2Ch 0x37
#define XGSwTrig1Ch 0x38
#define XGSwTrig0Ch 0x39
#define PIT3Ch      0x3a
#define PIT2Ch      0x3b
#define PIT1Ch      0x3c
#define PIT0Ch      0x3d
#define APICh       0x3f
#define LVICh       0x40
#define IIC1Ch      0x41
#define SCI5Ch      0x42
#define SCI4Ch      0x43
#define SCI3Ch      0x44
#define SCI2Ch      0x45
#define PWMShDwnCh  0x46
#define PortPCh     0x47
#define CAN4TxCh    0x48
#define CAN4RxCh    0x49
#define CAN4ErrCh   0x4a
#define CAN4WuCh    0x4b
#define CAN3TxCh    0x4c
#define CAN3RxCh    0x4d
#define CAN3ErrCh   0x4e
#define CAN3WuCh    0x4f
#define CAN2TxCh    0x50
#define CAN2RxCh    0x51
#define CAN2ErrCh   0x52
#define CAN2WuCh    0x53
#define CAN1TxCh    0x54
#define CAN1RxCh    0x55
#define CAN1ErrCh   0x56
#define CAN1WuCh    0x57
#define CAN0TxCh    0x58
#define CAN0RxCh    0x59
#define CAN0ErrCh   0x5a
#define CAN0WuCh    0x5b
#define FlashCh     0x5c
#define EEPROMCh    0x5d
#define SPI2Ch      0x5e
#define SPI1Ch      0x5f
#define IIC0Ch      0x60
#define CRGSCMCh    0x62
#define CRGPLLLockCh 0x63
#define PACCBOvCh   0x64
#define ModCtrCh    0x65
#define PORTHCh     0x66
#define PORTJCh     0x67
#define ATD1Ch      0x68
#define ATD0Ch      0x69
#define SCI1Ch      0x6a
#define SCI0Ch      0x6b
#define SPI0Ch      0x6c
#define PACCEdgeCh  0x6d
#define PACCOvCh    0x6e
#define TimerOvCh   0x6f
#define TimerCh7Ch  0x70
#define TimerCh6Ch  0x71
#define TimerCh5Ch  0x72
#define TimerCh4Ch  0x73
#define TimerCh3Ch  0x74
#define TimerCh2Ch  0x75
#define TimerCh1Ch  0x76
#define TimerCh0Ch  0x77
#define RTICh       0x78

#endif  

⌨️ 快捷键说明

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