I2C(TWI) driver configuration sample project which generates an interrupt in BF609 Ezkit.
The attached a sample code which generates an interrupt (registered Callback handler )which toggles an LED once the data transferred from TWI0 to TWI1.
Note: For performing loop back test,Following connections should be made on EI3 probing adapter which is connected to Port 1B.
TWI0_SCL (Pin 79) <-----> TWI1_SCL (Pin 42).
TWI0_SDA (Pin 80) <-----> TWI1_SDA (Pin 41).