Rev 2916 Rev 3083
Line 1... Line 1...
1 /**** Automatic weather station 01A ****/ 1 /**** Automatic weather station 01A ****/
2 #define VERSION "0.1" 2 #define VERSION "0.1"
3 #define ID "$Id: main.c 2916 2013-04-14 17:42:03Z kaklik $" 3 #define ID "$Id: main.c 3083 2013-06-18 10:50:31Z kaklik $"
4 #include "main.h" 4 #include "main.h"
5 #include ".\common\dbloader.h" 5 #include ".\common\dbloader.h"
6 #include <string.h> 6 #include <string.h>
7   7  
8 #CASE // Case sensitive compiler 8 #CASE // Case sensitive compiler
Line 40... Line 40...
40 set_timer0(0); 40 set_timer0(0);
41 set_timer1(0); 41 set_timer1(0);
42 output_toggle(PIN_E0); 42 output_toggle(PIN_E0);
43 } 43 }
44   44  
45 #int_TIMER0 45 #int_TIMER0 // anemometr pulses counting timer owerflow
46 void TIMER0_isr(void) 46 void TIMER0_isr(void)
47 { 47 {
48 timer0_overflow_count++; 48 timer0_overflow_count++;
49 } 49 }
50   50