Dear Johnny,
I 'm using cifxRE-pci and sercos3 protocal. I want to get the interrupt from the cifx card in the kernel space. The following code about interrupt:
//register irq
cifx_init()
{ .....................
cifx_irq=dev->irq;
int irqResult=rt_request_global_irq(cifx_irq,cifx_isr_handler);
if(irqResult){rt_printk("rt_request_global_irq[cifx_irq].....[failed]\n");return irqResult;}
rt_enable_irq(cifx_irq);
..............................
}
module_init(cifx_init);
void cifx_isr_handler(void){
rt_printk("..........This is a interrupt of cifx card...................\n");
rt_ack_irq(cifx_irq);
}
How can I get the interrupt without sercos3 slaves? And is the above code right?
Thanks very much!!
Andreas Jacob
Hilscher Gesellschaft fuer Systemautomation mbH
Hi sunfangyi,
could you solve your issue and do further steps or are you still at the same point?
Regards
AJ
sunfangyi