henryd
Posts: 5
Joined: Thu Dec 22, 2011 2:30 pm

Where are the I2C header files?

Tue Mar 19, 2013 8:16 pm

I am using the cross compiling environment on windows cygwin.
When creating an app for I2C is need header files such as <linux/i2c.h> but they are not a part of the toolset that I downloaded from https://github.com/IanLinsdell/Raspberrypi.
Googling for I2C.h reveals several variants for i2c.h, which one to use?

User avatar
joan
Posts: 14935
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: Where are the I2C header files?

Tue Mar 19, 2013 8:25 pm

Not sure if it helps with your environment.

On a Pi

sudo apt-get install libi2c-dev

pulls in the development files.

henryd
Posts: 5
Joined: Thu Dec 22, 2011 2:30 pm

Re: Where are the I2C header files?

Tue Mar 19, 2013 8:41 pm

Thanks, I did that.
Can I now just copy the /usr/include/linx from RPi to the /cygwin/opt/cross/xtools/arm-unknow.../include on my windows PC?

User avatar
joan
Posts: 14935
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: Where are the I2C header files?

Tue Mar 19, 2013 9:24 pm

I don't know, but that is what I'd try.

Return to “Interfacing (DSI, CSI, I2C, etc.)”