include: Fix typos reported by codespell

This commit is contained in:
Gustavo Henrique Nihei 2021-02-25 09:15:53 -03:00 committed by Xiang Xiao
parent 651b905b99
commit b9f231cdca
19 changed files with 25 additions and 25 deletions

View File

@ -136,7 +136,7 @@ extern "C"
* Input Parameters:
* path - The 'root' of the directory hierarchy to descend
* fn - The callback function to be invoked as each object in the
* heirarchy is encountered.
* hierarchy is encountered.
* fdlimit - The fdlimit argument specifies the maximum number of directory
* streams or file descriptors or both available for use by ftw()
* while traversing the tree.The maximum depth of the directories
@ -172,7 +172,7 @@ int ftw(FAR const char *path, ftw_cb_t fn, int fdlimit);
*
* path - The 'root' of the directory hierarchy to descend
* fn - The callback function to be invoked as each object in the
* heirarchy is encountered.
* hierarchy is encountered.
* fdlimit - The fdlimit argument specifies the maximum number of directory
* streams or file descriptors or both available for use by
* nftw() while traversing the tree.The maximum depth of the

View File

@ -68,7 +68,7 @@
* Public Types
****************************************************************************/
/* Intel HEX data steams are normally in big endian order. The following
/* Intel HEX data streams are normally in big endian order. The following
* enumeration selects other ordering.
*/

View File

