Re: I2C interface

2021-02-12 Thread Christian Mauderer
Hello Matthew, in theory it should be possible to use read / write together with some ioctls to set the address. But normally I would suggest to create i2c_msg structures for a finer grained control. Take a look at the i2cget command for a simple example hot to read from an EEPROM like device:

Re: I2C interface

2021-02-12 Thread Gedare Bloom
the linux api is exported via cpukit/include/dev/i2c/i2c.h the include path should be #include I'm not aware of any good examples to follow. The embedded brains folks have most experience working with it. On Thu, Feb 11, 2021 at 8:51 AM Matthew J Fletcher wrote: > > Hi, > > The ATSAM BSP has I2

RE: SPI Driver Implementation

2021-02-12 Thread Jan.Sommer
Hi Rick, I found some time to debug the driver on hardware today. I submitted the driver to the devel mailinglist (https://lists.rtems.org/pipermail/devel/2021-February/064525.html). I didn't have a SPI device ready for testing, so I checked via an oscilloscope and through loopback. Both worked.