diff options
author | Keith Packard <keithp@keithp.com> | 2011-04-01 14:10:37 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-04-01 14:10:37 -0700 |
commit | 4f243a282f9aeb7433ccb2942850d380a091e603 (patch) | |
tree | 4449a8fc61aa730246f4aa275fa95b3f89a0ea66 /src | |
parent | 39bde78edc863d9d2ef50a59b8f28ab6274892b4 (diff) |
altos: Remove serial monitor command
This takes up space and isn't that useful these days
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/ao_serial.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/ao_serial.c b/src/ao_serial.c index b8e9d2bf..d6395810 100644 --- a/src/ao_serial.c +++ b/src/ao_serial.c @@ -58,8 +58,6 @@ ao_serial_tx1_isr(void) __interrupt 14 ao_wakeup(&ao_usart1_tx_fifo); } -static __pdata serial_echo; - char ao_serial_getchar(void) __critical { @@ -67,13 +65,6 @@ ao_serial_getchar(void) __critical while (ao_fifo_empty(ao_usart1_rx_fifo)) ao_sleep(&ao_usart1_rx_fifo); ao_fifo_remove(ao_usart1_rx_fifo, c); - if (serial_echo) { - printf("%02x ", ((int) c) & 0xff); - if (c >= ' ') - putchar(c); - putchar('\n'); - flush(); - } return c; } @@ -116,18 +107,6 @@ ao_serial_drain(void) __critical ao_sleep(&ao_usart1_tx_fifo); } -static void -monitor_serial(void) -{ - ao_cmd_hex(); - serial_echo = ao_cmd_lex_i != 0; -} - -__code struct ao_cmds ao_serial_cmds[] = { - { monitor_serial, "M <enable>\0Monitor serial data" }, - { 0, NULL }, -}; - static const struct { uint8_t baud; uint8_t gcr; @@ -189,8 +168,6 @@ ao_serial_init(void) IEN0 |= IEN0_URX1IE; IEN2 |= IEN2_UTX1IE; - - ao_cmd_register(&ao_serial_cmds[0]); #if 0 #if USE_SERIAL_STDIN ao_add_stdio(ao_serial_pollchar, |