apps: fix miscellaneous typos

Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
This commit is contained in:
Juha Niskanen 2021-08-26 15:36:43 +03:00 committed by David Sidrane
parent 602092dc81
commit b283289986
10 changed files with 23 additions and 23 deletions

View File

@ -60,7 +60,7 @@ during the make context build phase.
To execute an application function:
`exec_builtin()` is defined in the `nuttx/include/apps/builtin/builtin.h`.
`exec_builtin()` is defined in the `apps/include/builtin/builtin.h`.
## NuttShell (NSH) Built-In Commands

View File

@ -20,14 +20,14 @@
include $(APPDIR)/Make.defs
# LED driver test built-in application info
# Buttons test built-in application info
PROGNAME = $(CONFIG_EXAMPLES_BUTTONS_PROGNAME)
PRIORITY = $(CONFIG_EXAMPLES_BUTTONS_PRIORITY)
STACKSIZE = $(CONFIG_EXAMPLES_BUTTONS_STACKSIZE)
MODULE = $(CONFIG_EXAMPLES_BUTTONS)
# LED driver test
# Buttons test
MAINSRC = buttons_main.c

View File

@ -66,7 +66,7 @@ extern "C"
* Input Parameter:
* filename - Name of the linked-in binary to be started.
* argv - Argument list
* redirfile - If output if redirected, this parameter will be non-NULL
* redirfile - If output is redirected, this parameter will be non-NULL
* and will provide the full path to the file.
* oflags - If output is redirected, this parameter will provide the
* open flags to use. This will support file replacement
@ -74,7 +74,7 @@ extern "C"
*
* Returned Value:
* This is an end-user function, so it follows the normal convention:
* Returns the PID of the exec'ed module. On failure, it.returns
* Returns the PID of the exec'ed module. On failure, it returns
* -1 (ERROR) and sets errno appropriately.
*
****************************************************************************/

View File

@ -86,7 +86,7 @@ extern "C"
*
* Description:
* This interface is used to initialize the NuttShell (NSH).
* nsh_initialize() should be called one during application start-up prior
* nsh_initialize() should be called once during application start-up prior
* to executing either nsh_consolemain() or nsh_telnetstart().
*
* Input Parameters:
@ -103,9 +103,9 @@ void nsh_initialize(void);
* Name: nsh_consolemain
*
* Description:
* This interfaces maybe to called or started with task_start to start a
* single an NSH instance that operates on stdin and stdout. This
* function does not return.
* This interface may be called or started with task_start to start a
* single NSH instance that operates on stdin and stdout. This function
* does not return.
*
* This function handles generic /dev/console character devices, or
* special USB console devices. The USB console requires some special

View File

@ -1,5 +1,5 @@
/****************************************************************************
* apps/netutils/netlib/netlib.c
* apps/netutils/netlib/netlib_ethaddrconv.c
* Various uIP library functions.
*
* Copyright (C) 2007, 2009, 2011, 2016 Gregory Nutt. All rights reserved.
@ -78,9 +78,9 @@ bool netlib_ethaddrconv(FAR const char *hwstr, FAR uint8_t *hw)
{
ch = *hwstr++;
if (++j > 3)
{
return false;
}
{
return false;
}
if (ch == ':' || ch == 0)
{

View File

@ -45,11 +45,11 @@
* Name: nsh_consolemain (Normal character device version)
*
* Description:
* This interfaces may be to called or started with task_start to start a
* This interface may be to called or started with task_start to start a
* single an NSH instance that operates on stdin and stdout. This
* function does not normally return (see below).
*
* This version of nsh_consolmain handles generic /dev/console character
* This version of nsh_consolemain handles generic /dev/console character
* devices (see nsh_usbconsole.c and usb_usbkeyboard for other versions
* for special USB console devices).
*

View File

@ -52,8 +52,8 @@ static const struct extmatch_vtable_s g_nsh_extmatch =
* Name: nsh_initialize
*
* Description:
* This nterfaces is used to initialize the NuttShell (NSH).
* nsh_initialize() should be called one during application start-up prior
* This interface is used to initialize the NuttShell (NSH).
* nsh_initialize() should be called once during application start-up prior
* to executing either nsh_consolemain() or nsh_telnetstart().
*
* Input Parameters:

View File

@ -219,7 +219,7 @@ restart:
* Name: nsh_consolemain (USB console version)
*
* Description:
* This interfaces maybe to called or started with task_start to start a
* This interface may be called or started with task_start to start a
* single an NSH instance that operates on stdin and stdout. This
* function does not return.
*

View File

@ -101,8 +101,8 @@ static int readline_getc(FAR struct rl_common_s *vtbl)
else if (nread < 0)
{
/* EINTR is not really an error; it simply means that a signal we
* received while watiing for input.
/* EINTR is not really an error; it simply means that a signal was
* received while waiting for input.
*/
int errcode = errno;

View File

@ -153,12 +153,12 @@ static void print_gps(const char *buffer, const char *name)
static void usage(void)
{
printf("sensortest [arguments...] <command>\n");
printf("\t[-h ] sensotest commands help\n");
printf("\t[-h ] sensortest commands help\n");
printf("\t[-i <val>] The output data period of sensor in us\n");
printf("\t default: 1000000\n");
printf("\t[-b <val>] The maximum report latency of sensor in us\n");
printf("\t default: 0\n");
printf("\t[-n <val>] The specify number of output data\n");
printf("\t[-n <val>] The number of output data\n");
printf("\t default: 0\n");
printf(" Commands:\n");
@ -244,7 +244,7 @@ int main(int argc, FAR char *argv[])
if (!len)
{
printf("The sensor node name:%s is invaild\n", name);
printf("The sensor node name:%s is invalid\n", name);
usage();
ret = -EINVAL;
goto name_err;