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.

TMS320F280049C: 关于__TMS320C28XX_CLA__的定义

Part Number: TMS320F280049C
Other Parts Discussed in Thread: C2000WARE

在ti\c2000\C2000Ware_DigitalPower_SDK_3_02_00_00\solutions\tidm_02008

中有一个"ttplpfc_nonpowerSUITE_F28004x"的工程

该工程的"ttplpfc.h"这里有一段

Fullscreen
1
2
3
4
5
#ifndef __TMS320C28XX_CLA__
#include <math.h>
#else
#include <CLAmath.h>
#endif
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

可以看到#include <CLAmath.h>是没有启用的,直接宏定义是不行的

我很奇怪,为什么写了这一段但是调用出错了,找了很多CLA的资料都说只要在编译器设置中找到CLA相关的选项启动就可以了,但试了很久都没有成功

想知道是要在什么位置定义"__TMS320C28XX_CLA__",

还是说编译器要设置什么才能启用这部分内容