File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ rustc-args = ["--cfg", "docsrs"]
35
35
36
36
[dependencies ]
37
37
cfg-if = " 1.0.0"
38
- cortex-m = " 0.7.2 "
38
+ cortex-m = " 0.7.4 "
39
39
cortex-m-rt = " 0.7"
40
40
defmt = { version = " >=0.2.3, <0.4.0" , optional = true }
41
41
embedded-dma = " 0.1.2"
@@ -55,18 +55,17 @@ enumset = { version = "1.0.6", optional = true}
55
55
bare-metal = " 0.2.5"
56
56
57
57
[dev-dependencies ]
58
- cortex-m = " 0.7.2"
59
58
cortex-m-semihosting = " 0.3.7"
60
59
defmt-rtt = " 0.3.0"
61
60
defmt-test = " 0.3.0"
62
61
panic-probe = " 0.3.0"
63
62
panic-semihosting = " 0.5.6"
64
63
usbd-serial = " 0.1.1"
65
64
usb-device = " 0.2.8"
66
- cortex-m-rtic = " =0.6.0-rc.4, <0.6.0-rc.5 "
67
- systick-monotonic = " 0. 1.0-rc.2 "
65
+ cortex-m-rtic = " 1.0 "
66
+ systick-monotonic = " 1.0"
68
67
panic-rtt-target = { version = " 0.1" , features = [" cortex-m" ] }
69
- rtt-target = { version = " 0.3.0 " , features = [" cortex-m" ] }
68
+ rtt-target = { version = " 0.3.1 " , features = [" cortex-m" ] }
70
69
71
70
[build-dependencies ]
72
71
slice-group-by = " 0.2.6"
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ impl MonoTimer {
61
61
/// Returns an `Instant` corresponding to "now"
62
62
pub fn now ( & self ) -> Instant {
63
63
Instant {
64
- now : DWT :: get_cycle_count ( ) ,
64
+ now : DWT :: cycle_count ( ) ,
65
65
}
66
66
}
67
67
}
@@ -76,7 +76,7 @@ pub struct Instant {
76
76
impl Instant {
77
77
/// Ticks elapsed since the `Instant` was created
78
78
pub fn elapsed ( self ) -> u32 {
79
- DWT :: get_cycle_count ( ) . wrapping_sub ( self . now )
79
+ DWT :: cycle_count ( ) . wrapping_sub ( self . now )
80
80
}
81
81
}
82
82
You can’t perform that action at this time.
0 commit comments