摘要: https://blog.csdn.net/baidu_19348579/article/details/126096687 设备树 这里就不需要设备树参与了,就像IIC一样,是挂载到现有的总线上,所以这里只需要注册usb设备就可以了。 代码框架(HID) 先来看一个通用的框架 #include < 阅读全文
posted @ 2022-12-14 20:48 cnchengv 阅读(393) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/baidu_19348579/article/details/126283743 1、重要 register_netdev static struct net_device *virt_net;static const struct net_device_ 阅读全文
posted @ 2022-12-14 15:08 cnchengv 阅读(79) 评论(0) 推荐(0) 编辑