<?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: Bug in swm_8xx.h for LPC82x chips</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Bug-in-swm-8xx-h-for-LPC82x-chips/m-p/568459#M17729</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by larryvc on Sat Jan 03 18:10:55 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;Yes, already reported.&amp;nbsp; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fforum%2Flpc82xbuf-lpcopen-swm-driver" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/forum/lpc82xbuf-lpcopen-swm-driver&lt;/A&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 20:08:48 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T20:08:48Z</dc:date>
    <item>
      <title>Bug in swm_8xx.h for LPC82x chips</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Bug-in-swm-8xx-h-for-LPC82x-chips/m-p/568458#M17728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by john78727 on Fri Jan 02 10:43:47 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;void Chip_SWM_FixedPinEnable(CHIP_SWM_PIN_FIXED_T pin, bool enable);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/**&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; * @briefEnables a Fixed Function Pin in the Switch Matrix&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; * @parampin: Pin to be enabled&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; * @returnNothing&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;STATIC INLINE void Chip_SWM_EnableFixedPin(CHIP_SWM_PIN_FIXED_T pin)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SWM-&amp;gt;PINENABLE0 &amp;amp;= ~((1 &amp;lt;&amp;lt; (uint32_t) pin) | SWM_PINENABLE0_RESERVED);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was enabling I2C0 in the fixed pin register using this call. When I did so it also enabled all the ADC pins because the SWM_PINENABLE0_RESERVED definition was not correct for the LPC824 chip. I hope someone will fix it here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/**&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; * @brief LPC8XX Switch Matrix register block structure&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;typedef struct {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#if defined(CHIP_LPC82X)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;__IO uint32_t PINASSIGN[12];/*!&amp;lt; Pin Assign register array */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;__I&amp;nbsp; uint32_t RESERVED0[100];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#else&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;__IO uint32_t PINASSIGN[9];/*!&amp;lt; Pin Assign register array */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;__I&amp;nbsp; uint32_t RESERVED0[103];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#endif&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;__IO uint32_t PINENABLE0;/*!&amp;lt; Pin Enable register */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;} LPC_SWM_T;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#define SWM_PINENABLE0_RESERVED&amp;nbsp; (~0x1ff)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/**&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The define should be (~0x1ffffff) for the LPC82x chip :-)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have A Nice Day,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;John&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:08:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Bug-in-swm-8xx-h-for-LPC82x-chips/m-p/568458#M17728</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in swm_8xx.h for LPC82x chips</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Bug-in-swm-8xx-h-for-LPC82x-chips/m-p/568459#M17729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by larryvc on Sat Jan 03 18:10:55 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;Yes, already reported.&amp;nbsp; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fforum%2Flpc82xbuf-lpcopen-swm-driver" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/forum/lpc82xbuf-lpcopen-swm-driver&lt;/A&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:08:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Bug-in-swm-8xx-h-for-LPC82x-chips/m-p/568459#M17729</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:08:48Z</dc:date>
    </item>
  </channel>
</rss>

