<?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 imx53  gpio interrupt in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx53-gpio-interrupt/m-p/259423#M25583</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now,I use kernal-2.6.35 with xenomai Patch and register a gpio(gpio2-14) interrupt,but when running the kernal&amp;nbsp; i find it always lose some response.&lt;/P&gt;&lt;P&gt;The time is interrupted every 500us ,some times it will lose three consecutive.&amp;nbsp; I don"t know why .The code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define MY_GPIO2_14&amp;nbsp;&amp;nbsp; (1*32+14)&lt;/P&gt;&lt;P&gt;int irq = gpio_to_irq( MY_GPIO2_14);&lt;/P&gt;&lt;P&gt;.....................&lt;/P&gt;&lt;P&gt;.............................&lt;/P&gt;&lt;P&gt;int irq_handle_function(int irq, void *device_id)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt; disable_irq(irq);&lt;/P&gt;&lt;P&gt; if(phase==PH_RUNNING)&lt;/P&gt;&lt;P&gt; ctrl_mnm1221_m();&lt;/P&gt;&lt;P&gt; enable_irq(irq);&lt;/P&gt;&lt;P&gt; return IRQ_HANDLED;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;......................................&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.........................................&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&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;&lt;/P&gt;&lt;P&gt;mxc_iomux_v3_setup_pad( MX53_PAD_PATA_DATA14__GPIO2_14 ); &lt;BR /&gt; ret = gpio_request(MY_GPIO2_14, "RTEX" );&lt;BR /&gt; if( ret &amp;lt; 0 )&lt;BR /&gt; {&lt;BR /&gt; printk( KERN_ALERT"can not get irq,error!\n" );&lt;BR /&gt; }&lt;BR /&gt; gpio_direction_input( MY_GPIO2_14);&lt;/P&gt;&lt;P&gt; printk( KERN_ALERT"imxint_irq = %d\n", irq );&lt;BR /&gt; ret = request_irq( irq, irq_handle_function, IRQF_TRIGGER_LOW , "imx-int", NULL );&lt;BR /&gt; if( ret )&lt;BR /&gt; {&lt;BR /&gt; printk( KERN_ALERT"IRQ request failed!\n" );&lt;BR /&gt; gpio_free( MY_GPIO2_14 );&lt;BR /&gt; return ret;&lt;BR /&gt; }&lt;BR /&gt; gpio_free( MY_GPIO2_14 );&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;Is somewhere wrong ? Should&amp;nbsp; I&amp;nbsp; set the priorities of interruption? It need strong real-time requirements.&amp;nbsp; Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 May 2013 01:35:20 GMT</pubDate>
    <dc:creator>海罗</dc:creator>
    <dc:date>2013-05-28T01:35:20Z</dc:date>
    <item>
      <title>imx53  gpio interrupt</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx53-gpio-interrupt/m-p/259423#M25583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now,I use kernal-2.6.35 with xenomai Patch and register a gpio(gpio2-14) interrupt,but when running the kernal&amp;nbsp; i find it always lose some response.&lt;/P&gt;&lt;P&gt;The time is interrupted every 500us ,some times it will lose three consecutive.&amp;nbsp; I don"t know why .The code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define MY_GPIO2_14&amp;nbsp;&amp;nbsp; (1*32+14)&lt;/P&gt;&lt;P&gt;int irq = gpio_to_irq( MY_GPIO2_14);&lt;/P&gt;&lt;P&gt;.....................&lt;/P&gt;&lt;P&gt;.............................&lt;/P&gt;&lt;P&gt;int irq_handle_function(int irq, void *device_id)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt; disable_irq(irq);&lt;/P&gt;&lt;P&gt; if(phase==PH_RUNNING)&lt;/P&gt;&lt;P&gt; ctrl_mnm1221_m();&lt;/P&gt;&lt;P&gt; enable_irq(irq);&lt;/P&gt;&lt;P&gt; return IRQ_HANDLED;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;......................................&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.........................................&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&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;&lt;/P&gt;&lt;P&gt;mxc_iomux_v3_setup_pad( MX53_PAD_PATA_DATA14__GPIO2_14 ); &lt;BR /&gt; ret = gpio_request(MY_GPIO2_14, "RTEX" );&lt;BR /&gt; if( ret &amp;lt; 0 )&lt;BR /&gt; {&lt;BR /&gt; printk( KERN_ALERT"can not get irq,error!\n" );&lt;BR /&gt; }&lt;BR /&gt; gpio_direction_input( MY_GPIO2_14);&lt;/P&gt;&lt;P&gt; printk( KERN_ALERT"imxint_irq = %d\n", irq );&lt;BR /&gt; ret = request_irq( irq, irq_handle_function, IRQF_TRIGGER_LOW , "imx-int", NULL );&lt;BR /&gt; if( ret )&lt;BR /&gt; {&lt;BR /&gt; printk( KERN_ALERT"IRQ request failed!\n" );&lt;BR /&gt; gpio_free( MY_GPIO2_14 );&lt;BR /&gt; return ret;&lt;BR /&gt; }&lt;BR /&gt; gpio_free( MY_GPIO2_14 );&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;Is somewhere wrong ? Should&amp;nbsp; I&amp;nbsp; set the priorities of interruption? It need strong real-time requirements.&amp;nbsp; Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2013 01:35:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx53-gpio-interrupt/m-p/259423#M25583</guid>
      <dc:creator>海罗</dc:creator>
      <dc:date>2013-05-28T01:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: imx53  gpio interrupt</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx53-gpio-interrupt/m-p/259424#M25584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;did your ever set the irq type? falling edge or rising edge?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 01:02:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx53-gpio-interrupt/m-p/259424#M25584</guid>
      <dc:creator>9crkzhou</dc:creator>
      <dc:date>2013-08-28T01:02:34Z</dc:date>
    </item>
  </channel>
</rss>

