As Weddington, Eric wrote:

> I agree that there is not a convenient place to put such a
> macro. But I would also argue now that we do not need to have such a
> macro in avr-libc. The only use for the NOP instruction is for some
> sort of delay, typically by a specific number of cycles.

Well, there are situations where you have to delay for just a single
cycle (e.g. if you're setting a port output, and want to read back an
input that depends from it).  Sure, it's possible to use
__delay_cycles(1) but most people probably find it more "natural" to
just insert a single NOP there.

Maybe we could add something like <avr/cpufunc.h> or such.

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

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


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

Reply via email to