<?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 Re: SPI MQX 3.6 in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/SPI-MQX-3-6/m-p/150240#M414</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The relation is 1 SPI driver &amp;lt;=&amp;gt; N SPI devices.&lt;/P&gt;&lt;P&gt;Check the spi example again, search for "callback". You can extend this section for more callbacks and/or CSs.&lt;/P&gt;&lt;P&gt;There's a MASK for every callback function, which is bitfield of CS definitions passed to IO_IOCTL_SPI_SET_CS.&lt;/P&gt;&lt;P&gt;So when you IO_IOCTL_SPI_SET_CS in the runtime,&amp;nbsp;matching CS callback will be called.&lt;/P&gt;&lt;P&gt;You can use MCF5XXX_QSPI_QDR_QSPI_CS0-3 CS bit definitions in the mask/ioctl.&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>Fri, 24 Sep 2010 20:28:20 GMT</pubDate>
    <dc:creator>PetrM</dc:creator>
    <dc:date>2010-09-24T20:28:20Z</dc:date>
    <item>
      <title>SPI MQX 3.6</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/SPI-MQX-3-6/m-p/150239#M413</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;I have a doubt concerning SPI driver, this is the situation:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-MCF52259&lt;/P&gt;&lt;P&gt;-MQX 3.6&lt;/P&gt;&lt;P&gt;-I need to control 3 SPI devices, one of the uses QSPI_PCS0 Pin and the other two devices use GPIO.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand I must use IO_IOCTL_SPI_SET_CS_CALLBACK&amp;nbsp; in order to call a customized function and control Chip Select automatically.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does this mean I must open 3 SPI drivers so that I can use a specific routine to control each chip select pin? or&lt;/P&gt;&lt;P&gt;How do I indicate which pin should the callback function activate/deactivate?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already checked the SPI example but since it only used ONE spi device I don't know how to indicate which device should be active.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Sep 2010 00:39:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/SPI-MQX-3-6/m-p/150239#M413</guid>
      <dc:creator>JaimeR</dc:creator>
      <dc:date>2010-09-24T00:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: SPI MQX 3.6</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/SPI-MQX-3-6/m-p/150240#M414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The relation is 1 SPI driver &amp;lt;=&amp;gt; N SPI devices.&lt;/P&gt;&lt;P&gt;Check the spi example again, search for "callback". You can extend this section for more callbacks and/or CSs.&lt;/P&gt;&lt;P&gt;There's a MASK for every callback function, which is bitfield of CS definitions passed to IO_IOCTL_SPI_SET_CS.&lt;/P&gt;&lt;P&gt;So when you IO_IOCTL_SPI_SET_CS in the runtime,&amp;nbsp;matching CS callback will be called.&lt;/P&gt;&lt;P&gt;You can use MCF5XXX_QSPI_QDR_QSPI_CS0-3 CS bit definitions in the mask/ioctl.&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>Fri, 24 Sep 2010 20:28:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/SPI-MQX-3-6/m-p/150240#M414</guid>
      <dc:creator>PetrM</dc:creator>
      <dc:date>2010-09-24T20:28:20Z</dc:date>
    </item>
  </channel>
</rss>

