forked from M-Labs/kirdy
boot: Do not pwr up LD & TEC at boot stage
- This fix LD current spike at boot up
This commit is contained in:
parent
3813b79623
commit
dc97f42bd0
@ -63,7 +63,6 @@ pub fn bootup(
|
||||
let tec_driver = MAX1968::new(max1968_phy, perif.ADC1, perif.ADC2, perif.DMA2);
|
||||
let mut thermostat = Thermostat::new(tec_driver, ad7172_phy);
|
||||
thermostat.setup();
|
||||
thermostat.power_up();
|
||||
thermostat.calibrate_dac_value();
|
||||
thermostat.set_i(ElectricCurrent::new::<ampere>(0.0));
|
||||
|
||||
@ -75,7 +74,6 @@ pub fn bootup(
|
||||
laser.ld_set_i(ElectricCurrent::new::<ampere>(0.0));
|
||||
laser.set_pd_i_limit(ElectricCurrent::new::<milliampere>(2.5));
|
||||
laser.set_pd_mon_calibrated_vdda(thermostat.get_calibrated_vdda());
|
||||
laser.power_up();
|
||||
|
||||
debug!("Setting up Internal Flash Driver");
|
||||
let flash_store = flash_store::store(perif.FLASH);
|
||||
|
Loading…
Reference in New Issue
Block a user