From 44af1366056a06247b3ee0f153d5274cb4658c43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Tj=C3=A4der?= Date: Sat, 4 Mar 2023 02:26:34 +0100 Subject: CFG: Align all crates to use hyphen --- rtic-monotonics/Cargo.toml | 6 +++--- rtic-monotonics/src/lib.rs | 2 +- rtic-monotonics/src/systick.rs | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'rtic-monotonics') diff --git a/rtic-monotonics/Cargo.toml b/rtic-monotonics/Cargo.toml index d60b68c..c961c05 100644 --- a/rtic-monotonics/Cargo.toml +++ b/rtic-monotonics/Cargo.toml @@ -30,9 +30,9 @@ default = [] defmt = ["fugit/defmt"] # Systick on Cortex-M, default 1 kHz -cortex_m_systick = ["dep:cortex-m"] -systick_100hz = [] -systick_10khz = [] +cortex-m-systick = ["dep:cortex-m"] +systick-100hz = [] +systick-10khz = [] # Timer peripheral on the RP2040 rp2040 = ["dep:rp2040-pac"] diff --git a/rtic-monotonics/src/lib.rs b/rtic-monotonics/src/lib.rs index 7e513f8..a8068ce 100644 --- a/rtic-monotonics/src/lib.rs +++ b/rtic-monotonics/src/lib.rs @@ -9,7 +9,7 @@ pub use rtic_time::{Monotonic, TimeoutError, TimerQueue}; -#[cfg(feature = "cortex_m_systick")] +#[cfg(feature = "cortex-m-systick")] pub mod systick; #[cfg(feature = "rp2040")] diff --git a/rtic-monotonics/src/systick.rs b/rtic-monotonics/src/systick.rs index 62d4e0c..691d7c7 100644 --- a/rtic-monotonics/src/systick.rs +++ b/rtic-monotonics/src/systick.rs @@ -7,14 +7,14 @@ use core::future::Future; use cortex_m::peripheral::SYST; pub use fugit::ExtU32; -// Features should be additive, here systick_100hz gets picked if both -// `systick_100hz` and `systick_10khz` are enabled. +// Features should be additive, here systick-100hz gets picked if both +// `systick-100hz` and `systick-10khz` are enabled. cfg_if::cfg_if! { - if #[cfg(feature = "systick_100hz")] + if #[cfg(feature = "systick-100hz")] { const TIMER_HZ: u32 = 100; - } else if #[cfg(feature = "systick_10khz")] + } else if #[cfg(feature = "systick-10khz")] { const TIMER_HZ: u32 = 10_000; } else { -- cgit v1.2.3