File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -29,11 +29,17 @@ fn dwt() {
29
29
let dwt = unsafe { & * :: peripheral:: DWT :: ptr ( ) } ;
30
30
31
31
assert_eq ! ( address( & dwt. ctrl) , 0xE000_1000 ) ;
32
+ #[ cfg( not( armv6m) ) ]
32
33
assert_eq ! ( address( & dwt. cyccnt) , 0xE000_1004 ) ;
34
+ #[ cfg( not( armv6m) ) ]
33
35
assert_eq ! ( address( & dwt. cpicnt) , 0xE000_1008 ) ;
36
+ #[ cfg( not( armv6m) ) ]
34
37
assert_eq ! ( address( & dwt. exccnt) , 0xE000_100C ) ;
38
+ #[ cfg( not( armv6m) ) ]
35
39
assert_eq ! ( address( & dwt. sleepcnt) , 0xE000_1010 ) ;
40
+ #[ cfg( not( armv6m) ) ]
36
41
assert_eq ! ( address( & dwt. lsucnt) , 0xE000_1014 ) ;
42
+ #[ cfg( not( armv6m) ) ]
37
43
assert_eq ! ( address( & dwt. foldcnt) , 0xE000_1018 ) ;
38
44
assert_eq ! ( address( & dwt. pcsr) , 0xE000_101C ) ;
39
45
assert_eq ! ( address( & dwt. c[ 0 ] . comp) , 0xE000_1020 ) ;
@@ -42,7 +48,9 @@ fn dwt() {
42
48
assert_eq ! ( address( & dwt. c[ 1 ] . comp) , 0xE000_1030 ) ;
43
49
assert_eq ! ( address( & dwt. c[ 1 ] . mask) , 0xE000_1034 ) ;
44
50
assert_eq ! ( address( & dwt. c[ 1 ] . function) , 0xE000_1038 ) ;
51
+ #[ cfg( not( armv6m) ) ]
45
52
assert_eq ! ( address( & dwt. lar) , 0xE000_1FB0 ) ;
53
+ #[ cfg( not( armv6m) ) ]
46
54
assert_eq ! ( address( & dwt. lsr) , 0xE000_1FB4 ) ;
47
55
}
48
56
You can’t perform that action at this time.
0 commit comments