Windows CE下的串口驱动设计

您所在的位置:网站首页 串口驱动代码 Windows CE下的串口驱动设计

Windows CE下的串口驱动设计

#Windows CE下的串口驱动设计| 来源: 网络整理| 查看: 265

2008

10

October 2008

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Computer Engineering

34

 

 

20

Vol

.34    No.20

 

 

 

 

 

 

 

 

 

 

 

 

·

软件技术与数据库

·

 

文章编号:

1000

3428(2008)20

0086

02

文献标识码:

A  

 

中图分类号:

TP311.11

Windows CE

下的串口驱动设计

 

司浩乐,万

 

 

波,田玉敏

 

(

西安电子科技大学外部设备研究所,西安

 710071) 

 

 

要:

驱动程序及串口驱动的开发和设计是构建嵌入式系统的重要组成部分。该文介绍了

Windows CE

下的驱动程序的结构、开发过程

Windows CE

的中断处理过程,提出流接口和分层相结合的驱动程序设计方案,给出

Windows CE 

下串口驱动的具体开发过程及串口驱

动的中断处理过程。

 

关键词:

嵌入式系统;中断处理;串口驱动

 

Design of Serial Driver in Windows CE 

SI Hao-le, WAN Bo, TIAN Yu-min 

(Research Institute of Peripherals, Xidian University, Xi’an 710071) 

Abstract

The design of driver and the development of serial driver are important in constructing embedded system. This paper introduces the

development of driver, architecture of driver and the interrupt processing in Windows CE. It presents the project of serial driver, which combines the

layered driver with stream driver, and introduces the specific development process of serial driver and the process of interrupt processing. 

 

Key words

embedded system; interrupt

 

processing; serial driver

 

嵌入式系统在各个方面得到了广泛的应用,嵌入式操作

系统是嵌入式系统的基础,比较常用的有:

VxWorks

Palm 

OS

,嵌入式

Linux

Windows CE

等。微软推出的

Windows CE 

由于具有可靠性较高、内核体积小等特点,因此成为许多嵌

入式系统的首选

[1]

。在嵌入式系统的设计过程中,开发人员

需要根据选取的硬件设备设计相应的驱动程序。本文以串口

驱动的设计为例,介绍了驱动程序的开发过程。

 

1  

串口驱动开发的相关理论

 

驱动程序是一个抽象物理设备或虚拟设备的功能软件,

它管理设备的操作,将设备的功能导出给应用程序和操作系

统,

Windows CE

的设备驱动程序是通过动态链接库

(Dynamic 

Linkable Library, DLL)

实现的。

 

Windows CE

下的驱动程序按导出接口的不同可以分为

(Builder-in Driver)

(Installable Driver)

;按驱动程序的结构可以分为分层驱动程

(Layered Device Driver)

和单体驱动程序

(Monolithic Device 

Driver)

 

内建的驱动程序又称本地设备驱动程序

(Native Device 

Driver)

它被静态连接到图形窗口事件子系统

(GWES)

中。

软为每种类型的本地驱动提供了定制的接口,本地设备驱动

为所有特定类型的设备提供了一组标准的功能。常见的内建

驱动有键盘、触摸屏、音频设备等。

 

(Streams 

Interface Driver)

,是由设备管理器动态加载的用户模式的

DLL

。这类驱动具有一组相同的导出函数

——

流接口函数,

(Application Programming 

Interface, API)

匹配,由流接口驱动管理的设备向应用程序显

示一个文件系统,应用程序通过对文件系统的操作完成对设

备的操作,如图

1

所示。分层的驱动程序将驱动程序的代码



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3