This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Here is the file
EvaRegs.T1PR = Period; // Timer2 period
EvaRegs.T1CMPR = Pulse; // Timer2 compare
EvaRegs.T1CNT = 0x0000; // Timer1 counter
EvaRegs.T1CON.all = 0x1042; //连续增计数模式,使能定时器,比较使能
EvaRegs.GPTCONA.bit.TCMPOE = 1;//设置引脚T1PWM_T1CMP、T2PWM_T2CMP由定时器1和2独立驱动
EvaRegs.GPTCONA.bit.T1PIN = 1; //设置低有效
"../ADC.c", line 79: error: identifier "EvaRegs" is undefined 1 error detected in the compilation of "../ADC.c".
What's wrong? Can you help me? Thank you .With my best wishes.
Mike,
要添加头文件DSP281x_Ev.h。
可以在该网址http://www.ti.com/mcu/docs/mcuorphan.tsp?contentId=67005下载F281x的例程。
F281x C/C++ Header Files and Peripheral Examples
Eric