/* * File: main.c * Author: Sebastian H. Gabrielli, Helle Augland Grasmo * * Created on March 6, 2024, 12:34 PM */ #include #include "uart.h" #include "voltage.h" #define RTC_PERIOD (511) #define DELAY_TIME 1000 #include "eeprom.h" #include #include #include #include #define F_CPU 4E6 #include "command-handler.h" #include "i2c.h" #include "themistor-temp.h" #include "uart.h" #include #include #include // Fan history variables volatile uint16_t fan1_history[512] = {1, 2, 3, 4}; volatile uint16_t fan2_history[512] = {2, 3, 4, 5}; int main() { init_uart((uint16_t)9600); init_i2c(); stdout = &USART_stream; PORTB.DIRSET = PIN3_bm; sei(); while (1) { ; } }