2.2 Macros for writing interrupt handler functions