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.

28377S使用C2000函数库,如何使用SFO函数

Other Parts Discussed in Thread: C2000WARE, CONTROLSUITE

#include "driverlib.h"
#include "device.h"
#include "SFO_V8.h"

自己建立的工程,配置HRPWM,工程包含以上头文件和SFO_v8_fpu_lib_build_c28.lib

编译时报错

unresolved symbol _EPwm1Regs, first referenced in ../SFO_v8_fpu_lib_build_c28.lib<SFO_v7_fpu_lib_build_c28.obj> 

看了别人的帖子说是要定义

volatile struct EPWM_REGS *ePWM[PWM_CH] ={ &EPwm1Regs, &EPwm1Regs, &EPwm2Regs, &EPwm3Regs, &EPwm4Regs,
&EPwm5Regs, &EPwm6Regs, &EPwm7Regs, &EPwm8Regs};

但是我的工程使用的C2000ware的函数库,以上定义需要用到F2837xS_epwm.h,这个是外设库(不知道叫啥自己起的名字)的头文件

1.怎么样才能使用函数库正确调用SFO函数?

2.外设库和函数库是否可以混用?