<?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: problem about the spi low level driver in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/problem-about-the-spi-low-level-driver/m-p/350588#M11322</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;driver_data structure is created in _io_spi_install() function.&lt;/P&gt;&lt;P&gt;_io_spi_install() function is called in init_bsp.c file.&lt;/P&gt;&lt;P&gt;driver_data = e.g. SPI0 (spi.c)&lt;/P&gt;&lt;P&gt;DEVIF = _spi_dspi_dma_devif (spi_dspi_dma.c)&lt;/P&gt;&lt;P&gt;TX_RX = _dspi_dma_tx_rx() function in spi_dspi_dma.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, if you not enable DMA (BSPCFG_DSPI0_USE_DMA=0), TX_RX will points to _dspi_tx_rx() function in spi_dspi.c file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to recommend currently do not use DMA for current DSPI driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;RadekS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Dec 2014 17:22:55 GMT</pubDate>
    <dc:creator>RadekS</dc:creator>
    <dc:date>2014-12-15T17:22:55Z</dc:date>
    <item>
      <title>problem about the spi low level driver</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/problem-about-the-spi-low-level-driver/m-p/350587#M11321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am learning to use the MQX , and I want to how the spi driver works. But I can't see definition of these functions,&lt;/P&gt;&lt;P&gt;typedef _mqx_int (_CODE_PTR_ SPI_DEVIF_INIT_FPTR)(const void _PTR_ init_data_ptr, pointer *io_info_ptr_ptr);&lt;/P&gt;&lt;P&gt;typedef _mqx_int (_CODE_PTR_ SPI_DEVIF_DEINIT_FPTR)(pointer io_info_ptr);&lt;/P&gt;&lt;P&gt;typedef _mqx_int (_CODE_PTR_ SPI_DEVIF_SETPARAM_FPTR)(pointer io_info_ptr, SPI_PARAM_STRUCT_PTR spi_param_ptr);&lt;/P&gt;&lt;P&gt;typedef _mqx_int (_CODE_PTR_ SPI_DEVIF_TX_RX_FPTR)(pointer io_info_ptr, uint_8_ptr txbuf, uint_8_ptr rxbuf, uint_32 len);&lt;/P&gt;&lt;P&gt;typedef _mqx_int (_CODE_PTR_ SPI_DEVIF_CS_DEASSERT_FPTR)(pointer io_info_ptr);&lt;/P&gt;&lt;P&gt;typedef _mqx_int (_CODE_PTR_ SPI_DEVIF_IOCTL_FPTR)(pointer io_info_ptr, SPI_PARAM_STRUCT_PTR spi_param_ptr, uint_32 cmd, uint_32_ptr cmd_param_ptr);&lt;/P&gt;&lt;P&gt;for example, in the spi.c,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; result = driver_data-&amp;gt;DEVIF-&amp;gt;TX_RX(driver_data-&amp;gt;DEVIF_DATA, (uint_8_ptr)wrbuf, (uint_8_ptr)rdbuf, len);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't see the definition of the TX_RX function.&lt;/P&gt;&lt;P&gt;is there anybody can tell me what to do ?&lt;/P&gt;&lt;P&gt;thank you !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 07:03:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/problem-about-the-spi-low-level-driver/m-p/350587#M11321</guid>
      <dc:creator>botaoyang</dc:creator>
      <dc:date>2014-12-15T07:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: problem about the spi low level driver</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/problem-about-the-spi-low-level-driver/m-p/350588#M11322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;driver_data structure is created in _io_spi_install() function.&lt;/P&gt;&lt;P&gt;_io_spi_install() function is called in init_bsp.c file.&lt;/P&gt;&lt;P&gt;driver_data = e.g. SPI0 (spi.c)&lt;/P&gt;&lt;P&gt;DEVIF = _spi_dspi_dma_devif (spi_dspi_dma.c)&lt;/P&gt;&lt;P&gt;TX_RX = _dspi_dma_tx_rx() function in spi_dspi_dma.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, if you not enable DMA (BSPCFG_DSPI0_USE_DMA=0), TX_RX will points to _dspi_tx_rx() function in spi_dspi.c file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to recommend currently do not use DMA for current DSPI driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;RadekS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 17:22:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/problem-about-the-spi-low-level-driver/m-p/350588#M11322</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2014-12-15T17:22:55Z</dc:date>
    </item>
  </channel>
</rss>

