DC/DC: Use high/low DcBus instead of PowerPort for control

This makes more sense because the DC/DC converter actually connects two
DcBuses and does not need separate PowerPorts. Also makes the code look
more clean as variable access like dcdc.hvs->bus->voltage is avoided.

The DcBus pointers in the Dcdc are now called hvb and lvb for high-
voltage side bus and low-voltage side bus.
This commit is contained in:
Martin Jäger
2020-11-05 20:42:34 +01:00
parent 0756341b29
commit b63cdaa06d
9 changed files with 122 additions and 105 deletions
-1
View File
@@ -21,7 +21,6 @@ extern PowerPort lv_terminal;
#if DT_NODE_EXISTS(DT_PATH(dcdc))
extern DcBus hv_bus;
extern PowerPort hv_terminal;
extern PowerPort dcdc_lv_port;
extern Dcdc dcdc;
#endif