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

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

Re: [avr-gcc-list] just 2 bytes allocated for uint32_t?


From: Joerg Wunsch
Subject: Re: [avr-gcc-list] just 2 bytes allocated for uint32_t?
Date: Mon, 2 Mar 2009 17:22:33 +0100 (MET)

Radoslav Kolev <address@hidden> wrote:

>> And please stop using inb() and outb(). They have been removed from
>> avr-libc and are not necessary. Just use a regular assignment.

> I know. I didn't write this file, it's from the Arduino
> (http://arduino.cc) platform that's getting pretty popular lately.

But well, Arduino dates back to the year 2005 (at least, that's what
the SVN log tells me, as well as the copyright).  inb/outb have been
removed about a year before:

revision 1.13
date: 2004/04/28 16:20:52;  author: troth;  state: Exp;  lines: +1 -128
* include/avr/eeprom.h (eeprom_rb): Remove deprecated interface.
(eeprom_rw): Ditto.
(eeprom_wb): Ditto.
(_EEPUT): Use eeprom_write_byte() directly instead of eeprom_wb().
(_EEGET): Use eeprom_read_byte() directly instead of eeprom_rb().
* include/avr/pgmspace.h (PRG_RDB): Remove deprecated interface.
* include/avr/sfr_defs.h (cbi): Ditto.
(sbi): Ditto.
(inb): Ditto.
(outb): Ditto.
(inw): Ditto.
(outw): Ditto.
(outp): Ditto.
(inp): Ditto.
(BV): Ditto.

And mind you, they have already been deprecated a year before that:

revision 1.8
date: 2003/06/10 19:12:25;  author: arcanum;  state: Exp;  lines: +75 -54
* include/avr/sfr_defs.h: Deprecate inb,outb,inw,outw,cbi,sbi macros.
Remove usage of above macros.
* include/avr/ina90.h: Remove usage of inb / outb macros.
* include/avr/interrupt.h: ditto.
* include/avr/timer.h: ditto.
* NEWS: Note about deprecation of macros.

So in fact, they were already marked deprecated by the time avr-libc
1.0.0 was released, and they were removed before starting the 1.2
branch (which was the active "stable" branch by the time Arduino
started).

No, there's no excuse why Arduino even started flogging a dead horse.
-- 
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]