里面包含usb.c文件,编译linux内核时,自动生成g_hid.ko,加载驱动,在主机可识别到自定义USB-hid设备。
详见我的博客:https://blog.csdn.net/fanxinliuchen/article/details/127570618?csdn_share_tail=%7B%22type%22%3A%22blog%22%2C%22rType%22%3A%22article%22%2C%22rId%22%3A%22127570618%22%2C%22source%22%3A%22fanxinliuchen%22%7D
1