<?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 Report Doc error for KSDKv2 LPSCI driver in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Report-Doc-error-for-KSDKv2-LPSCI-driver/m-p/546219#M5597</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello community !&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just want to report documentations error in KSDKv2 LPSCI drivers.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the method &lt;STRONG&gt;&lt;EM&gt;LPSCI_ReadByte()&lt;/EM&gt;&lt;/STRONG&gt; in &lt;EM&gt;fsl_lpcsi.h &lt;/EM&gt;file, the comments section explain :&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt; "This function polls the RX register, waits for the RX register to be full, and reads data from the TX register."&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it is wrong because it read directly the register as explained below for &lt;STRONG&gt;&lt;EM&gt;LPSCI_ReadBlocking()&lt;/EM&gt; &lt;/STRONG&gt;method :&lt;EM&gt; &lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;"This function reads data from the TX register directly. The upper layer must ensure that the RX register is full before calling this function."&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So no big deal,&amp;nbsp; the comments are simply swapped and create confusion to the reader at the first time.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also for &lt;STRONG&gt;&lt;EM&gt;LPSCI_ReadBlocking()&lt;/EM&gt; &lt;/STRONG&gt;method, this function is a &lt;STRONG&gt;blocking method and not non-blocking&lt;/STRONG&gt; as show in comment documentation.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;copy, past of &lt;EM&gt;fsl_lpcsi.h file&lt;/EM&gt; :&lt;/P&gt;&lt;PRE class="c++" name="code"&gt;/*! * -&amp;gt; error here &amp;lt;-&amp;nbsp; * @brief Reads the RX register using a non-blocking method. * * -&amp;gt; error here &amp;lt;-&amp;nbsp; * This function reads data from the TX register directly. The upper layer must * ensure that the RX register is full before calling this function. * * @param base LPSCI peripheral base address. * @param data Start address of the buffer to store the received data. * @param length Size of the buffer. * @retval kStatus_LPSCI_RxHardwareOverrun Receiver overrun happened while receiving data. * @retval kStatus_LPSCI_NoiseError Noise error happened while receiving data. * @retval kStatus_LPSCI_FramingError Framing error happened while receiving data. * @retval kStatus_LPSCI_ParityError Parity error happened while receiving data. * @retval kStatus_Success Successfully received all data. */ status_t LPSCI_ReadBlocking(UART0_Type *base, uint8_t *data, size_t length);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="c++" name="code"&gt;/*!&amp;nbsp; * @brief Reads the RX data register.&amp;nbsp; * * -&amp;gt; error here &amp;lt;-&amp;nbsp; * This function polls the RX register, waits for the RX register to be full, and&amp;nbsp; * reads data from the TX register.&amp;nbsp; *&amp;nbsp; * @param base LPSCI peripheral base address.&amp;nbsp; * @return Data read from RX data register.&amp;nbsp; */ static inline uint8_t LPSCI_ReadByte(UART0_Type *base) { &amp;nbsp;&amp;nbsp;&amp;nbsp; return base-&amp;gt;D; }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Will be interesting to also fix this for the next update.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Voilà &lt;SPAN aria-label="Happy" class="emoticon_happy emoticon-inline" style="height:16px;width:16px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheer,&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Jun 2016 23:01:42 GMT</pubDate>
    <dc:creator>mr_max</dc:creator>
    <dc:date>2016-06-17T23:01:42Z</dc:date>
    <item>
      <title>Report Doc error for KSDKv2 LPSCI driver</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Report-Doc-error-for-KSDKv2-LPSCI-driver/m-p/546219#M5597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello community !&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just want to report documentations error in KSDKv2 LPSCI drivers.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the method &lt;STRONG&gt;&lt;EM&gt;LPSCI_ReadByte()&lt;/EM&gt;&lt;/STRONG&gt; in &lt;EM&gt;fsl_lpcsi.h &lt;/EM&gt;file, the comments section explain :&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt; "This function polls the RX register, waits for the RX register to be full, and reads data from the TX register."&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it is wrong because it read directly the register as explained below for &lt;STRONG&gt;&lt;EM&gt;LPSCI_ReadBlocking()&lt;/EM&gt; &lt;/STRONG&gt;method :&lt;EM&gt; &lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;"This function reads data from the TX register directly. The upper layer must ensure that the RX register is full before calling this function."&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So no big deal,&amp;nbsp; the comments are simply swapped and create confusion to the reader at the first time.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also for &lt;STRONG&gt;&lt;EM&gt;LPSCI_ReadBlocking()&lt;/EM&gt; &lt;/STRONG&gt;method, this function is a &lt;STRONG&gt;blocking method and not non-blocking&lt;/STRONG&gt; as show in comment documentation.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;copy, past of &lt;EM&gt;fsl_lpcsi.h file&lt;/EM&gt; :&lt;/P&gt;&lt;PRE class="c++" name="code"&gt;/*! * -&amp;gt; error here &amp;lt;-&amp;nbsp; * @brief Reads the RX register using a non-blocking method. * * -&amp;gt; error here &amp;lt;-&amp;nbsp; * This function reads data from the TX register directly. The upper layer must * ensure that the RX register is full before calling this function. * * @param base LPSCI peripheral base address. * @param data Start address of the buffer to store the received data. * @param length Size of the buffer. * @retval kStatus_LPSCI_RxHardwareOverrun Receiver overrun happened while receiving data. * @retval kStatus_LPSCI_NoiseError Noise error happened while receiving data. * @retval kStatus_LPSCI_FramingError Framing error happened while receiving data. * @retval kStatus_LPSCI_ParityError Parity error happened while receiving data. * @retval kStatus_Success Successfully received all data. */ status_t LPSCI_ReadBlocking(UART0_Type *base, uint8_t *data, size_t length);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="c++" name="code"&gt;/*!&amp;nbsp; * @brief Reads the RX data register.&amp;nbsp; * * -&amp;gt; error here &amp;lt;-&amp;nbsp; * This function polls the RX register, waits for the RX register to be full, and&amp;nbsp; * reads data from the TX register.&amp;nbsp; *&amp;nbsp; * @param base LPSCI peripheral base address.&amp;nbsp; * @return Data read from RX data register.&amp;nbsp; */ static inline uint8_t LPSCI_ReadByte(UART0_Type *base) { &amp;nbsp;&amp;nbsp;&amp;nbsp; return base-&amp;gt;D; }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Will be interesting to also fix this for the next update.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Voilà &lt;SPAN aria-label="Happy" class="emoticon_happy emoticon-inline" style="height:16px;width:16px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheer,&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2016 23:01:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Report-Doc-error-for-KSDKv2-LPSCI-driver/m-p/546219#M5597</guid>
      <dc:creator>mr_max</dc:creator>
      <dc:date>2016-06-17T23:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Report Doc error for KSDKv2 LPSCI driver</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Report-Doc-error-for-KSDKv2-LPSCI-driver/m-p/546220#M5598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for pointing out this !&lt;/P&gt;&lt;P&gt;We have started to fix these comments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day!&lt;/P&gt;&lt;P&gt;Iva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 08:16:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Report-Doc-error-for-KSDKv2-LPSCI-driver/m-p/546220#M5598</guid>
      <dc:creator>ivadorazinova</dc:creator>
      <dc:date>2016-06-22T08:16:39Z</dc:date>
    </item>
  </channel>
</rss>

