Skip to content

Commit 1ff83dc

Browse files
committed
Update to critical-section 1.0, atomic-polyfill 1.0
1 parent 6ffca81 commit 1ff83dc

File tree

13 files changed

+24
-20
lines changed

13 files changed

+24
-20
lines changed

embassy-cortex-m/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ embassy-util = { version = "0.1.0", path = "../embassy-util" }
3939
embassy-executor = { version = "0.1.0", path = "../embassy-executor"}
4040
embassy-macros = { version = "0.1.0", path = "../embassy-macros"}
4141
embassy-hal-common = { version = "0.1.0", path = "../embassy-hal-common"}
42-
atomic-polyfill = "0.1.5"
43-
critical-section = "0.2.5"
42+
atomic-polyfill = "1.0.1"
43+
critical-section = "1.0"
4444
cfg-if = "1.0.0"
4545
cortex-m = "0.7.3"
4646

embassy-executor/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ embedded-hal-async = { version = "0.1.0-alpha.1", optional = true}
6060

6161
futures-util = { version = "0.3.17", default-features = false }
6262
embassy-macros = { version = "0.1.0", path = "../embassy-macros"}
63-
atomic-polyfill = "0.1.5"
64-
critical-section = "0.2.5"
63+
atomic-polyfill = "1.0.1"
64+
critical-section = "1.0"
6565
cfg-if = "1.0.0"
6666

6767
# WASM dependencies

embassy-nrf/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ log = { version = "0.4.14", optional = true }
8282
cortex-m-rt = ">=0.6.15,<0.8"
8383
cortex-m = "0.7.3"
8484
futures = { version = "0.3.17", default-features = false }
85-
critical-section = "0.2.5"
85+
critical-section = "1.0"
8686
rand_core = "0.6.3"
8787
fixed = "1.10.0"
8888
embedded-storage = "0.3.0"

