|
Title: can't compile the software Post by: cyclonite on 20 Jun 2005, 22:18 I can't compile your software it gives the error:
delay.c:16: error: `CK' undeclared (first use in this function) and delay.c:20: error: `TCNT0' undeclared (first use in this function) I think timer.h is to blame ... i can't find it anywhere in the avr-libc include dir can you confirm my suspicions ? and do you have an solution? sorry for this question I usually use imagecraft Title: Re: can't compile the software Post by: Vitat on 21 Jun 2005, 02:31 What version of avr compiler you are using?
Title: Re: can't compile the software Post by: Vitat on 21 Jun 2005, 03:43 I used WinAVR 3.0 when I wrote this soft.
You can download winavr-20030424 (http://www.vitat.spb.ru/files/ip-bus/winavr-20030424-bin-install.exe) (11,8Mb) from my site. Later versions of WinAVR I am not tested. Title: Re: can't compile the software Post by: Vitat on 21 Jun 2005, 03:47 timer.h is located in directory
disk:\WinAVR\avr\include\avr\timer.h Title: Re: can't compile the software Post by: cyclonite on 21 Jun 2005, 15:49 i have the version of 2005
I found a copy of the changes made : timer.h has been deleted from the package : Removal of all items marked as deprecated in the past, namely: all header files from the base include directory, as they have been moved to the avr/ subdirectory long time ago (e.g. <io.h> is now <avr/io.h>), deprecated macros and functions (sbi, cbi, inb, outb, inp, outp, inw, outw, BV, PRG_RDB, eeprom_rb, eeprom_rw, eeprom_wb) <avr/timer.h> removed completely, as it was bogus and not really useful at all <avr/ina90.h> and <avr/twi.h> have been moved to the new <compat/...> include subdirectory, The following new devices are supported: ATmega165 ATmega325 ATmega3250 ATmega645 ATmega6450 ATmega48 ATmega88 ATmega168 ATtiny13 ATtiny2313 AT90CAN128 realloc() is now implemented, the boot API has been changed in a way that is incompatible with the 1.0 API, the delay API has two new functions added to allow the specification of delays directly in microseconds, or milliseconds, documentation changes: a newer version of Doxygen is used; Unix-style manual pages are now generated as part of the documentation; a helper script named avr-man can be used to display these manual pages, a single unified Copyright now applies to all files in AVR Libc. |