|
ucb.istHandle = RtAttachInterruptVector (
NULL, // security attributes (default)
0, // stack size (default)
DeviceISR, // pointer to Interrupt Service Routine (ISR).
(void *) &pContext, // context argument
IST_PRIORITY, // thread priority for the handler routine
Isa, // interface type
0, // bus number
ucb.irq, // interrupt level
ucb.intVector // interrupt vector );
其中的DeviceISR定义如下
INTERRUPT_DISPOSITION RTFCNDCL DeviceISR (PVOID pContext);
ucb.irq 为0x4,也就是COM1的irq
ucb.intVector为0x0c,
执行完以后ucb.istHandle总是NULL,有没有大侠指点一下为什么会这样子
|
|