diff --git a/Core/Inc/TMP1075.h b/Core/Inc/TMP1075.h index d52088c..345b2fe 100644 --- a/Core/Inc/TMP1075.h +++ b/Core/Inc/TMP1075.h @@ -4,10 +4,14 @@ #include "can.h" #include "common_defs.h" #include "stm32f3xx_hal.h" +#include "TMP1075.h" +#include "can-halal.h" +#include "errors.h" #include extern uint32_t tmp1075_failed_sensors; extern int16_t tmp1075_temps[N_TEMP_SENSORS]; + HAL_StatusTypeDef tmp1075_init(I2C_HandleTypeDef* hi2c); HAL_StatusTypeDef tmp1075_measure(); HAL_StatusTypeDef tmp1075_sensor_init(int n); diff --git a/Core/Src/TMP1075.c b/Core/Src/TMP1075.c index 0d5f566..9fd4aae 100644 --- a/Core/Src/TMP1075.c +++ b/Core/Src/TMP1075.c @@ -1,9 +1,5 @@ #include "TMP1075.h" -#include "can-halal.h" - -#include "errors.h" - #define MAX_TEMP ((int16_t)(59 / 0.0625f)) #define MAX_FAILED_TEMP 12 //TODO: change value for compliance with the actual number of sensors #warning "change value for compliance with the actual number of sensors"