<?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>Kinetis Software Development KitのトピックRe: fsl_gpio_driver incorrectly outputs to GPIO pin prior to setting the default output logic.</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/fsl-gpio-driver-incorrectly-outputs-to-GPIO-pin-prior-to-setting/m-p/476771#M3985</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Luciano,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes , in my personal opinion, you are right .&lt;/P&gt;&lt;P&gt;Strictly speaking, we should first configure the logic level(0 or 1) , then set the gpio to output direction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can change the two HAL function position , then build the ksdk_platform_lib again, then use the function :&lt;/P&gt;&lt;P&gt;GPIO_DRV_OutputPinInit()&amp;nbsp; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Alice&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>Fri, 11 Dec 2015 06:15:06 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2015-12-11T06:15:06Z</dc:date>
    <item>
      <title>fsl_gpio_driver incorrectly outputs to GPIO pin prior to setting the default output logic.</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/fsl-gpio-driver-incorrectly-outputs-to-GPIO-pin-prior-to-setting/m-p/476770#M3984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the GPIO_DRV_OutputPinInit() function located in fsl_gpio_driver.c, the function calls the GPIO_HAL_SetPinDir() function that enables the pin prior to setting up the GPIO output features.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If an output is set to active low, it will be active as soon as the GPIO_HAL_SetPinDir() function is called, prior to the GPIO_HAL_WritePinOutput() call with the outputPin-&amp;gt;config.outputLogic of 1.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Calling GPIO_HAL_WritePinOutput() prior to GPIO_HAL_SetPinDir() appears to correct the issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Dec 2015 21:07:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/fsl-gpio-driver-incorrectly-outputs-to-GPIO-pin-prior-to-setting/m-p/476770#M3984</guid>
      <dc:creator>lucianomoretti</dc:creator>
      <dc:date>2015-12-10T21:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: fsl_gpio_driver incorrectly outputs to GPIO pin prior to setting the default output logic.</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/fsl-gpio-driver-incorrectly-outputs-to-GPIO-pin-prior-to-setting/m-p/476771#M3985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Luciano,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes , in my personal opinion, you are right .&lt;/P&gt;&lt;P&gt;Strictly speaking, we should first configure the logic level(0 or 1) , then set the gpio to output direction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can change the two HAL function position , then build the ksdk_platform_lib again, then use the function :&lt;/P&gt;&lt;P&gt;GPIO_DRV_OutputPinInit()&amp;nbsp; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Alice&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>Fri, 11 Dec 2015 06:15:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/fsl-gpio-driver-incorrectly-outputs-to-GPIO-pin-prior-to-setting/m-p/476771#M3985</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-12-11T06:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: fsl_gpio_driver incorrectly outputs to GPIO pin prior to setting the default output logic.</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/fsl-gpio-driver-incorrectly-outputs-to-GPIO-pin-prior-to-setting/m-p/476772#M3986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've already reworked the order slightly.&amp;nbsp; This bug actually causes our board to go into a reset loop, as it turns on components that draw too much power before we can negotiate more power over the USB connection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 14:36:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/fsl-gpio-driver-incorrectly-outputs-to-GPIO-pin-prior-to-setting/m-p/476772#M3986</guid>
      <dc:creator>lucianomoretti</dc:creator>
      <dc:date>2015-12-11T14:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: fsl_gpio_driver incorrectly outputs to GPIO pin prior to setting the default output logic.</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/fsl-gpio-driver-incorrectly-outputs-to-GPIO-pin-prior-to-setting/m-p/476773#M3987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luciano,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the inconvenient to you !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Dec 2015 03:00:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/fsl-gpio-driver-incorrectly-outputs-to-GPIO-pin-prior-to-setting/m-p/476773#M3987</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-12-14T03:00:41Z</dc:date>
    </item>
  </channel>
</rss>

