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.

f2833xdrvlib.h的问题



TI自带的 f2833xdrvlib.h这个驱动比较方便,可将EPWM、EQEP、ECAP集中起来管理。但是在包含此文件时,出现一个错误,不是很明白,请教TI的专家。

只要一包含f2833xdrvlib.h这个文件,Problem就会出现如下错误:

symbol "_eCAP" redefined: first defined in "./EPWM/f28335_Epwm.obj"; DCMOTOR_CTRL_V0_0 C/C++ Problem
symbol "_ePWM" redefined: first defined in "./EPWM/f28335_Epwm.obj"; DCMOTOR_CTRL_V0_0 C/C++ Problem
symbol "_eQEP" redefined: first defined in "./EPWM/f28335_Epwm.obj"; DCMOTOR_CTRL_V0_0 C/C++ Problem

我是在f28335_Epwm.h中包含了f2833xdrvlib.h。

在Console中会出现:

error: symbol "_eQEP" redefined: first defined in "./EPWM/f28335_Epwm.obj";
redefined in "./TOP_MAIN/2MotorServo.obj"
error: symbol "_ePWM" redefined: first defined in "./EPWM/f28335_Epwm.obj";
redefined in "./TOP_MAIN/2MotorServo.obj"
error: symbol "_eCAP" redefined: first defined in "./EPWM/f28335_Epwm.obj";
redefined in "./TOP_MAIN/2MotorServo.obj"

可是我在主函数2MotorServo中,并未定义:_eQEP/_ePWM/_eCAP。

请问一下,这是什么问题?