|
InterruptInitialize返回不了,怎么回事?
[复制链接]
g_hInterrupt = CreateEvent(NULL, FALSE, FALSE, NULL);
g_hRxEvent = CreateEvent(NULL, FALSE, FALSE, NULL);
g_hTxEvent = CreateEvent(NULL, FALSE, FALSE, NULL);
bool ret;
ret = InterruptInitialize(g_nCanIrq, g_hInterrupt, NULL, 0);
#ifdef DEBUG
RETAILMSG(1, (TEXT(" InterruptInitialize success.\r")));
#endif
if(ret){
g_htCanIST = CreateThread(NULL,
0,
(LPTHREAD_START_ROUTINE) CAN_IntrThread,
NULL,
0,
&dwThreadID);
if (g_htCanIST == 0)
{
DEB_0(ZONE_INIT, _T(" create thread failed\r"));
#ifdef DEBUG
RETAILMSG(1, (TEXT(" InterruptInitialize failed\r")));
#endif
goto exit;
}
}
InterruptInitialize 返回不了,InterruptInitialize 在调用OEMInterruptEnabe成功后才会成功,可是,我跟进OEMInterruptEnabe里面,OEMInterruptEnabe是执行成功的。大侠们指点下
|
|