This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Code Alignment in A51?

Hi,
I'm having troubles with translating this code from IAR to KEIL taken from TI cc1110 datasheet which aligns the halFlashDmaTrigger function to 2-bytes boundary:

MODULE flashDmaTrigger.s51
RSEG RCODE (1)
PUBLIC halFlashDmaTrigger
FUNCTION halFlashDmaTrigger, 0203H

halFlashDmaTrigger:
ORL FCTL, #0x02;
RET;
END;

I read the uVision3 help about this but I didnt understand how to combine it my C code.It doesn't let me use the #pragma asm in header files.Its probably quite basic, I'm just quite new to this....

Thanks!

0