阅读:1305回复:5
救命:同享中断的问题
BT878芯片上有两个功能设备共享一个中断,我写了两个SYS,当两个同时加载时,只能视频的SYS能收到中断,而音频的SYS没有收到中断。当把视频的SYS卸载,音频的SYS就能收到中断。为什么呀!????
我在调用IoConnectInterrupt已经把中断向量已经设置为共享了啊! |
|
|
沙发#
发布于:2002-11-12 10:32
是否在NT或W2K下?
|
|
|
板凳#
发布于:2002-11-12 10:33
关注BT878
|
|
|
地板#
发布于:2002-11-12 14:14
我认为写了一个驱动来操作这两个设备比较好一点!
|
|
地下室#
发布于:2002-11-13 03:03
1. Does have the status register in BT878? Then in the ISR, you firstly have to check the status register to comfirm if the inteterrupt has been triggered. If no(for example, bit0 of status register is 0), the ISR have to return FALSE immediately. Then the OS will check the next ISR which connect to this interrupt.
2. check the parameters of IoConnectInterrupt, note the Latch(something like this, I don\'t make sure) :cool: |
|
5楼#
发布于:2002-11-13 08:55
不好意思,我犯了一个低级错误,修改前几个月代码时不小心将中断处理例程返回值修改错了。不是自己的中断要把返回FALSE,是自己产生的中断发生返回TRUE。谢谢大家的关注。
|
|
|