TI中文支持网
TI专业的中文技术问题搜集分享网站

#include "CLAShared.h"

dsp28035的ti例程,我在 DSP2803x_Device.h添加#include "CLAShared.h"为何编译会出现错误啊

#include "DSP2803x_PieCtrl.h"            // PIE Control Registers
#include "DSP2803x_PieVect.h"            // PIE Vector Table
#include "DSP2803x_Spi.h"                // SPI Registers
#include "DSP2803x_Sci.h"                // SCI Registers
#include "DSP2803x_SysCtrl.h"            // System Control/Power Modes
#include "DSP2803x_XIntrupt.h"           // External Interrupts
#include "CLAShared.h"

还有一个奇怪现象

本来原程序中Example_2803xClaAdcFir.c有头文件–#include "CLAShared.h"    正常

#include "DSP28x_Project.h" // includes all of the header files and defines used in the
                            // example projects   #include "CLAShared.h"      // includes all of the shared variables (shared between
                            // C28x C source and CLA assembly code)

为何我在DSP2803x_GlobalVariableDefs.c中添加–#include "CLAShared.h"  就异常了?

#include "DSP2803x_Device.h"     // DSP2803x Headerfile Include File
#include "CLAShared.h" 

编译完提示结果:

"DSP2803x_GlobalVariableDefs.c", line 15: fatal error: could not open source file "CLAShared.h"
1 fatal error detected in the compilation of "DSP2803x_GlobalVariableDefs.c".
Compilation terminated.

>> Compilation failure

Joey Mao:

你好,

在DSP2803x_GlobalVariableDefs.c中添加–#include "CLAShared.h" 后,之前.c文件中的这个头文件还是在吗?

例程开始调试就报错了吗?报错的内容是什么?

赞(0)
未经允许不得转载:TI中文支持网 » #include "CLAShared.h"
分享到: 更多 (0)