Hi Geert, in errno.h you defined all the different error values beginning with EI2CBUSNFREE 1
This confused me a little bit, because this overlaps with the error EINVAL, which is used by i2c_ioctl() also and has the value of 1 also. Maybe it would be better to shift the error numbers a little bit. What is your opinion? .................... Thomas Treyer [EMAIL PROTECTED] Fon: +49 89 7854715 Voice Mail: +49 721 151273565 Mobil: +49 175 2377256 Boschetsrieder Straße 63 81379 München Am 07.01.2007 um 19:45 schrieb Geert Vancompernolle: > Hi, > > As I mentioned a while ago (see thread > http://tech.groups.yahoo.com/group/foxboard/message/3020), I was busy > studying and possibly trying to improve the current version of the I2C > driver. > > Well, I've just finished reworking the I2C driver. The changes are > quite drastical. The changes result in a faster driver and now it can > cope with all possible cases (at least, the ones that I know of...). > > The driver has been tested on several I2C components (see further) and > there are more to come... > > I've created a zip file that contains the following items: > > - a PDF file describing the changes, showing DSO plots and giving in > detail the timings of the current I2C implementation. > > - a new I2C error header file i2c_errno.h (see PDF file for some > explanation) > > - the changed i2c.h header file > > - the changed etraxi2c.h header file > > - the new I2C source file > > - an example file which has been used to test the I2C driver on the > following devices: > * NVM 24C32 > * PCF8574 > * PCF8591 > > - Makefile to use for the example code. > > - switches header file to activate one or more of the tested > components. > > Those interested can have a look over here: > > http://tech.groups.yahoo.com/group/foxboard/files/GeertVc > > All suggestions/improvements/remarks are welcome. > > I would especially ask John Crispin to have a look at the driver (John > knows what I'm talking about...) > > Best rgds, > > --Geert > > > [Non-text portions of this message have been removed]
