add support for interrupt flag and state registers
ensure pins with enabled interrupts are inputs