[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [avr-gcc-list] printf'ing a string in program memory
From: |
Tom Harris |
Subject: |
RE: [avr-gcc-list] printf'ing a string in program memory |
Date: |
Fri, 12 Dec 2003 07:49:04 +1100 |
Joerg,
What character were you thinking of using for a string in Flash? I prefer
"%z". I am very close to running out of Flash, if I do the first function to
go will be vprintf as it does far more than I need, even in the minimum
version. I will write my own with just the formatting functionality that I
need, and I will include Flash strings as well, so it may as well be
compatible. Or if we upgrade to a larger part I shall modify the printf
source.
TomH
-----Original Message-----
From: Joerg Wunsch [mailto:address@hidden
Sent: Wednesday, 10 December 2003 7:37 PM
To: address@hidden
Subject: Re: [avr-gcc-list] printf'ing a string in program memory
As Tom Harris <address@hidden> wrote:
>I know about printf_P() that takes a _format_ string in Flash, but any %s
>format specifiers still refer to strings in _RAM_. Is there a specifier for
>strings in Flash? I am having to use puts_P, but a %-style specifier in the
>printf format string would be a lot neater.
Not yet there. It's on the list of things I always intented to do, but
never actually did so far.
--
J"org Wunsch Unix support engineer
address@hidden http://www.interface-systems.de/~j/
_______________________________________________
avr-gcc-list mailing list
address@hidden
http://www.avr1.org/mailman/listinfo/avr-gcc-list