Added main.h for common includes and extern variables

This commit is contained in:
Martin Jaeger
2019-10-16 12:03:49 +02:00
parent 0545131a99
commit cce6e2a9b3
4 changed files with 42 additions and 48 deletions
+2 -18
View File
@@ -14,6 +14,8 @@
* limitations under the License.
*/
#include "main.h"
#include "pcb.h"
#include "config.h"
#include "version.h"
@@ -22,28 +24,10 @@
#ifndef CUSTOM_DATA_OBJECTS_FILE
#include "thingset.h"
#include "bat_charger.h"
#include "log.h"
#include "dcdc.h"
#include "load.h"
#include "hardware.h"
#include "eeprom.h"
#include "pwm_switch.h"
#include <stdio.h>
extern LogData log_data;
extern Charger charger;
extern BatConf bat_conf;
extern BatConf bat_conf_user;
extern Dcdc dcdc;
extern LoadOutput load;
extern DcBus hv_terminal;
extern DcBus lv_terminal;
extern DcBus load_terminal;
//extern DcBus *bat_terminal; // TODO: pointers cannot be used here, as they are not
//extern DcBus *solar_terminal; // yet initialized...
extern PwmSwitch pwm_switch;
const char* const manufacturer = "Libre Solar";
const char* const device_type = DEVICE_TYPE;
const char* const hardware_version = HARDWARE_VERSION;