CCS3.0工程迁移到CCS5.0,经过编译,编译器报错“DSP28x_usDelay”未定义,搜索整个工程确实没找到“DSP28x_usDelay”的定义,但是CCS3.0下却没有报错,请问这个怎么解决?
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.
CCS3.0工程迁移到CCS5.0,经过编译,编译器报错“DSP28x_usDelay”未定义,搜索整个工程确实没找到“DSP28x_usDelay”的定义,但是CCS3.0下却没有报错,请问这个怎么解决?
Bing,
在将controlSUITE安装目录下的C:\ti\controlSUITE\device_support\f280x\DSP280x_common\source\DSP28x_usDelay 添加到工程中,然后在相关头文件进行外部函数声明就可以了。如在 DSP2802x_GlobalPrototypes.h
extern void DSP28x_usDelay(Uint32 Count);
在controlSUITE中的DSP280x_Examples.h是这么做的。
// DO NOT MODIFY THIS LINE.
#define DELAY_US(A) DSP28x_usDelay(((((long double) A * 1000.0L) / (long double)CPU_RATE) - 9.0L) / 5.0L)
Eric