guqs77
驱动小牛
驱动小牛
  • 注册日期2003-05-22
  • 最后登录2007-07-30
  • 粉丝0
  • 关注0
  • 积分20分
  • 威望2点
  • 贡献值0点
  • 好评度2点
  • 原创分0分
  • 专家分0分
阅读:1276回复:2

怎样让WINCE不去执行程序内的调试信息

楼主#
更多 发布于:2003-10-17 18:10
我想最大程度的增加WINCE的执行速度,
而程序中有很多调试信息如通过串口的一些调试函数
不想它执行了,
该如果操作比较快的让它们不执行呢??
总不能一条一条的删除吧
angeon
禁止发言
禁止发言
  • 注册日期2003-01-09
  • 最后登录2016-04-11
  • 粉丝0
  • 关注0
  • 积分1416分
  • 威望7080点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2003-10-20 09:06
用户被禁言,该主题自动屏蔽!
wengjie
驱动牛犊
驱动牛犊
  • 注册日期2003-07-29
  • 最后登录2004-05-12
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2003-11-04 18:54
有两种方法:
1.将这些函数的第一个参数设为0
2.将调试串口占用。


第一种方法:和一条一条的删除没什么两样
第2种方法:你怎么占用,人家在系统优先级上运行。
其实应该这样做
By default, Windows CE .NET uses COM1 for its own debugging purposes. If you have other COM ports on your device, Windows CE .NET will map those for application use (physical COM2 becomes logical COM1, etc.). However, certain projects may want to use all of the COM ports for application use.

Follow these steps:



Tell the OS not to use a debug COM port by changing OEMInitDebugSerial() (found in your OAL\'s debug.c)
if ( ! pBootArgs->ucBaudDivisor ) {
   pBootArgs->ucBaudDevisor = 6; // Default to 19.2 if nothing specified.
}

pBootArgs->ucComPort = 0;         // ADD THIS LINE

switch ( pBootArgs->ucComPort ) {



Change the mapping of COM ports by changing platform.reg.
For example, change the existing registry keys from:


[HKEY_LOCAL_MACHINE\\Drivers\\BuiltIn\\Serial]
   \"SysIntr\"=dword:13 ; NOTE:  This is physical COM2 (subtract 10 for IRQ)
   \"IoBase\"=dword:02F8 ; NOTE:  This is physical COM2
   ...
[HKEY_LOCAL_MACHINE\\Drivers\\BuiltIn\\Serial2]
   \"SysIntr\"=dword:14 ; NOTE:  This is physical COM3 (subtract 10 for IRQ)
   \"IoBase\"=dword:03E8 ; NOTE:  This is physical COM3
   ...

to:

[HKEY_LOCAL_MACHINE\\Drivers\\BuiltIn\\Serial]
   \"SysIntr\"=dword:14 ; NOTE:  This is physical COM1 (subtract 10 for IRQ)
   \"IoBase\"=dword:03F8 ; NOTE:  This is physical COM1
   ...
[HKEY_LOCAL_MACHINE\\Drivers\\BuiltIn\\Serial2]
   \"SysIntr\"=dword:13 ; NOTE:  This is physical COM2 (subtract 10 for IRQ)
   \"IoBase\"=dword:02F8 ; NOTE:  This is physical COM2
   ...

Note: Your results may vary. If your system has different IoBase/IRQ settings for its COM ports, configure your platform.reg appropriately.

Another alternative is to change the IoBase/IRQ settings for your COM ports in your BIOS. Windows CE .NET hard codes (for CEPC) using 3F8/4 (typical com1) for its use. If you assign those settings to COM4, for example, the Windows CE .NET debug messages will route to that physical port.

These tips are for informational purposes and are provided only as a convenience. The entire risk of use or results in connection with the use of these tips remains with the user.




[编辑 -  11/4/03 by  wengjie]
游客

返回顶部