<?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>LPC Microcontrollers中的主题 Re: LPCOpen 11Uxx V2.06 Ringbuffer bug</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCOpen-11Uxx-V2-06-Ringbuffer-bug/m-p/580063#M20172</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by DavidKiryat8 on Tue May 24 21:05:20 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I was only bitten by this "bug"!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I do call it a bug since it is an unexpected requirement that easy to not see.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If it hit more than one person then conclusions should be in order.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The main problem is that the LPC Open documentation is vastly lacking.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The help file is in old Microsoft help format instead of a standard pdf.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a lack of respect for developers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also there seems to be no system in place at NXP for timely corrections of NXP examples.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This criticism is meant to be a positive force for change.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 20:20:07 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T20:20:07Z</dc:date>
    <item>
      <title>LPCOpen 11Uxx V2.06 Ringbuffer bug</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCOpen-11Uxx-V2-06-Ringbuffer-bug/m-p/580060#M20169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by pat180269 on Tue Oct 27 03:12:31 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a bug in ring_buffer.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The macros used for adjusting the head and tail pointers are &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#define RB_INDH(rb)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ((rb)-&amp;gt;head &amp;amp; ((rb)-&amp;gt;(count-1))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define RB_INDT(rb)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ((rb)-&amp;gt;tail&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp; ((rb)-&amp;gt;(count-1))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but they should be&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#define RB_INDH(rb)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ((rb)-&amp;gt;head % ((rb)-&amp;gt;count))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define RB_INDT(rb)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ((rb)-&amp;gt;tail&amp;nbsp;&amp;nbsp;&amp;nbsp; % ((rb)-&amp;gt;count))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code is very confusing because data is inserted at the head and popped from the tail which is counter intuitive.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:20:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPCOpen-11Uxx-V2-06-Ringbuffer-bug/m-p/580060#M20169</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: LPCOpen 11Uxx V2.06 Ringbuffer bug</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCOpen-11Uxx-V2-06-Ringbuffer-bug/m-p/580061#M20170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MikeSimmonds on Tue Oct 27 10:30:31 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The 'and' calculations are correct when 'count' is a power of two.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Usually produces more compact and faster code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:20:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPCOpen-11Uxx-V2-06-Ringbuffer-bug/m-p/580061#M20170</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: LPCOpen 11Uxx V2.06 Ringbuffer bug</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCOpen-11Uxx-V2-06-Ringbuffer-bug/m-p/580062#M20171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by starblue on Wed Oct 28 01:56:54 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: pat180269&lt;/STRONG&gt;&lt;BR /&gt;There is a bug in ring_buffer.c&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No, it is not a bug.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The documentation in ring_buffer.h specifies that count must be a power of two. Then % and &amp;amp; are equivalent, but &amp;amp; is much faster.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Though it would be nice if the init routine checked that count is indeed a power of two.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:20:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPCOpen-11Uxx-V2-06-Ringbuffer-bug/m-p/580062#M20171</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: LPCOpen 11Uxx V2.06 Ringbuffer bug</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCOpen-11Uxx-V2-06-Ringbuffer-bug/m-p/580063#M20172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by DavidKiryat8 on Tue May 24 21:05:20 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I was only bitten by this "bug"!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I do call it a bug since it is an unexpected requirement that easy to not see.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If it hit more than one person then conclusions should be in order.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The main problem is that the LPC Open documentation is vastly lacking.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The help file is in old Microsoft help format instead of a standard pdf.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a lack of respect for developers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also there seems to be no system in place at NXP for timely corrections of NXP examples.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This criticism is meant to be a positive force for change.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:20:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPCOpen-11Uxx-V2-06-Ringbuffer-bug/m-p/580063#M20172</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:20:07Z</dc:date>
    </item>
  </channel>
</rss>

