积极答复者
WinCE5.0的目录问题

问题
-
小弟想做一个WinCE5.0的usb串口驱动,在msdn上查到这么一段话
Porting the PXA27X USB Function Controller Driver PDD
The PXA27X USB function controller driver is in %_WINCEROOT%\Public\Common\OAK\CSP\ARM\Intel\PXA27X\USBFN. The driver is implemented as a base class. To port this driver to a specific hardware platform, inherit data and functions from the base class and use the inherited data and functions to implement functionality that is specific to your hardware platform. The Intel Mainstone II development platform inherits from the PXA27X USB function controller driver and then implements any hardware platform specific functionality. The Intel Mainstone II USB function controller driver is in %_WINCEROOT%\Platform\Mainstoneii\Src\Drivers\USBFN. Any hardware platform can inherit from the PXA27X USB function controller driver base class.
This driver uses the bus agnostic driver framework to retrieve information from the registry. For an example of hardware platform specific registry keys, see %_WINCEROOT%\Platform\Mainstoneii\Files\Platform.reg. For more information, see Bus Agnostic Drivers.
现在的问题是WINCEROOT%\Public\Common\OAK\CSP\ARM\Intel\PXA27X\USBFN和%_WINCEROOT%\Platform\Mainstoneii\Src\Drivers\USBFN下的代码实现的似乎是usb massstorage的功能,而我要实现的是将usb虚拟为串口和activesync链接的功能,大侠们能给指个路框架代码去哪里找吗?
还有就是WINCEROOT\PUBLIC\COMMON\OAK\DRIVERS\USBFN\CLASS\SERIAL下的代码是干什么用的?mainstoneii下的usbfn的代码可以用吗?
答案
全部回复
-
我觉得你只需要开发USB Slave驱动,至于Massstorage,Serial和RNDIS都是上层应用,WinCE已经提供了这些功能了。你只需要在PB里面的Catalog选上这些功能就可以了。所以,我觉得你不需要关心"WINCEROOT\PUBLIC\COMMON\OAK\DRIVERS\USBFN\CLASS"下面的代码。你只需要开发USB Slave驱动,关于USB Slave驱动,我建议你看看NET2280的参考代码:
"\WINCE500\PUBLIC\COMMON\OAK\DRIVERS\USBFN\CONTROLLER\NET2280“
个人建议,仅供参考。