-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interrupt handler symbol name incorrect? #9
Comments
I just learned it should be
instead of
because otherwise the ISR can be called only once. I suspect that is about
from http://www.nongnu.org/avr-libc/user-manual/group__avr__interrupts.html In particular |
By the way, I implemented Arduino's Would be nice to move much of that into |
I wonder if the interrupt vector symbol name depends on the assembly code chosen for the IVT table. For example, here's the
Perhaps the README is using a different IVT jump table with different interrupt function symbol names? It raises a good question - how to go about standardising it |
Yes, it certainly does. The one shown comes from my custom assembly, which has the aim of not linking to any avr-gcc code whatsoever. This means I get to pick more expressive names. |
Raised #12 for coming up with a single, ecosystem-wide way to define interrupts. |
Does the function actually need to be declared |
The
README
showsas interrupt handler for timer1 but that didn't work for me on the Arduino Uno Rev3.
Every time the interrupt arrived, the board did a full reset because no interrupt handler was correctly defined.
This worked:
as that is what
ISR(TIMER1_COMPA_vect)
(see e.g. here) expands to when used from the Arduino IDE.The text was updated successfully, but these errors were encountered: