Do I need to do anything special to implement an IRQ interrupt service routine in C?
If you are using a CPU or board support package then use the supplied functions ctl_set_isr and ctl_unmask_isr to program the interrupt controller of the device.
If you are not using a CPU or board support package then you will have to write the irq_handler in ARM assembly code.
Additionally you will need to call the function libarm_enable_irq to enable interrupts.
Please sign in to leave a comment.