application: minor, rename autodetect to tx

This commit is contained in:
King Kévin 2021-05-10 12:34:30 +02:00
parent c98e82fedf
commit d3fbf75b36
2 changed files with 3 additions and 7 deletions

View File

@ -44,7 +44,7 @@ provide as argument the channel you want to monitor.
this works like the `monitor` command, but has the advantage to detect high voltages down to 1.5V (ideal for 1.8V logic).
it will also show the (maximum) frequency of the signal (useful to clock and baud rate measurement).
to detect the configuration of a UART stream, use the `uart_auto` command.
to detect the configuration of a UART stream, use the `uart_tx` command.
provide as argument the channel you want to monitor.
as data comes it, it will figure out the baud rate, data bits, and parity of the stream.
the configuration is displayed as it finds a better match.

View File

@ -568,8 +568,6 @@ void TIM_ISR(FREQUENCY_TIMER)(void)
*/
static void command_monitor_single(void* argument)
{
(void)argument; // we won't use the argument
// get input channel
if (NULL == argument) {
puts("provide channel to monitor\n");
@ -730,8 +728,6 @@ static void uart_configuration_reset(struct uart_configuration_t* configuration)
*/
static void command_uart_autodetect(void* argument)
{
(void)argument; // we won't use the argument
// get input channel
if (NULL == argument) {
puts("provide channel to monitor for UART activity\n");
@ -1397,8 +1393,8 @@ static const struct menu_command_t menu_commands[] = {
},
{
.shortcut = 'a',
.name = "uart_auto",
.command_description = "autodetect UART configuration",
.name = "uart_tx",
.command_description = "autodetect UART configuration of TX pin",
.argument = MENU_ARGUMENT_UNSIGNED,
.argument_description = "CH",
.command_handler = &command_uart_autodetect,