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 33use crate :: peripheral:: { syst:: SystClkSource , SYST } ;
44use embedded_hal:: blocking:: delay:: { DelayMs , DelayUs } ;
55
6- /// System timer (SysTick) as a delay provider
6+ /// System timer (SysTick) as a delay provider.
77pub struct Delay {
88 syst : SYST ,
99 ahb_frequency : u32 ,
1010}
1111
1212impl Delay {
13- /// Configures the system timer (SysTick) as a delay provider
13+ /// Configures the system timer (SysTick) as a delay provider.
1414 ///
15- /// `ahb_frequency` is a frequency of the AHB bus in Hz
15+ /// `ahb_frequency` is a frequency of the AHB bus in Hz.
1616 #[ inline]
1717 pub fn new ( mut syst : SYST , ahb_frequency : u32 ) -> Self {
1818 syst. set_clock_source ( SystClkSource :: Core ) ;
1919
2020 Delay { syst, ahb_frequency }
2121 }
2222
23- /// Releases the system timer (SysTick) resource
23+ /// Releases the system timer (SysTick) resource.
2424 #[ inline]
2525 pub fn free ( self ) -> SYST {
2626 self . syst
You can’t perform that action at this time.
0 commit comments