From a4f821a606a45ba28594fdd609d1856056fce46c Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Thu, 13 Feb 2025 15:28:24 +0100 Subject: [PATCH] doc fixes --- va108xx-embassy/Cargo.toml | 6 +++++- va108xx-embassy/src/lib.rs | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/va108xx-embassy/Cargo.toml b/va108xx-embassy/Cargo.toml index 01cc390..56de74d 100644 --- a/va108xx-embassy/Cargo.toml +++ b/va108xx-embassy/Cargo.toml @@ -12,7 +12,6 @@ categories = ["aerospace", "embedded", "no-std", "hardware-support"] [dependencies] critical-section = "1" -portable-atomic = { version = "1", features = ["unsafe-assume-single-core"]} embassy-sync = "0.6" embassy-executor = "0.7" @@ -23,6 +22,11 @@ once_cell = { version = "1", default-features = false, features = ["critical-sec va108xx-hal = "0.9" +[target.'cfg(all(target_arch = "arm", target_os = "none"))'.dependencies] +portable-atomic = { version = "1", features = ["unsafe-assume-single-core"] } +[target.'cfg(not(all(target_arch = "arm", target_os = "none")))'.dependencies] +portable-atomic = "1" + [features] default = ["irq-oc30-oc31"] irqs-in-lib = [] diff --git a/va108xx-embassy/src/lib.rs b/va108xx-embassy/src/lib.rs index 7618dd4..ed9739b 100644 --- a/va108xx-embassy/src/lib.rs +++ b/va108xx-embassy/src/lib.rs @@ -23,7 +23,7 @@ //! //! You can disable the default features and then specify one of the features above to use the //! documented combination of IRQs. It is also possible to specify custom IRQs by importing and -//! using the [embassy::embassy_time_driver_irqs] macro to declare the IRQ handlers in the +//! using the [embassy_time_driver_irqs] macro to declare the IRQ handlers in the //! application code. If this is done, [embassy::init_with_custom_irqs] must be used //! method to pass the IRQ numbers to the library. //! @@ -63,7 +63,7 @@ time_driver_impl!( /// the feature flags specified. However, the macro is exported to allow users to specify the /// interrupt handlers themselves. /// -/// Please note that you have to explicitely import the [va108xx_hal::pac::interrupt] +/// Please note that you have to explicitely import the [macro@va108xx_hal::pac::interrupt] /// macro in the application code in case this macro is used there. #[macro_export] macro_rules! embassy_time_driver_irqs {