diff --git a/embassy-cortex-m/src/interrupt.rs b/embassy-cortex-m/src/interrupt.rs index 8a63b18b..715f0038 100644 --- a/embassy-cortex-m/src/interrupt.rs +++ b/embassy-cortex-m/src/interrupt.rs @@ -211,6 +211,7 @@ const PRIO_MASK: u8 = 0xff; #[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd)] #[cfg_attr(feature = "defmt", derive(defmt::Format))] #[repr(u8)] +#[allow(missing_docs)] pub enum Priority { P0 = 0x0, } @@ -222,6 +223,7 @@ pub enum Priority { #[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd)] #[cfg_attr(feature = "defmt", derive(defmt::Format))] #[repr(u8)] +#[allow(missing_docs)] pub enum Priority { P0 = 0x0, P1 = 0x80, @@ -234,6 +236,7 @@ pub enum Priority { #[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd)] #[cfg_attr(feature = "defmt", derive(defmt::Format))] #[repr(u8)] +#[allow(missing_docs)] pub enum Priority { P0 = 0x0, P1 = 0x40, @@ -248,6 +251,7 @@ pub enum Priority { #[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd)] #[cfg_attr(feature = "defmt", derive(defmt::Format))] #[repr(u8)] +#[allow(missing_docs)] pub enum Priority { P0 = 0x0, P1 = 0x20, @@ -266,6 +270,7 @@ pub enum Priority { #[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd)] #[cfg_attr(feature = "defmt", derive(defmt::Format))] #[repr(u8)] +#[allow(missing_docs)] pub enum Priority { P0 = 0x0, P1 = 0x10, @@ -292,6 +297,7 @@ pub enum Priority { #[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd)] #[cfg_attr(feature = "defmt", derive(defmt::Format))] #[repr(u8)] +#[allow(missing_docs)] pub enum Priority { P0 = 0x0, P1 = 0x8, @@ -334,6 +340,7 @@ pub enum Priority { #[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd)] #[cfg_attr(feature = "defmt", derive(defmt::Format))] #[repr(u8)] +#[allow(missing_docs)] pub enum Priority { P0 = 0x0, P1 = 0x4, @@ -408,6 +415,7 @@ pub enum Priority { #[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd)] #[cfg_attr(feature = "defmt", derive(defmt::Format))] #[repr(u8)] +#[allow(missing_docs)] pub enum Priority { P0 = 0x0, P1 = 0x2, @@ -546,6 +554,7 @@ pub enum Priority { #[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd)] #[cfg_attr(feature = "defmt", derive(defmt::Format))] #[repr(u8)] +#[allow(missing_docs)] pub enum Priority { P0 = 0x0, P1 = 0x1, diff --git a/embassy-cortex-m/src/lib.rs b/embassy-cortex-m/src/lib.rs index 680c2c8d..fba23367 100644 --- a/embassy-cortex-m/src/lib.rs +++ b/embassy-cortex-m/src/lib.rs @@ -1,5 +1,6 @@ //! Embassy executor and interrupt handling specific to cortex-m devices. #![no_std] +#![warn(missing_docs)] // This mod MUST go first, so that the others see its macros. pub(crate) mod fmt;