You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/02/25 19:30:44 UTC
[incubator-nuttx] branch master updated: include: Fix typos
reported by codespell
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new b9f231c include: Fix typos reported by codespell
b9f231c is described below
commit b9f231cdcacfa89dc15c0c51caad636c80ad5d8a
Author: Gustavo Henrique Nihei <gu...@espressif.com>
AuthorDate: Thu Feb 25 09:15:53 2021 -0300
include: Fix typos reported by codespell
---
include/ftw.h | 4 ++--
include/hex2bin.h | 2 +-
include/nuttx/can/can.h | 2 +-
include/nuttx/efuse/efuse.h | 4 ++--
include/nuttx/mm/circbuf.h | 2 +-
include/nuttx/net/neighbor.h | 2 +-
include/nuttx/nx/nxcursor.h | 2 +-
include/nuttx/nx/nxglib.h | 2 +-
include/nuttx/nx/nxtk.h | 2 +-
include/nuttx/power/battery_gauge.h | 2 +-
include/nuttx/power/battery_monitor.h | 6 +++---
include/nuttx/sensors/dhtxx.h | 2 +-
include/nuttx/sensors/sensor.h | 4 ++--
include/nuttx/serial/uart_16550.h | 2 +-
include/nuttx/usb/dfu.h | 2 +-
include/nuttx/video/vnc.h | 2 +-
include/nuttx/wqueue.h | 4 ++--
include/sys/mman.h | 2 +-
include/sys/stat.h | 2 +-
19 files changed, 25 insertions(+), 25 deletions(-)
diff --git a/include/ftw.h b/include/ftw.h
index d8b110a..ae02bca 100644
--- a/include/ftw.h
+++ b/include/ftw.h
@@ -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
diff --git a/include/hex2bin.h b/include/hex2bin.h
index 20dbc63..9b5f674 100644
--- a/include/hex2bin.h
+++ b/include/hex2bin.h
@@ -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.
*/
diff --git a/include/nuttx/can/can.h b/include/nuttx/can/can.h
index a5b5b8e..ffd3161 100644
--- a/include/nuttx/can/can.h
+++ b/include/nuttx/can/can.h
@@ -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
diff --git a/include/nuttx/efuse/efuse.h b/include/nuttx/efuse/efuse.h
index 96b15e2..d4239ae 100644
--- a/include/nuttx/efuse/efuse.h
+++ b/include/nuttx/efuse/efuse.h
@@ -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
diff --git a/include/nuttx/mm/circbuf.h b/include/nuttx/mm/circbuf.h
index c6d291c..bbaa237 100644
--- a/include/nuttx/mm/circbuf.h
+++ b/include/nuttx/mm/circbuf.h
@@ -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.
diff --git a/include/nuttx/net/neighbor.h b/include/nuttx/net/neighbor.h
index 6302e98..b1d4a8a 100644
--- a/include/nuttx/net/neighbor.h
+++ b/include/nuttx/net/neighbor.h
@@ -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
diff --git a/include/nuttx/nx/nxcursor.h b/include/nuttx/nx/nxcursor.h
index 3774a8b..79cb535 100644
--- a/include/nuttx/nx/nxcursor.h
+++ b/include/nuttx/nx/nxcursor.h
@@ -45,7 +45,7 @@ extern "C"
#endif
/****************************************************************************
- * Public Functions Defintions
+ * Public Functions Definitions
****************************************************************************/
/* The current software cursor implementation is only available under the
diff --git a/include/nuttx/nx/nxglib.h b/include/nuttx/nx/nxglib.h
index 35c992f..589c113 100644
--- a/include/nuttx/nx/nxglib.h
+++ b/include/nuttx/nx/nxglib.h
@@ -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:
*
diff --git a/include/nuttx/nx/nxtk.h b/include/nuttx/nx/nxtk.h
index c0cb44e..6c6aabf 100644
--- a/include/nuttx/nx/nxtk.h
+++ b/include/nuttx/nx/nxtk.h
@@ -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.
diff --git a/include/nuttx/power/battery_gauge.h b/include/nuttx/power/battery_gauge.h
index 23d42fb..de76252 100644
--- a/include/nuttx/power/battery_gauge.h
+++ b/include/nuttx/power/battery_gauge.h
@@ -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
diff --git a/include/nuttx/power/battery_monitor.h b/include/nuttx/power/battery_monitor.h
index fb808fd..c6f0e7c 100644
--- a/include/nuttx/power/battery_monitor.h
+++ b/include/nuttx/power/battery_monitor.h
@@ -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
diff --git a/include/nuttx/sensors/dhtxx.h b/include/nuttx/sensors/dhtxx.h
index b604150..70fda0f 100644
--- a/include/nuttx/sensors/dhtxx.h
+++ b/include/nuttx/sensors/dhtxx.h
@@ -68,7 +68,7 @@ struct dhtxx_config_s
enum dhtxx_status_e
{
- /* Timeout accured waiting for data. */
+ /* Timeout occurred waiting for data. */
DHTXX_TIMEOUT,
diff --git a/include/nuttx/sensors/sensor.h b/include/nuttx/sensors/sensor.h
index b5ffc0c..8e9d0d9 100644
--- a/include/nuttx/sensors/sensor.h
+++ b/include/nuttx/sensors/sensor.h
@@ -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 */
diff --git a/include/nuttx/serial/uart_16550.h b/include/nuttx/serial/uart_16550.h
index ac10280..e091a2c 100644
--- a/include/nuttx/serial/uart_16550.h
+++ b/include/nuttx/serial/uart_16550.h
@@ -321,7 +321,7 @@ typedef uint32_t uart_addrwidth_t;
****************************************************************************/
/****************************************************************************
- * Public Functions Defintions
+ * Public Functions Definitions
****************************************************************************/
/****************************************************************************
diff --git a/include/nuttx/usb/dfu.h b/include/nuttx/usb/dfu.h
index e7c0eb6..f2647d2 100644
--- a/include/nuttx/usb/dfu.h
+++ b/include/nuttx/usb/dfu.h
@@ -44,7 +44,7 @@
#include <nuttx/usb/usbdev.h>
/****************************************************************************
- * Public Functions Defintions
+ * Public Functions Definitions
****************************************************************************/
#undef EXTERN
diff --git a/include/nuttx/video/vnc.h b/include/nuttx/video/vnc.h
index 7535864..6761a07 100644
--- a/include/nuttx/video/vnc.h
+++ b/include/nuttx/video/vnc.h
@@ -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
diff --git a/include/nuttx/wqueue.h b/include/nuttx/wqueue.h
index 41ed853..ba96380 100644
--- a/include/nuttx/wqueue.h
+++ b/include/nuttx/wqueue.h
@@ -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
diff --git a/include/sys/mman.h b/include/sys/mman.h
index 6717697..8989c92 100644
--- a/include/sys/mman.h
+++ b/include/sys/mman.h
@@ -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 */
diff --git a/include/sys/stat.h b/include/sys/stat.h
index 3cb3140..6b99818 100644
--- a/include/sys/stat.h
+++ b/include/sys/stat.h
@@ -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.
*/