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
Add FreeRTOS support thanks to @hfellner #533
Merged
Merged
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
Using all the work from @hfellner and others. Things work but are not stable (i.e. flash operations will make things go badly, fast; delay() does not actually release the core for other work, etc.).
Making delay() release the core for other work would be simple by making the default implementation a weak symbol and providing an override in the RP2040_FreeRTOS library that calls vTaskDelay(delay / portTICK_PERIOD_MS). However, this cannot be done for delayMicroseconds(), because the minimum yield period for FreeRTOS on the RP2040 is 1ms. |
Use a PIO machine to record cycles instead of systick
earlephilhower
changed the title
WIP - Add FreeRTOS support thanks to @hfellner
Add FreeRTOS support thanks to @hfellner
Apr 20, 2022
Use a task-based approach for handling the USB periodic work instead of the IRQ-based one in the main core. Fix a hang under -Os (but not under any other conditions?!) caused by the (unused) FIFO IRQ handler. Set 8 prio levels so it fits in 3 bits nicely (0..7)
earlephilhower
force-pushed
the
freertos
branch
from
April 25, 2022 03:24
bcc4a7a
to
e6afc15
Compare
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.
Using all the work from @hfellner and others. Things work but are not
stable (i.e. flash operations will make things go badly, fast; delay()
does not actually release the core for other work, etc.).