Hello: I am just new in RTLINUX. I am trying to implement a system reading dato from the /dev/ttyS0, and I would like to use the IRQ facility. I am using also the rt_com module in order to set, read and write from and to the serial port. Everything seems to be OK. First I typed from the command line setserial /dev/ttyS0 uart none then insmod rt_com.o The real problems is that the the rtl_hard_enable_irq (4) it not working as I supossed. The corresponding handler only works the first time, even when the rtl_hard_enable_irq (4) is present at the end of the corresponding function.
A simplified version of the program is . . . . unsigned int intr_handler (unsigned int irq, struct pt_regs *regs) { char buffer; rt_com_read (COM1,&buffer,1); rtf_put (FIFO1,&buffer,1); rtl_hard_enable_irq (4); return 0; } int init_module (void) { rtf_create (FIFO1,FIFO1_SIZE); rt_com_setup (0,9600,RT_COM_PARITY_NONE,1,8); rtl_request_irq (4, intr_handler); rtl_hard_enable_irq (4); return 0; } void cleanup_module (void) { rtl_hard_disable_irq (4); rtl_free_irq (4); rt_com_setup (0,-1,0,0,0); rtf_destroy (FIFO1); return 0; } I would be very pleased if somebody can help me with this Thanks in advance Manuel. _______________________________________________ Rtl mailing list [EMAIL PROTECTED] http://www2.fsmlabs.com/mailman/listinfo.cgi/rtl