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.

ConfigCpuTimer函数如何执行

Other Parts Discussed in Thread: CONTROLSUITE

想include DSP2802x_CpuTimers.h,提示不存在

直接执行ConfigCpuTimer(&CpuTimer0,20,50000);

我用的是C2000 LAUNHPAD TMS320C28027

提示错误:

Description Resource Path Location Type
unresolved symbol _ConfigCpuTimer, first referenced in ./Example_2802xLEDBlink.obj Example_F2802xLEDBlink C/C++ Problem

怎么办?

  • Junjie,

    在你的工程中应该要包含DSP2802x_CpuTimers.c源文件,DSP2802x_CpuTimers.h,在C:\ti\controlSUITE\device_support\f2802x\v127\DSP2802x_headers\include中.

    DSP2802x_Device.h中就应该有包含头文件"DSP2802x_CpuTimers.h" ,在这里就有这个函数的声明。

    实在找不到的话,直接在main前面声明一下这个函数就可以啦.

    Eric