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 2858 2013-03-22 16:04:13Z kaklik $" |
3 |
#define ID "$Id: main.c 2897 2013-04-09 21:20:28Z kakl $" |
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 80... |
Line 80... |
80 |
output_high(CSN_SPI); |
80 |
output_high(CSN_SPI); |
81 |
|
81 |
|
82 |
welcome(); // welcome print and device indentification |
82 |
welcome(); // welcome print and device indentification |
83 |
output_low(PIN_E1); |
83 |
output_low(PIN_E1); |
84 |
|
84 |
|
85 |
//enable_interrupts(INT_TIMER1); // interrupts used for anemometer readings |
85 |
enable_interrupts(INT_TIMER1); // interrupts used for anemometer readings |
86 |
//enable_interrupts(INT_TIMER0); |
86 |
enable_interrupts(INT_TIMER0); |
87 |
// disable_interrupts(INT_RDA); |
87 |
// disable_interrupts(INT_RDA); |
88 |
//enable_interrupts(GLOBAL); |
88 |
enable_interrupts(GLOBAL); |
89 |
output_high(PIN_E1); |
89 |
output_high(PIN_E1); |
90 |
|
90 |
|
91 |
restart_wdt(); //---WDT |
91 |
restart_wdt(); //---WDT |
92 |
|
92 |
|
93 |
sht_init(); |
93 |
sht_init(); |