Detaching an interrupt handler
When done with the ISR, we may wish to break the association between the ISR and the interrupt vector:
The flags parameter
The last parameter, flags, controls all kinds of things:
The interrupt service routine
Let's look at the ISR itself. In the first example, we'll look at using the InterruptAttach() function. Then, we'll see the exact same thing, except with InterruptAttachEvent().
ISR functions
The next issue we should tackle is the list of functions an ISR is allowed to call.