Migrating a Serial Port Driver (Windows Embedded CE 6.0)
1/6/2010
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
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.
Change the TARGETLIBS variable from Com_mdd.lib to Com_mdd2.lib.
Add the string "-DUSE_NEW_SERIAL_MODEL" to the CDEFINES variable.
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.