|
@@ -3,10 +3,10 @@
|
|
|
#include "ti_msp_dl_config.h"
|
|
#include "ti_msp_dl_config.h"
|
|
|
#include "src/peripherals/dac/dac.h"
|
|
#include "src/peripherals/dac/dac.h"
|
|
|
#include "src/peripherals/adc/adc.h"
|
|
#include "src/peripherals/adc/adc.h"
|
|
|
-#include "src/peripherals/i2c_controller_interface.h"
|
|
|
|
|
|
|
+#include "src/interfaces/i2c_controller_interface.h"
|
|
|
// we need the itnerface for the ADC_TARGET_BASE_ADDRESS constant
|
|
// we need the itnerface for the ADC_TARGET_BASE_ADDRESS constant
|
|
|
// refactor this somewhen to a general constants file
|
|
// refactor this somewhen to a general constants file
|
|
|
-#include "src/adc/adc_interface.h"
|
|
|
|
|
|
|
+#include "src/peripherals/adc/adc_interface.h"
|
|
|
|
|
|
|
|
// Permissible charge temperature for LiIon battery is 0.0 degree Celsius to 45.0 degree Celsius
|
|
// Permissible charge temperature for LiIon battery is 0.0 degree Celsius to 45.0 degree Celsius
|
|
|
// Correct temp_threshold yet to be analyzed
|
|
// Correct temp_threshold yet to be analyzed
|
|
@@ -60,7 +60,7 @@ static void batteryslots_init() {
|
|
|
*battery_slots[i].state = SLOT_ERR_NO_DAC;
|
|
*battery_slots[i].state = SLOT_ERR_NO_DAC;
|
|
|
}
|
|
}
|
|
|
// Error state - no I2C on bus - we cannot continue.
|
|
// Error state - no I2C on bus - we cannot continue.
|
|
|
- return
|
|
|
|
|
|
|
+ return;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
for(uint8_t i=0; i< NUM_SLOTS; i++){
|
|
for(uint8_t i=0; i< NUM_SLOTS; i++){
|