From: Keith Packard Date: Sat, 5 Dec 2009 07:35:40 +0000 (-0800) Subject: Remove send_serial and serial_baud commands. X-Git-Tag: debian/0.6+53+gcd49847~3 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=e6d6ad66ce177eb6e49eaa04b1ecc6426f4bbdbf Remove send_serial and serial_baud commands. No longer useful, and they take up space. Signed-off-by: Keith Packard --- diff --git a/src/ao_serial.c b/src/ao_serial.c index 1e3ea3e3..3f103766 100644 --- a/src/ao_serial.c +++ b/src/ao_serial.c @@ -85,16 +85,6 @@ ao_serial_drain(void) __critical ao_sleep(&ao_usart1_tx_fifo); } -static void -send_serial(void) -{ - ao_cmd_white(); - while (ao_cmd_lex_c != '\n') { - ao_serial_putchar(ao_cmd_lex_c); - ao_cmd_lex(); - } -} - static void monitor_serial(void) { @@ -102,18 +92,9 @@ monitor_serial(void) serial_echo = ao_cmd_lex_i != 0; } -static void -serial_baud(void) -{ - ao_cmd_hex(); - ao_serial_set_speed(ao_cmd_lex_i); -} - __code struct ao_cmds ao_serial_cmds[] = { - { 'S', send_serial, "S Send data to serial line" }, { 'M', monitor_serial, "M Monitor serial data" }, - { 'B', serial_baud, "B <0 = 4800, 1 = 57600> Set serial baud rate" }, - { 0, send_serial, NULL }, + { 0, monitor_serial, NULL }, }; static const struct {