www.pudn.com > DPS2812_EXTAD.rar > DSP28_Ev.c


// 
//      TMDX ALPHA RELEASE 
//      Intended for product evaluation purposes 
// 
//########################################################################### 
// 
// FILE:	DSP28_Ev.c 
// 
// TITLE:	DSP28 Event Manager Initialization & 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" 
 
//--------------------------------------------------------------------------- 
// InitEv:  
//--------------------------------------------------------------------------- 
// This function initializes to a known state. 
// 
void InitEv(void) 
{ 
	EALLOW; 
	GpioMuxRegs.GPBMUX.all = 0x0080; 
	EDIS; 
	 
	EvbRegs.GPTCONB.all = 0x0064; 
 
	EvbRegs.T4CNT = 0; 
	EvbRegs.T4CON.all = 0x1142; 
	EvbRegs.T4PR = 0x7a12; 
	EvbRegs.T4CMPR = 0x7000; 
}	 
	 
//=========================================================================== 
// No more. 
//===========================================================================