Skip to content

Commit 2a15caa

Browse files
Brandon Matthewsthenewwazoo
Brandon Matthews
authored andcommitted
Fix rebase syntax error; disable STIR test on armv6m
1 parent 595fbd7 commit 2a15caa

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/peripheral/dcb.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ impl DCB {
3333
pub fn disable_trace(&mut self) {
3434
// unset bit 24 / TRCENA
3535
unsafe { self.demcr.modify(|w| w & !DCB_DEMCR_TRCENA); }
36+
}
3637

3738
/// Is there a debugger attached? (see notes)
3839
///

src/peripheral/test.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ fn nvic() {
109109
assert_eq!(address(&nvic.icpr), 0xE000E280);
110110
assert_eq!(address(&nvic.iabr), 0xE000E300);
111111
assert_eq!(address(&nvic.ipr), 0xE000E400);
112+
#[cfg(not(armv6m))]
112113
assert_eq!(address(&nvic.stir), 0xE000EF00);
113114
}
114115

0 commit comments

Comments
 (0)