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

feature: enable USB_RESET hook, and reset usb when hosts resets #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DacoTaco
Copy link

@DacoTaco DacoTaco commented Oct 1, 2022

I don't know if you still accept PR's for this ancient version, but ive been using this project for years, and (very crappy) personal fork of this + the nes/snes code.
However, i hated the fact that after every windows reboot, i had to unplug and plug it back in, because the mcu kept getting power over usb, meaning the usb was never reset.
Today i found that v-usb has a hook on the reset request from host, in which we deal with it with the usbReset function.
I don't know if this is correct, but it does seem to work, as the device enumerated correctly after a reboot.

this fix could also be applied to your generic usb controller project

this enables the device to keep working if the OS resets while usb stays powered on
@DacoTaco
Copy link
Author

DacoTaco commented Oct 2, 2022

hm. it only seemed to work when i restart windows. a shutdown didn't work yet :/

@raphnet
Copy link
Owner

raphnet commented Oct 7, 2022

But it still definitely fixes reboots?

@DacoTaco
Copy link
Author

DacoTaco commented Oct 7, 2022

yes, but im still testing and improving it a bit.
i got shutdown to work as well, but when booting from a cold boot when the power was off doesn't work still

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.

None yet

2 participants