这些重要信息放在注册表文件中提供给操作系统 以便操作系统对驱动程序进行管理。
plarform.reg 中LCD驱动相关部分: http://www.paper.edu.cn -4- 中国科技论文在线 HKEY_LOCAL_MACHINEDriversDisplays3c6410Config DisplayDlls3c6410_disp.dll驱动程序名 字 要与source文件中一致 HKEY_LOCAL_MACHINESystemGDIDrivers Displays3c6410_disp.dll HKEY_LOCAL_MACHINESystemGDIRotation Angledword:0 HKEY_LOCAL_MACHINESystemGDIDisplayCandidates Candidate10DriversDisplays3c6410Config Platform.bib文件中相关部分: s3c6410_disp.dll _FLATRELEASEDIRs3c6410_disp.dll NK SHK Source 文件中的一部分: TARGETNAME s3c6410_disp 要生成的驱动程序名字 RELEASETYPE PLATFORM TARGETTYPE DYNLINK 要生成的驱动程序类型 DEFFILEs3c6410_disp.def 修改完成后 在Platform Builder 6.0中重新编译驱动程序 然后将新生成的内核镜像下载到开发设备中Windows CE 6.0的桌面及LOGO 图标 正常显示 说明LCD 驱动运行正常。
3.2 Windows CE 5.0 与6.0 下LCD 驱动程序的区别 Windows CE 5.0升级到6.0后 LCD 驱动程序在结构上做了一些调整。
在Windows CE 5.0中 源码位于PUBULIC目录: _WINCEROOTPUBLICCOMMONOAKCSPARMSAMSUNGS3C6410XDISPLAY 而在Windows CE 6.0中 源码位于PLATFORM目录与Windows CE 4.2的结构类似: _WINCEROOTPLATFORMSMDK6410 SRCDRIVERSDISPLAY 另外 Windows CE 5.0下LCD 驱动的寄存器设置部分在_WINCEROOTPUBLICCOMMONOAKCSPARMSAM-SUNGS3C6410XDISPLAYS3C6410x_lcd.cpp 文件的InitializeLCDRegisters函数中实现 而在Windows CE 6.0中它在 _WINCEROOTPLATFORMSMDK6410 SRCDRIVERSDISPLAY s3c6410_disp_lib的s3c6410_display_con.c文件中实现类似于WCE4.2中cfw.c文件中的InitDisplay函数。
在Windows CE 6.0下移植LCD驱动程序时 其目录结构可以参照Windows CE 4.2的结构来分析和操作。
4 结束语 笔者采用深圳友坚公司基于S3C6410的开发板 在Windows CE 6.0下均实现了LCD驱动程序的成功移植。
本文详细介绍了Windows CE 6.0下的LCD 驱动程序的实现机制 并对比了Windows CE 5.0与6.0下驱动程序的差异 进而分析了LCD 驱动移植的方法及要点。
希望能为读者进行Windows CE 下LCD 驱动程序的移植提供一定的参考。
http://www.paper.edu.cn -5- 中国科技论文在线 参考文献 1 华清远见嵌入式培训中心编.Windows CE嵌入式开发标准教程M.北京人民邮电出版社2009. 2 方安平丁智勇库少平.Windows CE 5.0下LCD驱动程序移植J微计算机信息2008第24卷第9-2 期:19-21. 3 姚盛兴.基于嵌入式系统的彩色液晶显示驱动控制J.微计算机信息20071-2:57-59 Migration of LCD Driver In The Windows CE 6.0 DENG Zhongliang1 XIAO Guanlan2 1 Department of Micro Electron and School of Electronic Engineering Beijing University of Posts and Telecommunications Beijing PRC 100876 2 Department of Computer Science and Application and School of Electronic Engineering Beijing University of Posts and Telecommunications Beijing PRC 100876 Abstract This paper introduces the model of LCD driver and the loading process of driver in Windows CE 6.0as well as the basic functions of S3C6410’s LCD controller. In the platform of the UT-Idea6410 this paper analyzes the main points detaily in migrating the LCD driver of Windows CE 6.0in the the Samsung S3C6410 and the role of the relevant documents in the process of migrating and makes a brief comparison between Windows CE 6.0 and Windows CE 5 .0 on migrating the LCD driver. Keywords: Windows CE 6.0 device driver LCD controller S3C6410
上一篇:
Java贪吃蛇游戏毕业论文完整(介绍里附带源码地址)
下一篇:
"夜"