Skip to content

Conversation

@maxgerhardt
Copy link
Contributor

For #977.

@maxgerhardt maxgerhardt marked this pull request as draft November 14, 2022 20:16
@maxgerhardt maxgerhardt changed the title Do not require USB init variable for TinyUSB Do not require USB init variable for TinyUSB + FreeRTOS Nov 16, 2022
@maxgerhardt maxgerhardt marked this pull request as ready for review November 16, 2022 13:00
@maxgerhardt
Copy link
Contributor Author

This confirmed works for me and the original poster.

The rationale is that TinyUSB init seems to be in-line and blocking in the core's main.cpp before, which is different to the USB init path taken for the other USB stack (that creates a new FreeRTOS task), so there's no need to wait for a non-existing parallel task to do USB init work and thus the variable can be ignored in the TinyUSB + FreeRTOS case (and NO_USB as before).

Open for comments.

Copy link
Owner

@earlephilhower earlephilhower left a comment

Choose a reason for hiding this comment

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

Thanks for working on this while I was away!

@earlephilhower earlephilhower merged commit f9db547 into earlephilhower:master Nov 21, 2022
schkovich pushed a commit to schkovich/arduino-pico that referenced this pull request May 24, 2025
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