2013年10月25日 星期五

WinCE增加x86 COM Port

增加並修改registry設定。

EX:
增加第四個COM port,
  1. 於"[BSP name].bat"增加"set BSP_SERIAL4=1"。
  2. 於"platform.reg"增加,
    IF BSP_SERIAL4
    [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Serial4]
    "SysIntr"=dword:1B ; 同BIOS interrupt加0x10,為16位元
    "IoBase"=dword:02E8 ; 同BIOS
    "IoLen"=dword:8
    "DeviceArrayIndex"=dword:3
    "Prefix"="COM"
    "Dll"="Com16550.Dll"
    "Order"=dword:0

    [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Serial4\Unimodem]
    "Tsp"="Unimodem.dll"
    "DeviceType"=dword:0
    "FriendlyName"=LOC_FRIENDLYNAME_SERIAL4
    "DevConfig"=hex: 10,00, 00,00, 05,00,00,00, 10,01,00,00, 00,4B,00,00, 00,00, 08, 00, 00, 00,00,00,00
    ENDIF BSP_SERIAL4

沒有留言:

張貼留言