| 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 2818 2013-03-10 12:59:05Z kaklik $" | 3 | #define ID "$Id: main.c 2820 2013-03-10 14:37:47Z kaklik $" | 
      
        | 4 | #include "main.h" | 4 | #include "main.h" | 
      
        | 5 | #include <string.h> | 5 | #include <string.h> | 
      
        | 6 |   | 6 |   | 
      
        | 7 | #CASE    // Case sensitive compiler | 7 | #CASE    // Case sensitive compiler | 
      
        | 8 |   | 8 |   | 
      
        | Line 73... | Line 73... | 
      
        | 73 |    setup_comparator(NC_NC_NC_NC);      // This device COMP currently not supported by the PICWizard | 73 |    setup_comparator(NC_NC_NC_NC);      // This device COMP currently not supported by the PICWizard | 
      
        | 74 |    setup_oscillator(OSC_8MHZ); | 74 |    setup_oscillator(OSC_8MHZ); | 
      
        | 75 |    setup_wdt(WDT_1152MS|WDT_DIV_16); | 75 |    setup_wdt(WDT_1152MS|WDT_DIV_16); | 
      
        | 76 |    setup_spi(SPI_MASTER | SPI_MODE_0 | SPI_CLK_DIV_64); | 76 |    setup_spi(SPI_MASTER | SPI_MODE_0 | SPI_CLK_DIV_64); | 
      
        | 77 |    output_high(CSN_SPI); | 77 |    output_high(CSN_SPI); | 
      
        | 78 |    enable_interrupts(INT_TIMER1); | 78 | //   enable_interrupts(INT_TIMER1); | 
      
        | 79 |    enable_interrupts(INT_TIMER0); | 79 | //   enable_interrupts(INT_TIMER0); | 
      
        | 80 |    enable_interrupts(GLOBAL); | 80 | //   enable_interrupts(GLOBAL); | 
      
        | 81 |   | 81 |   | 
      
        | 82 |   | 82 |   | 
      
        | 83 |    delay_ms(100);  | 83 |    delay_ms(100);  | 
      
        | 84 |   | 84 |   | 
      
        | 85 |    welcome(); | 85 |    welcome(); |