avr-gcc-list
[Top][All Lists]
Advanced

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

[avr-gcc-list] avr-gcc and avrlib with mega48


From: Siddharth Priya
Subject: [avr-gcc-list] avr-gcc and avrlib with mega48
Date: Sun, 25 Dec 2005 01:09:51 +0530

Hi,

I am using the atmega48 controller.Avrlib examples refuse to compile
with the -mmcu=mega48 parameter though programs not using avrlib
compile and link fine

Here is the output from the timer.c file (in Avrlib directory)

d:\AVRlib/timer.c: In function `timer0Init':
d:\AVRlib/timer.c:101: error: `TIMSK' undeclared (first use in this function)
d:\AVRlib/timer.c:101: error: (Each undeclared identifier is reported only once
d:\AVRlib/timer.c:101: error: for each function it appears in.)
d:\AVRlib/timer.c: In function `timer1Init':
d:\AVRlib/timer.c:112: error: `TIMSK' undeclared (first use in this function)
d:\AVRlib/timer.c: In function `timer2Init':
d:\AVRlib/timer.c:121: error: `TIMSK' undeclared (first use in this function)
d:\AVRlib/timer.c: In function `timer0SetPrescaler':
d:\AVRlib/timer.c:130: error: `TCCR0' undeclared (first use in this function)
d:\AVRlib/timer.c: In function `timer2SetPrescaler':
d:\AVRlib/timer.c:143: error: `TCCR2' undeclared (first use in this function)
d:\AVRlib/timer.c: In function `timer0GetPrescaler':
d:\AVRlib/timer.c:150: error: `TCCR0' undeclared (first use in this function)
d:\AVRlib/timer.c: In function `timer2GetPrescaler':
d:\AVRlib/timer.c:166: error: `TCCR2' undeclared (first use in this function)
d:\AVRlib/timer.c: At top level:
d:\AVRlib/timer.c:467: warning: `SIG_OUTPUT_COMPARE2' appears to be a
misspelled signal handler
make.exe: *** [d:\AVRlib/timer.o] Error 1

> Process Exit Code: 2

it compiles fine if i change mmcu to another processor like mega8
--
thanks




reply via email to

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