📄 main.c
字号:
//###########################################################################
//
// FILE: Main.c
//
// TITLE: Wheel Abrasion Detection Program for Using TMS320F2812.
//
// ASSUMPTIONS:
//
// This program requires some relative header files.
// As supplied, this project is configured for "boot to ZONE2" operation.
//
// Other then boot mode configuration, no other hardware configuration
// is required.
//
// DESCRIPTION:
//
// This is an example for detecting abrasion of train. And it will be
// used in spot running. The main purpose is that the measurement data
// are obtained by the program for reasearching the characteristic of
// abrasion of wheel.
//
//
//###########################################################################
// Ver | dd mmm yyyy | Who | Description of changes
// =====|=============|=======|===============================================
// 1.00| 27 Aug. 2004 | Y.Z.Y | Third Version V1.5
//###########################################################################
#include "F2812reg.h"
#include "Main.h"
#include "DSP281x_PieVect.h"
#include "DSP281x_ECan.h"
//===========================================================================
//---------------------------------------------------------------------------
//Function name: Main
//Description: Implementing the main task of the project
//Input: No
//Output: No
//Extern Variables: No
//Called Model:
//Author: Zhiyi You
//Date: 12/Mar./2004
//---------------------------------------------------------------------------
//Modified Author:
//Date:
//Description:
//---------------------------------------------------------------------------
//===========================================================================
main()
{
DisableDog();
InitSysCtrl();
XintfInit();
GpioInit();
EvInit();
SciInit();
AdcInit();
InitPieCtrl();
InitPieVectTable();
ConfigCpuTimers();
SpiInit();
ECanInit();
ECanConfig();
EnableInterrupts();
while(1){;}
}
//end main function!
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -