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:
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?