boot: Do not pwr up LD & TEC at boot stage

- This fix LD current spike at boot up
This commit is contained in:
linuswck 2024-06-17 11:06:31 +08:00
parent 3813b79623
commit dc97f42bd0
1 changed files with 0 additions and 2 deletions

View File

@ -63,7 +63,6 @@ pub fn bootup(
let tec_driver = MAX1968::new(max1968_phy, perif.ADC1, perif.ADC2, perif.DMA2); let tec_driver = MAX1968::new(max1968_phy, perif.ADC1, perif.ADC2, perif.DMA2);
let mut thermostat = Thermostat::new(tec_driver, ad7172_phy); let mut thermostat = Thermostat::new(tec_driver, ad7172_phy);
thermostat.setup(); thermostat.setup();
thermostat.power_up();
thermostat.calibrate_dac_value(); thermostat.calibrate_dac_value();
thermostat.set_i(ElectricCurrent::new::<ampere>(0.0)); 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.ld_set_i(ElectricCurrent::new::<ampere>(0.0));
laser.set_pd_i_limit(ElectricCurrent::new::<milliampere>(2.5)); laser.set_pd_i_limit(ElectricCurrent::new::<milliampere>(2.5));
laser.set_pd_mon_calibrated_vdda(thermostat.get_calibrated_vdda()); laser.set_pd_mon_calibrated_vdda(thermostat.get_calibrated_vdda());
laser.power_up();
debug!("Setting up Internal Flash Driver"); debug!("Setting up Internal Flash Driver");
let flash_store = flash_store::store(perif.FLASH); let flash_store = flash_store::store(perif.FLASH);