DC/DC: Add output_hvs_enable/disable calls

Without these calls the functions introduced in 6316dcd are useless.

Remark: These functions are currently only used on a prototype for testing.
This commit is contained in:
Martin Jäger
2022-02-08 18:43:12 +01:00
parent b4272ce7de
commit 923d536ae2
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -228,6 +228,8 @@ __weak void Dcdc::control()
if (startup_mode != DCDC_MODE_OFF) {
output_hvs_enable();
// startup allowed, but we need to wait until voltages settle
if (startup_inhibit()) {
return;
@@ -325,6 +327,7 @@ void Dcdc::stop()
half_bridge_stop();
state = DCDC_CONTROL_OFF;
off_timestamp = uptime();
output_hvs_disable();
}
void Dcdc::fuse_destruction()
+1 -1
View File
@@ -181,7 +181,7 @@ private:
void output_hvs_enable();
/**
* Disable the reverse polarity MOSFET on the high-sied (if option available)
* Disable the reverse polarity MOSFET on the high-side (if option available)
*/
void output_hvs_disable();