48 lines
880 B
C
48 lines
880 B
C
/*
|
|
* 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>
|
|
//#define F_CPU 4E6
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include "uart.h"
|
|
#include <util/delay.h>
|
|
#include <stdint.h>
|
|
#include "themistor-temp.h"
|
|
#include "fan_speeeed.h"
|
|
|
|
#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;
|
|
init_TCA0();
|
|
TCA0_update_period_ms();
|
|
init_ac0();
|
|
sei();
|
|
|
|
/* Replace with your application code */
|
|
while (1) {
|
|
//printf("loop")
|
|
;
|
|
}
|
|
} |