8000 rp2/modmachine: Fix USB sleep on RP2350 MCUs. · 32bitmicro/micropython@a93762a · GitHub
[go: up one dir, main page]

Skip to content

Commit a93762a

Browse files
peterharperukdpgeorge
authored andcommitted
rp2/modmachine: Fix USB sleep on RP2350 MCUs.
Signed-off-by: Peter Harper <peter.harper@raspberrypi.com>
1 parent 32b98d3 commit a93762a

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

ports/rp2/modmachine.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ static void mp_machine_lightsleep(size_t n_args, const mp_obj_t *args) {
228228
#if PICO_RP2040
229229
clocks_hw->sleep_en1 |= CLOCKS_SLEEP_EN1_CLK_USB_USBCTRL_BITS;
230230
#elif PICO_RP2350
231-
clocks_hw->sleep_en1 |= CLOCKS_SLEEP_EN1_CLK_SYS_USBCTRL_BITS;
231+
clocks_hw->sleep_en1 |= CLOCKS_SLEEP_EN1_CLK_USB_BITS;
232232
#else
233233
#error Unknown processor
234234
#endif

tests/ports/rp2/rp2_lightsleep.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@
1616
except ImportError:
1717
print("SKIP")
1818
raise SystemExit
19-
20-
# RP2350 currently fails this test, needs further investigation.
21-
if "RP2350" in sys.implementation._machine:
22-
print("SKIP")
23-
raise SystemExit
24-
2519
try:
2620
led = Pin(Pin.board.LED, Pin.OUT)
2721
except AttributeError:

0 commit comments

Comments
 (0)
0