This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

PCA9698 I2C code for review

Will anybody be able to review my Keil code attached here which is simple code of writing "0" and "1" to pin 0, bank 0 (configured as output)?

When I debug my code, it gets stuck at line 221 of code inside function "I2C_WriteAccelReg". If I use function "I2C_MasterTransferBlocking" ( inside function "I2C_WriteAccelReg"), the code get stuck at line 952 of driver "fsl_i2c.c"

I2C code for review.zip