channels: remove redundant pub

This commit is contained in:
atse 2024-01-18 14:12:19 +08:00
parent db0403206e
commit db14bd8e5c

View File

@ -24,7 +24,7 @@ use crate::{
}; };
pub const CHANNELS: usize = 2; pub const CHANNELS: usize = 2;
pub const R_SENSE: f64 = 0.05; const R_SENSE: f64 = 0.05;
// DAC chip outputs 0-5v, which is then passed through a resistor dividor to provide 0-3v range // DAC chip outputs 0-5v, which is then passed through a resistor dividor to provide 0-3v range
const DAC_OUT_V_MAX: f64 = 3.0; const DAC_OUT_V_MAX: f64 = 3.0;
@ -35,7 +35,7 @@ pub struct Channels<'a> {
pub adc: ad7172::Adc<pins::AdcSpi, pins::AdcNss>, pub adc: ad7172::Adc<pins::AdcSpi, pins::AdcNss>,
/// stm32f4 integrated adc /// stm32f4 integrated adc
pins_adc: pins::PinsAdc, pins_adc: pins::PinsAdc,
pub pwm: pins::PwmPins, pwm: pins::PwmPins,
hwrev: &'a hw_rev::HWRev, hwrev: &'a hw_rev::HWRev,
} }