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

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

[avr-libc-dev] Re: [avr-gcc-list] __mmio macro in avr-libc


From: E. Weddington
Subject: [avr-libc-dev] Re: [avr-gcc-list] __mmio macro in avr-libc
Date: Mon, 19 Aug 2002 10:22:48 -0600

On 16 Aug 2002 at 17:00, Geoffrey Wossum wrote:

> Hi all,
> 
> In older avr-libc's (20020203), there was an __mmio macro for using
> non-constant I/O addresses.  This seems to have disappeared in
> avr-libc 20020620/20020630.  Is there another way to do this now?  If
> not, can I just use the iomacros.h from the older avr-libc to
> accomplish this?
> 

In 20020630 / CVS, look in file sfr_defs.h, there are the macros 
_MMIO_BYTE() and _MMIO_WORD(). Support has been added for direct 
assignment to registers (i.e. PORTA  |= 0x20;) and other macros such 
as inp() and outp() have been deprecated.

Eric





reply via email to

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