Skip to content

Commit 8c8ec45

Browse files
committed
Force inline critical_section_{enter,exit} from SDK
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.
1 parent f885cac commit 8c8ec45

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.gitmodules

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@
172172
url = https://github.com/adafruit/Adafruit_CircuitPython_SimpleMath
173173
[submodule "ports/raspberrypi/sdk"]
174174
path = ports/raspberrypi/sdk
175-
url = https://github.com/raspberrypi/pico-sdk.git
175+
url = https://github.com/adafruit/pico-sdk.git
176+
branch = force_inline_critical_section
176177
[submodule "data/nvm.toml"]
177178
path = data/nvm.toml
178179
url = https://github.com/adafruit/nvm.toml.git

0 commit comments

Comments
 (0)