摘要: 一:Platform总线1.1概述 一个现实的linux设备驱动通常需要挂接在一种总线上,对于本身依附于PCI,USB,IIC,SPI等的设备而言,这自然不是问题,但是在嵌入式系统里面,SOC系统中集成的独立的外设控制器,挂接在SOC内存空间的外设等确不依附于此类总线。基于这一背景,linux发明了... 阅读全文
posted @ 2015-07-25 18:58 瘋耔 阅读(373) 评论(0) 推荐(0) 编辑
摘要: 参考: http://longer.spaces.eepw.com.cn/articles/article/item/60415 http://imganquan.org/blog/?p=350 网上找的,归纳一下: 杂项设备(misc device)杂项设备也是在嵌入式系统中用得比较多的一种设备驱 阅读全文
posted @ 2015-07-25 16:15 瘋耔 阅读(528) 评论(0) 推荐(0) 编辑
摘要: 下面是两个LED灯的驱动程序 一个用platform_driver 另一个用file_operations#include #include #include #include #include #include #include /* our context *... 阅读全文
posted @ 2015-07-25 15:35 瘋耔 阅读(528) 评论(0) 推荐(0) 编辑
跳至侧栏