DSP281x_XIntrupt.h
上传用户:qingfan3
上传日期:2014-10-27
资源大小:31439k
文件大小:2k
- //###########################################################################
- //
- // FILE: DSP281x_XIntrupt.h
- //
- // TITLE: DSP281x Device External Interrupt Register Definitions.
- //
- //###########################################################################
- //
- // Ver | dd mmm yyyy | Who | Description of changes
- // =====|=============|======|===============================================
- // 1.00| 11 Sep 2003 | L.H. | No change since previous version (v.58 Alpha)
- //###########################################################################
- #ifndef DSP281x_XINTRUPT_H
- #define DSP281x_XINTRUPT_H
- #ifdef __cplusplus
- extern "C" {
- #endif
- //---------------------------------------------------------------------------
- struct XINTCR_BITS {
- Uint16 ENABLE:1; // 0 enable/disable
- Uint16 rsvd1:1; // 1 reserved
- Uint16 POLARITY:1; // 2 pos/neg triggered
- Uint16 rsvd2:12; // 15:3 reserved
- };
- union XINTCR_REG {
- Uint16 all;
- struct XINTCR_BITS bit;
- };
- struct XNMICR_BITS {
- Uint16 ENABLE:1; // 0 enable/disable
- Uint16 SELECT:1; // 1 Timer 1 or XNMI connected to INT13
- Uint16 POLARITY:1; // 2 pos/neg triggered
- Uint16 rsvd2:12; // 15:3 reserved
- };
- union XNMICR_REG {
- Uint16 all;
- struct XNMICR_BITS bit;
- };
- //---------------------------------------------------------------------------
- // External Interrupt Register File:
- //
- struct XINTRUPT_REGS {
- union XINTCR_REG XINT1CR;
- union XINTCR_REG XINT2CR;
- Uint16 rsvd1[5];
- union XNMICR_REG XNMICR;
- Uint16 XINT1CTR;
- Uint16 XINT2CTR;
- Uint16 rsvd[5];
- Uint16 XNMICTR;
- };
- //---------------------------------------------------------------------------
- // External Interrupt References & Function Declarations:
- //
- extern volatile struct XINTRUPT_REGS XIntruptRegs;
- #ifdef __cplusplus
- }
- #endif /* extern "C" */
- #endif // end of DSP281x_XINTF_H definition
- //===========================================================================
- // No more.
- //===========================================================================