Skip to content

Refactor interface availability code #9

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

Draft
wants to merge 28 commits into
base: master
Choose a base branch
from

Conversation

bugadani
Copy link
Contributor

This PR builds on top of #8 and enables bitbang-dap to set the correct capabilities based on how many pins the user provides to the constructor (in theory, unimplemented atm.).

The SWO changes allow users to:

  • Omit a bunch of boilerplate if they don't need SWO support
  • Correctly set the streaming trace capability. This is a best guess on my part of what this bit means, based on "support for streaming SWO trace is provided via an additional USB endpoint".
  • I'm trying to come up with a way to dynamically make SWO available if there are pins available (e.g. if the probe has 4 pins, allow SWD+SWO or JTAG+no-swo). I may end up not actually doing this, but this PR takes a step in that direction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant