comparison sw/mcsi-rxtx/usercmd.c @ 13:315428573a25

fc-mcsi-rxtx: implement record function
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 28 Oct 2024 07:24:53 +0000
parents 23555b9a1c20
children
comparison
equal deleted inserted replaced
12:23555b9a1c20 13:315428573a25
11 11
12 extern char usercmd[]; 12 extern char usercmd[];
13 13
14 extern void cmd_pcm_fill(); 14 extern void cmd_pcm_fill();
15 extern void cmd_print_rx(); 15 extern void cmd_print_rx();
16 extern void cmd_record();
17 extern void cmd_record_stop();
16 18
17 static void 19 static void
18 cmd_exit() 20 cmd_exit()
19 { 21 {
20 tty_cleanup(); 22 tty_cleanup();
29 } cmdtab[] = { 31 } cmdtab[] = {
30 {"exit", 0, 0, cmd_exit}, 32 {"exit", 0, 0, cmd_exit},
31 {"pcm-fill", 0, 1, cmd_pcm_fill}, 33 {"pcm-fill", 0, 1, cmd_pcm_fill},
32 {"print-rx", 0, 0, cmd_print_rx}, 34 {"print-rx", 0, 0, cmd_print_rx},
33 {"quit", 0, 0, cmd_exit}, 35 {"quit", 0, 0, cmd_exit},
36 {"record", 1, 1, cmd_record},
37 {"record-stop", 0, 0, cmd_record_stop},
38 /* table search terminator */
34 {0, 0, 0, 0} 39 {0, 0, 0, 0}
35 }; 40 };
36 41
37 void 42 void
38 dispatch_user_cmd() 43 dispatch_user_cmd()