摘要: 编写Led灯驱动的步骤如下: 1、 创建LED驱动设备文件: (1)使用cdev-init函数初始化cdev; (2)指定设备号; (3)使用cdev_add函数将字符设备添加到内核中的字符设备数组中; (4)使用class_creat宏创建struct class; (5)使用device_cre 阅读全文
posted @ 2016-06-05 19:51 PureLair 阅读(147) 评论(0) 推荐(0) 编辑