My goal is implement External Interruption for AVR. There is no support for that part in the os/hal/ports/AVR/ directory.
I don't know is some one already did that?
To do that, I first made a test without RT kernel part to trigger an external interruption 4 generate by a switch.
Here is how I have implemented the ISR:
Code: Select all
ISR(INT4_vect)
{
//my callback code here
}
This works well, my code is executed every time I pressed the button.
Now I whant to use the RT kernel, and register this ISR as a callback so that it can be call every time the button is pressed.
Can you please briefly explain me how to implement external interrupt on ChibiOS?