阅读:1285回复:2
怎样让WINCE不去执行程序内的调试信息
我想最大程度的增加WINCE的执行速度,
而程序中有很多调试信息如通过串口的一些调试函数 不想它执行了, 该如果操作比较快的让它们不执行呢?? 总不能一条一条的删除吧 |
|
沙发#
发布于:2003-11-04 18:54
有两种方法: 第一种方法:和一条一条的删除没什么两样 第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] |
|
板凳#
发布于:2003-10-20 09:06
用户被禁言,该主题自动屏蔽! |
|