-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
feature(tusb): Added tusb_teardown() #2904
Open
roma-jam
wants to merge
1
commit into
hathach:master
Choose a base branch
from
roma-jam:feature/add_tusb_teardown
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 tasks
roma-jam
force-pushed
the
feature/add_tusb_teardown
branch
from
December 11, 2024 15:00
600c379
to
d8ba6c0
Compare
roma-jam
force-pushed
the
feature/add_tusb_teardown
branch
from
December 12, 2024 09:46
d8ba6c0
to
5beffd1
Compare
Can you merge/rebase on master to fix circleci build |
roma-jam
force-pushed
the
feature/add_tusb_teardown
branch
2 times, most recently
from
December 13, 2024 12:46
07538bf
to
93a4649
Compare
roma-jam
force-pushed
the
feature/add_tusb_teardown
branch
2 times, most recently
from
December 24, 2024 20:44
952dc91
to
25a832a
Compare
roma-jam
force-pushed
the
feature/add_tusb_teardown
branch
from
January 2, 2025 10:20
25a832a
to
4db87ac
Compare
1 task
roma-jam
force-pushed
the
feature/add_tusb_teardown
branch
2 times, most recently
from
January 3, 2025 12:06
bad9f23
to
79417f2
Compare
@hathach May I ask you to check why pre-commit is failing please?
Is there anything I can/need to fix? |
issued with ceedling 1.0.0 is fixed #2949 , pleaes rebase/merge it should passed then |
roma-jam
force-pushed
the
feature/add_tusb_teardown
branch
from
January 15, 2025 08:45
79417f2
to
dee6b36
Compare
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Requirements
The USBD deinit were implemented here: #1835
To provide the possibility to re-initialize the tinyusb stack,
tusb_teardown()
call should be present intusb.h
The public API to init tinyusb stack for device role is
tusb_init(void)
for versions < v0.17, andtusb_rhport_init(rhport, *rh_init)
for verisons >= 0.17.Teardown mechanism should be implemented as a public API for Device and Host roles and provide the possibility to use the deinit call in both (legacy and new API way) for the underlying layers.
Description
The same mechanism for legacy call support is used as for
tusb_init(void)
(providing therhport
asTUD_OPT_RHPORT
orTUH_OPT_RHPORT
but not the function argument)Testing
Limitations
tinyusb/src/tusb.h
Line 140 in 7c7b30f
Related issues