On Friday 06 February 2009 09:10, Weddington, Eric wrote:
[...]
> +#define sleep_bod_disable()  \
> +(__extension__({             \
> +    __asm__ __volatile__ (   \
> +        "ori  %0,%1" \
> +        : "+d" (MCUCR) \
> +        : "i" (_BV(BODS) | _BV(BODSE)) \
> +    ); \
> +    __asm__ __volatile__ (   \
> +        "andi  %0,%1" \
> +        : "=d" (MCUCR) \
> +        : "i" (~_BV(BODSE)) \
> +    ); \
> +}))

Hmm...
It is interesting to omit IN/OUT instruction in such manner.
I will check this for all Avr-gcc versions.

Thanks, this is new for me.
Dmitry.



_______________________________________________
AVR-libc-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Reply via email to