avr-gcc-list
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] Code generation on 3.3


From: Sander Pool
Subject: Re: [avr-gcc-list] Code generation on 3.3
Date: Wed, 22 Jan 2003 14:20:44 -0800

Anyone who's coded for the USART on the m128 has run into this problem.
Convenient code samples from gcctest or elsewhere don't compile because the
registers have different names. I was thinking of writing an include file
that provides the
'standard' non-numbered UART register symbols for the m128. Default would be
USART1 but a #define would turn it into USART0.

This would make code portable accross more AVR types. Of course if you need
to use both USARTs or if you're a tad masochistic you can still use the
numbered registers :-)

Let me see if I get bored/inspired and I'll put it together.

    Sander

----- Original Message -----
From: "Larry Barello" <address@hidden>
To: "AVR GCC List" <address@hidden>
Sent: Wednesday, January 22, 2003 12:59 PM
Subject: Re: [avr-gcc-list] Code generation on 3.3


> The biggest problems with avrx is all those different USART defines
> for the various chips.  I keep on having to go in and parse which chip
> so I can reference the proper name...

avr-gcc-list at http://avr1.org



reply via email to

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