-
-
Notifications
You must be signed in to change notification settings - Fork 40.5k
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
V-USB suspend refactor #11891
V-USB suspend refactor #11891
Conversation
Hmm... To my mind, Perhaps rather than checking for the existence of |
You can add |
I don't see it in the file list... |
Correction: #11553 |
Okay, not too bad. |
Just checked this PR with a neopixel stick on a pro micro, doesn't seem to have broken anything. |
I tested the latest update on atmega32u4 and it doesn't seem to have broken anything. |
Description
V-USB boards currently do not switch off RGB and backlight on suspend. Fixing this was complicated by the fact that the ATmega32A does not have a watchdog timeout interrupt, which is defined in suspend.c to nudge the global timer while the chip is in sleep mode. Instead we just ignore that whole part of the process while still turning off RGB and backlight by pulling them up into
suspend_power_down()
, leaving only the watchdog and sleep code inpower_down()
.Since this touches the general AVR suspend code it would be good to check it still works on USB AVRs (eg. 32U4). The change in mcu_selection.mk can also probably apply to the 328P, but I only have a Plaid-Pad which has neither RGB nor backlight.
Types of Changes
Issues Fixed or Closed by This PR
Checklist