RTEMS and I2C APIs

Till Straumann strauman at slac.stanford.edu
Fri Jul 27 16:49:57 UTC 2007


Thomas Doerfler wrote:
> Hi,
>
> I found out, that RTEMS actually has two I2C APIs defined.
>
> 1.) Till Straumann has implemented a high level API, which resides in
> "cpukit/libi2c". It seems to be well structured, supports multiple
> busses and integrates into the filesystem. Some drivers are implemented
> on top of this API to access an EEPROM and an RTC in "c/src/libchip/i2c".
> But: There is no sample driver implementation for the actual low-level
> I2C driver.
>
> 2.) A different API has been implemented by OKTET in
> "c/src/lib/libbsp/m68k/mcf5206elite/i2c", which is also split into a low
> level driver and a HW independent layer. This driver has been ported at
> least to the gen5200 BSP and has at least an RTC driver based on this API.
>
> Now I want to implement another low level I2C interface, which is quite
> similar to the MCF5206. A decision is needed which API should live on,
> because I think it is not a good idea to have two APIs for the same
> thing. From a first glance, the API in cpukit seems to have a better
> structure, but I would like to get other opinions, and maybe a sample
> low level driver would help to decide, which way to go.
>
> Any opinions?
>
> Till: any sample driver available?
>
>   
Essentially, the netbsd driver for the marvell 64240 chip
(but I made some changes)...

T.
> wkr,
> Thomas.
>
>
>   

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gti2c.c
Type: text/x-csrc
Size: 11628 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/users/attachments/20070727/dc0dea8c/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gti2c_busdrv.h
Type: text/x-chdr
Size: 2242 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/users/attachments/20070727/dc0dea8c/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gti2creg.h
Type: text/x-chdr
Size: 3838 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/users/attachments/20070727/dc0dea8c/attachment-0005.bin>


More information about the users mailing list