Skip to content

Commit 263ed89

Browse files
committed
don't mangle the INTERRUPTS variable
1 parent aff4cb0 commit 263ed89

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/generate.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,10 @@ pub fn interrupt(peripherals: &[Peripheral], items: &mut Vec<Tokens>) {
149149
#(fn #names();)*
150150
}
151151

152+
#[doc(hidden)]
152153
#[link_section = ".vector_table.interrupts"]
153-
#[used]
154-
static INTERRUPTS: [Option<unsafe extern "C" fn()>; #n] = [
154+
#[no_mangle]
155+
pub static INTERRUPTS: [Option<unsafe extern "C" fn()>; #n] = [
155156
#(#elements,)*
156157
];
157158

0 commit comments

Comments
 (0)