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: Question about __TMS320C28XX_CLA__

Part Number: TMS320F280049C
Other Parts Discussed in Thread: C2000WARE

Dear team:

Routine: ti\c2000\C2000Ware_DigitalPower_SDK_3_02_00_00\solutions\tidm_02008\ttplpfc_nonpowerSUITE_F28004x.c

The "ttplpfc.h" file of the above project has the following code:

#ifndef __TMS320C28XX_CLA__
#include <math.h>
#else
#include <CLAmath.h>
#endif

according to "TMS320C28x Optimizing C/C++ Compiler v21.6.0.LTS User’s Guide", Page 38:

__TMS320C28XX_CLA__ Defined to 1 if any --cla_support option was used and the source file is a .cla file.

After the project is compiled, the "ttplpfc_clatask.cla" file will be included. so, __TMS320C28XX_CLA__ will be defined to 1.

Does this mean that the program will execute "#include <CLAmath.h>"? Because it is a #ifndef statement, not a #ifdef statement.

However, the actual implementation is as follows:

Best regards