As stated by cgaufin in message #1,
this thread is about I2C driver code generated by MCC Device library v1.78 :
In this release of the library, there is only 1 driver alternative for I2C generated by MCC.
There is: ./mcc_generated_files/i2c_master.c
and corresponding header files.
This is the callback driver, very similar to the driver provided by Foundation Services library v0.34 and earlier.
i2c_master_example.c have application interface functions, very similar to i2c_simple_master.c
It is also possible to install Foundation services library v1.0.0
This may provide I2C_Simple and generate: ./mcc_generated_files/drivers/i2c_simple_master.c
It provide application interface functions compatible with earlier releases,
but now use: ./mcc_generated_files/i2c_master.c generated by Device library v1.78
The task queue driver for MSSP may no longer be generated by Device library v1.78
The callback driver provided by Device library v1.78 have some corrections and improvements over earlier Foundation Services driver,
and a lot of names have changed to have more uppercase letters,
but it generally have the same limitations, and mostly the same mistakes.
It may work for simple use, but there are missing features, and mistakes that show up when used on a bus where other master devices make traffic.
post edited by Mysil - 2019/11/16 03:04:44