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

📄 dsp281x_extctrl.h

📁 许继的2812开发全套驱动程序,很全很实用的.rar
💻 H
字号:
//###########################################################################
//
// FILE:  DSP281x_ExtCtrl.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_EXTCTRL_H
#define DSP281x_EXTCTRL_H


#ifdef __cplusplus
extern "C" {
#endif

//---------------------------------------------------------------------------
struct EXDO_BITS {
    Uint16   DO0:1;     // 0      enable/disable
    Uint16   DO1:1;     // 1      reserved
    Uint16   DO2:1;     // 2      pos/neg triggered
    Uint16   DO3:1;     // 3
    Uint16   ALARM:1;     //4      reserved
    Uint16   BEEP:1;     // 5      pos/neg triggered
    Uint16   LED0:1;     // 6
    Uint16   LED1:1;     // 7      enable/disable

};

union EXDO_REG {
   Uint16               all;
   struct EXDO_BITS     bit;
};  



struct EXCONL_BITS {
    Uint16   PCS0:1;    // 0      enable/disable
    Uint16   PCS1:1;    // 1      Timer 1 or XNMI connected to INT13
    Uint16   RD:1;  // 2      pos/neg triggered
    Uint16   WR:1;    // 15:3   reserved
    Uint16   A0:1;    // 0      enable/disable
    Uint16   LCDEN:1;    // 1      Timer 1 or XNMI connected to INT13
    Uint16   LEYEN:1;  // 2      pos/neg triggered
    Uint16   DIR:1;    // 15:3   reserved

};

union EXCONL_REG {
   Uint16               all;
   struct EXCONL_BITS   bit;
};  


struct EXDI_BITS {
    Uint16   DI0:1;    // 0      enable/disable
    Uint16   DI1:1;    // 1      Timer 1 or XNMI connected to INT13
    Uint16   DI2:1;  // 2      pos/neg triggered
    Uint16   DI3:1;    // 15:3   reserved
    Uint16   LEYINT:1;    // 0      enable/disable
    Uint16   LCDINT:1;    // 1      Timer 1 or XNMI connected to INT13
    Uint16   UART3:1;  // 2      pos/neg triggered
    Uint16   UART4:1;    // 15:3   reserved

};

union EXDI_REG {
   Uint16               all;
   struct EXDI_BITS     bit;
};  


 



//---------------------------------------------------------------------------
// External Interrupt Register File:
//
struct EXTCTRL_REGS {
   union EXDO_REG EXDO;
   union EXCONL_REG EXCONL;
   union EXDI_REG EXDI;
   Uint16 rsvd0;
   Uint16 LCDDATA;
   Uint16 LCDCMD;
   Uint16 KEYDATA;
   Uint16 rsvd1;
   Uint16 PCS0;
   Uint16 PCS1;   
};

//---------------------------------------------------------------------------
// External Interrupt References & Function Declarations:
//
extern volatile struct EXTCTRL_REGS ExtCtrlRegs;

#ifdef __cplusplus
}
#endif /* extern "C" */

#endif  // end of DSP281x_EXTCTRL_H definition

//===========================================================================
// No more.
//===========================================================================

⌨️ 快捷键说明

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