moved libraries to .h file

This commit is contained in:
Hamza 2024-05-28 18:40:05 +02:00
parent fcc8f54fe0
commit 2c1171e830
2 changed files with 4 additions and 4 deletions

View File

@ -4,10 +4,14 @@
#include "can.h" #include "can.h"
#include "common_defs.h" #include "common_defs.h"
#include "stm32f3xx_hal.h" #include "stm32f3xx_hal.h"
#include "TMP1075.h"
#include "can-halal.h"
#include "errors.h"
#include <stdint.h> #include <stdint.h>
extern uint32_t tmp1075_failed_sensors; extern uint32_t tmp1075_failed_sensors;
extern int16_t tmp1075_temps[N_TEMP_SENSORS]; extern int16_t tmp1075_temps[N_TEMP_SENSORS];
HAL_StatusTypeDef tmp1075_init(I2C_HandleTypeDef* hi2c); HAL_StatusTypeDef tmp1075_init(I2C_HandleTypeDef* hi2c);
HAL_StatusTypeDef tmp1075_measure(); HAL_StatusTypeDef tmp1075_measure();
HAL_StatusTypeDef tmp1075_sensor_init(int n); HAL_StatusTypeDef tmp1075_sensor_init(int n);

View File

@ -1,9 +1,5 @@
#include "TMP1075.h" #include "TMP1075.h"
#include "can-halal.h"
#include "errors.h"
#define MAX_TEMP ((int16_t)(59 / 0.0625f)) #define MAX_TEMP ((int16_t)(59 / 0.0625f))
#define MAX_FAILED_TEMP 12 //TODO: change value for compliance with the actual number of sensors #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" #warning "change value for compliance with the actual number of sensors"