DMA for ADC implemented, mbed Ticker removed, files restructured

- DMA partly uses ST HAL API (to be improved in further versions)
- When using mbed ticker to trigger ADC, the program might stall --> use own timer instead
- C++ libraries changed to more simple C-style functions and files (better compatibility with plain C environments)
This commit is contained in:
Martin Jäger
2018-03-10 14:21:49 +01:00
parent efa5ac2bbd
commit 4aa51fbe25
25 changed files with 808 additions and 1107 deletions
+2 -2
View File
@@ -47,7 +47,7 @@ struct CalibrationData {
int32_t dcdc_restart_interval = 60; // s --> when should we retry to start charging after low solar power cut-off?
float solar_voltage_offset_start = 5.0; // V charging switched on if Vsolar > Vbat + offset
float solar_voltage_offset_stop = 1.0; // V charging switched off if Vsolar < Vbat + offset
int32_t thermistorBetaValue = 3435; // typical value for Semitec 103AT-5 thermistor: 3435
int32_t thermistor_beta_value = 3435; // typical value for Semitec 103AT-5 thermistor: 3435
};
extern CalibrationData cal;
@@ -132,7 +132,7 @@ static const DataObject_t dataObjects[] {
{++oid, ACCESS_READ | ACCESS_WRITE, TS_C_CAL, T_INT32, 0, (void*) &(cal.dcdc_restart_interval), "tDcdcRestart"},
{++oid, ACCESS_READ | ACCESS_WRITE, TS_C_CAL, T_FLOAT32, 0, (void*) &(cal.solar_voltage_offset_start), "vSolarOffsetStart"},
{++oid, ACCESS_READ | ACCESS_WRITE, TS_C_CAL, T_FLOAT32, 0, (void*) &(cal.solar_voltage_offset_stop), "vSolarOffsetStop"},
{++oid, ACCESS_READ | ACCESS_WRITE, TS_C_CAL, T_INT32, 0, (void*) &(cal.thermistorBetaValue), "thermistorBetaValue"}
{++oid, ACCESS_READ | ACCESS_WRITE, TS_C_CAL, T_INT32, 0, (void*) &(cal.thermistor_beta_value), "thermistorBetaValue"}
};
#endif