嵌入式Linux下CAN控制器的驱动程序设计.PDF
文本预览下载声明
第 27 卷 第 21 期 计算机工程与设计 2006 年 11 月
Vol. 27 No. 21 Computer Engineering and Design Nov. 2006
嵌入式 Linux 下 CAN 控制器的驱动程序设计
陈祖爵, 周 明
(江苏大学 计算机与通信工程学院,江苏 镇江 212013)
摘 要:嵌入式操作系统 uClinux 下扩展各类 CAN 总线设备,需设计相应的驱动程序。MCP2510 为常用的 CAN 总线控制器,
以它为例,详细研究分析了嵌入式操作系统中设备管理和驱动程序的特点,以及 uClinux 下 CAN 设备驱动程序的开发流程和
技巧,并结合 CAN 总线技术的特点,设计了相关的重要数据??构和操作代码。最后介绍了把驱动程序编译添加进 uClinux 内
核的方法,实现了 CAN 设备的驱动。
关键词:嵌入式系统; CAN 总线; uClinux; 设备驱动; MCP2510
中图法分类号:TP368.1 文献标识码:A 文章编号:1000-7024 (2006) 21-4097-04
Driver design of CAN controller in embedded Linux
CHEN Zu-jue, ZHOU Ming
(Institute of Computer and Communication Engineering, Jiangsu University, Zhenjiang 212013, China)
Abstract:To expand all kinds of CAN devices in the embedded operation system of uClinux should design the corresponding driver.
MCP2510 is commonly used CAN controller, taking it for example, the management of the device and characteristic of the driver in the
embedded operation system are researched and analyzed in detail, including the development procedure and skill of CAN device driver
in the uClinux. The relevant important data structure and operating code is written which is combined the technological characteristic of
CAN bus. Finally, the method of compiling and adding the driver into uClinux kernel is introduced, the normal work of CAN devices
is realized.
Key words:embedded system; CAN bus; uClinux; device driver; MCP2510
显示全部