Skip to content

Commit b678f83

Browse files
committed
Make interrupt vector for MSP430 16 bits instead of 32 bits
1 parent 91049bc commit b678f83

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/generate/interrupt.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
use std::collections::HashMap;
22
use std::fmt::Write;
33

4-
use cast::u64;
5-
use proc_macro2::{TokenStream, Ident, Span};
64
use crate::svd::Peripheral;
5+
use cast::u64;
6+
use proc_macro2::{Ident, Span, TokenStream};
77

88
use crate::errors::*;
99
use crate::util::{self, ToSanitizedUpperCase};
@@ -133,7 +133,7 @@ pub fn render(
133133
#[doc(hidden)]
134134
pub union Vector {
135135
_handler: unsafe extern "msp430-interrupt" fn(),
136-
_reserved: u32,
136+
_reserved: u16,
137137
}
138138

139139
#[cfg(feature = "rt")]

0 commit comments

Comments
 (0)