mikrokontrollersystemer-pro.../prosjekt.X/fan_speeeed.h

43 lines
695 B
C
Raw Normal View History

2024-03-13 12:39:35 +00:00
/*
* File: fanseeeed.h
* Author: inami
*
* Created on 13. mars 2024, 13:38
*/
2024-03-19 11:59:56 +00:00
2024-03-13 12:39:35 +00:00
#ifndef FANSEEEED_H
#define FANSEEEED_H
#ifdef __cplusplus
extern "C" {
#endif
2024-03-20 11:33:03 +00:00
#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>
2024-03-13 12:39:35 +00:00
2024-04-09 12:53:32 +00:00
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();
2024-03-13 12:39:35 +00:00
#ifdef __cplusplus
}
#endif
#endif /* FANSEEEED_H */