<?xml-stylesheet type="text/xsl" href="https://community.element14.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/"><channel><title>Guard ADC peripheral access with a MUTEX for the Multi-core FreeRTOS SMP Project with the Raspberry Pi Pico</title><link>/products/raspberry-pi/b/blog/posts/guard-adc-peripheral-access-with-a-mutex-for-the-multi-core-freertos-smp-project-with-the-raspberry-pi-pico</link><description>FreeRTOS Symmetric Multiprocessing (SMP) is a recent version of the RTOS that can schedule tasks across multiple controller cores. It&amp;#39;s currently in test phase, and they have a version for the RP2040. In this blog post, I protect the AD...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Guard ADC peripheral access with a MUTEX for the Multi-core FreeRTOS SMP Project with the Raspberry Pi Pico</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/guard-adc-peripheral-access-with-a-mutex-for-the-multi-core-freertos-smp-project-with-the-raspberry-pi-pico</link><pubDate>Sat, 01 Oct 2022 18:41:23 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:387174df-62c4-4013-8109-cf5e15de8eba</guid><dc:creator>DAB</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;It looks like a simple mutex implementation.&lt;/p&gt;
&lt;p&gt;I am not sure sharing an ADC is a good idea unless you have a matrix of the inputs so you can select a separate channel each time.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=24493&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Guard ADC peripheral access with a MUTEX for the Multi-core FreeRTOS SMP Project with the Raspberry Pi Pico</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/guard-adc-peripheral-access-with-a-mutex-for-the-multi-core-freertos-smp-project-with-the-raspberry-pi-pico</link><pubDate>Thu, 29 Sep 2022 21:37:12 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:387174df-62c4-4013-8109-cf5e15de8eba</guid><dc:creator>shabaz</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;An example (maybe not realistic depending on the underlying behavior, but it&amp;#39;s a nice simple way of representing), what happens if no semaphore is used : )&lt;/p&gt;
&lt;p&gt;Here the critical section of code is the print statement.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/1280x720/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-387174df-62c4-4013-8109-cf5e15de8eba/pastedimage1664487365378v1.png" alt=" " /&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=24493&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>