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.

TMS320C6655: TI library: \ti\pdk_C6657_1_1_2_6\packages\: Strange #define

Part Number: TMS320C6655

Hi TI 

From the library there is a file called:

\ti\pdk_C6657_1_1_2_6\packages\ti\csl\cslr_device.h

In this file there is a very strange #define:

#define CSL_GEM_CPU/3_2_EDMACC_AETEVT (0x00000073)

What does it means this statement: CSL_GEM_CPU/3_2_EDMACC_AETEVT

The compiler gives a warning and I don't know how to re-write this statement

Can you please help

BR

Tam Tran

Vestas Wind System

  • Hi Tam,

    sorry for the late reply.

    I hope, the usage of forwardslash / backslash / newline in macro is already known. Check whether the author of code used in that significance or not.

    My suggestion is 

    1. Either search and find where this macro is actually used in .C files. ( For example.... check separately,  CSL_GEM_CPU and 3_2_EDMACC_AETEVT or  CSL_GEM_CPU_3_2_EDMACC_AETEVT ) As I could see in some versions this macro is declared with underscore in place of /.

    2. After you find the macro in .c files, you can change accordingly.

    For example

    if found CSL_GEM_CPU_3_2_EDMACC_AETEVT, use like below

    #define CSL_GEM_CPU_3_2_EDMACC_AETEVT (0x00000073)

    Check for compilation error and let me know

    Regards

    Shankari