[Top][All Lists]

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

Re: [avr-gcc-list] Missing #define in iom16.h

From: Joerg Wunsch
Subject: Re: [avr-gcc-list] Missing #define in iom16.h
Date: Tue, 31 May 2005 21:00:40 +0200 (MET DST)

"Larry Barello" <address@hidden> wrote:

> SFIOR, bit 4 "ADHSM" is missing from the latest WinAvr headers
> files.

As well as in the recent version of the datasheet (actually in all
versions I've got access to).  What is that bit supposed to be good
for?  I see it has been removed in 2003 already (according to the
revision history), are you sure there's actually any silicon
implementing what it once was meant to be?

If there's no silicon for it, and it has actually only been a mistake
in the initial data sheet revision, I personally think leaving the bit
out from the header files rather gets you onto the safe side, as it
prevents you from trying to use a non-existant feature.

Hmm, I verified all the remaining devices where we've got ADHSM
definitions for, and it seems with the exception of the AT90CAN128,
all of the devices have this bit removed from the datasheets.  Did you
check with Atmel (avr at atmel dot com) what's the reason for removing
the bit from the datasheet?  If it's completely discouraged to use
ADHSM on the devices where it has been removed, I'm rather leaning
towards commenting the bit out from the header files, so the compile
error reminds the innocent developer to rather check the most recent
version of the datasheet again...

> BTW it was annoying to have old (albeit wrong) names abruptly
> removed & replaced with new names.

Where did we do that?  I only remember one instance where an old name
somehow conflicted with something else (though I forgot what it
actually was).  The ADC name is probably going to be removed as well
(use ADCW instead), as it conflicts with a valid opcode, and
<avr/io.h> is supposed to be includable by assembler source code.

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]