Reworked the GPIO API structure. Can now use both edge and level interrupts on input and output pins, and disable interrupts.