diff --git a/src/main.c b/src/main.c index 25b1f6f..f33dc7e 100644 --- a/src/main.c +++ b/src/main.c @@ -11,9 +11,14 @@ /* global variables */ volatile uint8_t pwr_ok; +volatile uint8_t fan; +volatile uint16_t tachometer = 0; +volatile uint8_t timer2_ovf = 0; + +const uint16_t TIMER2_PRESCALE[8] = {0,1,8,32,64,128,256,1024}; /* PWR_OK interrupt */ -ISR(PCINT0_vect) { /* PCINT1 is actually triggering PCI0 Interrupt Vector */ +ISR(PCINT0_vect) { /* PCI0 Interrupt Vector for PCINT[7:0] */ if (pwr_ok!=(PINB&(1<