Vitat's homepage
13 Sep 2026, 02:46 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: 21.03.08 Произведено обновление сайта/Site was updated
 
  Home   Forum   Help Search Login Register  

Pages: [1]   Go Down
  Print  
Author Topic: can't compile the software  (Read 10385 times)
0 Members and 1 Guest are viewing this topic.
cyclonite
Newbie
*
Posts: 8


18049790
View Profile WWW
« 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
Logged
Vitat
Administrator
Full Member
*****
Gender: Male
Posts: 338


11507314
View Profile
« Reply #1 on: 21 Jun 2005, 02:31 »

What version of avr compiler you are using?
Logged
Vitat
Administrator
Full Member
*****
Gender: Male
Posts: 338


11507314
View Profile
« Reply #2 on: 21 Jun 2005, 03:43 »

I used WinAVR 3.0 when I wrote this soft.
You can download winavr-20030424 (11,8Mb) from my site.
Later versions of WinAVR I am not tested.
Logged
Vitat
Administrator
Full Member
*****
Gender: Male
Posts: 338


11507314
View Profile
« Reply #3 on: 21 Jun 2005, 03:47 »

timer.h is located in directory
disk:\WinAVR\avr\include\avr\timer.h
Logged
cyclonite
Newbie
*
Posts: 8


18049790
View Profile WWW
« Reply #4 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.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

TinyPortal v1.0.5 beta 1© Bloc

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!