Skip to content

Force inline critical_section_{enter,exit} from SDK #10219

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

Merged
merged 1 commit into from
Apr 2, 2025

Conversation

tannewt
Copy link
Member

@tannewt tannewt commented Apr 2, 2025

These are used by USB host on core 1 and must be in RAM to work. The softer inline keyword allows the compiler to ignore it and put the function in flash instead. Core 1 will crash then.

Upstream PR is here: raspberrypi/pico-sdk#2393

These are used by USB host on core 1 and must be in RAM to work.
The softer `inline` keyword allows the compiler to ignore it and
put the function in flash instead. Core 1 will crash then.
Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

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

👍

Note that upstream PR is revised from the commit here a bit, and adds an #include which isn't needed in our particular case. We'll want to update to pico-sdk 2.1.2 when that PR is accepted.

@dhalbert dhalbert merged commit 380b8bd into adafruit:main Apr 2, 2025
613 checks passed
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