Пример #1
0
int main(){
	system("reset");
	resetServer();
	commandInterpreter();
	printf("\n");
	return 0;
}
Пример #2
0
void serialHandler(void)
{
    char input = console.getc();
    if (input != '\n' && input != '\r'){
        buffer[bufferIndex++] = input;
    }
    commandInterpreter();
}
Пример #3
0
/**
 * handler for the serial interrupt, ignores \r and \n characters
 */
void serialHandler(void)
{
    char input = console.getc();
    if ((input != '\n') && (input != '\r')) {
        consoleInputBuffer[consoleBufferIndex++] = input;
    } else {
        commandInterpreter();
    }
}