Remove all board.h files

Final updates to devicetree files (adding temperature sensor information) make
board.h files obsolete.
This commit is contained in:
Martin Jäger
2020-07-23 17:34:41 +02:00
parent 27cdcb3bf6
commit dc4576c8b4
31 changed files with 45 additions and 187 deletions
+21
View File
@@ -0,0 +1,21 @@
/*
* Copyright (c) 2018 Martin Jäger / Libre Solar
*
* SPDX-License-Identifier: Apache-2.0
*/
// PWM charge controller
#define CONFIG_PWM_TERMINAL_SOLAR 1
// MPPT buck/boost or nanogrid mode
#define CONFIG_HV_TERMINAL_SOLAR 1
#define CONFIG_HV_TERMINAL_NANOGRID 0
// battery always assumed to be at low-voltage terminal (might need to be changed for boost mode)
#define CONFIG_LV_TERMINAL_BATTERY 1
#define CONFIG_THINGSET_EXPERT_PASSWORD "expert123"
#define CONFIG_THINGSET_MAKER_PASSWORD "maker456"
// Values that are otherwise defined by Kconfig
#define CONFIG_CONTROL_FREQUENCY 10 // Hz
-40
View File
@@ -1,40 +0,0 @@
/*
* Copyright (c) 2018 Martin Jäger / Libre Solar
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef PCB_STUB_H
#define PCB_STUB_H
// PWM charge controller
#define CONFIG_PWM_TERMINAL_SOLAR DT_NODE_EXISTS(DT_CHILD(DT_PATH(outputs), pwm_switch))
// MPPT buck/boost or nanogrid mode
#define CONFIG_HV_TERMINAL_SOLAR DT_NODE_EXISTS(DT_PATH(dcdc))
#define CONFIG_HV_TERMINAL_NANOGRID 0
// battery always assumed to be at low-voltage terminal (might need to be changed for boost mode)
#define CONFIG_LV_TERMINAL_BATTERY 1
// basic battery configuration
#define BATTERY_TYPE BAT_TYPE_GEL ///< GEL most suitable for general batteries (see battery.h for other types)
#define BATTERY_NUM_CELLS 6 ///< For lead-acid batteries: 6 for 12V system, 12 for 24V system
#define BATTERY_CAPACITY 40 ///< Cell capacity or sum of parallel cells capacity (Ah)
#define CONFIG_DEVICE_ID 12345678
#define CONFIG_THINGSET_EXPERT_PASSWORD "expert123"
#define CONFIG_THINGSET_MAKER_PASSWORD "maker456"
// Values that are otherwise defined by Kconfig
#define CONFIG_CONTROL_FREQUENCY 10 // Hz
// pin definition only needed in adc_dma.cpp to detect if they are present on the PCB
#define PIN_ADC_TEMP_BAT
// typical value for Semitec 103AT-5 thermistor: 3435
#define NTC_BETA_VALUE 3435
#define NTC_SERIES_RESISTOR 8200.0
#endif
+2
View File
@@ -36,6 +36,8 @@
* ADC
*/
#define DT_N_S_adc_inputs_S_temp_bat_EXISTS 1
#define DT_N_S_adc_inputs_S_temp_bat_P_multiplier 10000
#define DT_N_S_adc_inputs_S_temp_bat_P_divider 1
#define DT_N_S_adc_inputs_S_v_high_P_multiplier 105600
#define DT_N_S_adc_inputs_S_v_high_P_divider 5600
+1
View File
@@ -13,6 +13,7 @@
#include "devicetree.h"
#include "devicetree_unfixed.h"
#include "autoconf.h"
#ifndef __deprecated
#define __deprecated __attribute__((deprecated))