13.11.2001
i use rtlinux-2.2. i connected the 2 serial ports with
a null modem cable. i have written a program to
install irq3 handler(for /dev/ttyS1). the handler is
as follows.
unsigned int irq_3_handler(unsigned int irq, struct
pt_regs *regs)
{
rtl_printf("\n<IRQ3 handler> IIR = %x\n",
inb(COM2BASE+2));
rtl_hard_enable_irq(3);
return 0;
}
ive compiled this into a module and inserted it.
when i do "echo hello> /dev/ttyS0", i thought the data
will b transmitted to /dev/ttyS1 (due to the nul modem
cable) and ill recv an interrupt. but it does not
happen.
however when i do "echo hello > /dev/ttyS1" i get 2
interrupts with the IIR as follows.
<IRQ3 handler> IIR = c2
(afer some time)
<IRQ3 handler> IIR = 1
the 1st one i saw was Tx buffer empty, and the 2nd one
was no interrupts pending. why dont i get interrupts
in the recving side?
__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com
-- [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/