|
在5.0中,我使用的是4.2的BSP包,
注册表
[HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\KEYBD]
"DriverName"="kbdmouse.dll"
"SysIntr"=dword:10 ; SYSINTR_FIRMWARE + 0
"IOBase"=dword:B1600000
; "SSPBase"=dword:B1900000
"IICBase"=dword:B1400000
keyBD的中断是0X10,也就是16,这是对的吗?
可是USB的注册表为
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\USB]
"Dll"="sc2440_usb_ser.Dll"
"IoBase"=dword:B1200000
"Irq"=dword:B
"IoLen"=dword:130
"Tsp"="Unimodem.dll"
"DeviceArrayIndex"=dword:0
"Prefix"="COM"
"Order"=dword:2
"DeviceType"=dword:0
"FriendlyName"="SC2440 USB Cable:"
; Eliminate flow control bit
"DevConfig"=hex: 10,00,00,00,05,00,00,00,00,01,00,00,00,4B,00,00,00,00,08,00,00,00,00,00,00
中断为0X0B,为十进制11。
可是oalintr.h定义为
#define SYSINTR_USB (SYSINTR_FIRMWARE+11) //16+11 = 27
#define SYSINTR_USBD (SYSINTR_FIRMWARE+12)
USB使用完全没有问题。
这又是为何? |
|