[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Differences between avr-gcc 3.02 and 3.2
From: |
Robert_Beatty |
Subject: |
Re: [avr-gcc-list] Differences between avr-gcc 3.02 and 3.2 |
Date: |
Mon, 23 Sep 2002 10:48:12 -0400 |
Hi!
Nope, I didn't redo anything in the make file, so lcd.c was still commented
out. When I re-enabled that I got two errors:
"<timer.h> is deprecated, use <avr/timer.h> instead"
-and-
"avr/timer.h: No such file or directory"
This appears to be related to the rewrite of the timer.h library. That was
the source of the original problem (swapping the port and parameter). The
warning, I believe, is an attempt to point that out. If you go to
http://savannah.nongnu.org/projects/avr-libc/ you will find the latest and
greatest avr-libc. It has a corrected timer.h, (along with several others)
that are in a sub-directory beneath the regular include files. You avoid
the warning error by linking avr/timer.h instead.
Does that help?
Regards,
Bob
"Alex Shepherd"
<address@hidden To: <address@hidden>
o.nz> cc:
Sent by: Subject: Re: [avr-gcc-list]
Differences between avr-gcc 3.02 and
owner-avr-gcc-lis 3.2
address@hidden
09/20/02 11:12 PM
> static inline void timer0_source (unsigned int src)
This was the problem alright. I changed the one and only call to
timer0_source() to the SFR method and all is fine again - thanks!!!
> With my version of avrgcc (3.2), and a couple of tweaks, I can compile
your
> code.
You didn't by any chance uncomment lcd.c in the makefile when you tried to
make it compile?
It also has compile problems which are not obvious to me.
Change the following line in the makefile and you will see what I mean.
SRC = $(TRG).c ln_sw_uart.c uart.c lcd.c
Cheers
Alex Shepherd
avr-gcc-list at http://avr1.org
avr-gcc-list at http://avr1.org