Date: Thu, 23 Apr 1998 12:00:45 -0400 (EDT) From: Peter Dufault <dufault@hda.com> To: sos@FreeBSD.ORG Cc: multimedia@FreeBSD.ORG Subject: My I2C code Message-ID: <199804231600.MAA23804@hda.hda.com> In-Reply-To: <199804231453.QAA04779@sos.freebsd.dk> from =?ISO-8859-1?Q?S=F8ren_Schmidt?= at "Apr 23, 98 04:53:30 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
> In reply to Peter Dufault who wrote: > > > if i remember well there was some code to do i2c in software, and it's > > > included in the driver's source. > > > > If anyone needs it, I have all kinds of I2C code including bus snooping, > > etc. > > Hmm, I might want to have a look at that, my TV card has a PIC chip > on it for a remotecontrol, a snooping thing might come in handy :) OK - I've used the snoop feature to snoop from a hacked up adapter connected to a PC Parallel port on an I2C bus. I don't know if it will work for you without a fair amount of work since I'm not sure how you get at the I2C bus on your systems. An old snapshot is available in my home directory at freefall (world readable) as i2c.tgz. If that piques your interest, or if those without freefall access are interested, I can set it up so you can get the latest but won't have time to test on FreeBSD. I guarantee it will compile. The latest is split up into a separate slave, supports the Philips PCF8584 I2C bus controller chip, and has some minor bug fixes in the slave (which is needed for snooping) support. If any of these boards have the PCF8584 controller on them then that is a candidate (with additional software in my driver) for a bus monitor since you don't have to wildly poll the I2C bus to sample it. Any future bus monitor work I do will use that chip since I now have a few ISA boards with that chip on them for my FreeBSD based development and I'm away from the parallel port hack. If I get time I'll bundle that source up and put it there as i2cnew.tgz. Peter -- Peter Dufault (dufault@hda.com) Realtime development, Machine control, HD Associates, Inc. Safety critical systems, Agency approval To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199804231600.MAA23804>