From 4442c4692634c90ba60653d42d72f9f259ae1a16 Mon Sep 17 00:00:00 2001 From: Emil Fresk Date: Mon, 20 Feb 2023 20:56:18 +0100 Subject: Update backend features to be more clear --- rtic-macros/src/codegen/bindings.rs | 14 +++++++------- rtic-macros/src/codegen/bindings/cortex.rs | 8 ++++---- 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'rtic-macros/src') diff --git a/rtic-macros/src/codegen/bindings.rs b/rtic-macros/src/codegen/bindings.rs index a187820..68378b5 100644 --- a/rtic-macros/src/codegen/bindings.rs +++ b/rtic-macros/src/codegen/bindings.rs @@ -1,18 +1,18 @@ #[cfg(not(any( - feature = "cortex_m_source_masking", - feature = "cortex_m_basepri", - feaute = "test_template" + feature = "cortex-m-source-masking", + feature = "cortex-m-basepri", + feaute = "test-template" )))] compile_error!("No backend selected"); -#[cfg(any(feature = "cortex_m_source_masking", feature = "cortex_m_basepri"))] +#[cfg(any(feature = "cortex-m-source-masking", feature = "cortex-m-basepri"))] pub use cortex::*; -#[cfg(feature = "test_template")] +#[cfg(feature = "test-template")] pub use cortex::*; -#[cfg(any(feature = "cortex_m_source_masking", feature = "cortex_m_basepri"))] +#[cfg(any(feature = "cortex-m-source-masking", feature = "cortex-m-basepri"))] mod cortex; -#[cfg(feature = "test_template")] +#[cfg(feature = "test-template")] mod template; diff --git a/rtic-macros/src/codegen/bindings/cortex.rs b/rtic-macros/src/codegen/bindings/cortex.rs index d5eb12e..3f0584c 100644 --- a/rtic-macros/src/codegen/bindings/cortex.rs +++ b/rtic-macros/src/codegen/bindings/cortex.rs @@ -8,9 +8,9 @@ use quote::quote; use std::collections::HashSet; use syn::{parse, Attribute, Ident}; -#[cfg(feature = "cortex_m_basepri")] +#[cfg(feature = "cortex-m-basepri")] pub use basepri::*; -#[cfg(feature = "cortex_m_source_masking")] +#[cfg(feature = "cortex-m-source-masking")] pub use source_masking::*; /// Whether `name` is an exception with configurable priority @@ -30,7 +30,7 @@ fn is_exception(name: &Ident) -> bool { ) } -#[cfg(feature = "cortex_m_source_masking")] +#[cfg(feature = "cortex-m-source-masking")] mod source_masking { use super::*; use std::collections::HashMap; @@ -119,7 +119,7 @@ mod source_masking { } } -#[cfg(feature = "cortex_m_basepri")] +#[cfg(feature = "cortex-m-basepri")] mod basepri { use super::*; -- cgit v1.2.3