ubuntu_amateur
Member level 4
i2c gpio
On our board we are planning to connect 2 devices(slave) with I2C interface to 1 MCU (master). But the master (MCU) has NO I2C interface, should use 2 GPIO pins to simulate I2C timing, to implement the communication between processor and the devices.
The host processor will be running linux 2.4.X on it.
How to write a driver to implement I2C function with GPIO?
Could anyone heeeeelp me? Any suggestions are appreciated!
On our board we are planning to connect 2 devices(slave) with I2C interface to 1 MCU (master). But the master (MCU) has NO I2C interface, should use 2 GPIO pins to simulate I2C timing, to implement the communication between processor and the devices.
The host processor will be running linux 2.4.X on it.
How to write a driver to implement I2C function with GPIO?
Could anyone heeeeelp me? Any suggestions are appreciated!