On 2013-02-26 19:39, Gilles Chanteperdrix wrote: > On 02/26/2013 01:18 PM, Jan Kiszka wrote: > >> On 2013-02-26 13:12, Gilles Chanteperdrix wrote: >>> On 02/26/2013 11:01 AM, [email protected] wrote: >>> >>>> On 02/19/2013 6:56 PM, Gilles Chanteperdrix wrote: >>>>> On 02/19/2013 01:52 PM, Christopher Hahn wrote: >>>>> >>>>>> Do you have any idea how to solve the problem? >>>>>> Even if the system receives interrupts at IRQ 4, the program doesn't >>>>>> receive any message from the serial port with this kernel configuration. >>>>> >>>>> >>>>> Trying to register the irq handler as level instead of edge? >>>>> >>>>> -- >>>>> Gilles. >>>>> >>>> >>>> I removed the 'RTDM_IRQTYPE_EDGE' from ksrc/drivers/serial/16550A.c at >>>> line 123. >>>> >>>> Now I get 'Xenomai: xnintr_shirq_handler: IRQ4 not handled. Disabling IRQ >>>> line.' >>> >>> >>> Jan, any idea? >> >> Not really. If there is an IRQ and the UART says "not for me", either >> the UART is buggy or someone else injects on that line. > > > Or we are handling the irq as edge triggered whereas it is level > triggered. Is not there an RTDM_IRQTYPE_LEVEL instead of RTDM_IRQTYPE_EDGE?
Level is default, ie. the absence of EDGE will choose it. I noticed that the kernel considers this line level triggered. It's unusual. Still, the change above should have solved it then if that was the problem. I-pipe picks up the type from Linux, thus should mask&ack the line properly. RTDM_IRQTYPE_EDGE just avoids loosing edge events by selecting the shirq_handler. Jan -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20130226/0c6c29fe/attachment.pgp> _______________________________________________ Xenomai mailing list [email protected] http://www.xenomai.org/mailman/listinfo/xenomai
