mikrokontrollersystemer-pro.../prosjekt.X/fan_speeeed.h
2024-04-09 14:53:32 +02:00

43 lines
695 B
C

/*
* File: fanseeeed.h
* Author: inami
*
* Created on 13. mars 2024, 13:38
*/
#ifndef FANSEEEED_H
#define FANSEEEED_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdbool.h>
#include <float.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <math.h>
#include <avr/interrupt.h>
#include <avr/io.h>
#include <avr/cpufunc.h>
volatile uint16_t voltage_value_counter = 0;
int timer_period = 1;
int fan_speed;
void TCA0_init ();
void PORT_init();
void TCA0_update_period_ms ();
int read_input_get_RPM();
int interrpt();
#ifdef __cplusplus
}
#endif
#endif /* FANSEEEED_H */