This module can be used to configure a GPIO as a general input pin. Possible GPIO-values as input parameter are defined in global_defines.h and can also be seen in this overview table.
The module allows to read the applied signal-value of the input pin (high=1/low=0).
Furthermore an interrupt can be configured for an input pin at different events: 0=falling edge, 1=rising edge, 2=falling and rising edge.
The function interrupt_ack() needs to be called at the end of an interrupt service routine, to acknowledge more interrupts.
For GPIO0 - GPIO31: Two external interrupts can be configured (XINT1 - XINT2)
For GPIO32 - GPIO63: Five external interrupts can be configured (XINT3 - XINT7)