Skip to content

Commit fc22b3a

Browse files
committed
Test fixes
1 parent a931364 commit fc22b3a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/peripheral/test.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,17 @@ fn dwt() {
2929
let dwt = unsafe { &*::peripheral::DWT::ptr() };
3030

3131
assert_eq!(address(&dwt.ctrl), 0xE000_1000);
32+
#[cfg(not(armv6m))]
3233
assert_eq!(address(&dwt.cyccnt), 0xE000_1004);
34+
#[cfg(not(armv6m))]
3335
assert_eq!(address(&dwt.cpicnt), 0xE000_1008);
36+
#[cfg(not(armv6m))]
3437
assert_eq!(address(&dwt.exccnt), 0xE000_100C);
38+
#[cfg(not(armv6m))]
3539
assert_eq!(address(&dwt.sleepcnt), 0xE000_1010);
40+
#[cfg(not(armv6m))]
3641
assert_eq!(address(&dwt.lsucnt), 0xE000_1014);
42+
#[cfg(not(armv6m))]
3743
assert_eq!(address(&dwt.foldcnt), 0xE000_1018);
3844
assert_eq!(address(&dwt.pcsr), 0xE000_101C);
3945
assert_eq!(address(&dwt.c[0].comp), 0xE000_1020);
@@ -42,7 +48,9 @@ fn dwt() {
4248
assert_eq!(address(&dwt.c[1].comp), 0xE000_1030);
4349
assert_eq!(address(&dwt.c[1].mask), 0xE000_1034);
4450
assert_eq!(address(&dwt.c[1].function), 0xE000_1038);
51+
#[cfg(not(armv6m))]
4552
assert_eq!(address(&dwt.lar), 0xE000_1FB0);
53+
#[cfg(not(armv6m))]
4654
assert_eq!(address(&dwt.lsr), 0xE000_1FB4);
4755
}
4856

0 commit comments

Comments
 (0)