Skip to content

Commit d03961f

Browse files
bors[bot]YuhanLiin
andauthored
Merge #384
384: Make interrupt vector for MSP430 16 bits instead of 32 bits r=therealprof a=YuhanLiin The old 32 bit vectors caused linker errors when building for MSP430. This change fixes the errors. Co-authored-by: YuhanLiin <[email protected]>
2 parents 91049bc + 775f30b commit d03961f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1515

1616
- Improve field enum docs
1717

18+
- Change interrupt vector size for MSP430 to 16 bits from 32 bits
19+
1820
### Changed
1921

2022
- Bump dependencies: `syn`, `quote` and `proc_macro2` v1.0.

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)