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 {
2929 self . syst
3030 }
3131
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.
3333 #[ inline]
3434 pub fn delay_us ( & mut self , us : u32 ) {
3535 let ticks = ( us as u64 ) * ( self . ahb_frequency as u64 ) / 1_000_000 ;
@@ -57,15 +57,15 @@ impl Delay {
5757 self . syst . disable_counter ( ) ;
5858 }
5959
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.
6161 #[ inline]
6262 pub fn delay_ms ( & mut self , mut ms : u32 ) {
6363 // 4294967 is the highest u32 value which you can multiply by 1000 without overflow
6464 while ms > 4294967 {
65- Delay :: delay_us ( self , 4294967000u32 ) ;
65+ self . delay_us ( 4294967000u32 ) ;
6666 ms -= 4294967 ;
6767 }
68- Delay :: delay_us ( self , ms * 1_000 ) ;
68+ self . delay_us ( ms * 1_000 ) ;
6969 }
7070}
7171
You can’t perform that action at this time.
0 commit comments