6 * @purpose Implementation of parsing function
\r
12 #include "commands.h" // The parsing function calls the required command
\r
13 #include "LCD_functions.h"
\r
18 uint8 ParseCommand()
\r
23 char c = USART_Rx();
\r
24 //LCD_puts("input");
\r
25 char arg[MAX_TOKEN_SIZE];
\r
31 arg[i] = USART_Rx();
\r
47 while ((arg[i-1] != '\0') && (i < MAX_TOKEN_SIZE));
\r
48 USART_printf("\r\n");
\r
49 if (arg[i-1] != '\0')
\r
52 USART_printf("?\r\n");
\r
59 command funct = NULL;
\r
74 funct = &set_timeout;
\r
80 funct = &set_averages;
\r
89 if (funct == NULL || funct(arg) != 0)
\r
92 USART_printf("?\r\n");
\r