www.8devices.com
|
|
Author |
Message |
JaXXoN
Joined: 26 Dec 2012, 16:31 Posts: 50
|
Hi!
Please find attached the first draft of a "true" I2C driver that uses the I2C controller. The advantage of this driver over the already existing one is that it i.e. takes only 8% CPU whereas the bit-banging I2C driver takes 31% for the same application (reading gyro and accelerometer data at 100 Hz).
Please check the included README.txt file for compilation instructions and how to use the driver.
regards
Bernhard
|
22 Jan 2013, 19:55 |
|
|
rmike
Joined: 04 Oct 2012, 11:57 Posts: 21
|
Hi Bernhard,
thank you very much for your work on this driver!
One question regarding the old bit-banging I2C driver mentioned in your README: Would it be possible to change the pio pins the old driver uses to get two independent i2c ports? If yes - where is the right place to configure them?
Regards Michael
|
22 Jan 2013, 21:34 |
|
|
JaXXoN
Joined: 26 Dec 2012, 16:31 Posts: 50
|
|
23 Jan 2013, 00:32 |
|
|
JaXXoN
Joined: 26 Dec 2012, 16:31 Posts: 50
|
|
23 Jan 2013, 00:57 |
|
|
rmike
Joined: 04 Oct 2012, 11:57 Posts: 21
|
Hi Bernhard,
thanks a lot for your help on that!
Michael
|
23 Jan 2013, 11:29 |
|
|
gedass
Joined: 07 Dec 2011, 16:01 Posts: 525 Location: Lithuania
|
Need to put this to WIKI
|
23 Jan 2013, 11:39 |
|
|
rmike
Joined: 04 Oct 2012, 11:57 Posts: 21
|
Hi Bernhard,
do you mean in mach-carambola.c ? I can't find this struct in spi-ramips.c: static struct i2c_gpio_platform_data carambola_i2c_gpio_data
Regards Michael
|
23 Jan 2013, 11:41 |
|
|
tty
Joined: 18 Mar 2012, 19:06 Posts: 52
|
|
23 Jan 2013, 13:12 |
|
|
JaXXoN
Joined: 26 Dec 2012, 16:31 Posts: 50
|
|
23 Jan 2013, 14:30 |
|
|
JaXXoN
Joined: 26 Dec 2012, 16:31 Posts: 50
|
|
23 Jan 2013, 15:34 |
|
|
Who is online |
Users browsing this forum: No registered users |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|