Closed BlinkyStitt closed 4 years ago
This is a core component of rust, so I'm somewhat surprised this isn't working. It's not that AtomicBool
isn't available, but rather that the method compare_exchange
isn't found for it. Can you please provide the output of rustc --version
to show which version of Rust you're running?
It looks like Thumbv6 indeed has some issues with atomics. I've added an atomic shim for the crate in #4.
@WyseNynja I've cut a new release with support for all Spi traits as well as support for thumbv6
targets (which don't have the mentioned atomic). To enable support, change your Cargo.toml
as follows:
[dependencies.shared-bus-rtic]
version = "0.2.2"
features = ["thumbv6"]
Thank you!
I originally opened this on the wrong repo: https://github.com/Rahix/shared-bus/issues/10.
I'm not sure there's any way to "fix" this. I think it might just be better to say that
thumbv6m-none-eabi
and other platforms without atomics are not supported.I'm going to use a platform with thumbv7em-none-eabihf instead of the feather_m0 that I was planning on using since atomics are going to be helpful for a few things.