2024-03-20 14:25:59 +00:00
|
|
|
/*
|
|
|
|
|
* File: main.c
|
|
|
|
|
* Author: Sebastian H. Gabrielli
|
|
|
|
|
*
|
|
|
|
|
* Created on March 6, 2024, 12:34 PM
|
|
|
|
|
*/
|
|
|
|
|
#include "voltage.h"
|
|
|
|
|
#include "uart.h"
|
|
|
|
|
#define RTC_PERIOD (511)
|
|
|
|
|
#define DELAY_TIME 1000
|
|
|
|
|
#include <avr/io.h>
|
|
|
|
|
#include <avr/interrupt.h>
|
|
|
|
|
#include <util/delay.h>
|
|
|
|
|
#include <string.h>
|
|
|
|
|
#include <stdbool.h>
|
2024-04-09 13:39:11 +00:00
|
|
|
//#define F_CPU 4E6
|
2024-03-20 14:25:59 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
#include "uart.h"
|
|
|
|
|
#include <util/delay.h>
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
#include "themistor-temp.h"
|
2024-03-20 14:27:59 +00:00
|
|
|
#include "fan_speeeed.h"
|
2024-03-20 14:25:59 +00:00
|
|
|
|
2024-04-21 10:43:51 +00:00
|
|
|
#define F_CPU 4000000UL
|
|
|
|
|
|
|
|
|
|
#include <avr/io.h>
|
|
|
|
|
#include <avr/interrupt.h>
|
|
|
|
|
#include <util/delay.h>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int main(void) {
|
|
|
|
|
|
|
|
|
|
init_uart((uint16_t)9600);
|
|
|
|
|
stdout = &USART_stream;
|
|
|
|
|
|
|
|
|
|
sei();
|
|
|
|
|
|
2024-04-25 10:29:10 +00:00
|
|
|
PIN2_bm
|
|
|
|
|
|
2024-04-21 10:43:51 +00:00
|
|
|
/* Replace with your application code */
|
|
|
|
|
while (1) {
|
|
|
|
|
}
|
|
|
|
|
}
|