1
0
forked from M-Labs/kirdy

rename ld_drive to laser_diode

This commit is contained in:
linuswck 2024-01-18 15:21:59 +08:00
parent 2f7ca2a706
commit 5f582be143
4 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@ use core::marker::PhantomData;
use super::{gpio, sys_timer, usb};
use crate::device::flash_store::{self, FlashStore};
use crate::laser_diode::current_sources::{*};
use crate::laser_diode::ld_drive::{self, LdDrive};
use crate::laser_diode::laser_diode::{self, LdDrive};
use crate::thermostat::max1968::MAX1968;
use crate::thermostat::thermostat::Thermostat;
use fugit::ExtU32;
@ -69,7 +69,7 @@ pub fn bootup(
laser.ld_set_i(ElectricCurrent::new::<ampere>(0.15));
// Set a non-zero value so that there is a non NAN power reading
laser.set_pd_i_to_out_pwr(ld_drive::IToPowerUnit {dimension: PhantomData, units: PhantomData, value: 0.001});
laser.set_pd_i_to_out_pwr(laser_diode::IToPowerUnit {dimension: PhantomData, units: PhantomData, value: 0.001});
let tec_driver = MAX1968::new(max1968_phy, perif.ADC1);

View File

@ -16,7 +16,7 @@ use uom::si::{
};
use crate::laser_diode::max5719::{self, Dac};
use crate::laser_diode::ld_drive::TransimpedanceUnit;
use crate::laser_diode::laser_diode::TransimpedanceUnit;
pub trait ChannelPins {
type PdMonPin;

View File

@ -1,3 +1,3 @@
pub mod current_sources;
pub mod max5719;
pub mod ld_drive;
pub mod laser_diode;