I2C interface
Gedare Bloom
gedare at rtems.org
Fri Feb 12 16:20:21 UTC 2021
the linux api is exported via cpukit/include/dev/i2c/i2c.h
the include path should be #include <dev/i2c/i2c.h>
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 <amimjf at gmail.com> wrote:
>
> Hi,
>
> The ATSAM BSP has I2C support, but i am slightly unclear about the API that should be used to access it.
>
> Using pread() & pwrite() seems to trigger assertions that look like memory corruption in atsam_i2c_bus.c
>
> The linux I2C userspace API seems to be suggested, which looks like ioctrl(), but there is also a i2c_smbus_write_byte() type interface.
>
>
>
> regards
> ---
> Matthew J Fletcher
>
> _______________________________________________
> users mailing list
> users at rtems.org
> http://lists.rtems.org/mailman/listinfo/users
More information about the users
mailing list