jjackowski
Posts: 44
Joined: Thu Jan 10, 2013 5:25 am

I2C repeated starts implemented in the kernel

Sat Jul 13, 2013 4:34 pm

I really wanted to use user-space SMBus code for the MLX90614 sensor. Finding code to access the Raspberry Pi's I2C master directly was easy, but I couldn't find a fix for the kernel. So I fixed it. The changes are in bcm2708_i2c_master_xfer() of i2c-bcm2708.c.
http://home.hiwaay.net/~jeffj1/i2c-bcm2708.c
Here is the test program I used:
http://home.hiwaay.net/~jeffj1/MLX90614.c
I also tested the BMP085 using the kernel's support for it, and that still works.

Enjoy!

User avatar
elektrknight
Posts: 140
Joined: Sat Mar 02, 2013 1:25 pm

Re: I2C repeated starts implemented in the kernel

Sun Jul 14, 2013 2:50 am

Great fix, I will be testing it shortly.
Thanks !
Placek Malinowy to jest to!

Givi
Posts: 23
Joined: Sun Jul 20, 2014 2:28 pm

Re: I2C repeated starts implemented in the kernel

Sun Nov 20, 2016 5:28 pm

Hi,
I wondered if you can help me with Reading a Microcontroller using 'WiringPi'. In my simple I2C program I can send Binary digit from RPi to 18f2525 Microchip. However, I have not been able to do the reverse. Does WiringPi provides a 'stop' or 'start' function in I2C as well ? Do I need it?

Regards,

Givi

Return to “Linux Kernel”