Skip to content

Commit

Permalink
Implement defmt::Format for interrupt enums.
Browse files Browse the repository at this point in the history
  • Loading branch information
de-vri-es committed Jan 1, 2025
1 parent b553617 commit 30e78c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/generate/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,10 @@ pub fn render(_opts: &super::Options, ir: &IR, d: &Device, path: &str) -> Result
}
}
let n = util::unsuffixed(pos as u64);

out.extend(quote!(
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
pub enum Interrupt {
#interrupts
}
Expand Down

0 comments on commit 30e78c3

Please sign in to comment.