[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-libc-dev] Re: printf in avr-libc
From: |
Joerg Wunsch |
Subject: |
Re: [avr-libc-dev] Re: printf in avr-libc |
Date: |
Fri, 13 Sep 2002 17:16:30 +0200 |
User-agent: |
Mutt/1.2.5i |
As daniel_laptop wrote:
> > Well, actually not all of our supported devices have a UART. Also,
> > UART speed depends on system clock, so an automatic implied
> > initialization is impossible anyway.
> You can do a global #define on the command line (makefile) with "-D"
Sure. But that doesn't help in the case of a library, since the
library objects are already pre-compiled. One could use a global
variable to supply the system clock, but in that case, i'd rather
prefer that the application programmer just supplies the entire
uart_putc() function itself (which is only a couple of lines of code),
and integrates the UART initialization into their usual ioinit()
function that's basically required in any actual project anyway.
--
J"org Wunsch Unix support engineer
address@hidden http://www.interface-systems.de/~j/
- Re: [avr-libc-dev] Re: printf in avr-libc, (continued)
- Re: [avr-libc-dev] Re: printf in avr-libc, Joerg Wunsch, 2002/09/11
- [avr-libc-dev] Re: printf in avr-libc, Jörgen, 2002/09/12
- Re: [avr-libc-dev] Re: printf in avr-libc, Joerg Wunsch, 2002/09/12
- Re: [avr-libc-dev] Re: printf in avr-libc, Joerg Wunsch, 2002/09/12
- Re: [avr-libc-dev] Re: printf in avr-libc, Jörgen, 2002/09/12
- Re: [avr-libc-dev] Re: printf in avr-libc, E. Weddington, 2002/09/12
- [avr-libc-dev] Multithreaded strtok, Harald Kipp, 2002/09/13
- Re: [avr-libc-dev] Multithreaded strtok, Joerg Wunsch, 2002/09/13
- Re: [avr-libc-dev] Re: printf in avr-libc, Joerg Wunsch, 2002/09/13
- Re: [avr-libc-dev] Re: printf in avr-libc, daniel_laptop, 2002/09/13
- Re: [avr-libc-dev] Re: printf in avr-libc,
Joerg Wunsch <=
- Re: [avr-libc-dev] Re: printf in avr-libc, daniel_laptop, 2002/09/13
- Re: [avr-libc-dev] Re: printf in avr-libc, Jörgen, 2002/09/16
- Re: [avr-libc-dev] Re: [avr-gcc-list] I fixed dtostre(), Chris Baugher, 2002/09/10