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.

C2000WARE: "f28nnnx_device.h" Device header files should guard definition of EALLOW and other assembly instructions with #ifndef __ASM_HEADER__

Part Number: C2000WARE


Tool/software:

I have a .asm file that I am accessing adc registers from, so I am including the file "f28p65x_device.h" header in the .asm file within a cdecl block. However, when I do that, I get the following warnings:

"C:\Users\PSULLI~1\AppData\Local\Temp\{FF755292-B021-4CC8-B47A-228F61160492}", WARNING! at line 126: [E0004] Cannot redefine existing opcode 'EALLOW' with .define. Assembler ignoring .define.
               .define "__eallow()",EALLOW
 
"C:\Users\PSULLI~1\AppData\Local\Temp\{FF755292-B021-4CC8-B47A-228F61160492}", WARNING! at line 127: [E0004] Cannot redefine existing opcode 'EDIS' with .define. Assembler ignoring .define.
               .define "__edis()",EDIS

EALLOW is already an assembly mnemonic in an assembly file and can't be redefined like it is in the device header. I believe the definition should be guarded by __ASM_HEADER__ liike this to avoid these warnings:

#ifndef __ASM_HEADER__

#ifndef  EALLOW
#ifndef _TMS320C28XX_CLA_
#define  EALLOW __eallow()
#else
#define  EALLOW __meallow()
#endif // _TMS320C28XX_CLA_
#endif // EALLOW

#endif

Is there another recommended way to access peripheral registers in a .asm file?