File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ impl Delay {
29
29
self . syst
30
30
}
31
31
32
- /// Delay using the Cortex-M systick for a certain duration, µs.
32
+ /// Delay using the Cortex-M systick for a certain duration, in µs.
33
33
#[ inline]
34
34
pub fn delay_us ( & mut self , us : u32 ) {
35
35
let ticks = ( us as u64 ) * ( self . ahb_frequency as u64 ) / 1_000_000 ;
@@ -57,15 +57,15 @@ impl Delay {
57
57
self . syst . disable_counter ( ) ;
58
58
}
59
59
60
- /// Delay using the Cortex-M systick for a certain duration, ms.
60
+ /// Delay using the Cortex-M systick for a certain duration, in ms.
61
61
#[ inline]
62
62
pub fn delay_ms ( & mut self , mut ms : u32 ) {
63
63
// 4294967 is the highest u32 value which you can multiply by 1000 without overflow
64
64
while ms > 4294967 {
65
- Delay :: delay_us ( self , 4294967000u32 ) ;
65
+ self . delay_us ( 4294967000u32 ) ;
66
66
ms -= 4294967 ;
67
67
}
68
- Delay :: delay_us ( self , ms * 1_000 ) ;
68
+ self . delay_us ( ms * 1_000 ) ;
69
69
}
70
70
}
71
71
You can’t perform that action at this time.
0 commit comments