Skip to content

Commit 26ddbe1

Browse files
bors[bot]burrbull
andauthored
Merge #509
509: move interrupt generation after generic file r=adamgreig a=burrbull related to #507 r? @adamgreig Co-authored-by: Andrey Zgarbul <[email protected]>
2 parents 5f6898f + ed96dd8 commit 26ddbe1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
3030

3131
### Changed
3232

33+
- move interrupt generation after generic file
34+
3335
- [breaking-change] make `write_with_zero` method `unsafe` because the way it is
3436

3537
- [breaking-change] remove `Variant<U, ENUM_A>`, use `Option<ENUM_A>` instead

src/generate/device.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@ pub fn render(
9494
fpu_present = cpu.fpu_present;
9595
}
9696

97-
out.extend(interrupt::render(target, &d.peripherals, device_x)?);
98-
9997
let core_peripherals: &[_] = if fpu_present {
10098
&[
10199
"CBP", "CPUID", "DCB", "DWT", "FPB", "FPU", "ITM", "MPU", "NVIC", "SCB", "SYST", "TPIU",
@@ -166,6 +164,8 @@ pub fn render(
166164
});
167165
}
168166

167+
out.extend(interrupt::render(target, &d.peripherals, device_x)?);
168+
169169
for p in &d.peripherals {
170170
if target == Target::CortexM && core_peripherals.contains(&&*p.name.to_uppercase()) {
171171
// Core peripherals are handled above

0 commit comments

Comments
 (0)