Skip to content

Commit 333d432

Browse files
committed
Fix review suggestions
1 parent b8966bf commit 333d432

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/generate/interrupt.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,13 @@ pub fn render(
149149
let interrupt_enum = quote! {
150150
///Enumeration of all the interrupts
151151
#[derive(Copy, Clone, Debug)]
152+
#[repr(u8)]
152153
pub enum Interrupt {
153154
#(#variants)*
154155
}
155156

156157
unsafe impl bare_metal::Nr for Interrupt {
157-
#[inline]
158+
#[inline(always)]
158159
fn nr(&self) -> u8 {
159160
*self as u8
160161
}

0 commit comments

Comments
 (0)