wince 启动停止了。
我在编写流驱动的时候,系统启动突然停止了。
串口输出信息:
[dm9: Tries to map io space with 18000000
[dm9: The mapped address is D0B80000
[dm9: Chip signature is 90000A46
[dm9: Chip signature is 90000A46
<DM9:--MiniportInitialize>
STRINGS:***@@****DLL_PROCESS_ATTACH******
MYSTRINGGS:**@@*******InitKey_Init***********
*@@**********KeyInt_Setting***********
流驱动部分代码。
DWORD KEY_Init(DWORD dwContext)
{ // if you drive a idiographic device,add oter code ep: int,hardwareinit and so on
DWORD IDINTThread;
RETAILMSG(1,(TEXT("MYSTRINGGS:**@@*******InitKey_Init***********\n")));
//clear the ram which is used for this dll
InitializeAddresses();
INTInit();
RETAILMSG(1,(TEXT("@before CreateThread \r\n")));
Key_Key_Thread = CreateThread(0,0,(LPTHREAD_START_ROUTINE)Key_KeyThread_Fun,0,0,&IDINTThread);
if(!Key_Key_Thread)
{
RETAILMSG(1,(TEXT("@CreateThread faile \r\n")));
return FALSE;
}
else
{
RETAILMSG(1,(TEXT("@CreateThread OK \r\n")));
}
Key_KeyIntr_Event = CreateEvent(NULL,false,false,NULL);
if(!Key_KeyIntr_Event)
{
RETAILMSG(1,(TEXT("@CreateEvent faile \r\n")));
return FALSE;
}
else
{
RETAILMSG(1,(TEXT("@CreateEvent OK \r\n")));
}
。。。。。。。。
。。。。。。。
}
BOOL INTInit()
{
RETAILMSG(1,(TEXT("*@@**********KeyInt_Setting***********\r\n")));
v_pIOPregs->GPFCON &= ~(0x3 << 2); /* Set EINT1(GPF1) as EINT1 */
v_pIOPregs->GPFCON |= (0x2 << 2);
v_pIOPregs->EXTINT1 &= ~(0x7 << 3);
v_pIOPregs->EXTINT1 |= (0x2 << 3); /* Configure EINT1 as Falling Edge Mode */
return TRUE;
}
初学,不知道哪里出问题了。帮忙分析下。