Skip to content

Commit 779fa91

Browse files
committed
Use rp2040-hal critical section
Almost the same as from cortex-m, but it's safe for possible multi-core usage. Also recommended by: rp-rs/rp2040-project-template#50 Signed-off-by: Daniel Schaefer <[email protected]>
1 parent dbf4780 commit 779fa91

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name = "lotus_inputmodules"
44
version = "0.1.2-pre"
55

66
[dependencies]
7-
cortex-m = { version = "0.7", features = ["critical-section-single-core"]}
7+
cortex-m = "0.7"
88
cortex-m-rt = "0.7.3"
99
embedded-hal = { version = "0.2.7", features = ["unproven"] }
1010

@@ -14,8 +14,8 @@ defmt-rtt = "0.4"
1414
#panic-probe = { version = "0.3", features = ["print-defmt"] }
1515
rp2040-panic-usb-boot = { git = "https://github.com/rwalkr/rp2040-panic-usb-boot" }
1616

17-
# Not using a BSP, we've got a LED Matrix BSP locally in this crate
18-
rp2040-hal = { version="0.7", features=["rt"] }
17+
# Not using a BSP, we've got a Lotus BSP's locally in this crate
18+
rp2040-hal = { version="0.7", features=["rt", "critical-section-impl"] }
1919
rp2040-boot2 = "0.2"
2020

2121
# USB Serial

0 commit comments

Comments
 (0)