Save all measured temperatures

This commit is contained in:
jazzpi
2022-06-23 13:53:56 +02:00
parent e58b9ffae0
commit 2acde9d565
2 changed files with 18 additions and 42 deletions

View File

@ -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,