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 1300 2009-01-17 08:41:49Z kakl $" |
3 |
#define ID "$Id: irmrak4.c 1301 2009-01-17 08:51:50Z 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 49... |
Line 49... |
49 |
char REV[50]=ID; // Buffer for concatenate of a version string |
49 |
char REV[50]=ID; // Buffer for concatenate of a version string |
50 |
|
50 |
|
51 |
if (REV[strlen(REV)-1]=='$') REV[strlen(REV)-1]=0; |
51 |
if (REV[strlen(REV)-1]=='$') REV[strlen(REV)-1]=0; |
52 |
printf("\n\r# Mrakomer %s (C) 2007 KAKL\n\r",VER); // Welcome message |
52 |
printf("\n\r# Mrakomer %s (C) 2007 KAKL\n\r",VER); // Welcome message |
53 |
printf("#%s\n\r",&REV[4]); |
53 |
printf("#%s\n\r",&REV[4]); |
- |
|
54 |
printf("# h - Switch on heating for 20s.\n\r"); |
- |
|
55 |
printf("# c - Need Colder. Switch off heating.\n\r"); |
- |
|
56 |
printf("# o - Open the Dome for 20s.\n\r"); |
- |
|
57 |
printf("# l - Lock the dome.\n\r"); |
- |
|
58 |
printf("# x - Open the Dome and switch on heating.\n\r"); |
- |
|
59 |
printf("# i - Print this Information.\n\r"); |
- |
|
60 |
printf("# r - Repeat measure every second.\n\r"); |
- |
|
61 |
printf("# s - Single measure mode on demand.\n\r"); |
- |
|
62 |
printf("# U - Update firmware. Go to the Boot Loader.\n\r"); |
- |
|
63 |
printf("#\n\r"); |
54 |
printf("# <sequence> <ambient[1/100 C]> <sky[1/100 C]> "); |
64 |
printf("# <sequence> <ambient[1/100 C]> <sky[1/100 C]> "); |
55 |
printf("<heating[s]> <dome[s]> <check>\n\r\n\r"); |
65 |
printf("<heating[s]> <dome[s]> <check>\n\r\n\r"); |
56 |
} |
66 |
} |
57 |
|
67 |
|
58 |
|
68 |
|