<?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中的主题 CHIP_SCT_EVENT wrong definition</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/CHIP-SCT-EVENT-wrong-definition/m-p/664796#M26566</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think there is a small bug in the lpcOpen library for the LPC 43xx chips. The following definition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;typedef enum CHIP_SCT_EVENT {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SCT_EVT_0&amp;nbsp; = (1 &amp;lt;&amp;lt; 0),&amp;nbsp;&amp;nbsp; &amp;nbsp;/*!&amp;lt; Event 0 */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SCT_EVT_1&amp;nbsp; = (1 &amp;lt;&amp;lt; 1),&amp;nbsp;&amp;nbsp; &amp;nbsp;/*!&amp;lt; Event 1 */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SCT_EVT_2&amp;nbsp; = (1 &amp;lt;&amp;lt; 2),&amp;nbsp;&amp;nbsp; &amp;nbsp;/*!&amp;lt; Event 2 */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SCT_EVT_3&amp;nbsp; = (1 &amp;lt;&amp;lt; 3),&amp;nbsp;&amp;nbsp; &amp;nbsp;/*!&amp;lt; Event 3 */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SCT_EVT_4&amp;nbsp; = (1 &amp;lt;&amp;lt; 4)&amp;nbsp;&amp;nbsp; &amp;nbsp;/*!&amp;lt; Event 4 */&lt;BR /&gt;} CHIP_SCT_EVENT_T;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does not match with the specification of the models LPC 43xx, as long as these models have 16 Events (Ev0.. Ev15). &lt;/P&gt;&lt;P&gt;As consequence, if I use a method like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void Chip_SCT_DisableEventInt(LPC_SCT_T *pSCT, CHIP_SCT_EVENT_T evt)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the following warning and a not correct behavior if the event is greater than 4:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;warning: large integer implicitly truncated to unsigned type [-Woverflow]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Feb 2017 09:11:57 GMT</pubDate>
    <dc:creator>javiervallori</dc:creator>
    <dc:date>2017-02-03T09:11:57Z</dc:date>
    <item>
      <title>CHIP_SCT_EVENT wrong definition</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/CHIP-SCT-EVENT-wrong-definition/m-p/664796#M26566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think there is a small bug in the lpcOpen library for the LPC 43xx chips. The following definition:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;typedef enum CHIP_SCT_EVENT {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SCT_EVT_0&amp;nbsp; = (1 &amp;lt;&amp;lt; 0),&amp;nbsp;&amp;nbsp; &amp;nbsp;/*!&amp;lt; Event 0 */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SCT_EVT_1&amp;nbsp; = (1 &amp;lt;&amp;lt; 1),&amp;nbsp;&amp;nbsp; &amp;nbsp;/*!&amp;lt; Event 1 */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SCT_EVT_2&amp;nbsp; = (1 &amp;lt;&amp;lt; 2),&amp;nbsp;&amp;nbsp; &amp;nbsp;/*!&amp;lt; Event 2 */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SCT_EVT_3&amp;nbsp; = (1 &amp;lt;&amp;lt; 3),&amp;nbsp;&amp;nbsp; &amp;nbsp;/*!&amp;lt; Event 3 */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SCT_EVT_4&amp;nbsp; = (1 &amp;lt;&amp;lt; 4)&amp;nbsp;&amp;nbsp; &amp;nbsp;/*!&amp;lt; Event 4 */&lt;BR /&gt;} CHIP_SCT_EVENT_T;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does not match with the specification of the models LPC 43xx, as long as these models have 16 Events (Ev0.. Ev15). &lt;/P&gt;&lt;P&gt;As consequence, if I use a method like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void Chip_SCT_DisableEventInt(LPC_SCT_T *pSCT, CHIP_SCT_EVENT_T evt)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the following warning and a not correct behavior if the event is greater than 4:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;warning: large integer implicitly truncated to unsigned type [-Woverflow]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 09:11:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/CHIP-SCT-EVENT-wrong-definition/m-p/664796#M26566</guid>
      <dc:creator>javiervallori</dc:creator>
      <dc:date>2017-02-03T09:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: CHIP_SCT_EVENT wrong definition</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/CHIP-SCT-EVENT-wrong-definition/m-p/664797#M26567</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="290315" data-username="javiervallori" href="https://community.nxp.com/people/javiervallori"&gt;Javier Vallori&lt;/A&gt;，&lt;/P&gt;&lt;P&gt;Thanks for your reporting, I'll contact with AE team about the enum value.&lt;/P&gt;&lt;P&gt;Thanks again.&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&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>Sat, 04 Feb 2017 06:31:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/CHIP-SCT-EVENT-wrong-definition/m-p/664797#M26567</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2017-02-04T06:31:22Z</dc:date>
    </item>
  </channel>
</rss>

