avr-libc-dev
[Top][All Lists]
Advanced

[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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]