diff --git a/Cargo.toml b/Cargo.toml index 4121c1a..e271a98 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,13 +29,18 @@ fugit = "0.3" defmt = { version = "1", optional = true } va108xx = { version = "0.5", default-features = false, optional = true } va416xx = { version = "0.4", default-features = false, optional = true } -portable-atomic = "1" - embassy-sync = "0.6" embassy-time-driver = "0.2" embassy-time-queue-utils = "0.1" once_cell = { version = "1", default-features = false, features = ["critical-section"] } +[target.thumbv6m-none-eabi.dependencies] +portable-atomic = { version = "1", features = ["unsafe-assume-single-core"] } +[target.thumbv7em-none-eabihf.dependencies] +portable-atomic = "1" +[target.'cfg(not(any(target_arch = "arm", target_os = "none")))'.dependencies] +portable-atomic = "1" + [features] vor1x = ["_family-selected", "dep:va108xx", "portable-atomic/unsafe-assume-single-core"] vor4x = ["_family-selected", "dep:va416xx"]