›› 2014, Vol. 27 ›› Issue (5): 116-.

• 论文 • 上一篇    下一篇

嵌入式Linux下Z85C30芯片设备驱动程序设计

胥霜霞,周永刚   

  1. (中国电子科技集团 第38研究所 数字技术部,安徽 合肥 230088)
  • 出版日期:2014-05-15 发布日期:2014-05-14
  • 作者简介:胥霜霞(1981—),女,硕士,工程师。研究方向:雷达数据处理及嵌入式程序开发。E-mail:xshx_2013gen@163.com。周永刚(1968—),男,本科。研究方向:雷达数据处理

Design of Z85C30 Device Driver in Embedded Linux

XU Shuangxia,ZHOU Yonggang   

  1. (Department of Digital Technology,No.38 Research Institute of CETC,Hefei 230088,China)
  • Online:2014-05-15 Published:2014-05-14

摘要:

介绍了嵌入式Linux下支持多种传输协议、多片Z85C30芯片的设备驱动程序设计方法。文中介绍了Z85C30芯片的基本情况以及与驱动相关的寄存器,然后按照字符设备驱动程序设计框架阐述了驱动程序各部分的实现方法,重点描述了采用中断核心处理函数指针与不同协议的实际中断核心处理函数挂接方法,实现了对不同通道不同协议的个性化处理,以及设计sccs_ioctl函数为用户层提供在线设置传输协议及相关参数的系统调用函数。最后通过交叉编译形成设备驱动模块,并成功应用于航管雷达通信服务器。

关键词: Linux, Z85C30, 设备驱动, 多协议

Abstract:

This paper introduces the development of Z85C30 Device Driver which supports multi-protocol and multi-chip.First,a brief introduction to Z85C30 chip and registers is given.Then,according to the design frame of driver of character device,the implementation of this driver is expatiated.The pointer of core interrupt process function is used to connect with the fact core interrupt process function of each protocol,which individualizes the process of each protocol.For on-line configuration of parameters of each channel in user space,the sccs_ioctl function is designed as API.Finally,a module of Z85C30 device driver is obtained via cross-compiling.

Key words: Linux;Z85C30;device driver;multi protocol

中图分类号: 

  • TP316.85