09-29-2009 11:10 PM
09-30-2009 07:26 AM
I have not tested the I2C driver with that device on the board.
Do you know if the I2C EEPROM on the board is working as that would establish a baseline that the I2C core is working and and the driver?
I test this on the Ml507 in automation and have info about it on the wiki if you need more info.
10-28-2009 09:08 AM
I found some compile error messages, where can i get i2c.h, i2c-dev.h, buffDump.h files for testing IC2 device on ML507.
Using the GPIO Driver from a User Space Application
make -C O.linux-x86 -f ../Makefile TOP=./.. T_A=linux-x86 install
make: Entering directory `/home/kha/tmp/i2c/O.linux-x86'
/usr/bin/gcc -c -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS -D_XOPEN_SOURCE=500 -D_X86_ -DUNIX -D_BSD_SOURCE -Dlinux -D_REENTRANT -ansi -O3 -Wall -m32 -g -I. -I../O.Common -I. -I.. -I./../include/os/Linux -I./../include -I/home/kha/epics/base-3.14.10/include/os/Linux -I/home/kha/epics/base-3.14.10/include ../i2c_test.c
../i2c_test.c:12:17: error: i2c.h: No such file or directory
../i2c_test.c:13:21: error: i2c-dev.h: No such file or directory
../i2c_test.c:14:22: error: buffDump.h: No such file or directory
../i2c_test.c: In function â€˜mainâ€™:
../i2c_test.c:54: warning: implicit declaration of function â€˜ioctlâ€™
../i2c_test.c:54: error: â€˜I2C_SLAVEâ€™ undeclared (first use in this function)
../i2c_test.c:54: error: (Each undeclared identifier is reported only once
../i2c_test.c:54: error: for each function it appears in.)
../i2c_test.c:70: warning: implicit declaration of function â€˜writeâ€™
../i2c_test.c:77: warning: implicit declaration of function â€˜readâ€™
../i2c_test.c:85: warning: implicit declaration of function â€˜buffDumpâ€™
../i2c_test.c:20: warning: unused variable â€˜countâ€™
make: *** [i2c_test.o] Error 1
make: Leaving directory `/home/kha/tmp/i2c/O.linux-x86'
make: *** [install.linux-x86] Error 2