Hi:
        U need to include the file that define  *i2c_smbus_xxxx_xxxx()* 
functions. 
Maybe u can try add following codes

#include <linux/i2c-dev.h>

Terje Froysa於 2014年11月25日星期二UTC+8上午12時37分10秒寫道:
>
> Dear forum,
>
> I have now verified my I2C devices using Python.
> I need to re-code them in C.
>
> I find i2c driver dokumented here:
>
> https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/tree/Documentation/i2c/dev-interface
>
> The documentation complies with my 3.8.13-bone67 compiled and installed 
> kernel source (KERNEL/drivers/i2c/i2c-core.c)
>
> Problem:
> No file in /usr/include/* contains the prototypes for the documented 
> *i2c_smbus_xxxx_xxxx()* functions.
>
> I can open/read/write to the /dev/i2c-x devices using standard read(), 
> write() and ioctl(), but I find no higher level i2c functions.
>
> What is my problem?
>
> Please advice.
> Best regards
> Terje Froysa
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to