application: minor, rename autodetect to tx
This commit is contained in:
parent
c98e82fedf
commit
d3fbf75b36
|
@ -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).
|
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).
|
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.
|
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.
|
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.
|
the configuration is displayed as it finds a better match.
|
||||||
|
|
|
@ -568,8 +568,6 @@ void TIM_ISR(FREQUENCY_TIMER)(void)
|
||||||
*/
|
*/
|
||||||
static void command_monitor_single(void* argument)
|
static void command_monitor_single(void* argument)
|
||||||
{
|
{
|
||||||
(void)argument; // we won't use the argument
|
|
||||||
|
|
||||||
// get input channel
|
// get input channel
|
||||||
if (NULL == argument) {
|
if (NULL == argument) {
|
||||||
puts("provide channel to monitor\n");
|
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)
|
static void command_uart_autodetect(void* argument)
|
||||||
{
|
{
|
||||||
(void)argument; // we won't use the argument
|
|
||||||
|
|
||||||
// get input channel
|
// get input channel
|
||||||
if (NULL == argument) {
|
if (NULL == argument) {
|
||||||
puts("provide channel to monitor for UART activity\n");
|
puts("provide channel to monitor for UART activity\n");
|
||||||
|
@ -1397,8 +1393,8 @@ static const struct menu_command_t menu_commands[] = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
.shortcut = 'a',
|
.shortcut = 'a',
|
||||||
.name = "uart_auto",
|
.name = "uart_tx",
|
||||||
.command_description = "autodetect UART configuration",
|
.command_description = "autodetect UART configuration of TX pin",
|
||||||
.argument = MENU_ARGUMENT_UNSIGNED,
|
.argument = MENU_ARGUMENT_UNSIGNED,
|
||||||
.argument_description = "CH",
|
.argument_description = "CH",
|
||||||
.command_handler = &command_uart_autodetect,
|
.command_handler = &command_uart_autodetect,
|
||||||
|
|
Loading…
Reference in New Issue