STM32 usb-hid 鼠标+键盘 双接口 复合设备

2019-07-20 23:14发布

网上相关资料较少,我发一份我的 STM32 usb-hid 鼠标+键盘 双接口 复合设备

我调试鼠标 和 键盘后,应该都没问题

先上图



鼠标移动数据








直接使用Mini板的STM32就可以了





友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
该问题目前已经被作者或者管理员关闭, 无法添加新回复
50条回答
bluesky_kun
1楼-- · 2019-07-24 13:55
再发一遍

Build target 'Target 1'
compiling test.c...
test.c(1): error:  #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
compiling delay.c...
..SYSTEMdelaydelay.c(1): error:  #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
compiling sys.c...
..SYSTEMsyssys.c(1): error:  #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
compiling usart.c...
..SYSTEMsyssys.h(3): error:  #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
compiling hw_config.c...
..SYSTEMsyssys.h(3): error:  #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
compiling stm32f10x_it.c...
..USBCONFIGstm32f10x_it.c(19): error:  #5: cannot open source input file "stm32f10x_it.h": No such file or directory
compiling usb_prop.c...
compiling usb_pwr.c...
..USBCONFIGusb_pwr.c(17): error:  #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
Target not created
lsj9383
2楼-- · 2019-07-24 16:27
 精彩回答 2  元偷偷看……
bluesky_kun
3楼-- · 2019-07-24 21:14
 精彩回答 2  元偷偷看……
bluesky_kun
4楼-- · 2019-07-24 23:51

这是工程里的文件,没找到和固件库相关的,你是直接操作的寄存器吧?
lsj9383
5楼-- · 2019-07-25 05:38
回复【34楼】bluesky_kun:
---------------------------------
嗯,我是直接寄存器的
qq942266575
6楼-- · 2019-07-25 06:00
LZ,测试了下,鼠标没效果,求解。

一周热门 更多>