[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 ?
Thanks
Daniel Mooney
- Re: [avr-libc-dev] Re: printf in avr-libc, (continued)
- Re: [avr-libc-dev] Re: printf in avr-libc, E. Weddington, 2002/09/11
- 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 <=
- 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, Jörgen, 2002/09/16
- Re: [avr-libc-dev] Re: [avr-gcc-list] I fixed dtostre(), Chris Baugher, 2002/09/10