added echo command for testing simpleuart
This commit is contained in:
parent
9b70921103
commit
672c99b71e
|
@ -550,6 +550,14 @@ void cmd_benchmark_all()
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
void cmd_echo()
|
||||||
|
{
|
||||||
|
print("Return to menu by sending '!'\n\n");
|
||||||
|
char c;
|
||||||
|
while ((c = getchar()) != '!')
|
||||||
|
putchar(c);
|
||||||
|
}
|
||||||
|
|
||||||
// --------------------------------------------------------
|
// --------------------------------------------------------
|
||||||
|
|
||||||
void main()
|
void main()
|
||||||
|
@ -611,6 +619,7 @@ void main()
|
||||||
print(" [7] Toggle continuous read mode\n");
|
print(" [7] Toggle continuous read mode\n");
|
||||||
print(" [9] Run simplistic benchmark\n");
|
print(" [9] Run simplistic benchmark\n");
|
||||||
print(" [0] Benchmark all configs\n");
|
print(" [0] Benchmark all configs\n");
|
||||||
|
print(" [e] Echo UART\n");
|
||||||
print("\n");
|
print("\n");
|
||||||
|
|
||||||
for (int rep = 10; rep > 0; rep--)
|
for (int rep = 10; rep > 0; rep--)
|
||||||
|
@ -650,6 +659,9 @@ void main()
|
||||||
case '0':
|
case '0':
|
||||||
cmd_benchmark_all();
|
cmd_benchmark_all();
|
||||||
break;
|
break;
|
||||||
|
case 'e':
|
||||||
|
cmd_echo();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue