阅读:1195回复:2
急,急!如何用vxd来设计数据采集卡的中断和端口读写
请问,如何用vxd来设计数据采集卡的中断和端口读写,最好用vtoolsd.谢谢了,我急着用。
|
|
沙发#
发布于:2002-04-12 15:51
说来话就长了。
1. Use VPICD_Virtualize_IRQ() to \"install\" a IRQ Handler in device init. 2. Use VPICD_Phys_Unmask() to clear mask, now interrut will be handled by your handler. In your handler, before return, you must 3. Use VPICD_Phys_EOI() to send a EOI(End Of Interrupt) to PIC, otherwise error occurred! 4. Use VPICD_Force_Default_Behavior() to \"Unistall\" a IRQ Handler in device exit, before it, must use VPICD_Phys_Mask(). |
|
板凳#
发布于:2002-04-12 18:36
vtools下面有一个hwint的例子,可以参阅着修改
|
|
|