40 lines
672 B
C
40 lines
672 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>
|
|
|
|
void init_TCA0();
|
|
void TCA0_update_period_ms ();
|
|
uint16_t RPM_calculation(uint16_t fancounter, uint16_t time);
|
|
void init_fanports();
|
|
void init_ac0_fan1();
|
|
void init_ac1_fan2();
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* FANSEEEED_H */
|
|
|