Line 1... |
Line 1... |
1 |
/**** IR Mrakomer 4 ****/ |
1 |
/**** IR Mrakomer 4 ****/ |
2 |
#define VERSION "4.1" |
2 |
#define VERSION "4.1" |
3 |
#define ID "$Id: irmrak4.c 1958 2011-04-24 14:44:01Z kakl $" |
3 |
#define ID "$Id: irmrak4.c 2177 2011-09-05 18:56:16Z kaklik $" |
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 48... |
Line 48... |
48 |
void welcome(void) // Welcome message |
48 |
void welcome(void) // Welcome message |
49 |
{ |
49 |
{ |
50 |
char REV[50]=ID; // Buffer for concatenate of a version string |
50 |
char REV[50]=ID; // Buffer for concatenate of a version string |
51 |
|
51 |
|
52 |
if (REV[strlen(REV)-1]=='$') REV[strlen(REV)-1]=0; |
52 |
if (REV[strlen(REV)-1]=='$') REV[strlen(REV)-1]=0; |
53 |
printf("\r\n\r\n# Mrakomer %s (C) 2007 UST\n\r",VER); // Welcome message |
53 |
printf("\r\n\r\n# Mrakomer %s (C) 2011 UST\r\n",VER); // Welcome message |
54 |
printf("#%s\r\n",&REV[4]); |
54 |
printf("#%s\r\n",&REV[4]); |
55 |
// printf("#\r\n"); |
55 |
// printf("#\r\n"); |
56 |
// printf("# commands: h, c, o, l, x, i, r, a, s, u\r\n"); |
56 |
// printf("# commands: h, c, o, l, x, i, r, a, s, u\r\n"); |
57 |
// printf("# h_eat, c_old, o_pen, l_ock, x_open, "); |
57 |
// printf("# h_eat, c_old, o_pen, l_ock, x_open, "); |
58 |
// printf("i_nfo, r_epeat, a_uto, s_single, u_pdate\r\n"); |
58 |
// printf("i_nfo, r_epeat, a_uto, s_single, u_pdate\r\n"); |