aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vadim Kaushan <admin@disasm.info> 2020-08-25 20:12:14 +0300
committerGravatar Vadim Kaushan <admin@disasm.info> 2020-08-25 20:12:14 +0300
commit2b50dce2d4bdde42ed069f721488179c1a499d3d (patch)
treebbfb1d2350bc7f2e6e488e5f1a83769ddaaa0add
parentdb4f92a8d26043c7599827dbbeaa0fcdff7e1ee2 (diff)
downloadcortex-m-2b50dce2d4bdde42ed069f721488179c1a499d3d.tar.gz
cortex-m-2b50dce2d4bdde42ed069f721488179c1a499d3d.tar.zst
cortex-m-2b50dce2d4bdde42ed069f721488179c1a499d3d.zip
Moar full stops.
-rw-r--r--src/delay.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/delay.rs b/src/delay.rs
index c83fbc9..051151f 100644
--- a/src/delay.rs
+++ b/src/delay.rs
@@ -3,16 +3,16 @@
use crate::peripheral::{syst::SystClkSource, SYST};
use embedded_hal::blocking::delay::{DelayMs, DelayUs};
-/// System timer (SysTick) as a delay provider
+/// System timer (SysTick) as a delay provider.
pub struct Delay {
syst: SYST,
ahb_frequency: u32,
}
impl Delay {
- /// Configures the system timer (SysTick) as a delay provider
+ /// Configures the system timer (SysTick) as a delay provider.
///
- /// `ahb_frequency` is a frequency of the AHB bus in Hz
+ /// `ahb_frequency` is a frequency of the AHB bus in Hz.
#[inline]
pub fn new(mut syst: SYST, ahb_frequency: u32) -> Self {
syst.set_clock_source(SystClkSource::Core);
@@ -20,7 +20,7 @@ impl Delay {
Delay { syst, ahb_frequency }
}
- /// Releases the system timer (SysTick) resource
+ /// Releases the system timer (SysTick) resource.
#[inline]
pub fn free(self) -> SYST {
self.syst