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

📄 xgate.h

📁 XGATE Training2_Xgate_Software_Interrupts
💻 H
字号:

#ifndef __XGATE_H_
#define __XGATE_H_

/* XGATE vector table entry */
typedef void (* _NEAR XGATE_Function)(int);
typedef struct {
  XGATE_Function pc;        /* pointer to the handler */
  int dataptr;              /* pointer to the data of the handler */
} XGATE_TableEntry;



#define XGATE_VECTOR_OFFSET 0x1E							   /* the first elements are unused and need not to be allocated (to save space) */



#pragma push								
#pragma CONST_SEG __GPAGE_SEG XGATE_VECTORS  /* for the HCS12X/XGATE shared setup, HCS12X needs global addressing to access the vector table. */
extern const XGATE_TableEntry XGATE_VectorTable[];
#pragma pop									




#endif /* __XGATE_H_ */

⌨️ 快捷键说明

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