"Bob Paddock" <[EMAIL PROTECTED]> wrote:

> I realized my mistake about five seconds after hitting "Send".  I
> was passing a variable to __delay_us(), not compile time constant.

Oh, and I only read this about five seconds after sending my other
reply...  Alas, Björn's mailer (which is rather his employer's mailer)
doesn't supply an in-reply-to header, so I didn't notice the thread
already continued.

> Is there any reason to prefer a macro over a inlined function or
> vice-versa?

The point with the inline version was that argument massaging (inside
the implementation) appeared to be a bit simpler to me.  You can have
"local variables" that simplify expressing the calculations.

-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to