[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] 'MOVW' instruction in new ATtiny.
From: |
Dmitry K. |
Subject: |
Re: [avr-gcc-list] 'MOVW' instruction in new ATtiny. |
Date: |
Wed, 8 Feb 2006 08:28:23 +1000 |
User-agent: |
KMail/1.5 |
Perfectly! Thanks, Anatoly!
This is very needed now.
Whether you plan to add an __AVR_HAVE_LPMX__ ?
One suggestion about 'macros.inc': define __AVR_HAVE_MOVW__
as `1' (not as an empty string). All predefined macroses are
defined as `1' (__AVR__, __AVR_ENHANCED__, __AVR_ATmega8__ ...).
This give a possibility to use the simple construction like
`#if __AVR__' which is false in case of undefined or 0.
Another advantage of such definition is a possibility
the simple loop at testing time, like:
for movw in 0 1 ; do
avr-gcc -D__AVR_HAVE_MOVW__=$movw ...
Thanks,
Dmitry.