multi-thread I2C synchronization

MikeLemon
Posts: 45
Joined: Tue Feb 02, 2021 5:55 pm

Re: multi-thread I2C synchronization

Postby MikeLemon » Sun Feb 14, 2021 4:26 pm

2+ Years later...

Is there a proper solution yet?

PeterR
Posts: 621
Joined: Mon Jun 04, 2018 2:47 pm

Re: multi-thread I2C synchronization

Postby PeterR » Tue Feb 16, 2021 11:18 pm

Like Wifi says, mutex. May add an extra mutex but cost is low and you can sleep safe.
Its not normal to use a device/driver from multiple threads. If the driver has to cover these RT bases then the driver would get fat and slow.
So best that these particular use/cases are handled at the application level.
& I also believe that IDF CAN should be fixed.

Who is online

Users browsing this forum: No registered users and 148 guests