<?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: Description	Resource	Path	Location	Type 'LPC_GPIO0' was not declared in this scope	LPC11x_Base.cpp	/LPC11x_Base/src	line 11	C/C++ Problem in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Description-Resource-Path-Location-Type-LPC-GPIO0-was-not/m-p/912598#M36501</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="345421" data-username="srnfrn@gmail.com" href="https://community.nxp.com/people/srnfrn@gmail.com"&gt;Sarin cr&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Thank you for your interest in NXP Semiconductor products and &lt;BR /&gt;for the opportunity to serve you.&lt;BR /&gt;To provide the fastest possible support, I'd hihgly recommend you to refer to the LPCOpen library of LPC11xx series.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/support/developer-resources/microcontrollers-developer-resources/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc11xx:LPCOPEN-SOFTWARE-FOR-LPC11XX"&gt;https://www.nxp.com/support/developer-resources/microcontrollers-developer-resources/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc11xx:LPCOPEN-SOFTWARE-FOR-LPC11XX&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&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, 29 Jul 2019 01:44:57 GMT</pubDate>
    <dc:creator>jeremyzhou</dc:creator>
    <dc:date>2019-07-29T01:44:57Z</dc:date>
    <item>
      <title>Description	Resource	Path	Location	Type 'LPC_GPIO0' was not declared in this scope	LPC11x_Base.cpp	/LPC11x_Base/src	line 11	C/C++ Problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Description-Resource-Path-Location-Type-LPC-GPIO0-was-not/m-p/912597#M36500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was trying to execute but getting error as Description&amp;nbsp;&amp;nbsp; &amp;nbsp;Resource&amp;nbsp;&amp;nbsp; &amp;nbsp;Path&amp;nbsp;&amp;nbsp; &amp;nbsp;Location&amp;nbsp;&amp;nbsp; &amp;nbsp;Type&lt;BR /&gt;'LPC_GPIO0' was not declared in this scope&amp;nbsp;&amp;nbsp; &amp;nbsp;LPC11x_Base.cpp&amp;nbsp;&amp;nbsp; &amp;nbsp;/LPC11x_Base/src&amp;nbsp;&amp;nbsp; &amp;nbsp;line 14&amp;nbsp;&amp;nbsp; &amp;nbsp;C/C++ Problem&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#ifdef __USE_CMSIS&lt;BR /&gt;#include "LPC11xx.h"&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#include &amp;lt;cr_section_macros.h&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int main(void) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;//Toggle PIO0_7 in response to the state of PIO3_5&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;LPC_SYSCON-&amp;gt;SYSAHBCLKCTRL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |= (1&amp;lt;&amp;lt;6);&amp;nbsp;&amp;nbsp;&amp;nbsp; //enable clock GPIO (sec 3.5.14)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;LPC_IOCON-&amp;gt;PIO0_7&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;amp;= ~(0x10);&amp;nbsp;&amp;nbsp; //NOT NECESSARY, turn off pull up (sec 7.4.19)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;LPC_GPIO0-&amp;gt;DIR&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; |= (1&amp;lt;&amp;lt;7);&amp;nbsp;&amp;nbsp;&amp;nbsp; //set pin direction to output (sec 12.3.2)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;LPC_GPIO3-&amp;gt;DIR&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;= ~(1&amp;lt;&amp;lt;5);&amp;nbsp;&amp;nbsp; //set pin 3_5 (pin 21 of QFP) to input&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;//unsigned int i = 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;while(1){&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;//infinite loop&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if(LPC_GPIO3-&amp;gt;DATA &amp;amp; (1&amp;lt;&amp;lt;5))&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;&amp;nbsp;&amp;nbsp; //check state of PIO3_5 (sec 12.3.1)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;LPC_GPIO0-&amp;gt;DATA&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |= (1&amp;lt;&amp;lt;7);&amp;nbsp; //set pin high (sec 12.3.1)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;else&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;LPC_GPIO0-&amp;gt;DATA&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;= ~(1&amp;lt;&amp;lt;7); //set pin low (sec 12.3.1)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;return 0 ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2019 19:05:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Description-Resource-Path-Location-Type-LPC-GPIO0-was-not/m-p/912597#M36500</guid>
      <dc:creator>srnfrn</dc:creator>
      <dc:date>2019-07-26T19:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: Description	Resource	Path	Location	Type 'LPC_GPIO0' was not declared in this scope	LPC11x_Base.cpp	/LPC11x_Base/src	line 11	C/C++ Problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Description-Resource-Path-Location-Type-LPC-GPIO0-was-not/m-p/912598#M36501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="345421" data-username="srnfrn@gmail.com" href="https://community.nxp.com/people/srnfrn@gmail.com"&gt;Sarin cr&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Thank you for your interest in NXP Semiconductor products and &lt;BR /&gt;for the opportunity to serve you.&lt;BR /&gt;To provide the fastest possible support, I'd hihgly recommend you to refer to the LPCOpen library of LPC11xx series.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/support/developer-resources/microcontrollers-developer-resources/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc11xx:LPCOPEN-SOFTWARE-FOR-LPC11XX"&gt;https://www.nxp.com/support/developer-resources/microcontrollers-developer-resources/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc11xx:LPCOPEN-SOFTWARE-FOR-LPC11XX&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&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, 29 Jul 2019 01:44:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Description-Resource-Path-Location-Type-LPC-GPIO0-was-not/m-p/912598#M36501</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-07-29T01:44:57Z</dc:date>
    </item>
  </channel>
</rss>

