Hello Rober,
The I2C driver has modifications between 4.0.1 and 4.1.1 MXQ versions.
According the MQX 4.1.1 release notes:
Both interrupt driven I2C master and slave mode drivers are changed to support synchronous blocking mode and share
the same API with the polling driver variant. This way users can interchange the polling and interrupt I2C driver easily
in their final application.
You can find the below example codes at the path C:\Freescale\Freescale_MQX_4_1\mqx\examples
- i2c: Shows how to read/write data from/to external EEPROM. Additional HW setup is needed.
- i2c_slave: Shows usage of the I2C driver in slave mode – emulates the external EEPROM behavior.
The current version of the MQX I/O driver supports two I2C IP modules. The legacy module requires an additional configuration. To confirm which IP you are using, see the figure in the MQX Release Overview section.
- i2s_demo: Demonstrates use of audio I2S driver. TWR-AUDIO card is needed to run this example.
Have a great day,
Sol
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------