Skip to content

Commit

Permalink
Merge branch 'fix-clippy-doc-comments' into fix-feature-flag-part-num…
Browse files Browse the repository at this point in the history
…bers
  • Loading branch information
liamkinne committed Aug 4, 2024
2 parents bb620c0 + 7dc2c94 commit f3a02f1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/adc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ impl Temperature {
/// ## Arguments
/// * `sample`: ADC sample taken on the [`Temperature`] channel.
/// * `vdda`: Analog reference voltage (vref+) when the temperature
/// sample was taken, in volts.
/// sample was taken, in volts.
/// * `resolution`: Configured ADC resolution.
#[inline(always)]
pub fn temperature_to_degrees_centigrade(
Expand All @@ -110,7 +110,7 @@ impl Temperature {
/// ## Arguments
/// * `sample`: ADC sample taken on the [`Temperature`] channel.
/// * `vdda`: Analog reference voltage (vref+) when the temperature
/// sample was taken, in millivolts.
/// sample was taken, in millivolts.
/// * `resolution`: Configured ADC resolution.
#[inline(always)]
pub fn temperature_to_degrees_centigrade_coarse(
Expand Down Expand Up @@ -1901,7 +1901,7 @@ macro_rules! adc {
/// * `channel` - channel to configure
/// * `sequence` - where in the sequence to sample the channel. Also called rank in some STM docs/code
/// * `sample_time` - how long to sample for. See datasheet and ref manual to work out how long you need\
/// to sample for at a given ADC clock frequency
/// to sample for at a given ADC clock frequency
pub fn configure_channel<CHANNEL>(&mut self, _channel: &CHANNEL, sequence: config::Sequence, sample_time: config::SampleTime)
where
CHANNEL: Channel<stm32::$adc_type, ID=u8>
Expand Down Expand Up @@ -2122,6 +2122,7 @@ macro_rules! adc {
/// Enables the ADC clock, resets the peripheral (optionally), runs calibration and applies the supplied config
/// # Arguments
/// * `reset` - should a reset be performed. This is provided because on some devices multiple ADCs share the same common reset
///
/// TODO: fix needing SYST
#[inline(always)]
fn claim(self, cs: ClockSource, rcc: &Rcc, delay: &mut impl DelayUs<u8>, reset: bool) -> Adc<stm32::$adc_type, Disabled> {
Expand Down Expand Up @@ -2407,7 +2408,7 @@ macro_rules! adc {
/// * `channel` - channel to configure
/// * `sequence` - where in the sequence to sample the channel. Also called rank in some STM docs/code
/// * `sample_time` - how long to sample for. See datasheet and ref manual to work out how long you need\
/// to sample for at a given ADC clock frequency
/// to sample for at a given ADC clock frequency
#[inline(always)]
pub fn configure_channel<CHANNEL>(&mut self, channel: &CHANNEL, sequence: config::Sequence, sample_time: config::SampleTime)
where
Expand Down

0 comments on commit f3a02f1

Please sign in to comment.