| // SPDX-License-Identifier: GPL-2.0+ |
| * The 'conitrace' command prints the codes received from the console input as |
| * Copyright (c) 2018, Heinrich Schuchardt <xypron.glpk@gmx.de> |
| static int do_conitrace(struct cmd_tbl *cmdtp, int flag, int argc, |
| printf("Waiting for your input\n"); |
| printf("To terminate type 'x'\n"); |
| if (first && (c == 'x' || c == 'X')) |
| /* 1 ms delay - serves to detect separate keystrokes */ |
| #ifdef CONFIG_SYS_LONGHELP |
| static char conitrace_help_text[] = ""; |
| conitrace, 2, 0, do_conitrace, |
| conitrace_help_text, NULL |