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

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

Re: [avr-gcc-list] Input capture feature on ATmega128 not working?


From: John Miles
Subject: Re: [avr-gcc-list] Input capture feature on ATmega128 not working?
Date: Sat, 5 Oct 2002 11:41:25 -0700

Thanks to Geir and Christian -- that fixed the problem!  I guess there's no
way for the compiler to validate names of interrupt routines... although
perhaps the linker should have given an error message when the interrupt
name didn't match any of its known interrupt names.

I actually thought I might have been trapping the wrong interrupt at first,
so I copied all of the signal names from iom128.h into my code and used them
to create "dummy" handlers.  Of course, before I compiled it, I commented
out SIG_INPUT_CAPTURE1 because I knew it would collide with my existing
handler.  I couldn't figure out why my board was still rebooting when I knew
very well that every conceivable signal was handled!  There's no telling how
long it would have taken me to notice the typo on my own.

-- jm

> SIG_INPUTCAPTURE1 should be SIG_INPUT_CAPTURE1
> ...

avr-gcc-list at http://avr1.org



reply via email to

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