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 1304 2009-01-17 09:15:46Z kakl $" |
3 |
#define ID "$Id: irmrak4.c 1306 2009-01-17 12:25:40Z 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 53... |
Line 53... |
53 |
printf("#%s\n\r",&REV[4]); |
53 |
printf("#%s\n\r",&REV[4]); |
54 |
printf("#\n\r"); |
54 |
printf("#\n\r"); |
55 |
printf("# h - Switch On Heating for 20s.\n\r"); |
55 |
printf("# h - Switch On Heating for 20s.\n\r"); |
56 |
printf("# c - Need Colder. Switch Off Heating.\n\r"); |
56 |
printf("# c - Need Colder. Switch Off Heating.\n\r"); |
57 |
printf("# o - Open the Dome for 20s.\n\r"); |
57 |
printf("# o - Open the Dome for 20s.\n\r"); |
58 |
printf("# l - Lock the dome.\n\r"); |
58 |
printf("# l - Lock the Dome.\n\r"); |
59 |
printf("# x - Open the Dome and switch On Heating.\n\r"); |
59 |
printf("# x - Open the Dome and switch On Heating.\n\r"); |
60 |
printf("# i - Print this Information.\n\r"); |
60 |
printf("# i - Print this Information.\n\r"); |
61 |
printf("# r - Repeat measure every second.\n\r"); |
61 |
printf("# r - Repeat measure every second.\n\r"); |
62 |
printf("# s - Single measure mode on demand.\n\r"); |
62 |
printf("# s - Single measure.\n\r"); |
63 |
printf("# u - Update firmware. Go to the Boot Loader.\n\r"); |
63 |
printf("# u - Update firmware. Go to the Boot Loader.\n\r"); |
64 |
printf("#\n\r"); |
64 |
printf("#\n\r"); |
65 |
printf("# <sequence> <ambient[1/100 C]> <sky[1/100 C]> "); |
65 |
printf("# <sequence> <ambient[1/100 C]> <sky[1/100 C]> "); |
66 |
printf("<heating[s]> <dome[s]> <check>\n\r\n\r"); |
66 |
printf("<heating[s]> <dome[s]> <check>\n\r\n\r"); |
67 |
//---WDT |
67 |
//---WDT |