if(!KernelIoControl(IOCTL_HAL_REQUEST_SYSINTR,&g_Irq,sizeof(UINT32),&g_SysIntr,sizeof(UINT32),NULL))
{
RETAILMSG(1,TEXT("ERROR:Failed to request sysintr value for Timer1 inturrupt!/r/n"));
return;
}
结果,执行时串口输出:ERROR:Failed to request sysintr value for Timer1 inturrupt!
// The "MapIrq2SysIntr()" makes the system IRQ value be mapped to the physical interrupt. This function is defined in the 'oalintr.h' in the directory 'INC'. The dwIRQ may be used a higher value than 10. The value 0 to 10 is alreay used.
dwSysIntr = SYSINTR_USB = SYSINTR_FIRMWARE + dwIRQ,dwIRQ = 11. I decided its value temporary.