You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rp2: Selectively leave the USB clocks enabled in light sleep.
Without this change going to lightsleep stops the USB peripheral clock, and
can lead to either the device going into a weird state or the host deciding
to issue a bus reset.
This change only keeps the USB peripheral clocks enabled if the USB device
is currently active and a host has configured the device. Otherwise USB
clocks are disabled same as before.
Increases power consumption in light sleep (measured at the USB port for a
PICO board as 12-13mA without this change, and 34-35mA with this change). I
think can argue that if you have a working active USB host connection, an
extra 20mA is unlikely to be significant.
As discussed at https://github.com/orgs/micropython/discussions/14401
This work was funded through GitHub Sponsors.
Signed-off-by: Angus Gratton <angus@redyak.com.au>
0 commit comments