Skip to content

Commit 861a63d

Browse files
committed
Update embedded-hal-bus to 0.2 and fix portable-atomic features
1 parent 918f9c3 commit 861a63d

File tree

4 files changed

+31
-20
lines changed

4 files changed

+31
-20
lines changed

examples/lm3s6965/Cargo.lock

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rtic-sync/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ For each category, _Added_, _Changed_, _Fixed_ add new entries at the top!
1010
### Changed
1111

1212
- Unstable features are now stable, the feature flag `unstable` is removed.
13+
- Update `embedded-hal-bus` to 0.2
1314

1415
### Added
1516

rtic-sync/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ rtic-common = { version = "1.0.0", path = "../rtic-common" }
2424
portable-atomic = { version = "1", default-features = false }
2525
embedded-hal = { version = "1.0.0" }
2626
embedded-hal-async = { version = "1.0.0" }
27-
embedded-hal-bus = { version = "0.1.0", features = ["async"] }
27+
embedded-hal-bus = { version = "0.2.0", features = ["async"] }
2828

2929
defmt-03 = { package = "defmt", version = "0.3", optional = true }
3030

xtask/src/argument_parsing.rs

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -73,30 +73,39 @@ impl Package {
7373
][..]
7474
} else {
7575
&[
76-
"cortex-m-systick,portable-atomic/critical-section",
77-
"cortex-m-systick,systick-64bit,portable-atomic/critical-section",
78-
"rp2040,portable-atomic/critical-section",
79-
"nrf52805,portable-atomic/critical-section",
80-
"nrf52810,portable-atomic/critical-section",
81-
"nrf52811,portable-atomic/critical-section",
82-
"nrf52832,portable-atomic/critical-section",
83-
"nrf52833,portable-atomic/critical-section",
84-
"nrf52840,portable-atomic/critical-section",
85-
"nrf5340-app,portable-atomic/critical-section",
86-
"nrf5340-net,portable-atomic/critical-section",
87-
"nrf9160,portable-atomic/critical-section",
88-
"imxrt_gpt1,imxrt_gpt2,imxrt-ral/imxrt1062,portable-atomic/critical-section",
89-
"stm32_tim2,stm32_tim3,stm32_tim4,stm32_tim5,stm32_tim15,stm32h725ag,portable-atomic/critical-section",
76+
"cortex-m-systick",
77+
"cortex-m-systick,systick-64bit",
78+
"rp2040",
79+
"nrf52805",
80+
"nrf52810",
81+
"nrf52811",
82+
"nrf52832",
83+
"nrf52833",
84+
"nrf52840",
85+
"nrf5340-app",
86+
"nrf5340-net",
87+
"nrf9160",
88+
"imxrt_gpt1,imxrt_gpt2,imxrt-ral/imxrt1062",
89+
"stm32_tim2,stm32_tim3,stm32_tim4,stm32_tim5,stm32_tim15,stm32h725ag",
9090
][..]
9191
};
9292

9393
features
9494
.iter()
95-
.map(ToString::to_string)
95+
.map(|&s| {
96+
if matches!(backend, Backends::Thumbv6) {
97+
format!("{s},portable-atomic/critical-section")
98+
} else {
99+
s.to_string()
100+
}
101+
})
96102
.map(Some)
97103
.chain(std::iter::once(None))
98104
.collect()
99105
}
106+
Package::RticSync if matches!(backend, Backends::Thumbv6) => {
107+
vec![Some("portable-atomic/critical-section".into())]
108+
}
100109
_ => vec![None],
101110
}
102111
}

0 commit comments

Comments
 (0)