Skip to content

usb-device: Allow signaling capability of remote_wakeup. #894

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion micropython/usb/usb-device/manifest.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
metadata(version="0.1.1")
metadata(version="0.2.0")
package("usb")
3 changes: 2 additions & 1 deletion micropython/usb/usb-device/usb/device/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ def config( # noqa: PLR0913
device_protocol=0,
config_str=None,
max_power_ma=None,
remote_wakeup=False,
):
# Configure the USB device with a set of interfaces, and optionally reconfiguring the
# device and configuration descriptor fields
Expand Down Expand Up @@ -199,7 +200,7 @@ def maybe_set(value, idx):
bmAttributes = (
(1 << 7) # Reserved
| (0 if max_power_ma else (1 << 6)) # Self-Powered
# Remote Wakeup not currently supported
| ((1 << 5) if remote_wakeup else 0)
)

# Configuration string is optional but supported
Expand Down
Loading