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

Make usb_host.Port a singleton #8182

Merged
merged 2 commits into from
Jul 19, 2023
Merged

Conversation

tannewt
Copy link
Member

@tannewt tannewt commented Jul 18, 2023

This allows you to initialize usb_host.Port once successfully and then returns the same object as long as you pass the same arguments in. It does allow you to fix incorrect pins but not switching from one valid set to another. (It needs a reset for that.)

This also moves hcd cache operations to RAM so that they don't access the cache when doing maintenance.

tannewt added 2 commits July 18, 2023 10:40
This allows you to initialize usb_host.Port once successfully and
then returns the same object as long as you pass the same arguments
in. It does allow you to fix incorrect pins but not switching from
one valid set to another. (It needs a reset for that.)

This also moves hcd cache operations to RAM so that they don't
access the cache when doing maintenance.
@tannewt tannewt requested a review from jepler July 19, 2023 21:02
Copy link
Member

@jepler jepler left a comment

Choose a reason for hiding this comment

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

Motivation, shared-bindings, & rp2040 implementation made sense. Didn't test.

@tannewt tannewt merged commit 3053039 into adafruit:main Jul 19, 2023
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.

2 participants