Share via


Migrating a Serial Port Driver (Windows CE 5.0)

Send Feedback

With Windows CE 5.0, serial port driver development under the COM_MDD2 model simplifies the serial port PDD and enables support for multiple serial port driver objects within a single DLL. You can still use the COM_MDD model, but the COM_MDD model does have the simplified PDD, and it does not enable support for multiple serial port driver objects.

To migrate a serial port driver

  1. For backward compatibility, in the PDD, ensure that the HWTxIntrHandler function maps to the SL_TxIntrEx function instead of to the SL_TxIntr function. For more information, see the Com16650 sample driver in %_WINCEROOT%\Public\Common\Oak\Drivers\Serial\COM16550.

  2. Change the TARGETLIBS variable from Com_mdd.lib to Com_mdd2.lib.

  3. Add the string "-DUSE_NEW_SERIAL_MODEL" to the CDEFINES variable.

  4. Give your serial driver a name that does not conflict with serial driver names in Common.bib. If the name of your serial driver conflicts with a serial driver name in Common.bib, and you set BSP_NOPCMCIA, you should also set BSP_NOPCCARD to prevent your serial driver name from getting overwritten.

    With proper precautions, you can also handle this issue by editing the BSP_NO* flags in the Platform.bib and Winceos.bat files.

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.