I'm trying to understand something about reading the GPIO PDIR. In the reference manual, it says:
The GPIO input data register displays the logic value on each pin when the pin is configured for any digital function,
provided the corresponding Port Control and Interrupt module for that pin is enabled.
Am I to understand that the KBI module has to have the pin interrupt enabled to read the state of the pin when it is configured as an input? I was able to read back the input state once I enabled the input in the PIDR register. I had been having some problems reading it, but I think it was the debugger being flaky and not reporting things correctly. I was just looking for clarification on what it means by enabling the interrupt module.