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.

TMS320F28335: f2803xdrvlib.h调用中出现epwm重复定义的问题

Part Number: TMS320F28335
Other Parts Discussed in Thread: CONTROLSUITE

您好,在做bldc电机控制,我将f2803xdrvlib.h内容,移植至F28335环境,出现以下错误,但在2803x工程中为什么不报错。

Description Resource Path Location Type
#10056 symbol "_ePWM" redefined: first defined in "./BLDCSensoredMain.obj"; redefined in "./source/f28335bldcpwm.obj" BLDC_Sensored_v1.0_Func C/C++ Problem

其实就是用这个定义引起的

volatile struct EPWM_REGS *ePWM[] =
{ &EPwm1Regs, //intentional: (ePWM[0] not used)
&EPwm2Regs,
&EPwm3Regs,
&EPwm4Regs,
&EPwm5Regs,
&EPwm6Regs,
};

我应该怎么正确使用