<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>I2c driver multiple threads</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/106148/i2c-driver-multiple-threads</link><description>Hello, I would like to know if Zephyr I2c have some locking mechanisms to prevent simultaneous access from multiple threads. Three devices are connected to the same I2c, accessed by three threads. 
 If not, what is the best way to implement a lock on</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 29 Nov 2023 15:28:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/106148/i2c-driver-multiple-threads" /><item><title>RE: I2c driver multiple threads</title><link>https://devzone.nordicsemi.com/thread/458159?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2023 15:28:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3eafb358-e71d-4ea7-bdce-e3723aade65d</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I strongly believe the i2c driver in zephyr should be thread safe yes (at least the last time I checked it worked).&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>