mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 02:48:37 +08:00
Fix typos reported by codespell
This commit is contained in:
parent
b9f231cdca
commit
76acb32e29
24 changed files with 37 additions and 36 deletions
|
@ -402,7 +402,8 @@ static bool pcm_parsewav(FAR struct pcm_decode_s *priv, uint8_t *data)
|
|||
|
||||
if (priv->bpsamp != 8 && priv->bpsamp != 16)
|
||||
{
|
||||
auderr("ERROR: %d bits per sample are not suported in this mode\n",
|
||||
auderr("ERROR: %d bits per sample are not supported in this "
|
||||
"mode\n",
|
||||
priv->bpsamp);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
@ -1301,8 +1302,8 @@ static int pcm_release(FAR struct audio_lowerhalf_s *dev)
|
|||
|
||||
DEBUGASSERT(priv);
|
||||
|
||||
/* Release the lower driver.. it is then available for use by other
|
||||
* decoders (and we cannot use the lower driver wither unless we re-
|
||||
/* Release the lower driver. It is then available for use by other
|
||||
* decoders (and we cannot use the lower driver either unless we re-
|
||||
* reserve it).
|
||||
*/
|
||||
|
||||
|
|
|
@ -68,7 +68,7 @@
|
|||
|
||||
/* The following fields are only valid for FAT12/16 */
|
||||
|
||||
#define MBR16_DRVNUM 36 /* 1@36: Drive number for MSDOS bootstrap */
|
||||
#define MBR16_DRVNUM 36 /* 1@36: Drive number for MS-DOS bootstrap */
|
||||
/* 1@37: Reserved (zero) */
|
||||
#define MBR16_BOOTSIG 38 /* 1@38: Extended boot signature: 0x29 if following valid */
|
||||
#define MBR16_VOLID 39 /* 4@39: Volume serial number */
|
||||
|
@ -87,7 +87,7 @@
|
|||
#define MBR32_FSINFO 48 /* 2@48: Sector number of fsinfo structure. Usually 1. */
|
||||
#define MBR32_BKBOOTSEC 50 /* 2@50: Sector number of boot record. Usually 6 */
|
||||
/* 12@52: Reserved (zero) */
|
||||
#define MBR32_DRVNUM 64 /* 1@64: Drive number for MSDOS bootstrap */
|
||||
#define MBR32_DRVNUM 64 /* 1@64: Drive number for MS-DOS bootstrap */
|
||||
/* 1@65: Reserved (zero) */
|
||||
#define MBR32_BOOTSIG 66 /* 1@66: Extended boot signature: 0x29 if following valid */
|
||||
#define MBR32_VOLID 67 /* 4@67: Volume serial number */
|
||||
|
@ -192,7 +192,7 @@
|
|||
|
||||
/* The following fields are only valid for FAT12/16 */
|
||||
|
||||
#define FBR16_DRVNUM 36 /* 1@36: Drive number for MSDOS bootstrap */
|
||||
#define FBR16_DRVNUM 36 /* 1@36: Drive number for MS-DOS bootstrap */
|
||||
/* 1@37: Reserved (zero) */
|
||||
#define FBR16_BOOTSIG 38 /* 1@38: Extended boot signature: 0x29 if following valid */
|
||||
#define FBR16_VOLID 39 /* 4@39: Volume serial number */
|
||||
|
@ -201,7 +201,7 @@
|
|||
|
||||
/* The following fields are only valid for FAT32 */
|
||||
|
||||
#define FBR32_DRVNUM 64 /* 1@64: Drive number for MSDOS bootstrap */
|
||||
#define FBR32_DRVNUM 64 /* 1@64: Drive number for MS-DOS bootstrap */
|
||||
#define FBR32_BOOTSIG 65 /* 1@65: Extended boot signature: 0x29 if following valid */
|
||||
#define FBR32_VOLID 66 /* 4@66: Volume serial number */
|
||||
#define FBR32_VOLLAB 71 /* 11@71: Volume label */
|
||||
|
|
|
@ -1917,7 +1917,7 @@ static int nfs_bind(FAR struct inode *blkdriver, FAR const void *data,
|
|||
nmp->nm_fhsize = nmp->nm_rpcclnt->rc_fhsize;
|
||||
nmp->nm_fh = &nmp->nm_rpcclnt->rc_fh;
|
||||
|
||||
/* Get the file sytem info */
|
||||
/* Get the file system info */
|
||||
|
||||
ret = nfs_fsinfo(nmp);
|
||||
if (ret)
|
||||
|
|
|
@ -196,7 +196,7 @@ static int romfs_open(FAR struct file *filep, FAR const char *relpath,
|
|||
|
||||
/* The full path exists -- but is the final component a file
|
||||
* or a directory? Or some other Unix file type that is not
|
||||
* appropriate in this contex.
|
||||
* appropriate in this context.
|
||||
*
|
||||
* REVISIT: This logic should follow hard/soft link file
|
||||
* types. At present, it returns the ENXIO.
|
||||
|
|
|
@ -182,7 +182,7 @@ config SPIFFS_COMPAT_OLD_NUTTX
|
|||
bool "Compatibility with older NuttX SPIFFS"
|
||||
default n
|
||||
---help---
|
||||
Enable the compatiblilty with older NuttX versions.
|
||||
Enable the compatibility with older NuttX versions.
|
||||
(Older than NuttX 11.0.0, where this option was introduced.)
|
||||
|
||||
Note: For better compatibility, you may want to disable
|
||||
|
@ -197,7 +197,7 @@ config SPIFFS_LEADING_SLASH
|
|||
---help---
|
||||
Assume and ensure that on-flash filenames are always prefixed
|
||||
with a slash.
|
||||
This enables the compatibily with images generated by
|
||||
This enables the compatibility with images generated by
|
||||
the following tools:
|
||||
|
||||
* mkspiffs
|
||||
|
|
|
@ -681,7 +681,7 @@ int up_fbinitialize(int display)
|
|||
* 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
|
||||
|
|
|
@ -210,7 +210,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.
|
||||
|
|
|
@ -36,7 +36,7 @@ ifeq ($(CONFIG_NET_STATISTICS),y)
|
|||
NET_CSRCS += ipfwd_dropstats.c
|
||||
endif
|
||||
|
||||
# Include IP forwaring build support
|
||||
# Include IP forwarding build support
|
||||
|
||||
DEPPATH += --dep-path ipforward
|
||||
VPATH += :ipforward
|
||||
|
|
|
@ -261,7 +261,7 @@ int psock_local_connect(FAR struct socket *psock,
|
|||
conn = (FAR struct local_conn_s *)dq_next(&conn->lc_node))
|
||||
{
|
||||
/* Anything in the listener list should be a stream socket in the
|
||||
* istening state
|
||||
* listening state
|
||||
*/
|
||||
|
||||
DEBUGASSERT(conn->lc_state == LOCAL_STATE_LISTENING &&
|
||||
|
|
|
@ -117,7 +117,7 @@ config ROUTE_FILEDIR
|
|||
---help---
|
||||
Provides the full path to location in the file system where routing
|
||||
table will be accessed. This is a string and should not include
|
||||
any traling '/'.
|
||||
any trailing '/'.
|
||||
|
||||
config ROUTE_IPv6_CACHEROUTE
|
||||
bool "In-memory IPv6 cache"
|
||||
|
|
|
@ -913,7 +913,7 @@ config SCHED_INSTRUMENTATION_EXTERNAL
|
|||
bool "System performance monitor endpoints are external"
|
||||
default n
|
||||
---help---
|
||||
When this option is enabled, the board specific logic must implment all
|
||||
When this option is enabled, the board specific logic must implement all
|
||||
callbacks listed in SCHED_INSTRUMENTATION, SCHED_INSTRUMENTATION_CSECTION,
|
||||
SCHED_INSTRUMENTATION_SPINLOCKS, SCHED_INSTRUMENTATION_SYSCALL and
|
||||
SCHED_INSTRUMENTATION_IRQHANDLER. Otherwise the common code will implement
|
||||
|
|
|
@ -50,7 +50,7 @@ static const uint8_t g_lookup[12] =
|
|||
*
|
||||
* Description:
|
||||
* Calculate the day of week (DOW) from they year month and day. Based on
|
||||
* an algorithm pubished in 1990 by Michael Keith and Tom Craver with some
|
||||
* an algorithm published in 1990 by Michael Keith and Tom Craver with some
|
||||
* tweaks to handle months in the range 0-11.
|
||||
*
|
||||
* Input Parameters:
|
||||
|
|
|
@ -72,7 +72,7 @@ void pthread_initialize(void)
|
|||
*
|
||||
* Input Parameters:
|
||||
* sem - The semaphore to lock or unlock
|
||||
* intr - false: ignore EINTR errors when locking; true tread EINTR as
|
||||
* intr - false: ignore EINTR errors when locking; true treat EINTR as
|
||||
* other errors by returning the errno value
|
||||
*
|
||||
* Returned Value:
|
||||
|
|
|
@ -137,7 +137,7 @@ int spawn_execattrs(pid_t pid, FAR const posix_spawnattr_t *attr);
|
|||
* file_actions - The attributes to use
|
||||
*
|
||||
* Returned Value:
|
||||
* 0 (OK) on successed; A negated errno value is returned on failure.
|
||||
* 0 (OK) on success; A negated errno value is returned on failure.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
|
|
|
@ -157,9 +157,9 @@ int nxtask_exit(void)
|
|||
#ifdef CONFIG_SMP
|
||||
/* NOTE:
|
||||
* During nxtask_terminate(), enter_critical_section() will be called
|
||||
* to deallocate tcb. However, this would aquire g_cpu_irqlock if
|
||||
* to deallocate tcb. However, this would acquire g_cpu_irqlock if
|
||||
* rtcb->irqcount = 0, event though we are in critical section.
|
||||
* To prevent from aquiring, increment rtcb->irqcount here.
|
||||
* To prevent from acquiring, increment rtcb->irqcount here.
|
||||
*/
|
||||
|
||||
rtcb->irqcount++;
|
||||
|
|
|
@ -400,7 +400,7 @@ endif
|
|||
|
||||
# POSTBUILD -- Perform post build operations
|
||||
# Some architectures require the use of special tools and special handling
|
||||
# AFTER building the NuttX binary. Make.defs files for thos architectures
|
||||
# AFTER building the NuttX binary. Make.defs files for those architectures
|
||||
# should override the following define with the correct operations for
|
||||
# that platform
|
||||
|
||||
|
|
|
@ -381,7 +381,7 @@ int main(int argc, char **argv, char **envp)
|
|||
convpath = (char *)malloc(bufsize);
|
||||
if (convpath == NULL)
|
||||
{
|
||||
fprintf(stderr, "ERROR: Faile to allocate buffer.\n");
|
||||
fprintf(stderr, "ERROR: Failed to allocate buffer.\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
|
|
|
@ -61,7 +61,7 @@ def header_authors(header):
|
|||
results = list(filter(lambda s: s != '', results)) # remove empty strings
|
||||
return results
|
||||
|
||||
# Search for an author name in Apache's commiters/non-commiters
|
||||
# Search for an author name in Apache's committers/non-committers
|
||||
# database. It will return (apacheID,name) if there's a match or
|
||||
# None if not. apacheID might be None if there's no Apache ID
|
||||
# for author
|
||||
|
@ -162,7 +162,7 @@ def analyze(j):
|
|||
|
||||
file_contents = get_file(commit['blob'])
|
||||
|
||||
# skip inaccesible blobs (probably lived in a submodule)
|
||||
# skip inaccessible blobs (probably lived in a submodule)
|
||||
|
||||
|
||||
if (not file_contents):
|
||||
|
|
|
@ -63,7 +63,7 @@ getblobs "$1" > $out2
|
|||
|
||||
if [ "$(jq '. | length' $out1)" != "$(jq '. | length' $out2)" ]; then
|
||||
# TODO: handle this case, we get more than one blob when the file is moved
|
||||
# to/from submodule and it difficults parsing. Also, the blob we get
|
||||
# to/from submodule and it difficulties parsing. Also, the blob we get
|
||||
# for when they file is in the submodule is not usable since it is possibly
|
||||
# from the pointed repo.
|
||||
echo "Log and blob list differ in size, probably a file which lived in a submodule"
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
# NuttX developers are not happy with providing per-library dummy
|
||||
# objects either.
|
||||
#
|
||||
# The "has no symbols" warning can be supressed with
|
||||
# The "has no symbols" warning can be suppressed with
|
||||
# the -no_warning_for_no_symbols option if you are using
|
||||
# a recent enough version of ranlib/libtool.
|
||||
# (Unfortunately, ar doesn't have a way to pass the option to ranlib.)
|
||||
|
|
|
@ -265,8 +265,8 @@ static void show_usage(const char *progname, const char *msg, int exitcode)
|
|||
fprintf(stderr, " --obj-suffix <suffix>\n");
|
||||
fprintf(stderr, " If an object path is provided, then the extension\n");
|
||||
fprintf(stderr, " will be assumed to be .o. This\n");
|
||||
fprintf(stderr, " default suffix can be overriden with this command\n");
|
||||
fprintf(stderr, " line option.\n");
|
||||
fprintf(stderr, " default suffix can be overridden with this\n");
|
||||
fprintf(stderr, " command line option.\n");
|
||||
fprintf(stderr, " --winnative\n");
|
||||
fprintf(stderr, " By default, a POSIX-style environment is assumed\n");
|
||||
fprintf(stderr, " (e.g., Linux, Cygwin, etc.) This option is\n");
|
||||
|
@ -434,12 +434,12 @@ static void parse_args(int argc, char **argv)
|
|||
/* This condition means "perform shquote for
|
||||
* g_cflags, but not g_cc or g_files".
|
||||
*
|
||||
* It isn't safe to escape g_cc becuase, for some reasons,
|
||||
* It isn't safe to escape g_cc because, for some reasons,
|
||||
* Makefile passes it as a single argument like:
|
||||
*
|
||||
* $(MKDEP) $(DEPPATH) "$(CC)" -- $(CFLAGS) -- $(SRCS)
|
||||
*
|
||||
* It isn't safe to escape g_files becuase
|
||||
* It isn't safe to escape g_files because
|
||||
* do_dependency() uses them as bare filenames as well.
|
||||
* (In addition to passing them to system().)
|
||||
*/
|
||||
|
|
|
@ -27,9 +27,9 @@ def parse_args():
|
|||
This file can get the call stack when you get the log with the
|
||||
register values from R0 to R15, together with the stack dump.\n
|
||||
Then you will get a file with name callstack.cmm, run this file
|
||||
in Trace32, load the symbol accoring to the indication, the call
|
||||
in Trace32, load the symbol according to the indication, the call
|
||||
stack will pop up.\n
|
||||
Trace32 software is avaliable at: https://www.lauterbach.com
|
||||
Trace32 software is available at: https://www.lauterbach.com
|
||||
""")
|
||||
|
||||
parser.add_argument("-f", "--filename", action = "store",
|
||||
|
|
|
@ -1749,7 +1749,7 @@ int bt_hci_cmd_send(uint16_t opcode, FAR struct bt_buf_s *buf)
|
|||
{
|
||||
/* We manage the refcount the same for supplied and created
|
||||
* buffers so increment the supplied count so we can manage
|
||||
* it as-if we crated it.
|
||||
* it as-if we created it.
|
||||
*/
|
||||
|
||||
bt_buf_addref(buf);
|
||||
|
|
|
@ -627,7 +627,7 @@ void mac802154_updatebeacon(FAR struct ieee802154_privmac_s *priv)
|
|||
break;
|
||||
}
|
||||
|
||||
/* Get the next pending indirect transation */
|
||||
/* Get the next pending indirect transaction */
|
||||
|
||||
txdesc = (FAR struct ieee802154_txdesc_s *)
|
||||
sq_next((FAR sq_entry_t *)txdesc);
|
||||
|
|
Loading…
Reference in a new issue