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

inline code

I have a macro which is supposed to service the internal watchdog in a Dallas 87C520. The code looks like this:

#define clearWatchdog() EA=0; TA=0xAA; TA=0x55; RWT=1; EA=1

The problem is that instead of repeating the macro everytime I have the clearWatchdog(); instruction in my C code the compiler has implemented the macro as a long call. How can I make it implement the macro inline?

0