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.

Help Include header file that contain of (C language) Structure and Union into Assembly

Hello,

        Now I is using CCS V3.3. I want to Include header file into Assembly . But arised many Error.

For example: In Assembly source

           .cdecls C,LIST, "DSP2802x_EPWM_defines.h"

 

This DSP2802x_EPWM_defines file is consist of : Structure, Union,..... ect.

such as:

struct TBCTL_BITS {          // bits   description
                   Uint16 CTRMODE:2;         // 1:0    Counter Mode
                   Uint16 PHSEN:1;           // 2      Phase load enable
                   Uint16 PRDLD:1;           // 3      Active period load
                   Uint16 SYNCOSEL:2;        // 5:4    Sync output select
                   Uint16 SWFSYNC:1;         // 6      Software force sync pulse
                   Uint16 HSPCLKDIV:3;       // 9:7    High speed time pre-scale
                   Uint16 CLKDIV:3;          // 12:10  Timebase clock pre-scale
                   Uint16 PHSDIR:1;          // 13     Phase Direction
                   Uint16 FREE_SOFT:2;       // 15:14  Emulation mode
 };

union TBCTL_REG {
                  Uint16              all;
                  struct TBCTL_BITS   bit;

};

--------------------------------------------------------------------------------------------------------------------

I want to use above structure and union in Assembly. But Can not completed.

Could you tell me about this problem?