Working on GPIO implementation.
Untested, interrupt driven not yet complete.
Still based on emlib, though easy to migrate later.
Additional changes to the hwtimer config to avoid a divide by zero error.