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:
@@ -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
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user