mikrokontrollersystemer-pro.../prosjekt.X/main.c

43 lines
746 B
C
Raw Permalink Normal View History

/*
* 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
#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-04-21 10:43:51 +00:00
#define F_CPU 4000000UL
int main(void) {
init_uart((uint16_t)9600);
stdout = &USART_stream;
2024-04-26 13:20:28 +00:00
init_TCA0();
2024-04-27 16:45:04 +00:00
init_fan_gpio();
init_AC0();
init_AC1();
2024-04-21 10:43:51 +00:00
sei();
2024-04-27 16:45:04 +00:00
2024-04-21 10:43:51 +00:00
while (1) {
2024-04-26 13:13:45 +00:00
;
2024-04-21 10:43:51 +00:00
}
}