Skip to content

Commit

Permalink
Breaking change: portable-atomic (#922)
Browse files Browse the repository at this point in the history
* Atomics: Replace polyfill with portable-atomic

* Update Cargo.lock for examples

* RTIC: portable-atomic: Update changelog

* rtic-monotonics: portable-atomic: Update changelog

* lm3s6965: enable critical-section when testing

* xtask: Enable portable-atomic/critical-section

When dealing with rtic-monotonics

* rtic-monotonics: portable-atomics: Do not disable the ability to fallback

---------

Co-authored-by: Emil Fresk <[email protected]>
  • Loading branch information
AfoHT and korken89 authored Jun 23, 2024
1 parent 9aeae03 commit 918f9c3
Show file tree
Hide file tree
Showing 22 changed files with 82 additions and 145 deletions.
11 changes: 1 addition & 10 deletions examples/esp32c3/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 1 addition & 10 deletions examples/hifive1/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 5 additions & 11 deletions examples/lm3s6965/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion examples/lm3s6965/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ features = ["exit"]
version = "0.6.0"

[features]
test-critical-section = ["rtic/test-critical-section"]
test-critical-section = [
"rtic/test-critical-section",
"cortex-m/critical-section-single-core",
]
thumbv6-backend = ["rtic/thumbv6-backend"]
thumbv7-backend = ["rtic/thumbv7-backend"]
thumbv8base-backend = ["rtic/thumbv8base-backend"]
Expand Down
22 changes: 6 additions & 16 deletions examples/nrf52840_blinky/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 6 additions & 11 deletions examples/rp2040_local_i2c_init/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions examples/rp2040_local_i2c_init/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ embedded-hal = { version = "0.2.7", features = ["unproven"] }
fugit = "0.3"
rp-pico = "0.9.0"
panic-probe = "0.3"
portable-atomic = { version = "1", features = ["critical-section"] }

[profile.dev]
opt-level = 1
Expand Down
18 changes: 4 additions & 14 deletions examples/stm32f3_blinky/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 5 additions & 14 deletions examples/stm32g030f6_periodic_prints/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions examples/stm32g030f6_periodic_prints/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ defmt = "0.3.4"
defmt-rtt = "0.4.0"
fugit = "0.3.7"
panic-probe = { version = "0.3.1", features = ["print-defmt"] }
portable-atomic = { version = "1", features = ["unsafe-assume-single-core"] }

stm32g0xx-hal = { version = "0.2.0", features = ["rt", "stm32g030"] }

Expand Down
Loading

0 comments on commit 918f9c3

Please sign in to comment.