Comments corrected

This commit is contained in:
huntc 2021-10-18 11:45:23 +11:00
parent 6dc0ed53ff
commit a94d44a689

View File

@ -237,8 +237,7 @@ impl<'d, const N: usize> Saadc<'d, N> {
.await; .await;
} }
/// Continuous sampling with double buffers. The sample buffers generally /// Continuous sampling with double buffers.
/// should be a multiple of the number of channels configured.
/// ///
/// A task-driven approach to driving TASK_SAMPLE is expected. With a task /// A task-driven approach to driving TASK_SAMPLE is expected. With a task
/// driven approach, multiple channels can be used. /// driven approach, multiple channels can be used.
@ -355,8 +354,7 @@ impl<'d, const N: usize> Saadc<'d, N> {
} }
impl<'d> Saadc<'d, 1> { impl<'d> Saadc<'d, 1> {
/// Continuous sampling on a single channel with double buffers. The sample /// Continuous sampling on a single channel with double buffers.
/// buffers generally should be a multiple of the number of channels configured.
/// ///
/// The internal clock is to be used with a sample rate expressed as a divisor of /// The internal clock is to be used with a sample rate expressed as a divisor of
/// 16MHz, ranging from 80..2047. For example, 1600 represnts a sample rate of 10KHz /// 16MHz, ranging from 80..2047. For example, 1600 represnts a sample rate of 10KHz
@ -374,7 +372,8 @@ impl<'d> Saadc<'d, 1> {
) where ) where
S: FnMut(&[[i16; 1]]) -> SamplerState, S: FnMut(&[[i16; 1]]) -> SamplerState,
{ {
self.run_sampler(bufs, Some(sample_rate_divisor), sampler).await; self.run_sampler(bufs, Some(sample_rate_divisor), sampler)
.await;
} }
} }