Date: Wed, 24 Mar 2010 10:54:13 +0800 (CST) From: robert165 Message-ID: <2d0b8e.10245.1278e1771a8.Coremail.robert165@domain.hid> In-Reply-To: <4BA8F900.5000602@domain.hid> References: <4BA8F900.5000602@domain.hid> <4BA39C3D.1040802@domain.hid> <4BA4EF75.7010202@domain.hid> <4BA74820.2090401@domain.hid> <4BA8752E.8090407@domain.hid> <4BA8C15E.5050707@domain.hid> <4BA8F517.3060705@domain.hid> <4BA8F732.10206@domain.hid> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_171999_23513692.1269399253416" Subject: [Xenomai-help] Problem in irq_handle List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka , xenomai-help ------=_Part_171999_23513692.1269399253416 Content-Type: text/plain; charset=gbk Content-Transfer-Encoding: 7bit Hi Jan, I am new to xenomai, I am writing a gpio driver based on your "RTDM skeleton v1.1". There is a problem that when I complied and run your skeleton in a at91rm9200 broad with TIMERINT, the output is not show one line one second but very fast. The problem is still whenever I changed the following codes in demo_interrupt() #ifdef TIMERINT if (events > XXX){ rtdm_event_signal(&ctx->irq_event); event=0; } ... events++; And, it seems likely in my own irq_handle of a gpio irq. When the irq arrive, the irq_handle repeats many times. Should I mask the same irq in irq_handle? I did it by write the PIO interrupt mask register, but no effect. Best wishes. Luo ------=_Part_171999_23513692.1269399253416 Content-Type: text/html; charset=gbk Content-Transfer-Encoding: 7bit
Hi Jan,
I am new to xenomai, I am writing a gpio driver based on  your "RTDM skeleton v1.1". There is a problem that when I complied and run your skeleton in a at91rm9200 broad with TIMERINT, the output is not show one line one second but very fast. The problem is still whenever I changed the following codes in demo_interrupt()
 
#ifdef TIMERINT
        if (events > XXX){
                rtdm_event_signal(&ctx->irq_event);
                 event=0;
          }
       ...
      events++;
 
And, it seems likely in my own irq_handle of a gpio irq. When the irq arrive, the irq_handle repeats many times. Should I mask the same irq in irq_handle? I did it by write the PIO interrupt mask register, but no effect.
 
Best wishes.
 
Luo


------=_Part_171999_23513692.1269399253416--