Enable load short circuit comparator

The load driver had to be moved to a .c file to allow attaching interrupt
in Zephyr.
This commit is contained in:
Martin Jäger
2020-05-06 12:53:26 +02:00
parent 9f258b6e69
commit e76709f2af
5 changed files with 57 additions and 35 deletions
+7
View File
@@ -151,3 +151,10 @@ void LoadOutput::set_voltage_limits(float lvd, float lvr, float ov)
overvoltage = ov;
}
extern LoadOutput load;
void load_short_circuit_stop()
{
load.stop(ERR_LOAD_SHORT_CIRCUIT);
}