作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2006, Vol. 32 ›› Issue (14): 271-273. doi: 10.3969/j.issn.1000-3428.2006.14.099

• 开发研究与设计技术 • 上一篇    下一篇

高度可移植嵌入式系统设备驱动体系结构

杨永志;唐玉华

  

  1. 国防科学技术大学计算机学院,长沙410073
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2006-07-20 发布日期:2006-07-20

Architecture of Embedded Device Driver for High Portability

YANG Yongzhi;TANG Yuhua   

  1. School of Computer, National University of Defense Technology, Changsha 410073
  • Received:1900-01-01 Revised:1900-01-01 Online:2006-07-20 Published:2006-07-20

摘要: 设备驱动的编写是嵌入式系统软件设计的重要部分。当前的驱动开发通常是根据硬件设备,寻找其驱动然后进行移植工作。如果没有可用的驱动程序,将被迫重新编写设备驱动。这种模式不利于软件的重用,往往造成重复劳动。该文在现有驱动开发模型的基础上,提出了一个高度可移植的设备驱动编写模型,并定义出相应的驱动程序开发接口。这样,驱动程序的移植就被集中在这些接口的实现和适配上,从而大大提高了驱动程序的可移植性。

关键词: 嵌入式系统, 驱动程序, 可移植性, 接口

Abstract: Implementation of device driver is an important part of embedded system development. Current way is to find some existing code according to the specified device, and analyze it thoroughly before porting. If no code is found, it has to write the code. It is time consuming and some kind of wasting. This article suggests a model of designing highly portable device driver and defines its interfaces, based on current models. So the porting of device driver is limited to implementation and adapting of those interfaces. The portability is built.

Key words: Embedded system, Device driver, Portability, Interface