Rev 1302 Rev 1303
Line 1... Line 1...
1 /**** IR Mrakomer 4 ****/ 1 /**** IR Mrakomer 4 ****/
2 #define VERSION "4.0" 2 #define VERSION "4.0"
3 #define ID "$Id: irmrak4.c 1302 2009-01-17 09:03:34Z kakl $" 3 #define ID "$Id: irmrak4.c 1303 2009-01-17 09:06:15Z kakl $"
4   4  
5 #include "irmrak4.h" 5 #include "irmrak4.h"
6   6  
7 #bit CREN = 0x18.4 // USART registers 7 #bit CREN = 0x18.4 // USART registers
8 #bit SPEN = 0x18.7 8 #bit SPEN = 0x18.7
Line 61... Line 61...
61 printf("# s - Single measure mode on demand.\n\r"); 61 printf("# s - Single measure mode on demand.\n\r");
62 printf("# u - Update firmware. Go to the Boot Loader.\n\r"); 62 printf("# u - Update firmware. Go to the Boot Loader.\n\r");
63 printf("#\n\r"); 63 printf("#\n\r");
64 printf("# <sequence> <ambient[1/100 C]> <sky[1/100 C]> "); 64 printf("# <sequence> <ambient[1/100 C]> <sky[1/100 C]> ");
65 printf("<heating[s]> <dome[s]> <check>\n\r\n\r"); 65 printf("<heating[s]> <dome[s]> <check>\n\r\n\r");
-   66 //---WDT
-   67 restart_wdt();
66 } 68 }
67   69  
68   70  
69 #include "smb.c" // System Management Bus driver 71 #include "smb.c" // System Management Bus driver
70   72  
Line 119... Line 121...
119 heat=0; 121 heat=0;
120 open=0; 122 open=0;
121 repeat=TRUE; 123 repeat=TRUE;
122   124  
123 welcome(); 125 welcome();
124 //---WDT -  
125 restart_wdt(); -  
126   126  
127 tempa=ReadTemp(SA, RAM_Tamb); // Dummy read 127 tempa=ReadTemp(SA, RAM_Tamb); // Dummy read
128 temp=ReadTemp(SA, RAM_Tobj1); 128 temp=ReadTemp(SA, RAM_Tobj1);
129   129  
130 delay_ms(1000); 130 delay_ms(1000);