embassy-rp/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ embassy-cortex-m = { version = "0.1.0", path = "../embassy-cortex-m", features =
3333
embassy-hal-common = {version = "0.1.0", path = "../embassy-hal-common" }
3434
embassy-embedded-hal = {version = "0.1.0", path = "../embassy-embedded-hal" }
3535
embassy-macros = { version = "0.1.0", path = "../embassy-macros", features = ["rp"]}
36-
atomic-polyfill = "0.1.5"
36+
atomic-polyfill = "1.0.1"
3737
defmt = { version = "0.3", optional = true }
3838
log = { version = "0.4.14", optional = true }
3939
cortex-m-rt = ">=0.6.15,<0.8"
4040
cortex-m = "0.7.3"
41-
critical-section = "0.2.5"
41+
critical-section = "1.0"
4242
futures = { version = "0.3.17", default-features = false, features = ["async-await"] }
4343

4444
rp2040-pac2 = { git = "https://github.com/embassy-rs/rp2040-pac2", rev="9ad7223a48a065e612bc7dc7be5bf5bd0b41cfc4", features = ["rt"] }

embassy-stm32/Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,8 @@ futures = { version = "0.3.17", default-features = false, features = ["async-awa
5555
rand_core = "0.6.3"
5656
sdio-host = "0.5.0"
5757
embedded-sdmmc = { git = "https://github.com/thalesfragoso/embedded-sdmmc-rs", branch = "async", optional = true }
58-
critical-section = "0.2.5"
59-
bare-metal = "1.0.0"
60-
atomic-polyfill = "0.1.5"
58+
critical-section = "1.0"
59+
atomic-polyfill = "1.0.1"
6160
stm32-metapac = { version = "0.1.0", path = "../stm32-metapac", features = ["rt"] }
6261
vcell = "0.1.3"
6362
bxcan = "0.7.0"

embassy-stm32/src/interrupt.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
pub use bare_metal::Mutex;
2-
pub use critical_section::CriticalSection;
1+
pub use critical_section::{CriticalSection, Mutex};
32
pub use embassy_cortex_m::interrupt::*;
43

54
pub use crate::_generated::interrupt::*;

embassy-usb-hid/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ edition = "2021"
66
[package.metadata.embassy_docs]
77
src_base = "https://github.com/embassy-rs/embassy/blob/embassy-usb-hid-v$VERSION/embassy-usb-hid/src/"
88
src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-usb-hid/src/"
9-
features = ["defmt", "embassy-executor/time-tick-1mhz"]
9+
features = ["defmt"]
1010
flavors = [
1111
{ name = "default", target = "thumbv7em-none-eabihf" },
1212
]

embassy-util/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ defmt = { version = "0.3", optional = true }
1919
log = { version = "0.4.14", optional = true }
2020

2121
futures-util = { version = "0.3.17", default-features = false }
22-
atomic-polyfill = "0.1.5"
23-
critical-section = "0.2.5"
22+
atomic-polyfill = "1.0.1"
23+
critical-section = "1.0"
2424
heapless = "0.7.5"
2525
cfg-if = "1.0.0"
2626
embedded-io = "0.3.0"

examples/nrf/Cargo.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,17 @@ embedded-io = "0.3.0"
2121
defmt = "0.3"
2222
defmt-rtt = "0.3"
2323

24-
cortex-m = "0.7.3"
24+
cortex-m = { version = "0.7.6", features = ["critical-section-single-core"] }
2525
cortex-m-rt = "0.7.0"
2626
panic-probe = { version = "0.3", features = ["print-defmt"] }
2727
futures = { version = "0.3.17", default-features = false, features = ["async-await"] }
2828
rand = { version = "0.8.4", default-features = false }
2929
embedded-storage = "0.3.0"
3030
usbd-hid = "0.5.2"
3131
serde = { version = "1.0.136", default-features = false }
32+
33+
[patch.crates-io]
34+
cortex-m = { git = "https://github.com/rust-embedded/cortex-m", rev = "df9a479f8a6260feb7e9fc05fa0e001f555b9340"}
35+
defmt-rtt = { git = "https://github.com/knurling-rs/defmt", rev = "372c0cc9951bdf596058b3396e62da6f67fb63bd"}
36+
defmt-macros = { git = "https://github.com/knurling-rs/defmt", rev = "372c0cc9951bdf596058b3396e62da6f67fb63bd"}
37+
defmt = { git = "https://github.com/knurling-rs/defmt", rev = "372c0cc9951bdf596058b3396e62da6f67fb63bd"}

examples/rp/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ version = "0.1.0"
88
embassy-util = { version = "0.1.0", path = "../../embassy-util", features = ["defmt"] }
99
embassy-executor = { version = "0.1.0", path = "../../embassy-executor", features = ["defmt", "defmt-timestamp-uptime"] }
1010
embassy-rp = { version = "0.1.0", path = "../../embassy-rp", features = ["defmt", "unstable-traits", "nightly", "unstable-pac"] }
11-
atomic-polyfill = "0.1.5"
11+
atomic-polyfill = "1.0.1"
1212

1313
defmt = "0.3"
1414
defmt-rtt = "0.3"

examples/stm32f7/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ futures = { version = "0.3.17", default-features = false, features = ["async-awa
2121
heapless = { version = "0.7.5", default-features = false }
2222
nb = "1.0.0"
2323
rand_core = "0.6.3"
24-
critical-section = "0.2.3"
24+
critical-section = "1.0"
2525
embedded-storage = "0.3.0"

examples/stm32h7/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ panic-probe = { version = "0.3", features = ["print-defmt"] }
2323
futures = { version = "0.3.17", default-features = false, features = ["async-await"] }
2424
heapless = { version = "0.7.5", default-features = false }
2525
rand_core = "0.6.3"
26-
critical-section = "0.2.5"
26+
critical-section = "1.0"
2727
micromath = "2.0.0"
2828
stm32-fmc = "0.2.4"
2929
embedded-storage = "0.3.0"

examples/wasm/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ wasm-logger = "0.2.0"
1414
wasm-bindgen = "0.2"
1515
web-sys = { version = "0.3", features = ["Document", "Element", "HtmlElement", "Node", "Window" ] }
1616
log = "0.4.11"
17-
critical-section = "0.2.5"
17+
critical-section = "1.0"

0 commit comments

Comments
 (0)