@ -98,7 +98,7 @@
/* Ioctl commands supported by the upper half CAN driver.
*
* CANIOC_RTR:
* Description: Send the given message as a remote request. On sucessful
* Description: Send the given message as a remote request. On successful
* return, the passed message structure is updated with
* the contents of the received message; i.e. the message
* ID and the standard/extended ID indication bit stay the

View File

@ -78,14 +78,14 @@ typedef struct efuse_desc_s efuse_desc_t;
/* The efuse_param is used by the application to inform which field(s)
* will be passed to the ioctl() operation.
* - 'efuse_desc_t *field[]': contains one or more field and it
* it termined by a NULL to indicate there is no more fields.
* it terminated by a NULL to indicate there is no more fields.
* NOTE: normally the application don't need to create these fields
* they are mapped inside an arch efuse table and referenced
* in a header file inside include/nuttx/efuse/ directory.
* - size: how many bits the field(s) use
* - data: an application side allocated buffer where the read operation
* will store the efuse bits, so the number of allocated bytes
* need to be enough to store all bits. For write operaton, this
* need to be enough to store all bits. For write operation, this
* pointer contains the bits to be written.
*
* FINAL NOTE: The bit order is architecture dependent (tested only on

View File

@ -178,7 +178,7 @@ size_t circbuf_used(FAR struct circbuf_s *circ);
* Name: circbuf_space
*
* Description:
* Return the remaing space of the circular buffer.
* Return the remaining space of the circular buffer.
*
* Input Parameters:
* circ - Address of the circular buffer to be used.

View File

@ -1,6 +1,6 @@
/****************************************************************************
* include/nuttx/net/neighbor.h
* Definitions for use with IPv6 Neighor Table
* Definitions for use with IPv6 Neighbor Table
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with

View File

@ -45,7 +45,7 @@ extern "C"
#endif
/****************************************************************************
* Public Functions Defintions
* Public Functions Definitions
****************************************************************************/
/* The current software cursor implementation is only available under the

View File

@ -395,7 +395,7 @@ bool nxgl_colorcmp(const nxgl_mxpixel_t color1[CONFIG_NX_NPLANES],
* Description:
* In the general case, a line with width can be represented as a
* parallelogram with a triangle at the top and bottom. Triangles and
* parallelograms are both degenerate versions of a trapeziod. This
* parallelograms are both degenerate versions of a trapezoid. This
* function breaks a wide line into triangles and trapezoids. This
* function also detects other degenerate cases:
*

View File

@ -179,7 +179,7 @@ int nxtk_block(NXTKWINDOW hfwnd, FAR void *arg);
* Name: nxtk_synch
*
* Description:
* This interface can be used to sychronize the window client with the
* This interface can be used to synchronize the window client with the
* NX server. It really just implements an 'echo': A synch message is
* sent from the window client to the server which then responds
* immediately by sending the NXEVENT_SYNCHED back to the windows client.

View File

@ -172,7 +172,7 @@ int battery_gauge_register(FAR const char *devpath,
*
* CONFIG_BATTERY_GAUGE - Upper half battery fuel gauge driver support
* CONFIG_I2C - I2C support
* CONFIG_BQ27426 - And the driver must be explictly selected.
* CONFIG_BQ27426 - And the driver must be explicitly selected.
*
* Input Parameters:
* i2c - An instance of the I2C interface to use to communicate with the

View File

@ -154,7 +154,7 @@ struct battery_monitor_voltage_s
* Cell voltages are stored in microvolts (uV)
* Cell voltages in this array should be ordered according to the
* physical layout of cells in the system. Driver should rearrange
* voltage values as necssary to present the user with a contiguous
* voltage values as necessary to present the user with a contiguous
* list of cell voltages in the expected order.
*/
@ -284,7 +284,7 @@ struct battery_monitor_operations_s
int (*soc)(struct battery_monitor_dev_s *dev, b16_t *value);
/* Get the battery pack Couloumb count value */
/* Get the battery pack Coulomb count value */
int (*coulombs)(struct battery_monitor_dev_s *dev, int *value);
@ -389,7 +389,7 @@ int battery_monitor_register(FAR const char *devpath,
*
* CONFIG_BATTERY_MONITOR - Upper half battery monitor driver support
* CONFIG_I2C - I2C support
* CONFIG_I2C_BQ769X0 - And the driver must be explictly selected.
* CONFIG_I2C_BQ769X0 - And the driver must be explicitly selected.
*
* Input Parameters:
* i2c - An instance of the I2C interface to use to communicate with

View File

@ -68,7 +68,7 @@ struct dhtxx_config_s
enum dhtxx_status_e
{
/* Timeout accured waiting for data. */
/* Timeout occurred waiting for data. */
DHTXX_TIMEOUT,

View File

@ -167,7 +167,7 @@
/* CO2
* A sensor of this type returns the content of CO2 in the air
* This vaule is in units (ppm-part per million).
* This value is in units (ppm-part per million).
*/
#define SENSOR_TYPE_CO2 18
@ -345,7 +345,7 @@ struct sensor_event_gps /* Type: Gps */
struct sensor_event_uv /* Type: Ultraviolet Light */
{
uint64_t timestamp; /* Units is microseconds */
float uvi; /* the vaule range is 0 - 15 */
float uvi; /* the value range is 0 - 15 */
};
struct sensor_event_noise /* Type: Noise Loudness */

View File

@ -321,7 +321,7 @@ typedef uint32_t uart_addrwidth_t;
****************************************************************************/
/****************************************************************************
* Public Functions Defintions
* Public Functions Definitions
****************************************************************************/
/****************************************************************************

View File

@ -44,7 +44,7 @@
#include <nuttx/usb/usbdev.h>
/****************************************************************************
* Public Functions Defintions
* Public Functions Definitions
****************************************************************************/
#undef EXTERN

View File

@ -64,7 +64,7 @@ extern "C"
* Description:
* Initialize the VNC frame buffer driver. The VNC frame buffer driver
* supports two initialization interfaces: The standard up_fbinitialize()
* that will be called from the graphics layer and this speical
* that will be called from the graphics layer and this special
* initialization function that can be used only by VNC aware OS logic.
*
* The two initialization functions may be called separated or together in

View File

@ -266,8 +266,8 @@ enum work_evtype_e
WORK_UDP_WRITEBUFFER, /* Notify that UDP write buffer is empty */
WORK_NETLINK_RESPONSE, /* Notify that Netlink response is available */
WORK_CAN_READAHEAD, /* Notify that CAN read-ahead data is available */
WORK_USB_MSC_CONNECT, /* Notify that an USB MSC connect occured */
WORK_USB_MSC_DISCONNECT /* Notify that an USB MSC connect occured */
WORK_USB_MSC_CONNECT, /* Notify that an USB MSC connect occurred */
WORK_USB_MSC_DISCONNECT /* Notify that an USB MSC connect occurred */
};
/* This structure describes one notification and is provided as input to

View File

@ -63,7 +63,7 @@
#define MAP_EXECUTABLE (1 << 7) /* Bit 7: Mark it as an executable */
#define MAP_LOCKED (1 << 8) /* Bit 8: Lock pages mapped into memory */
#define MAP_NORESERVE (1 << 9) /* Bit 9: Do not reserve swap space for this mapping */
#define MAP_POPULATE (1 << 10) /* Bit 10: opulate (prefault) page tables */
#define MAP_POPULATE (1 << 10) /* Bit 10: populate (prefault) page tables */
#define MAP_NONBLOCK (1 << 11) /* Bit 11: Do not block on IO */
/* Failure return */

View File

@ -103,7 +103,7 @@
#define S_TYPEISMQ(buf) S_ISMQ((buf)->st_mode)
#define S_TYPEISSHM(buf) S_ISSHM((buf)->st_mode)
/* The following macros are required by POSIX to acheive backward
/* The following macros are required by POSIX to achieve backward
* compatibility with earlier versions of struct stat.
*/