Hello !

I would like interrupts to be generated thanks to the serial port
(COM1). More precisely, I connected a low frequencies generator on the
serial port. The signal is a square wave one, +/- 8 V, period 1 ms,
signal on pin 6 (DSR).

I'm using the last released rt_com module and rtl 3.0.

All the mounting operations seem to work fine but I just can't see any
interrupt, that is to say my handler never wakes up.

Some points are quite unclear to me. In my init module, I  free the link
between the IRQ level irq and rt_com0_isr (defined in rt_com.c) because
I want my own handler to be woken up by the IRQ level irq. It may cause
part of my problem. Thus, I didn't make any change in the rt_com.c or
the rt_comP.h.

For sure I'm missing something but don't know what. Below is part of my
init_module code.

Thank you for your help.

Sebastien



int init_module(void)
{
 int status;
 rtl_irqstate_t irqstate;
[...]
 // interrupts are enabled
 rtl_no_interrupts(irqstate);

 // free the link between irq - rt_com0_isr
 rtl_free_irq(irq);

 // the interrupt irq will wake up the "handler" function
 if ( (status = rtl_request_irq(irq, handler)) == 0)
 {
  rtl_printf(" IRQ OK : %d \n",status);
 }
 else
 {
  rtl_printf("IRQ NOT OK : %d \n",status);
 }

 // irq enabled
 rtl_hard_enable_irq(irq);

 //all IRQ are restored
 rtl_restore_interrupts(irqstate);
[...]
 return 0;
}

NB : irq = 4

----- End of forwarded message from [EMAIL PROTECTED] -----
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to