Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
实现了CDC串口的shell并与hid复合,固件运行后可以在主机检测到名为“Sipeed Sipeed Keyboard”的输入设备及一个ACM串口,用串口助手连接该串口后可进入shell命令行,目前有hellowd和echo两个命令示范,存放在smk_command.h中;键位、RGB及OLED配置命令在对应部分的底层驱动完成后,需要在smk_command.h中添加命令即可。
为了正常运行shell将原有链接脚本修改后并放在了本工程目录下。
shell效果如图左,右图为启动过程中硬件串口打印的调试信息,貌似usb部分还有一点问题,handler error type为USB_REQUEST_CLASS,不清楚是不是在将hid和cdc复合在一起的时候出的错,这块儿不是太懂,复合的时候是通过修改usb描述符实现的,用IAD方式将cdc和hid组合在了一起,麻烦负责usb的同学看下。有问题随时滴我,q:2691435029。