From 028f4a1bb2cc97f586084f35bfcfb36116e80062 Mon Sep 17 00:00:00 2001 From: Matt Huszagh Date: Thu, 7 Jan 2021 09:49:23 -0800 Subject: [PATCH] fix small typos --- src/digital_input_stamper.rs | 4 ++-- src/main.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/digital_input_stamper.rs b/src/digital_input_stamper.rs index d63849c..648105f 100644 --- a/src/digital_input_stamper.rs +++ b/src/digital_input_stamper.rs @@ -26,13 +26,13 @@ ///! timestamping is desired in DI1, a separate timer + capture channel will be necessary. use super::{hal, timers, ADC_SAMPLE_TICKS, SAMPLE_BUFFER_SIZE}; -/// Calculate the period of the digital input timestampe timer. +/// Calculate the period of the digital input timestamp timer. /// /// # Note /// The period returned will be 1 less than the required period in timer ticks. The value returned /// can be immediately programmed into a hardware timer period register. /// -/// The period is calcualted to be some power-of-two multiple of the batch size, such that N batches +/// The period is calculated to be some power-of-two multiple of the batch size, such that N batches /// will occur between each timestamp timer overflow. /// /// # Returns diff --git a/src/main.rs b/src/main.rs index e2de7d5..c5a9698 100644 --- a/src/main.rs +++ b/src/main.rs @@ -353,7 +353,7 @@ const APP: () = { timer5.pause(); timer5.set_tick_freq(design_parameters::TIMER_FREQUENCY); - // The time stamp timer must run at exactly a multiple of the sample timer based on the + // The timestamp timer must run at exactly a multiple of the sample timer based on the // batch size. To accomodate this, we manually set the prescaler identical to the sample // timer, but use a period that is longer. let mut timer = timers::TimestampTimer::new(timer5);