dsp281x_xintrupt.c

来自「TMSC320F2812串口SCI通信,SCIA,SCIB,波特率设置」· C语言 代码 · 共 21 行

C
21
字号
#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.
//===========================================================================

⌨️ 快捷键说明

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