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
|
#if PICO_RP2040
|
||||||
clocks_hw->sleep_en1 |= CLOCKS_SLEEP_EN1_CLK_USB_USBCTRL_BITS;
|
clocks_hw->sleep_en1 |= CLOCKS_SLEEP_EN1_CLK_USB_USBCTRL_BITS;
|
||||||
#elif PICO_RP2350
|
#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
|
#else
|
||||||
#error Unknown processor
|
#error Unknown processor
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -16,12 +16,6 @@ try:
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
print("SKIP")
|
print("SKIP")
|
||||||
raise SystemExit
|
raise SystemExit
|
||||||
|
|
||||||
# RP2350 currently fails this test, needs further investigation.
|
|
||||||
if "RP2350" in sys.implementation._machine:
|
|
||||||
print("SKIP")
|
|
||||||
raise SystemExit
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
led = Pin(Pin.board.LED, Pin.OUT)
|
led = Pin(Pin.board.LED, Pin.OUT)
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
|
|||||||
Reference in New Issue
Block a user