wrote function to register interrupts, along with relevant supporting macros. test code for a uart0 interrupt