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

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

Re: [avr-libc-dev] In praise of XMega header files


From: Joerg Wunsch
Subject: Re: [avr-libc-dev] In praise of XMega header files
Date: Wed, 19 Nov 2008 22:15:49 +0100
User-agent: Mutt/1.5.11

As Dave N6NZ wrote:

> The structs for peripheral register definitions are hugely more
> usable than the current header file design.  Much more readable and
> convenient.

What's really good about it is that this is a straight design now,
from the IC designers to the compiler/library.  This would not have
been possible (at least not that way) with the previous AVR designs.
Part of the picture is that each peripheral now consists of a
well-defined set of registers starting at a particular base address,
so combining them into a single struct is just a logical consequence.

(Recent ATmegas are much closer to this than early AT90s but still
quite a mile away from the ATmega design.)

-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)




reply via email to

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