已解决! 转到解答。
This code base has XPRESSO_BOARD compile time flags. So, previously we were probably using NXP board.
Connections.
No, we're not using external pull-up resistors on I2C port. But we're using internal pull-up resistors. Please review my settings of enabling and pulling up unused inputs on I2C port.
/* Enable selection of Pull Up / Pull Down on unused inputs */
b = mIOExtender.PuPdEnablePort0(0x02);
b = mIOExtender.PuPdEnablePort1(0x70);
/* Pull up unused inputs */
b = mIOExtender.PuPdSelectPort0(0xFF);
b = mIOExtender.PuPdSelectPort1(0xFF);
Yes, we're using LPCOpen because __USE_LPCOPEN is defined in our projects.
Regards,
Amer