| 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 1303 2009-01-17 09:06:15Z kakl $" |
3 |
#define ID "$Id: irmrak4.c 1304 2009-01-17 09:15:46Z 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 47... |
Line 47... |
| 47 |
void welcome(void) // Welcome message |
47 |
void welcome(void) // Welcome message |
| 48 |
{ |
48 |
{ |
| 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\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("#\n\r"); |
| 54 |
printf("# h - Switch on heating for 20s.\n\r"); |
55 |
printf("# h - Switch On Heating for 20s.\n\r"); |
| 55 |
printf("# c - Need Colder. Switch off heating.\n\r"); |
56 |
printf("# c - Need Colder. Switch Off Heating.\n\r"); |
| 56 |
printf("# o - Open the Dome for 20s.\n\r"); |
57 |
printf("# o - Open the Dome for 20s.\n\r"); |
| 57 |
printf("# l - Lock the dome.\n\r"); |
58 |
printf("# l - Lock the dome.\n\r"); |
| 58 |
printf("# x - Open the Dome and switch on heating.\n\r"); |
59 |
printf("# x - Open the Dome and switch On Heating.\n\r"); |
| 59 |
printf("# i - Print this Information.\n\r"); |
60 |
printf("# i - Print this Information.\n\r"); |
| 60 |
printf("# r - Repeat measure every second.\n\r"); |
61 |
printf("# r - Repeat measure every second.\n\r"); |
| 61 |
printf("# s - Single measure mode on demand.\n\r"); |
62 |
printf("# s - Single measure mode on demand.\n\r"); |
| 62 |
printf("# u - Update firmware. Go to the Boot Loader.\n\r"); |
63 |
printf("# u - Update firmware. Go to the Boot Loader.\n\r"); |
| 63 |
printf("#\n\r"); |
64 |
printf("#\n\r"); |