[Top][All Lists]

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

Re: [avr-libc-dev] Re: printf in avr-libc

From: daniel_laptop
Subject: Re: [avr-libc-dev] Re: printf in avr-libc
Date: Sat, 14 Sep 2002 03:03:45 +1200

Joerg Wunsch 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.

Just a general note -
(please ignore if this has been discussed already)

You can do a global #define on the command line (makefile) with "-D"
(don't know how this relates to assembly but "--defsym" could be used)

e.g. "CPFLAGS += -DF_CPU=4000000L"

the same as "#define F_CPU 4000000L" at the top of all C files

with this a delay.h and uart.h could be implemented.
(maybe warnings and default if F_CPU not set ?)

"-mmcu=$(MCU)" is already necessary so "-DF_CPU=$(FREQ)L" is continuing this
theme ?

Daniel Mooney

reply via email to

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