Skip to content
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

cmsisdap: don't do i/o for the iface string when listing devices. #2065

Merged
merged 1 commit into from
Jan 17, 2024

Conversation

Dirbaio
Copy link
Member

@Dirbaio Dirbaio commented Jan 17, 2024

nusb added an API to list basic interface info from DeviceInfo which does no
actual USB I/O to the device (info is cached by the OS when plugging in the device).
This includes the interface string, which we use to detect CMSIS-DAP interfaces.

This takes probe-rs list in the Embassy CI machine (52 USB devices, 32 probes) from 900ms to 60ms.

see kevinmehall/nusb#28

@Dirbaio Dirbaio added the changelog:skip This PR does not require a changelog entry on release label Jan 17, 2024
nusb added an API to list basic interface info from DeviceInfo which does no
actual USB I/O to the device (info is cached by the OS when plugging in the device).
This includes the interface string, which we use to detect CMSIS-DAP interfaces.
Copy link
Contributor

@bugadani bugadani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@bugadani bugadani added this pull request to the merge queue Jan 17, 2024
Merged via the queue into probe-rs:master with commit bf90901 Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:skip This PR does not require a changelog entry on release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants