Is there a showroom for fusion?
pigguo at pku.edu.cn
Thu Jul 7 20:11:35 CEST 2005
Thank you very much for your valuable advices.
I'm using an AD card to acquire some data in real time.
The 8254 chip on the card sends an about 100Khz clock to interrupt to
get the data. But the ISR doesn't response. I don't know how to connect
the IRQ to the ISR. Here is my source code:
err_intr |= rt_intr_create(&AD_intr, IRQ_AD, AD_ISR);
err_intr |= rt_intr_enable(&AD_intr);
AD_intr is the intr strtuct. IRQ_AD is the irq got from the pci_dev.
AD_ISR is my ISR function.
I don't know whether the 3rd parameter of rt_intr_create is correct
since the API manul said it should be rt_isr_t type, which unfortunately
I couldn't figure out.
err = rt_intr_create(&intr_desc, PARPORTINT, I_AUTOENA);
I didn't find the declaration of I_AUTOENA.
More information about the Rtai