<?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 How to run a function after power key press? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-run-a-function-after-power-key-press/m-p/920081#M138347</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using am imx6slevk with yocto bsp, on leaving the board idle for 10 minutes the console goes off(wait mode) and it turns back on when I press the power button,&lt;/P&gt;&lt;P&gt;The requirement is to run a function when the power button is pressed (the function merely turns on 2 gpios).&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure how to detect a power key press and which header file to include for the same, does anyone have any idea how to integrate this?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Sep 2019 06:53:14 GMT</pubDate>
    <dc:creator>sujay1</dc:creator>
    <dc:date>2019-09-13T06:53:14Z</dc:date>
    <item>
      <title>How to run a function after power key press?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-run-a-function-after-power-key-press/m-p/920081#M138347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using am imx6slevk with yocto bsp, on leaving the board idle for 10 minutes the console goes off(wait mode) and it turns back on when I press the power button,&lt;/P&gt;&lt;P&gt;The requirement is to run a function when the power button is pressed (the function merely turns on 2 gpios).&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure how to detect a power key press and which header file to include for the same, does anyone have any idea how to integrate this?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Sep 2019 06:53:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-run-a-function-after-power-key-press/m-p/920081#M138347</guid>
      <dc:creator>sujay1</dc:creator>
      <dc:date>2019-09-13T06:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to run a function after power key press?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-run-a-function-after-power-key-press/m-p/920082#M138348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sujay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can look at gpio interrupt examples&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/474144"&gt;https://community.nxp.com/thread/474144&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.toradex.com/community/questions/3301/how-to-enable-gpio1-on-x27-to-act-as-an-interrupt.html" title="https://www.toradex.com/community/questions/3301/how-to-enable-gpio1-on-x27-to-act-as-an-interrupt.html"&gt;How to enable GPIO1 on X27 to act as an interrupt handler for max14830? - Toradex Community&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&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, 13 Sep 2019 23:22:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-run-a-function-after-power-key-press/m-p/920082#M138348</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2019-09-13T23:22:36Z</dc:date>
    </item>
  </channel>
</rss>

