<?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 LPSPI FreeRTOS Initialization Only for Master? in MCUXpresso SDK</title>
    <link>https://community.nxp.com/t5/MCUXpresso-SDK/LPSPI-FreeRTOS-Initialization-Only-for-Master/m-p/923021#M1580</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Within the MCUXpresso SDK, the non-RTOS initialization drivers for LPSPI include "LPSPI_MasterInit" and "LPSPI_SlaveInit".&amp;nbsp; When FreeRTOS is included, the associated RTOS driver is "LPSPI_RTOS_Init" which I initially presumed would have parameters for master or slave, but that doesn't appear to be the case.&amp;nbsp; Within LPSPI_RTOS_Init, LPSPI_MasterInit is called, but LPSPI_SlaveInit is not.&amp;nbsp; In fact, in the file "fsl_lpspi_freertos.c" there is no reference to the word "slave" at all!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When looking at the LPSPI / FreeRTOS example code (&lt;A _jive_internal="true" href="https://community.nxp.com/thread/507914"&gt;not available in the SDK for the RT1060 and RT1064&lt;/A&gt;), the FreeRTOS slave task initializes directly with "LPSPI_SlaveInit".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why is their only a master LPSPI initialization function for FreeRTOS?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Jul 2019 19:13:35 GMT</pubDate>
    <dc:creator>nbgatgi</dc:creator>
    <dc:date>2019-07-29T19:13:35Z</dc:date>
    <item>
      <title>LPSPI FreeRTOS Initialization Only for Master?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/LPSPI-FreeRTOS-Initialization-Only-for-Master/m-p/923021#M1580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Within the MCUXpresso SDK, the non-RTOS initialization drivers for LPSPI include "LPSPI_MasterInit" and "LPSPI_SlaveInit".&amp;nbsp; When FreeRTOS is included, the associated RTOS driver is "LPSPI_RTOS_Init" which I initially presumed would have parameters for master or slave, but that doesn't appear to be the case.&amp;nbsp; Within LPSPI_RTOS_Init, LPSPI_MasterInit is called, but LPSPI_SlaveInit is not.&amp;nbsp; In fact, in the file "fsl_lpspi_freertos.c" there is no reference to the word "slave" at all!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When looking at the LPSPI / FreeRTOS example code (&lt;A _jive_internal="true" href="https://community.nxp.com/thread/507914"&gt;not available in the SDK for the RT1060 and RT1064&lt;/A&gt;), the FreeRTOS slave task initializes directly with "LPSPI_SlaveInit".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why is their only a master LPSPI initialization function for FreeRTOS?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2019 19:13:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/LPSPI-FreeRTOS-Initialization-Only-for-Master/m-p/923021#M1580</guid>
      <dc:creator>nbgatgi</dc:creator>
      <dc:date>2019-07-29T19:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: LPSPI FreeRTOS Initialization Only for Master?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/LPSPI-FreeRTOS-Initialization-Only-for-Master/m-p/923022#M1581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="307979" data-username="nbgatgi" href="https://community.nxp.com/people/nbgatgi"&gt;Nick&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently we do not plan to prepare FreeRTOS SPI slave driver. We have created initial set of drivers and we decided that Baremetal ISR api is most appropriate for use.&lt;/P&gt;&lt;P&gt;SPI slave is usually implementing custom protocol, where number of transferred bytes depends on payload (command) sent, most of such processing should be done directly in the ISR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2019 15:11:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/LPSPI-FreeRTOS-Initialization-Only-for-Master/m-p/923022#M1581</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2019-07-31T15:11:53Z</dc:date>
    </item>
  </channel>
</rss>

