Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement shell and command demo #17

Merged
merged 1 commit into from
Aug 15, 2021
Merged

implement shell and command demo #17

merged 1 commit into from
Aug 15, 2021

Conversation

HuakeZhBo
Copy link
Contributor

实现了CDC串口的shell并与hid复合,固件运行后可以在主机检测到名为“Sipeed Sipeed Keyboard”的输入设备及一个ACM串口,用串口助手连接该串口后可进入shell命令行,目前有hellowd和echo两个命令示范,存放在smk_command.h中;键位、RGB及OLED配置命令在对应部分的底层驱动完成后,需要在smk_command.h中添加命令即可。
为了正常运行shell将原有链接脚本修改后并放在了本工程目录下。
截图_20210813201736
shell效果如图左,右图为启动过程中硬件串口打印的调试信息,貌似usb部分还有一点问题,handler error type为USB_REQUEST_CLASS,不清楚是不是在将hid和cdc复合在一起的时候出的错,这块儿不是太懂,复合的时候是通过修改usb描述符实现的,用IAD方式将cdc和hid组合在了一起,麻烦负责usb的同学看下。有问题随时滴我,q:2691435029。

@bitsk bitsk merged commit 8814f2a into sipeed:main Aug 15, 2021
@HuakeZhBo HuakeZhBo deleted the smk_shell branch August 17, 2021 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants