Complete, but untested, implementation of N329 pin control and gpio
with interrupt handling.
Ran into problem with the GPIO interrupt handing.  Need to study it more.