USB charging output control via LoadOutput class

- Introduce new CONFIG_HAS_USB_PWR_OUTPUT
- Improve charger.discharge_control function
- Add battery empty flag
This commit is contained in:
Martin Jäger
2020-03-02 11:55:38 +01:00
parent 1a9c290485
commit daf43fb967
23 changed files with 144 additions and 61 deletions
+5
View File
@@ -38,8 +38,13 @@ extern Charger charger;
extern BatConf bat_conf;
extern BatConf bat_conf_user;
#if CONFIG_HAS_LOAD_OUTPUT
extern LoadOutput load;
#endif
#if CONFIG_HAS_USB_PWR_OUTPUT
extern LoadOutput usb_pwr;
#endif
extern ThingSet ts; // defined in data_objects.cpp