主题中讨论的其他部件: controlSUITE, TMDSOLARUINVKIT
工具/软件:Code Composer Studio
大家好,
我正在尝试将Solar_Lib_IQ库中的一些函数与TMS320F2.8027万F (目前的LaunchPad XL)配合使用。 我在CCS项目中包括了Solar_IQ.h和IQmathLib.h,但我遇到了一些构建问题,我猜是因为在类型定义过程中存在一些冗余。
确切的问题是“此声明没有存储类或类型说明符”,当我第一次尝试使用Solar_IQ库中的类型(第34行,第35行,第36行)使用一些变量时,它提供了此问题:
30 //IQ数学变量
31 SPLL_1ph_Sogi_IQ spll1;
32 SPLL_1ph_Sogi_IQ) LPF_Coeffe spl_LPF_Coef1;
33.
34 spl_LPF_Coef1.B0_LF=B0_LPF;
35 spl_LPF_coef1.B1_LF=B1_LPF;
36 spl_LPF_coef1.A1_LF=A1_LPF;
SPLL_1ph_Sogi_IQ_LPF_Coeff是Solar_IQ库的结构类型部分,B0_LPF是IQmath库中定义为_IQ23类型的常量。
关于如何解决这一问题的任何建议? 提前非常感谢
在main.h上以及在包含目录树中遵循我的包含库列表,以防您能够找到不兼容的人:
#include "DSP28x_Project.h" //设备头文件和示例包括文件
#include "F2802x_common/include/clk.h"
#include "F2802x_common/include/flash.h"
#include "F2802x_common/include/gPIC.h"
#include "F2802x_common/include/pie.h"
#include "F2802x_common/include/PLL.h"
#include "F2802x_common/include/wp.h"
#include "F2802x_common/include/wdog.h"
#include "F2802x_common/include/sci.h"
#include "F2802x_common/include/timer.h"
#include "F2802x_common/include/adc.h"
#include "F2802x_common/include/SPI.h"
#include "F2802x_common/include/F2802x_globala原 型2802 型.h"
#include "IQ/include/Solar_IX.h" //This one includes all the solar functions。
#include "include/IQmathLib.h" //this one包括所有IQmath函数。
#include <stdbool.h>