diff options
Diffstat (limited to 'xtask/src')
| -rw-r--r-- | xtask/src/argument_parsing.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/xtask/src/argument_parsing.rs b/xtask/src/argument_parsing.rs index 47c53a0..a9af170 100644 --- a/xtask/src/argument_parsing.rs +++ b/xtask/src/argument_parsing.rs @@ -138,7 +138,7 @@ impl TestMetadata { } } -#[derive(clap::ValueEnum, Copy, Clone, Default, Debug)] +#[derive(clap::ValueEnum, Copy, Clone, Default, Debug, PartialEq)] pub enum Backends { Thumbv6, #[default] @@ -193,7 +193,9 @@ impl Backends { #[allow(clippy::wrong_self_convention)] pub fn to_rtic_monotonics_features(&self, partial: bool) -> Option<&[&str]> { - if !self.is_arm() { + if self == &Self::RiscvEsp32C3 { + Some(&["esp32c3-systimer"]) + } else if !self.is_arm() { None } else if partial { Some(&[ |
