-
-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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
ChibiOS: Decouple USB events from the USB interrupt handler #10437
Conversation
This was triggered on the Djinn prototype -- whenever backlight was enabled with the SPI EEPROM at the same time, bootup of the keyboard would lock up every single time. |
Testing requested: suspend handling. |
Added some cleanup and initialisation code as well, working fine on both sides of the split. |
f2a9692
to
c60e06c
Compare
c60e06c
to
e946d82
Compare
e946d82
to
295d2bf
Compare
295d2bf
to
de9d810
Compare
de9d810
to
2f8202b
Compare
2f8202b
to
0d16562
Compare
Description
Struck a bit of an issue when using backlight and an external EEPROM -- the backlight handler issues a read which can eventually trigger a thread suspension.... the problem is, this is done from within an interrupt handler:
Attempting a thread suspension triggers an unhandled exception and the MCU subsequently locks up.
This PR pushes the event handling to the main keyboard loop.
Types of Changes
Checklist