Send AVR-libc-dev mailing list submissions to
address@hidden
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev
or, via email, send a message with subject or body 'help' to
address@hidden
You can reach the person managing the list at
address@hidden
When replying, please edit your Subject line so it is more specific
than "Re: Contents of AVR-libc-dev digest..."
Today's Topics:
1. [bug #17470] Add API for CLKPR register to <avr/power.h>
(Eric Weddington)
2. [patch #4829] Add support for ATmega640-1280-1281-2560-2561
(Joerg Wunsch)
3. avr-libc 1.4.5 released (Joerg Wunsch)
4. %f (Steve Franks)
5. Re: %f (Joerg Wunsch)
6. Re: %f (address@hidden)
----------------------------------------------------------------------
Message: 1
Date: Mon, 09 Oct 2006 18:00:18 +0000
From: Eric Weddington <address@hidden>
Subject: [avr-libc-dev] [bug #17470] Add API for CLKPR register to
<avr/power.h>
To: Joerg Wunsch <address@hidden>, Eric Weddington
<address@hidden>, address@hidden
Message-ID: <address@hidden>
Content-Type: text/plain;charset=UTF-8
Update of bug #17470 (project avr-libc):
Status: None => Fixed
Percent Complete: 0% => 100%
Open/Closed: Open => Closed
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?17470>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
------------------------------
Message: 2
Date: Mon, 09 Oct 2006 19:05:27 +0000
From: Joerg Wunsch <address@hidden>
Subject: [avr-libc-dev] [patch #4829] Add support for
ATmega640-1280-1281-2560-2561
To: Martijn van Balen <address@hidden>, Joerg Wunsch
<address@hidden>, Eric Weddington
<address@hidden>, address@hidden
Message-ID: <address@hidden>
Content-Type: text/plain;charset=UTF-8
Update of patch #4829 (project avr-libc):
Status: None => Wont Do
Assigned to: None => joerg_wunsch
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #2:
We now fully support all mentioned AVR devices.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/patch/?4829>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
------------------------------
Message: 3
Date: Mon, 9 Oct 2006 23:17:38 +0200
From: Joerg Wunsch <address@hidden>
Subject: [avr-libc-dev] avr-libc 1.4.5 released
To: address@hidden
Message-ID: <address@hidden>
Content-Type: text/plain; charset=us-ascii
I just released avr-libc 1.4.5.
Since the upload server dropped connection while I've been uploading
all the documentation files, there's now a half-transferred PostScript
version of the docs in the queue that needs manual intervention by the
savannah folks before I can retransmit it. Thus the PS docs are
currently unavailable. Everything else is in place.
Source releases and documentation files can be found at:
http://download.savannah.gnu.org/releases/avr-libc/
Binary releases (OS-independant) can be found at:
http://download.savannah.gnu.org/releases/avr/
The public documentation on the web site has been updated as well:
http://www.nongnu.org/avr-libc/user-manual/
Finally, here's the NEWS entry for that release:
*** Changes in avr-libc-1.4.5:
* Bugs fixed:
[no-id] Make include/avr/sfr_defs.h -Wundef safe.
[no-id] Make include/avr/eeprom.h -Wundef safe.
[no-id] Fix the timing of the HD44780 driver in the stdiodemo.
[#15512] Bootloader macros not interrupt safe.
[#16125] HD44780 data bit assignment restrictive
[#16434] EMPTY_INTERRUPT has no misspelled vector checking
[#16411] Add 'used' and 'externally_visible' attributes to all ISR macros.
[#16441] eeprom.h should use __asm__
[#16868] depricated.h: outp() arguments order misprint
[#17068] wdt.h file: __AVR_ATmeg324P__ spelling mistake
[#17470] Add API for CLKPR register.
[#17551] Update documentation to point to issues with gcc4.1
[#17591] /avr-libc/libm/fplib/fp_split.S error return will fail for
3-Byte PC devices
[#17608] Add ISR_ALIAS() to avr/interrupt.h
* Other changes:
- New Power Management API in <avr/power.h>. This provides C language
macros to manipulate the Power Reduction Register(s) and the System Clock
Prescaler register across multiple processors.
* New devices supported:
+ ATmega165P
+ ATmega169P
+ ATmega2560 [patch #4461]
+ ATmega2561 [patch #4461]
--
cheers, J"org .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/ NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)
------------------------------
Message: 4
Date: Mon, 9 Oct 2006 22:32:37 -0700
From: "Steve Franks" <address@hidden>
Subject: [avr-libc-dev] %f
To: address@hidden
Message-ID:
<address@hidden>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Hi.
I know no one else in their right mind uses floating point
printf/scanf. That said, the "double format, float arg" warning is a
bit tedious (when you have a giant string parser in a mega128).
Wouldn't the correct notation be %f -> float; %lf -> double? I
further notice %f is a double in printf, but a "pointer to float" in
scanf.
Has this been addressed already? It's nothing but a nuicance gripe,
and should be treated as such, but avr-libc has grown into such a
mature product, I feel it's not insulting to bring up the 'little
stuff' at this point.
Steve
--
Steve Franks, KE7BTE
Staff Engineer
La Palma Devices, LLC
http://www.lapalmadevices.com
(520) 312-0089
------------------------------
Message: 5
Date: Tue, 10 Oct 2006 10:50:03 +0200
From: Joerg Wunsch <address@hidden>
Subject: Re: [avr-libc-dev] %f
To: address@hidden
Cc: Steve Franks <address@hidden>
Message-ID: <address@hidden>
Content-Type: text/plain; charset=us-ascii
As Steve Franks wrote:
> I know no one else in their right mind uses floating point
> printf/scanf.
Why not?
> That said, the "double format, float arg" warning is a
> bit tedious (when you have a giant string parser in a mega128).
It's only tedious as the AVR currently doesn't support 64-bit doubles,
so sizeof(float) == sizeof(double). Applying the correct type casts
is thus a matter of ``living to the letter of the standard'' without
having any practical impact.
> Wouldn't the correct notation be %f -> float; %lf -> double?
No, it wouldn't. You cannot pass a float in a variable argument list,
because the elements of a variable argument list are subject to
default argument proomotion, where each float value will be promoted
to double. You are supposed to cast it to (double) to make this
explicit (to the brain of the developer) -- that's what the warning is
telling you.
> I further notice %f is a double in printf, but a "pointer to float"
> in scanf.
Yes, it is. %lf denotes a pointer to double in scanf(). %lf is
identical to %f in printf().
> Has this been addressed already?
Yes, it has. By the C standard, section 7.9.16.1 (fprintf), and
7.9.16.2 (fscanf), and 6.5.2.2 (function calls, that's where the
argument promotion is described).
--
cheers, J"org .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/ NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)
------------------------------
Message: 6
Date: Tue, 10 Oct 2006 05:43:37 -0600
From: address@hidden
Subject: Re: [avr-libc-dev] %f
To: Steve Franks <address@hidden>
Cc: address@hidden
Message-ID: <address@hidden>
Content-Type: text/plain; charset=us-ascii
----- Original Message -----
From: Joerg Wunsch <address@hidden>
Date: Tuesday, October 10, 2006 2:50 am
Subject: Re: [avr-libc-dev] %f
> As Steve Franks wrote:
>
> > I know no one else in their right mind uses floating point
> > printf/scanf.
>
> Why not?
>
> > That said, the "double format, float arg" warning is a
> > bit tedious (when you have a giant string parser in a mega128).
>
> It's only tedious as the AVR currently doesn't support 64-bit doubles,
> so sizeof(float) == sizeof(double).
Please note that we have repeatedly asked for volunteers to help with
maintenance of the math library, as well as adding true 64-bit doubles
to avr-libc. IIRC, the IAR compiler for the AVR offers this; it would be
nice to offer this as well.
Eric Weddington
------------------------------
_______________________________________________
AVR-libc-dev mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev
End of AVR-libc-dev Digest, Vol 47, Issue 4
*******************************************