[En-Nut-Discussion] How to: Use a interrupt controled counter on an input port
Andreas Witsch
Endye at gmx.de
Thu Jun 29 17:37:16 CEST 2006
Hi Community,
I'm a rookie with the ethernut board, but i have to count the time how long a '1' was set as input.
I expect it in a range of 1 to 10 ms.
I tried it to use polling on a timmer with the timer example from the ethernut dok (http://www.ethernut.de/en/documents/at91-timer-irq.html), but i got some Problems with the include files.
My AVR Studio abort the compile process with 4 Errors:
"c:/WinAVR/bin/../lib/gcc/avr/3.4.3/../../../../avr/include/avr/eeprom.h: error: previous declaration of 'eeprom_read_word' was here
C:/ethernut-4.0.1/nut/include/dev/mweeprom.h: error: conflicting types for 'eeprom_read_word'"
I think i have a problem with the include direktory's but i can't localize it.
In addition i have an Error:
"../iotest.c: error: `sig_TC1' undeclared (first use in this function)"
(compare to the Examplecode)
It would be nice if i'd got a good idea to solv both problems ;)
thx & best regards Andreas Witsch
--
"Feel free" – 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
More information about the En-Nut-Discussion
mailing list