ARM Linux下的CAN设备驱动程序设计与实现  被引量:4

Design and implementation of CAN device driver under embedded ARM Linux operating system

在线阅读下载全文

作  者:周兵[1] 韩峻峰[1] 田小刚[2] 

机构地区:[1]广西工学院电子信息与控制工程系 [2]桂林电子科技大学

出  处:《微计算机信息》2010年第14期105-107,共3页Control & Automation

基  金:基金申请人:韩峻峰;项目名称:基于CAN总线的车用智能网络传感器研究;基金颁发部门:广西科技厅(桂科自0832066)

摘  要:以嵌入式微处理器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[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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