www.pudn.com > SCIB_RS232.rar > DSP281x_XIntrupt.c
#include "DSP281x_Device.h"
#include "DSP281x_Examples.h" // DSP281x Examples Include File
//---------------------------------------------------------------------------
// InitXIntrupt:
//---------------------------------------------------------------------------
// This function initializes external interrupts to a known state.
//
void InitXIntrupt(void)
{
XIntruptRegs.XINT1CR.all=0x0001; //enable theXINT1, actived at the fall of clock
XIntruptRegs.XINT2CR.all=0x0001; //enable theXINT2, actived at the fall of clock
XIntruptRegs.XNMICR.all=0x0000; //not use
XIntruptRegs.XINT1CTR=0x0000; //not use
XIntruptRegs.XINT2CTR=0x0000; //not use
XIntruptRegs.XNMICTR=0x0000; //not use
}
//===========================================================================
// No more.
//===========================================================================