summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-12-04 23:35:40 -0800
committerKeith Packard <keithp@keithp.com>2009-12-04 23:41:19 -0800
commite6d6ad66ce177eb6e49eaa04b1ecc6426f4bbdbf (patch)
tree1b02c2679c651a4b28594ef00fbb623ea799ccc9 /src
parentce7325cefbbe91054c1e8174cf40a6c687f6694b (diff)
Remove send_serial and serial_baud commands.
No longer useful, and they take up space. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r--src/ao_serial.c21
1 files changed, 1 insertions, 20 deletions
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
@@ -86,34 +86,15 @@ ao_serial_drain(void) __critical
}
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)
{
ao_cmd_hex();
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 <data> Send data to serial line" },
{ 'M', monitor_serial, "M <enable> 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 {