Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TDHolmes committed Jan 6, 2022
1 parent 0dc7047 commit 968485f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/peripheral/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ fn dwt() {
assert_eq!(address(&dwt.comp0.mask), 0xE000_1024);
assert_eq!(address(&dwt.comp0.function), 0xE000_1028);

assert_eq!(address(&dwt.comp[0].comp), 0xE000_1030);
assert_eq!(address(&dwt.comp[0].mask), 0xE000_1034);
assert_eq!(address(&dwt.comp[0].function), 0xE000_1038);
assert_eq!(address(&dwt.comps[0].comp), 0xE000_1030);
assert_eq!(address(&dwt.comps[0].mask), 0xE000_1034);
assert_eq!(address(&dwt.comps[0].function), 0xE000_1038);
}
if cfg!(armv6m) {
assert_eq!(address(&dwt.comp[0].comp), 0xE000_1020);
assert_eq!(address(&dwt.comp[0].mask), 0xE000_1024);
assert_eq!(address(&dwt.comp[0].function), 0xE000_1028);
assert_eq!(address(&dwt.comps[0].comp), 0xE000_1020);
assert_eq!(address(&dwt.comps[0].mask), 0xE000_1024);
assert_eq!(address(&dwt.comps[0].function), 0xE000_1028);
}

#[cfg(not(armv6m))]
Expand Down

0 comments on commit 968485f

Please sign in to comment.