dsp28_xintrupt.c

来自「这是在DSP 的基础上扩展10M以太网来实现网络的通讯,用的CPU 为2812」· C语言 代码 · 共 41 行

C
41
字号
//
//      TMDX ALPHA RELEASE
//      Intended for product evaluation purposes
//
//###########################################################################
//
// FILE:	DSP28_XIntrupt.c
//
// TITLE:	DSP28 External Interrupt Initalization & Support Functions.
//
//###########################################################################
//
//  Ver | dd mmm yyyy | Who  | Description of changes
// =====|=============|======|===============================================
//  0.55| 06 May 2002 | L.H. | EzDSP Alpha Release
//  0.56| 20 May 2002 | L.H. | No change
//  0.57| 27 May 2002 | L.H. | No change
//###########################################################################

#include "DSP28_Device.h"

//---------------------------------------------------------------------------
// InitXIntrupt: 
//---------------------------------------------------------------------------
// This function initializes external interrupts to a known state.
//
void InitXIntrupt(void)
{
	EALLOW;
	XIntruptRegs.XINT1CR.bit.ENABLE = 1;
	XIntruptRegs.XINT1CR.bit.POLARITY =0;
	XIntruptRegs.XINT2CR.bit.ENABLE = 1;
	XIntruptRegs.XINT2CR.bit.POLARITY =1;//8019中断为高电平
	XIntruptRegs.XNMICR.bit.ENABLE = 0;
    EDIS;
}	

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

⌨️ 快捷键说明

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