Save all measured temperatures
This commit is contained in:
@ -13,7 +13,10 @@
|
||||
#include "stm32f4xx_hal.h"
|
||||
#include "stm32f4xx_hal_uart.h"
|
||||
|
||||
extern volatile uint16_t temperatures[N_CELLS];
|
||||
#define N_SENSORS 32
|
||||
|
||||
extern volatile uint16_t temperatures[N_SENSORS];
|
||||
extern volatile uint16_t max_temp;
|
||||
|
||||
typedef enum {
|
||||
TMP144_IDLE,
|
||||
@ -29,7 +32,6 @@ typedef struct {
|
||||
uint8_t rxbuf[34];
|
||||
|
||||
size_t n_sensors;
|
||||
uint8_t sensor_mappings[16];
|
||||
} TMP144Bus;
|
||||
|
||||
HAL_StatusTypeDef tmp144_init(UART_HandleTypeDef* busbar_side,
|
||||
|
||||
Reference in New Issue
Block a user