rp2/modmachine: Fix USB sleep on RP2350 MCUs.
Signed-off-by: Peter Harper <peter.harper@raspberrypi.com>
This commit is contained in:
committed by
Damien George
parent
32b98d3e66
commit
a93762a762
@@ -228,7 +228,7 @@ static void mp_machine_lightsleep(size_t n_args, const mp_obj_t *args) {
|
||||
#if PICO_RP2040
|
||||
clocks_hw->sleep_en1 |= CLOCKS_SLEEP_EN1_CLK_USB_USBCTRL_BITS;
|
||||
#elif PICO_RP2350
|
||||
clocks_hw->sleep_en1 |= CLOCKS_SLEEP_EN1_CLK_SYS_USBCTRL_BITS;
|
||||
clocks_hw->sleep_en1 |= CLOCKS_SLEEP_EN1_CLK_USB_BITS;
|
||||
#else
|
||||
#error Unknown processor
|
||||
#endif
|
||||
|
||||
@@ -16,12 +16,6 @@ try:
|
||||
except ImportError:
|
||||
print("SKIP")
|
||||
raise SystemExit
|
||||
|
||||
# RP2350 currently fails this test, needs further investigation.
|
||||
if "RP2350" in sys.implementation._machine:
|
||||
print("SKIP")
|
||||
raise SystemExit
|
||||
|
||||
try:
|
||||
led = Pin(Pin.board.LED, Pin.OUT)
|
||||
except AttributeError:
|
||||
|
||||
Reference in New Issue
Block a user