Switch to ThingSet SDK
This commit is contained in:
+6
-8
@@ -14,19 +14,19 @@
|
||||
|
||||
#include "helper.h"
|
||||
#include "setup.h"
|
||||
#include "thingset.h" // handles access to internal data via communication interfaces
|
||||
|
||||
#include "bat_charger.h" // battery settings and charger state machine
|
||||
#include "daq.h" // ADC using DMA and conversion to measurement values
|
||||
#include "data_objects.h" // for access to internal data via ThingSet
|
||||
#include "data_storage.h" // non-volatile data storage (e.g. EEPROM)
|
||||
#include "dcdc.h" // DC/DC converter control (hardware independent)
|
||||
#include "device_status.h" // log data (error memory, min/max measurements, etc.)
|
||||
#include "half_bridge.h" // PWM generation for DC/DC converter
|
||||
#include "hardware.h" // hardware-related functions like load switch, LED control, watchdog, etc.
|
||||
#include "leds.h" // LED switching using charlieplexing
|
||||
#include "load.h" // load and USB output management
|
||||
#include "hardware.h" // hardware-related functions like load switch, LED control, watchdog, etc.
|
||||
#include "leds.h" // LED switching using charlieplexing
|
||||
#include "load.h" // load and USB output management
|
||||
#if BOARD_HAS_PWM_PORT
|
||||
#include "pwm_switch.h" // PWM charge controller
|
||||
#endif
|
||||
|
||||
int main(void)
|
||||
{
|
||||
@@ -53,7 +53,7 @@ int main(void)
|
||||
grid_terminal.init_nanogrid();
|
||||
#endif
|
||||
|
||||
// read custom configuration from EEPROM
|
||||
// make sure loaded configuration is valid
|
||||
data_objects_init();
|
||||
|
||||
// Data Acquisition (DAQ) setup
|
||||
@@ -122,8 +122,6 @@ int main(void)
|
||||
leds_update_soc(charger.soc, false);
|
||||
#endif
|
||||
|
||||
data_storage_update();
|
||||
|
||||
t_start += 1000;
|
||||
k_sleep(K_TIMEOUT_ABS_MS(t_start));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user