基于嵌入式LINUX下CAN设备驱动程序设计  被引量:1

Driver Design of CAN Device Under Embedded Linux

在线阅读下载全文

作  者:田小刚[1] 蔡启仲[2] 邬军伟[1] 

机构地区:[1]桂林电子科技大学,广西桂林541004 [2]广西工学院,广西柳州545006

出  处:《微计算机信息》2009年第17期155-157,共3页Control & Automation

基  金:基金申请人:蔡启仲;项目名称:基于智能控制CAN现场总线的嵌入式微处理器控制系统的研究;基金颁发部门:广西自然科学基金资助项目(桂科基0448011)

摘  要:本文以嵌入式微处理器S3C2410为主控制器,通过SPI接口,采用MCP2510控制器扩展CAN总线接口。文章分析了Linux下设备驱动程序的结构和工作原理,详细论述了嵌入式Linux操作系统下CAN设备驱动程序的设计方法和具体实现。针对字符设备驱动程序的特点,采用中断驱动I/O口方式结合缓冲区的使用可将数据接收和read系统调用隔离开来,同时在系统调用函数中加入了休眠代码,确保设备在系统中的高效运行。Basing on s3c2410 microprocessor, through its SPI interface, the article extended CAN Bus through adopting MCP2510 CAN controller. The paper analyzes device driver of the structure and working principle under the Linux,The way of design and realization of CAN device driver under the embedded operating system LINNUX are discussed in detail. According to the characteristics of Character device driver, data receiving and system call can be seperated by the combination of interrupt-driven I/O and data buffer and the sleep code are added in the function of system call. To ensure the Equipment is operating efficiency in the system.

关 键 词:LINUX S3C2410 CAN总线 设备驱动 MCP2510 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象