<?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>MCUXpresso SDK中的主题 Re: Adding GPIO to the LPC55S69 EVK i2s Example</title>
    <link>https://community.nxp.com/t5/MCUXpresso-SDK/Adding-GPIO-to-the-LPC55S69-EVK-i2s-Example/m-p/1070617#M2481</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It turns out the solution is easy when you find it ;-)&lt;/P&gt;&lt;P&gt;The GPIO issue was the port mapping.&lt;BR /&gt; Once I mapped PIO_5 to GPIO, in the pin config tool (In MCUXpresso), then USER (GPIO3) worked fine.&lt;BR /&gt; There's clearly a lot I need to learn :-)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Aug 2020 21:02:58 GMT</pubDate>
    <dc:creator>jedwards1</dc:creator>
    <dc:date>2020-08-07T21:02:58Z</dc:date>
    <item>
      <title>Adding GPIO to the LPC55S69 EVK i2s Example</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Adding-GPIO-to-the-LPC55S69-EVK-i2s-Example/m-p/1070616#M2480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've added some code to the i2s_interrupt_record_playback example, to read from the USER GPIO pin.&lt;/P&gt;&lt;P&gt;Unfortunately, it always reads 0.&lt;/P&gt;&lt;P&gt;The gpio_led_output example works fine, after modifying the code to use the USER GPIO pin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code attached, here are the modifications to the end of main() :&lt;/P&gt;&lt;P&gt;gpio_pin_config_t usr_gpio_config = {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;kGPIO_DigitalInput,&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;0,&lt;BR /&gt; };&lt;BR /&gt; GPIO_PinInit(GPIO, BOARD_SW3_GPIO_PORT, BOARD_SW3_GPIO_PIN, &amp;amp;usr_gpio_config);&lt;BR /&gt; PRINTF("Press USER button to print message\r\n");&lt;BR /&gt; int pinState = GPIO_PinRead(GPIO, BOARD_SW3_GPIO_PORT, BOARD_SW3_GPIO_PIN);&lt;BR /&gt; PRINTF("pinState: %x\r\n",pinState);&lt;/P&gt;&lt;P&gt;while (1)&lt;BR /&gt; {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;pinState = GPIO_PinRead(GPIO, BOARD_SW3_GPIO_PORT, BOARD_SW3_GPIO_PIN);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;if (pinState) {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;pinState = GPIO_PinRead(GPIO, BOARD_SW3_GPIO_PORT, BOARD_SW3_GPIO_PIN);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PRINTF("pinState: %x\r\n",pinState);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm guessing that I need to add some additional initialization code but I'm running out of things to try.&lt;/P&gt;&lt;P&gt;If anyone knows how to get the GPIO working then I'd appreciate the suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much and best regards,&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2020 07:46:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Adding-GPIO-to-the-LPC55S69-EVK-i2s-Example/m-p/1070616#M2480</guid>
      <dc:creator>jedwards1</dc:creator>
      <dc:date>2020-08-07T07:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Adding GPIO to the LPC55S69 EVK i2s Example</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/Adding-GPIO-to-the-LPC55S69-EVK-i2s-Example/m-p/1070617#M2481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It turns out the solution is easy when you find it ;-)&lt;/P&gt;&lt;P&gt;The GPIO issue was the port mapping.&lt;BR /&gt; Once I mapped PIO_5 to GPIO, in the pin config tool (In MCUXpresso), then USER (GPIO3) worked fine.&lt;BR /&gt; There's clearly a lot I need to learn :-)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2020 21:02:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/Adding-GPIO-to-the-LPC55S69-EVK-i2s-Example/m-p/1070617#M2481</guid>
      <dc:creator>jedwards1</dc:creator>
      <dc:date>2020-08-07T21:02:58Z</dc:date>
    </item>
  </channel>
</rss>

