-
Notifications
You must be signed in to change notification settings - Fork 3
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
Fix USB Interrupt Wiring #8
Conversation
USBFS/OTG_FS actually fire the "GLOBAL" interrupt for WAKEUP. the USB_WAKEUP is for USBD.
@@ -15,8 +15,10 @@ | |||
register: AHBRSTR | |||
field: USBHSRST | |||
interrupts: | |||
- { "signal": "GLOBAL", "interrupt": "USBHS" } | |||
- { "signal": "WAKEUP", "interrupt": "USBHS_WKUP" } | |||
- signal: GLOBAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pure style change while we are here.
This should be ready to review / merged. Mostly added some enum so things are a bit easier to use / no magic constants. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
Have verified the global interrupt is the one that actually fires.
The LP/HP interrupt is for USBD, which does not exist on V30x chips.
I am pretty sure the USB_WAKEUP one is for USBD not FS/OTG. Have verified on wakeup / suspend, the main
OTG_FS
interrupt is fired.