From 152bdc16a14cad61f2533912e268e2828cf28a86 Mon Sep 17 00:00:00 2001 From: chrysn Date: Fri, 26 Jan 2024 15:13:16 +0100 Subject: [PATCH] tests: Enable atomic polyfill --- tests/ztimer-async/Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/ztimer-async/Cargo.toml b/tests/ztimer-async/Cargo.toml index 0b063e8..6900306 100644 --- a/tests/ztimer-async/Cargo.toml +++ b/tests/ztimer-async/Cargo.toml @@ -17,3 +17,8 @@ embassy-executor-riot = { git = "https://gitlab.com/etonomy/riot-module-examples embassy-executor = "0.5.0" # Not enabling any of its executors: there's the -riot for that static_cell = "2" +# Actually this is only required on samr21 and other non-atomic platforms to +# make the static_cell work, but for sake of setup simplicity we'll keep this +# enabled everywhere. (A better solution would be to have the RIOT build system +# managed crates provide this dependency on platforms where it is needed). +portable-atomic = { version = "1.6", default-features = false, features = [ "critical-section" ] }