avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-libc-dev] Help with __ASSEMBLER__ usage in device header files


From: Frédéric Nadeau
Subject: Re: [avr-libc-dev] Help with __ASSEMBLER__ usage in device header files
Date: Tue, 21 Sep 2010 07:35:10 -0400

Hi

Is this the same problem as this:
https://savannah.nongnu.org/bugs/index.php?30552

Frédéric Nadeau ing. jr

On Tue, Sep 21, 2010 at 5:40 AM, Boyapati, Anitha
<address@hidden> wrote:
>
> Hi,
>
> Many header files use __ASSEMBLER__ (predefined macro automatically set by 
> gcc front end when processing assembly files) to protect some macros. As far 
> as I notice, ADC is mostly protected. For e.g., the change introduced in the 
> below link does that.
> http://svn.savannah.nongnu.org/viewvc/trunk/avr-libc/include/avr/iom8.h?root=avr-libc&r1=274&r2=280
>
> #ifndef __ASSEMBLER__
>        #define ADC _SFR_MEM16(...)
> #endif
>
> Can someone explain why this is intended only for ADC and that too only for 
> some devices? (For e.g., iom32u4.h doesn't have)
>
> Thanks
> Anitha
>
>
> _______________________________________________
> AVR-libc-dev mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/avr-libc-dev
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]