<?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>MQX Software Solutions中的主题 Re: How to install 2 interrupts (Falling/Rising) for 1 input GPIO (Switch) (MQX)</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-install-2-interrupts-Falling-Rising-for-1-input-GPIO/m-p/324588#M10349</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank Alejandro Lozano. Your answer is good.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Jul 2014 03:59:50 GMT</pubDate>
    <dc:creator>vinhpham</dc:creator>
    <dc:date>2014-07-07T03:59:50Z</dc:date>
    <item>
      <title>How to install 2 interrupts (Falling/Rising) for 1 input GPIO (Switch) (MQX)</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-install-2-interrupts-Falling-Rising-for-1-input-GPIO/m-p/324586#M10347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on GPIO module, Vybrid Tower Board (MQX OS). I want to install 2 interrupts (falling/rising) on GPIO input switch BSP_SW1. So how to register 2 interrupt service routine on this gpio?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 05:27:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-install-2-interrupts-Falling-Rising-for-1-input-GPIO/m-p/324586#M10347</guid>
      <dc:creator>vinhpham</dc:creator>
      <dc:date>2014-06-26T05:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to install 2 interrupts (Falling/Rising) for 1 input GPIO (Switch) (MQX)</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-install-2-interrupts-Falling-Rising-for-1-input-GPIO/m-p/324587#M10348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me see if I understand correctly. You want to install 2 different callbacks, one for rising and other for falling edge pro the BSP_SW1, right? &lt;/P&gt;&lt;P&gt;So far the the MQX API only supports one callback. I would do it in the next way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.- Install one general callback that is generated&amp;nbsp; for rising and falling edge.&lt;/P&gt;&lt;P&gt;2.- In that callback check the state of the pin and execute one routine or other depending on the state of the pin. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to keep in mind that there is one interrupt vector per PORT. Therefore you have to implement a more complex handler if you want to detect the pin that caused the interrupt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alejandro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 22:19:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-install-2-interrupts-Falling-Rising-for-1-input-GPIO/m-p/324587#M10348</guid>
      <dc:creator>alejandrolozan1</dc:creator>
      <dc:date>2014-07-01T22:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to install 2 interrupts (Falling/Rising) for 1 input GPIO (Switch) (MQX)</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-install-2-interrupts-Falling-Rising-for-1-input-GPIO/m-p/324588#M10349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank Alejandro Lozano. Your answer is good.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 03:59:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-install-2-interrupts-Falling-Rising-for-1-input-GPIO/m-p/324588#M10349</guid>
      <dc:creator>vinhpham</dc:creator>
      <dc:date>2014-07-07T03:59:50Z</dc:date>
    </item>
  </channel>
</rss>

