<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Mutex with QSPI? in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Mutex-with-QSPI/m-p/210543#M5173</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the QSPI driver provided with MQX. I dont know if this drivers provide protection in order to&lt;/P&gt;&lt;P&gt;&amp;nbsp;avoid different tasks using the qspi resource.&lt;/P&gt;&lt;P&gt;Before I use a mutex to protect this case,&amp;nbsp; I would like to know if there is already a protection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Aug 2009 00:20:51 GMT</pubDate>
    <dc:creator>MQXuser</dc:creator>
    <dc:date>2009-08-26T00:20:51Z</dc:date>
    <item>
      <title>Mutex with QSPI?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Mutex-with-QSPI/m-p/210543#M5173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the QSPI driver provided with MQX. I dont know if this drivers provide protection in order to&lt;/P&gt;&lt;P&gt;&amp;nbsp;avoid different tasks using the qspi resource.&lt;/P&gt;&lt;P&gt;Before I use a mutex to protect this case,&amp;nbsp; I would like to know if there is already a protection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2009 00:20:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Mutex-with-QSPI/m-p/210543#M5173</guid>
      <dc:creator>MQXuser</dc:creator>
      <dc:date>2009-08-26T00:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Mutex with QSPI?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Mutex-with-QSPI/m-p/210544#M5174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I know MQX functions are all thread &amp;amp; re entrant safe unless otherwise stated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2009 18:44:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Mutex-with-QSPI/m-p/210544#M5174</guid>
      <dc:creator>CarlFST60L</dc:creator>
      <dc:date>2009-08-27T18:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: Mutex with QSPI?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Mutex-with-QSPI/m-p/210545#M5175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Thank you for your answer, I am having dificulties merging tasks that were working alone.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2009 08:38:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Mutex-with-QSPI/m-p/210545#M5175</guid>
      <dc:creator>MQXuser</dc:creator>
      <dc:date>2009-08-28T08:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: Mutex with QSPI?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Mutex-with-QSPI/m-p/210546#M5176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in the next release, the QSPI driver&amp;nbsp;will be&amp;nbsp;merged into universal SPI driver.&lt;/P&gt;&lt;P&gt;The driver will not open twice, there&amp;nbsp;will be&amp;nbsp;an exclusive access to SPI.&lt;/P&gt;&lt;P&gt;If you try to use same SPI file descriptor in multiple tasks, you have to provide additional protection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;PetrM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2009 14:08:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Mutex-with-QSPI/m-p/210546#M5176</guid>
      <dc:creator>PetrM</dc:creator>
      <dc:date>2009-09-02T14:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Mutex with QSPI?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Mutex-with-QSPI/m-p/210547#M5177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I am using a global file pointer to control my 3 qspi devices. Any device can be used by any task at any time. Should I open different file pointers for each device or task?&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2009 21:12:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Mutex-with-QSPI/m-p/210547#M5177</guid>
      <dc:creator>MQXuser</dc:creator>
      <dc:date>2009-09-02T21:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Mutex with QSPI?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Mutex-with-QSPI/m-p/210548#M5178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, the best idea would be to create one communication task, which&amp;nbsp;would be the only task accessing QSPI bus and which&amp;nbsp;would be used by other tasks through messages.&lt;/P&gt;&lt;P&gt;In you scenario, you have to take care of&amp;nbsp;exclusive QSPI access using mutexes or semaphores either way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2009 16:35:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Mutex-with-QSPI/m-p/210548#M5178</guid>
      <dc:creator>PetrM</dc:creator>
      <dc:date>2009-09-04T16:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Mutex with QSPI?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Mutex-with-QSPI/m-p/210549#M5179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To clarify, I am right in thinking that we can have a maximum of one device 'fopen'ed against spi0 at a time?&amp;nbsp; And to access multiple devices on the SPI, we have to ioctl each device's SPI definition (if they differ) for the phyical device we were going to talk to each time we're about to talk?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd erroneously expected the ability to allow multiple fopens, each with a different CS number... and the handling of multi-device read/write clashes using a mutex internal to the driver.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you let me know whether I'm now looking at the driver the right way up?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 17:30:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Mutex-with-QSPI/m-p/210549#M5179</guid>
      <dc:creator>Joe2</dc:creator>
      <dc:date>2010-08-17T17:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Mutex with QSPI?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Mutex-with-QSPI/m-p/210550#M5180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, only one SPI device can be opened at a time now.&lt;/P&gt;&lt;P&gt;If you're communicating with several devices and their physical communication settings differ, you have to switch&amp;nbsp;the settings using IOCTLs everytime you switch&amp;nbsp;between devices.&lt;/P&gt;&lt;P&gt;Think of it as generic low level driver upon which you can create any "protocol layers".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PetrM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 23:03:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Mutex-with-QSPI/m-p/210550#M5180</guid>
      <dc:creator>PetrM</dc:creator>
      <dc:date>2010-08-17T23:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Mutex with QSPI?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Mutex-with-QSPI/m-p/210551#M5181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, PetrM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I understand it properly now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 16:44:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Mutex-with-QSPI/m-p/210551#M5181</guid>
      <dc:creator>Joe2</dc:creator>
      <dc:date>2010-08-18T16:44:43Z</dc:date>
    </item>
  </channel>
</rss>

