2+ Years later...
Is there a proper solution yet?
multi-thread I2C synchronization
Re: multi-thread I2C synchronization
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.
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.
Re: multi-thread I2C synchronization
You could also use i2c manager to handle it for you. See https://github.com/ropg/i2c_manager
Best regards
Best regards
Who is online
Users browsing this forum: Baidu [Spider], ChatGPT-User, meta-externalagent, Semrush [Bot] and 8 guests