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

【USB】支持电脑休眠唤醒功能 #117

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

genokolar
Copy link
Contributor

注意:此处修改会导致电脑休眠后,USB指示灯长亮,下一步应当通过Uart发送电脑处于休眠状态的信息,以便蓝牙主控获取信息后关闭USB指示灯。

Geno [格诺] and others added 3 commits February 21, 2023 11:22
注意:此处修改会导致电脑休眠后,USB指示灯长亮,下一步应当通过Uart发送电脑处于休眠状态的信息,以便蓝牙主控获取信息后关闭USB指示灯。
1. 利用RESET_KEEP寄存器判断主机状态
USB枚举完成代表接入了正确的主机,此时将RESET_KEEP寄存器写入1,在重新断电上电RESET_KEEP清零之前,可认为CH552一直正确接入主机上
2. 未枚举完成不发送按键信息,以修正休眠唤醒过程中,卡按键的问题
3. 将休眠状态发送给主机(兼容老版本的PIN_CHARGING检测),主机可通过此信息关闭指示灯
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.

1 participant