[Thanks to Jean-Jacques Dauchot]
Line 641 of the PORT_Pin_Read() in the file port23xx.c should read:
[code type=”c”] if (IO1PIN & Pin) { … } [/code]
instead of:
[code type=”c”] if (IO0PIN & Pin) { … } [/code]
— Anjali.