diff options
| author | Dario Nieuwenhuis <[email protected]> | 2020-11-01 17:17:24 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2020-11-01 17:17:24 +0100 |
| commit | 5e8608c7a5b1e4e92f1fb650ea0ef47e5a6df563 (patch) | |
| tree | f731a0329d92d8fae4168957f8e90716b58ad00b /embassy-nrf/src/interrupt.rs | |
| parent | 2c13e251849fd3e3cf06e2d5363c311ac880c77d (diff) | |
Make defmt optional with new `anyfmt` crate
Diffstat (limited to 'embassy-nrf/src/interrupt.rs')
| -rw-r--r-- | embassy-nrf/src/interrupt.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/embassy-nrf/src/interrupt.rs b/embassy-nrf/src/interrupt.rs index 581adff74..8918b13ee 100644 --- a/embassy-nrf/src/interrupt.rs +++ b/embassy-nrf/src/interrupt.rs | |||
| @@ -12,7 +12,8 @@ pub use crate::pac::Interrupt; | |||
| 12 | pub use crate::pac::Interrupt::*; // needed for cortex-m-rt #[interrupt] | 12 | pub use crate::pac::Interrupt::*; // needed for cortex-m-rt #[interrupt] |
| 13 | pub use bare_metal::{CriticalSection, Mutex}; | 13 | pub use bare_metal::{CriticalSection, Mutex}; |
| 14 | 14 | ||
| 15 | #[derive(defmt::Format, Copy, Clone, Eq, PartialEq, Ord, PartialOrd)] | 15 | #[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd)] |
| 16 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] | ||
| 16 | #[repr(u8)] | 17 | #[repr(u8)] |
| 17 | pub enum Priority { | 18 | pub enum Priority { |
| 18 | Level0 = 0, | 19 | Level0 = 0, |
