Skip to content

Implement CPU sleep (WFI) when idle on RP2040 #5331

@urish

Description

@urish

Looking at the rp2 port code, I can see that there's already an implementation for port_idle_until_interrupt(), but for some reason the wfi instruction is commented out.

When running CircuitPython in the simulator, this makes a huge difference, as you can see:

Is there any blocker for using wfi on the rp2 port? Is there anything I can do to help with this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions