summaryrefslogtreecommitdiff
path: root/nuttx
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-08-27 09:40:19 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-08-27 09:40:19 -0600
commite84937a34489eab1669338bf8e3bb6c07e9d7295 (patch)
tree5fcaae860d74eeaf009b81a51292b3fe6c9865fd /nuttx
parentf760141ba6b1536afc27451db9dd90d7a207ae5f (diff)
downloadnuttx-e84937a34489eab1669338bf8e3bb6c07e9d7295.tar.gz
nuttx-e84937a34489eab1669338bf8e3bb6c07e9d7295.tar.bz2
nuttx-e84937a34489eab1669338bf8e3bb6c07e9d7295.zip
Fix all occurrences of "the the" in documentation and comments
Diffstat (limited to 'nuttx')
-rw-r--r--nuttx/ChangeLog24
-rw-r--r--nuttx/Documentation/NXGraphicsSubsystem.html8
-rw-r--r--nuttx/Documentation/NfsHowto.html2
-rw-r--r--nuttx/Documentation/NuttShell.html2
-rw-r--r--nuttx/Documentation/NuttX.html8
-rw-r--r--nuttx/Documentation/NuttXDemandPaging.html2
-rw-r--r--nuttx/Documentation/NuttxPortingGuide.html8
-rw-r--r--nuttx/Documentation/NuttxUserGuide.html2
-rw-r--r--nuttx/README.txt4
-rw-r--r--nuttx/ReleaseNotes2
-rw-r--r--nuttx/TODO4
-rw-r--r--nuttx/arch/arm/src/arm/up_head.S2
-rw-r--r--nuttx/arch/arm/src/armv7-a/arm_pghead.S2
-rw-r--r--nuttx/arch/arm/src/armv7-a/arm_vectoraddrexcptn.S2
-rw-r--r--nuttx/arch/arm/src/armv7-a/cache.h2
-rwxr-xr-xnuttx/arch/arm/src/armv7-a/cp15_flush_dcache.S2
-rw-r--r--nuttx/arch/arm/src/armv7-m/ram_vectors.h2
-rw-r--r--nuttx/arch/arm/src/armv7-m/up_ramvec_initialize.c2
-rw-r--r--nuttx/arch/arm/src/kinetis/kinetis_sdhc.c2
-rw-r--r--nuttx/arch/arm/src/kinetis/kinetis_serial.c16
-rw-r--r--nuttx/arch/arm/src/kinetis/kinetis_vectors.S2
-rw-r--r--nuttx/arch/arm/src/kl/kl_serial.c16
-rw-r--r--nuttx/arch/arm/src/lm/lm_vectors.S2
-rw-r--r--nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c2
-rw-r--r--nuttx/arch/arm/src/lpc17xx/lpc17_sdcard.c4
-rw-r--r--nuttx/arch/arm/src/lpc17xx/lpc17_vectors.S2
-rw-r--r--nuttx/arch/arm/src/lpc31xx/lpc31_cgudrvr.h4
-rw-r--r--nuttx/arch/arm/src/lpc31xx/lpc31_clkexten.c4
-rw-r--r--nuttx/arch/arm/src/lpc31xx/lpc31_softreset.c2
-rw-r--r--nuttx/arch/arm/src/lpc43xx/lpc43_rgu.c4
-rw-r--r--nuttx/arch/arm/src/lpc43xx/lpc43_rgu.h2
-rw-r--r--nuttx/arch/arm/src/lpc43xx/lpc43_start.c8
-rw-r--r--nuttx/arch/arm/src/nuc1xx/nuc_gpio.c2
-rw-r--r--nuttx/arch/arm/src/nuc1xx/nuc_lowputc.c2
-rw-r--r--nuttx/arch/arm/src/sam34/sam3u_dmac.c12
-rw-r--r--nuttx/arch/arm/src/sam34/sam_vectors.S2
-rw-r--r--nuttx/arch/arm/src/sama5/chip/sama5d3x_memorymap.h2
-rw-r--r--nuttx/arch/arm/src/sama5/sam_boot.c2
-rw-r--r--nuttx/arch/arm/src/sama5/sam_dmac.c16
-rwxr-xr-xnuttx/arch/arm/src/sama5/sam_ehci.c8
-rw-r--r--nuttx/arch/arm/src/stm32/stm32_can.c2
-rw-r--r--nuttx/arch/arm/src/stm32/stm32_eth.c8
-rw-r--r--nuttx/arch/arm/src/stm32/stm32_iwdg.c2
-rw-r--r--nuttx/arch/arm/src/stm32/stm32_otgfshost.c6
-rw-r--r--nuttx/arch/arm/src/stm32/stm32_rcc.h2
-rw-r--r--nuttx/arch/arm/src/stm32/stm32_sdio.c6
-rw-r--r--nuttx/arch/arm/src/stm32/stm32_vectors.S2
-rw-r--r--nuttx/arch/arm/src/stm32/stm32_wwdg.c2
-rw-r--r--nuttx/arch/arm/src/stm32/stm32f20xxx_dma.c2
-rw-r--r--nuttx/arch/arm/src/stm32/stm32f40xxx_dma.c2
-rw-r--r--nuttx/arch/avr/src/avr/excptmacros.h2
-rw-r--r--nuttx/arch/hc/src/m9s12/m9s12_ethernet.c4
-rw-r--r--nuttx/arch/mips/src/pic32mx/pic32mx-ethernet.c2
-rw-r--r--nuttx/arch/sim/src/up_touchscreen.c6
-rw-r--r--nuttx/binfmt/binfmt_schedunload.c2
-rw-r--r--nuttx/binfmt/libelf/libelf.h2
-rw-r--r--nuttx/binfmt/libelf/libelf_addrenv.c2
-rw-r--r--nuttx/binfmt/libelf/libelf_unload.c2
-rw-r--r--nuttx/binfmt/libnxflat/libnxflat.h2
-rw-r--r--nuttx/binfmt/libnxflat/libnxflat_addrenv.c2
-rw-r--r--nuttx/binfmt/libnxflat/libnxflat_unload.c2
-rw-r--r--nuttx/configs/demo9s12ne64/README.txt2
-rw-r--r--nuttx/configs/ea3131/src/up_fillpage.c2
-rw-r--r--nuttx/configs/ea3152/src/up_fillpage.c2
-rw-r--r--nuttx/configs/eagle100/README.txt2
-rw-r--r--nuttx/configs/freedom-kl25z/README.txt4
-rw-r--r--nuttx/configs/lincoln60/src/up_buttons.c2
-rw-r--r--nuttx/configs/lpc4330-xplorer/src/up_buttons.c2
-rw-r--r--nuttx/configs/mikroe-stm32f4/README.txt2
-rw-r--r--nuttx/configs/mikroe-stm32f4/src/up_touchscreen.c4
-rw-r--r--nuttx/configs/mirtoo/README.txt2
-rw-r--r--nuttx/configs/mirtoo/src/up_adc.c2
-rw-r--r--nuttx/configs/mirtoo/src/up_leds.c2
-rw-r--r--nuttx/configs/ne64badge/README.txt2
-rw-r--r--nuttx/configs/olimex-lpc1766stk/src/up_buttons.c2
-rw-r--r--nuttx/configs/olimex-lpc1766stk/src/up_ssp.c2
-rw-r--r--nuttx/configs/open1788/README.txt6
-rw-r--r--nuttx/configs/open1788/src/lpc17_buttons.c2
-rw-r--r--nuttx/configs/pic32-starterkit/README.txt2
-rw-r--r--nuttx/configs/pic32-starterkit/src/up_leds.c2
-rw-r--r--nuttx/configs/pic32mx7mmb/README.txt2
-rw-r--r--nuttx/configs/pic32mx7mmb/src/up_leds.c2
-rw-r--r--nuttx/configs/pic32mx7mmb/src/up_spi.c2
-rw-r--r--nuttx/configs/pic32mx7mmb/src/up_touchscreen.c4
-rw-r--r--nuttx/configs/sam3u-ek/README.txt2
-rw-r--r--nuttx/configs/sama5d3x-ek/README.txt4
-rw-r--r--nuttx/configs/stm32f4discovery/README.txt2
-rwxr-xr-xnuttx/configs/stm32f4discovery/elf/setenv.sh2
-rwxr-xr-xnuttx/configs/stm32f4discovery/posix_spawn/setenv.sh2
-rw-r--r--nuttx/configs/sure-pic32mx/src/pic32mx_spi.c2
-rw-r--r--nuttx/configs/ubw32/src/up_leds.c2
-rw-r--r--nuttx/drivers/input/ads7843e.c4
-rw-r--r--nuttx/drivers/input/max11802.c4
-rw-r--r--nuttx/drivers/input/stmpe811_tsc.c4
-rw-r--r--nuttx/drivers/input/tsc2007.c4
-rw-r--r--nuttx/drivers/lcd/Kconfig8
-rw-r--r--nuttx/drivers/lcd/ssd1289.c2
-rw-r--r--nuttx/drivers/mmcsd/mmcsd_sdio.c4
-rw-r--r--nuttx/drivers/mtd/sst25.c2
-rw-r--r--nuttx/drivers/mtd/w25.c2
-rw-r--r--nuttx/drivers/net/e1000.c2
-rw-r--r--nuttx/drivers/net/enc28j60.c4
-rw-r--r--nuttx/drivers/net/vnet.c2
-rw-r--r--nuttx/drivers/power/pm_update.c2
-rw-r--r--nuttx/drivers/serial/serial.c2
-rw-r--r--nuttx/drivers/usbdev/cdcacm_desc.c2
-rw-r--r--nuttx/fs/fat/Kconfig2
-rw-r--r--nuttx/fs/fat/fs_fat32.c4
-rw-r--r--nuttx/fs/fat/fs_fat32.h2
-rw-r--r--nuttx/fs/mmap/README.txt156
-rw-r--r--nuttx/fs/nxffs/nxffs.h2
-rw-r--r--nuttx/fs/nxffs/nxffs_block.c4
-rw-r--r--nuttx/fs/nxffs/nxffs_cache.c2
-rw-r--r--nuttx/fs/nxffs/nxffs_pack.c10
-rw-r--r--nuttx/fs/nxffs/nxffs_read.c4
-rw-r--r--nuttx/fs/nxffs/nxffs_unlink.c2
-rw-r--r--nuttx/fs/nxffs/nxffs_write.c2
-rw-r--r--nuttx/graphics/nxbe/nxbe.h2
-rw-r--r--nuttx/graphics/nxbe/nxbe_getrectangle.c2
-rw-r--r--nuttx/graphics/nxmu/nx_getrectangle.c2
-rw-r--r--nuttx/graphics/nxmu/nxfe.h2
-rw-r--r--nuttx/graphics/nxsu/nx_getrectangle.c2
-rw-r--r--nuttx/graphics/nxtk/nxtk_gettoolbar.c2
-rw-r--r--nuttx/graphics/nxtk/nxtk_getwindow.c2
-rw-r--r--nuttx/include/nuttx/binfmt/binfmt.h2
-rw-r--r--nuttx/include/nuttx/binfmt/elf.h2
-rw-r--r--nuttx/include/nuttx/binfmt/nxflat.h2
-rw-r--r--nuttx/include/nuttx/fs/fat.h2
-rw-r--r--nuttx/include/nuttx/nx/nx.h2
-rw-r--r--nuttx/include/nuttx/nx/nxtk.h4
-rw-r--r--nuttx/include/nuttx/page.h2
-rw-r--r--nuttx/include/nuttx/sched.h2
-rwxr-xr-xnuttx/include/nuttx/spi/spi_bitbang.c2
-rw-r--r--nuttx/libc/misc/lib_kbddecode.c2
-rw-r--r--nuttx/libc/misc/lib_slcddecode.c2
-rw-r--r--nuttx/libc/stdio/lib_feof.c2
-rw-r--r--nuttx/libc/stdio/lib_sscanf.c2
-rw-r--r--nuttx/mm/mm_graninit.c2
-rw-r--r--nuttx/net/Kconfig2
-rw-r--r--nuttx/net/net_poll.c2
-rw-r--r--nuttx/net/send.c2
-rw-r--r--nuttx/sched/group_childstatus.c2
-rw-r--r--nuttx/sched/pg_miss.c4
-rw-r--r--nuttx/sched/sched_waitid.c2
-rw-r--r--nuttx/sched/sem_timedwait.c2
-rw-r--r--nuttx/tools/Config.mk2
-rw-r--r--nuttx/tools/README.txt6
-rw-r--r--nuttx/tools/kconfig2html.c6
148 files changed, 322 insertions, 320 deletions
diff --git a/nuttx/ChangeLog b/nuttx/ChangeLog
index df729102d..b991259e8 100644
--- a/nuttx/ChangeLog
+++ b/nuttx/ChangeLog
@@ -2576,7 +2576,7 @@
* arch/arm/src/stm32/stm32f*0xx_rcc.c: In order to use CAN2, both CAN1 and
CAN2 clocking must be enabled.
* arch/mips/src/pic32mx/picm32mx-usbdev.c: Several stall-related fixes so that
- the USB device driver can used the the mass storage class (which does a LOT
+ the USB device driver can used the mass storage class (which does a LOT
of stalling as part of its normal protocol). The PIC32 USB Mass Storage
device is, however, still non-functional when debug is OFF.
* include/nuttx/fs: Move all file-system related files from include/nuttx to
@@ -3288,7 +3288,7 @@
* arch/*/src/Makefile: Remove some old logic that was kicked off
when CONFIG_BOOT_RUNFROMFLASH=y. The old logic used to use
objcopy to move sections. Newer logic changes the load position
- of sections in the the linker script. As far as I can tell, there
+ of sections in the linker script. As far as I can tell, there
is nothing in the source tree now that depends on the old way of
doing things (if I am wrong, they will need a change to the linker
script).
@@ -3406,7 +3406,7 @@
touchscreen driver).
* configs/shenzhou/src/up_touchscreen.c: Add ADS7843E touchscreen
support for the Shenzhou board. The initial check-in is untested
- and basically a clone of the the touchscreen support for the SAM-3U.
+ and basically a clone of the touchscreen support for the SAM-3U.
* tools/cfgparser.c: There are some NxWidget configuration
settings that must be de-quoted.
* arch/arm/src/stm32/Kconfig: There is no SPI4. Some platforms
@@ -3567,7 +3567,7 @@
* net/netdev_ioctl.c: Add interface state flags and ioctl calls
to bring network interfaces up and down (from Darcy Gong).
* config/stm32f4discovery: Enable C++ exceptions. Now the entire
- apps/examples/cxxtest works -- meaning the the uClibc++ is
+ apps/examples/cxxtest works -- meaning that the uClibc++ is
complete and verified for the STM32 platform.
6.24 2012-12-20 Gregory Nutt <gnutt@nuttx.org>
@@ -3636,7 +3636,7 @@
CONFIG_WINDOWS_NATIVE. This will allow me to eliminate a lot of
conditional logic elsewhere.
* nuttx/graphics: One a mouse button is pressed, continue to report all
- mouse button events to the first window that received the the initial
+ mouse button events to the first window that received the initial
button down event, even if the mouse attempts to drag outside the
window. From Petteri Aimonen.
* nuttx/graphics/nxmu/nx_block.c: One more fix to the NX block message
@@ -3753,7 +3753,7 @@
Also from Petteri Aimonen.
* include/stdbool.h: Can now be disabled for C++ files if CONFIG_C99_BOOL8 is
defined. CONFIG_C99_BOOL8 indicates (1) that the sizeof(_Bool) is one in both
- C and C++, and (2) the the C compiler is C99 and supports the _Bool intrinsic
+ C and C++, and (2) the C compiler is C99 and supports the _Bool intrinsic
type. Requested by Freddie Chopin.
* include/stdlib/lib_rand.c: Various additional changes so that the integer
value zero can be returned. Requested by Freddie Chopin.
@@ -4435,7 +4435,7 @@
and simpler. However, the C code intermixed with SVC calls was
not properly preserving registers. The more complex, assembly
language version does not suffer from these issues. I believe
- the the kernel build can now be called "feature complete"
+ the kernel build can now be called "feature complete"
(2013-03-23).
* binfmt/binfmt_execmodule.c: Here is a place where I forget
to update the call to sched_releasetcb() to pass the thread
@@ -4509,7 +4509,7 @@
support for the touschscreen on the WaveShare LCD (2013-4-01).
* configs/several: There were already some functions called
lpc17_sspinitialize(). So they had to be renamed (2013-4-01).
- * arch/arm/src/lpc17xx/lpc17_ssp.c: Adapted to work the the LPC178x
+ * arch/arm/src/lpc17xx/lpc17_ssp.c: Adapted to work with the LPC178x
family (2013-4-01).
* arch/arm/src/lpc17xx/lpc17_gpio.c/.h: Separate LPC176x and LPC178x
logic into separate files. The logic is diverging to much to
@@ -4725,7 +4725,7 @@
* nuttx/syscall/syscall.csv: Type of first parameter of on_exit() is
wrong. Reported by Ken Pettit (2013-5-17).
* configs/mikroe-stm32f4/kernel/, kostest/ and scripts/: Add kernel build
- support and kernel mode OS test example for the the MikroElektronkia
+ support and kernel mode OS test example for the MikroElektronkia
MultiMedia STM32 M4 board. From Ken Pettit (2013-5-17).
* arch/arm/include/stm32/chip.h and arch/arm/src/stme32/chip/stm32l15xxx_pinmap.h:
Beginning of support for the STM32L15X family (2013-5-18).
@@ -4982,7 +4982,7 @@
so that is it compatible with the SPI drivers of other MCUs
(2013-6-16).
* configs/sam3u-ek/src/up_touchscreen.c and configs/sam4l-xplained/src/sam_mmcsd.c:
- Changed needed because of the above change the the SAM3/4 SPI
+ Changed needed because of the above change to the SAM3/4 SPI
interface (2013-6-16).
* drivers/input/ads7843e.c: Remove the wait for the touchscreen busy
bit. I don't see the busy bit changing on the SAM3U-EK board. But
@@ -5211,7 +5211,7 @@
* The sama5d3x-ek/hello now runs correctly (2013-7-28).
* configs/sama5d3x-ek/ostest/: This configuration has been modified
to run out NOR flash. More work is still needed to reconfigure the
- SMC so the the NOR flash can work with the high clock (2013-7-28).
+ SMC so that the NOR flash can work with the high clock (2013-7-28).
* arch/arm/src/sama5/sam_clockconfig.c/h and
configs/sama5d3x-ek/src/sam_norflash.c: Add a file structure that
will (eventually) support reconfiguration of NOR flash when NuttX
@@ -5467,4 +5467,6 @@
max packetsize. High speed needs 64 bytes, low speed needs 8 bytes,
and full speed can handle almost any size (2013-8-26).
* arch/arm: Add hooks for Cortex-A8. Not much more yet (2013-8-27).
+ * Lots of files: Fix all occurrents of "the the" in documentation and
+ comments (2013-8-27).
diff --git a/nuttx/Documentation/NXGraphicsSubsystem.html b/nuttx/Documentation/NXGraphicsSubsystem.html
index 0eba9441f..48e4e376e 100644
--- a/nuttx/Documentation/NXGraphicsSubsystem.html
+++ b/nuttx/Documentation/NXGraphicsSubsystem.html
@@ -1709,7 +1709,7 @@ void nx_getrectangle(NXWINDOW hwnd, FAR const struct nxgl_rect_s *rect,
<dt><code>dest</code>
<dd>The location to copy the memory region
<dt><code>deststride</code>
- <dd>The width, in bytes, the the dest memory
+ <dd>The width, in bytes, of the dest memory
</dl></ul>
</p>
<p>
@@ -2335,7 +2335,7 @@ void nxtk_getwindow(NXTKWINDOW hfwnd, FAR const struct nxgl_rect_s *rect,
<dt><code>dest</code>
<dd>The location to copy the memory region
<dt><code>deststride</code>
- <dd>The width, in bytes, the the dest memory
+ <dd>The width, in bytes, of the dest memory
</dl>
</p>
<p>
@@ -2689,7 +2689,7 @@ int nxtk_gettoolbar(NXTKWINDOW hfwnd, FAR const struct nxgl_rect_s *rect,
<dt><code>dest</code>
<dd>TThe location to copy the memory region.
<dt><code>deststride</code>
- <dd>The width, in bytes, the the dest memory.
+ <dd>The width, in bytes, of the dest memory.
</dl>
</p>
<p>
@@ -3522,7 +3522,7 @@ enum nx_fontid_e
<li>
<p>
<b><code>nuttx/graphics/Makefile</code></b>.
- This file needs logic to auto-generate a C source file from the header file that you generated with the the <i>bdf-converter</i> program.
+ This file needs logic to auto-generate a C source file from the header file that you generated with the <i>bdf-converter</i> program.
Notice <code>NXFONTS_FONTID=2</code>; this must be set to the same font ID value that you defined in the <code>include/nuttx/nx/nxfonts.h</code> file.
</p>
<ul><pre>
diff --git a/nuttx/Documentation/NfsHowto.html b/nuttx/Documentation/NfsHowto.html
index 0fee8baf7..3eb986bb6 100644
--- a/nuttx/Documentation/NfsHowto.html
+++ b/nuttx/Documentation/NfsHowto.html
@@ -249,7 +249,7 @@ nfsmount &lt;server-address&gt; &lt;mount-point&gt; &lt;remote-path&gt;
</p>
<p>
<b>Example</b>.
- Suppose the the NFS server has been configured to export the directory <code>/export/shared</code>.
+ Suppose that the NFS server has been configured to export the directory <code>/export/shared</code>.
The the following command would mount that file system (assuming that the target also has privileges to mount the file system).
</p>
<ul><pre>
diff --git a/nuttx/Documentation/NuttShell.html b/nuttx/Documentation/NuttShell.html
index 500bfb195..16db13616 100644
--- a/nuttx/Documentation/NuttShell.html
+++ b/nuttx/Documentation/NuttShell.html
@@ -1043,7 +1043,7 @@ nsh> df
nsh>
</pre></ul>
<p>
- If <code>CONFIG_NSH_CMDOPT_DF_H</code> is defined in the NuttX configuration, the the <code>df</code> will also support an option <code>-h</code> which may be used to show the the volume information in <i>human readable</i> format.
+ If <code>CONFIG_NSH_CMDOPT_DF_H</code> is defined in the NuttX configuration, then the <code>df</code> will also support an option <code>-h</code> which may be used to show the volume information in <i>human readable</i> format.
</p>
<table width ="100%">
diff --git a/nuttx/Documentation/NuttX.html b/nuttx/Documentation/NuttX.html
index b7d752cce..f63f673a0 100644
--- a/nuttx/Documentation/NuttX.html
+++ b/nuttx/Documentation/NuttX.html
@@ -2612,7 +2612,7 @@ nsh>
Configurations available include include a verified NuttShell (NSH) configuration
(see the <a href="http://www.nuttx.org/Documentation/NuttShell.html">NSH User Guide</a>).
The NSH configuration supports the Nucleus2G's microSD slot and additional configurations
- are available to exercise the the USB serial and USB mass storage devices.
+ are available to exercise the USB serial and USB mass storage devices.
However, due to some technical reasons, neither the SPI nor the USB device drivers are fully verified.
(Although they have since been verfiied on other platforms; this needs to be revisited on the Nucleus2G).
</p>
@@ -2660,7 +2660,7 @@ nsh>
for USB serial deive and USB storage devices examples, and for the USB host HID keyboard driver.
Support for the USB host mass storage device can optionally be configured for the NSH example.
A driver for the <i>Nokia 6100 LCD</i> and an NX graphics configuration for the Olimex LPC1766-STK have been added.
- However, neither the LCD driver nor the NX configuration have been verified as of the the NuttX-5.17 release.
+ However, neither the LCD driver nor the NX configuration have been verified as of the NuttX-5.17 release.
</p>
</li>
<li>
@@ -4219,7 +4219,7 @@ Other memory:
so that is it compatible with the SPI drivers of other MCUs
(2013-6-16).
* configs/sam3u-ek/src/up_touchscreen.c and configs/sam4l-xplained/src/sam_mmcsd.c:
- Changed needed because of the above change the the SAM3/4 SPI
+ Changed needed because of the above change to the SAM3/4 SPI
interface (2013-6-16).
* drivers/input/ads7843e.c: Remove the wait for the touchscreen busy
bit. I don't see the busy bit changing on the SAM3U-EK board. But
@@ -4448,7 +4448,7 @@ Other memory:
* The sama5d3x-ek/hello now runs correctly (2013-7-28).
* configs/sama5d3x-ek/ostest/: This configuration has been modified
to run out NOR flash. More work is still needed to reconfigure the
- SMC so the the NOR flash can work with the high clock (2013-7-28).
+ SMC so that the NOR flash can work with the high clock (2013-7-28).
* arch/arm/src/sama5/sam_clockconfig.c/h and
configs/sama5d3x-ek/src/sam_norflash.c: Add a file structure that
will (eventually) support reconfiguration of NOR flash when NuttX
diff --git a/nuttx/Documentation/NuttXDemandPaging.html b/nuttx/Documentation/NuttXDemandPaging.html
index baa2626c2..e1ef29b24 100644
--- a/nuttx/Documentation/NuttXDemandPaging.html
+++ b/nuttx/Documentation/NuttXDemandPaging.html
@@ -232,7 +232,7 @@
<li>
<b>Sanity checking</b>.
This function will ASSERT if the currently executing task is the page fill worker thread.
- The page fill worker thread is how the the page fault is resolved and all logic associated with the page fill worker
+ The page fill worker thread is how the page fault is resolved and all logic associated with the page fill worker
must be &quot;<a href="#MemoryOrg">locked</a>&quot; and always present in memory.
</li>
<li>
diff --git a/nuttx/Documentation/NuttxPortingGuide.html b/nuttx/Documentation/NuttxPortingGuide.html
index 444d82659..04466e427 100644
--- a/nuttx/Documentation/NuttxPortingGuide.html
+++ b/nuttx/Documentation/NuttxPortingGuide.html
@@ -3513,7 +3513,7 @@ extern void up_ledoff(int led);
<p>
Each USB host class driver includes an intialization entry point that is called from the
application at initialization time.
- This driver calls <code>usbhost_registerclass()</code> during this initialization in order to makes itself available in the event the the device that it supports is connected.
+ This driver calls <code>usbhost_registerclass()</code> during this initialization in order to makes itself available in the event the device that it supports is connected.
</p>
<p>
<b>Examples</b>:
@@ -3559,7 +3559,7 @@ extern void up_ledoff(int led);
<li>
<p>
<b><code>include/nuttx/usb/usbdev_trace.h</code></b>.
- Declarations needed to work the the NuttX USB device driver trace capability.
+ Declarations needed to work with the NuttX USB device driver trace capability.
That USB trace capability is detailed in <a href="UsbTrace.html">separate document</a>.
</p>
</li>
@@ -4197,13 +4197,13 @@ void pm_activity(int priority);
enum pm_state_e pm_checkstate(void);
</pre></ul>
<p><b>Description:</b>
- This function is called from the MCU-specific IDLE loop to monitor the the power management conditions.
+ This function is called from the MCU-specific IDLE loop to monitor the power management conditions.
This function returns the &quot;recommended&quot; power management state based on the PM configuration and activity reported in the last sampling periods.
The power management state is not automatically changed, however.
The IDLE loop must call <code>pm_changestate()</code> in order to make the state change.
</p>
<p>
- These two steps are separated because the plaform-specific IDLE loop may have additional situational information that is not available to the the PM sub-system.
+ These two steps are separated because the platform-specific IDLE loop may have additional situational information that is not available to the PM sub-system.
For example, the IDLE loop may know that the battery charge level is very low and may force lower power states even if there is activity.
</p>
<p>
diff --git a/nuttx/Documentation/NuttxUserGuide.html b/nuttx/Documentation/NuttxUserGuide.html
index 36428215d..68df699dd 100644
--- a/nuttx/Documentation/NuttxUserGuide.html
+++ b/nuttx/Documentation/NuttxUserGuide.html
@@ -8462,7 +8462,7 @@ struct fat_format_s
<li>
<p>
The entire mapped portion of the file must be present in memory.
- Since it is assumed the the MCU does not have an MMU, on-demanding
+ Since it is assumed that the MCU does not have an MMU, on-demanding
paging in of file blocks cannot be supported. Since the while mapped
portion of the file must be present in memory, there are limitations
in the size of files that may be memory mapped (especially on MCUs
diff --git a/nuttx/README.txt b/nuttx/README.txt
index 01f6a9699..5c7b33146 100644
--- a/nuttx/README.txt
+++ b/nuttx/README.txt
@@ -477,7 +477,7 @@ NuttX Configuration Tool under DOS
And of course, after you use the configuration tool you need to
restore CONFIG_WINDOWS_NATIVE=y and the correct CONFIG_APPS_DIR.
- 2) You can, with some effort, run the the Cygwin kconfig-mconf tool
+ 2) You can, with some effort, run the Cygwin kconfig-mconf tool
directly in the Windows console window. In this case, you do not
have to modify the .config file, but there are other complexities:
@@ -791,7 +791,7 @@ Installing GNUWin32
5. After running GetGNUWin32-0.x.x.exe, you will have a new directory
<this-directory>/GetGNUWin32
- Note the the GNUWin32 installer didn't install GNUWin32. Instead, it
+ Note that the GNUWin32 installer didn't install GNUWin32. Instead, it
installed another, smarter downloader. That downloader is the GNUWin32
package management tool developed by the Open SSL project.
diff --git a/nuttx/ReleaseNotes b/nuttx/ReleaseNotes
index 444df8c62..3de0f203f 100644
--- a/nuttx/ReleaseNotes
+++ b/nuttx/ReleaseNotes
@@ -1769,7 +1769,7 @@ from the NuttX Porting Guide:
point that is called from the application at initialization
time. This driver calls usbhost_registerclass() during this
initialization in order to makes itself available in the
- event the the device that it supports is connected. Examples:
+ event that the device that it supports is connected. Examples:
The function usbhost_storageinit() in the file
drivers/usbhost/usbhost_storage.c
2. Each application must include a waiter thread thread that
diff --git a/nuttx/TODO b/nuttx/TODO
index 6ca81149b..87eed9c34 100644
--- a/nuttx/TODO
+++ b/nuttx/TODO
@@ -117,7 +117,7 @@ o Task/Scheduler (sched/)
Title: GET_ENVIRON_PTR()
Description: get_environ_ptr() (sched/sched_getenvironptr.c) is not implemented.
- The representation of the the environment strings selected for
+ The representation of the environment strings selected for
NutX is not compatible with the operation. Some significant
re-design would be required to implement this funcion and that
effort is thought to be not worth the result.
@@ -422,7 +422,7 @@ o Kernel Build
Linux, for example, has functions call up() and down(). up()
increments the semaphore count but does not call into the kernel
unless incrementing the count unblocks a task; similarly, down
- decrements the count and does not call into the the kernel unless
+ decrements the count and does not call into the kernel unless
the count becomes negative the caller must be blocked.
Update:
diff --git a/nuttx/arch/arm/src/arm/up_head.S b/nuttx/arch/arm/src/arm/up_head.S
index d9f8166b2..f969b4f34 100644
--- a/nuttx/arch/arm/src/arm/up_head.S
+++ b/nuttx/arch/arm/src/arm/up_head.S
@@ -275,7 +275,7 @@ __start:
* effect. First populate the L1 table for the locked and paged
* text regions.
*
- * We could probably make the the pg_l1span and pg_l2map macros into
+ * We could probably make the pg_l1span and pg_l2map macros into
* call-able subroutines, but we would have to be carefully during
* this phase while we are operating in a physical address space.
*
diff --git a/nuttx/arch/arm/src/armv7-a/arm_pghead.S b/nuttx/arch/arm/src/armv7-a/arm_pghead.S
index 931217e3f..e3730745a 100644
--- a/nuttx/arch/arm/src/armv7-a/arm_pghead.S
+++ b/nuttx/arch/arm/src/armv7-a/arm_pghead.S
@@ -265,7 +265,7 @@ __start:
* effect. First populate the L1 table for the locked and paged
* text regions.
*
- * We could probably make the the pg_l1span and pg_l2map macros into
+ * We could probably make the pg_l1span and pg_l2map macros into
* call-able subroutines, but we would have to be carefully during
* this phase while we are operating in a physical address space.
*
diff --git a/nuttx/arch/arm/src/armv7-a/arm_vectoraddrexcptn.S b/nuttx/arch/arm/src/armv7-a/arm_vectoraddrexcptn.S
index b23f6af1a..044a441c0 100644
--- a/nuttx/arch/arm/src/armv7-a/arm_vectoraddrexcptn.S
+++ b/nuttx/arch/arm/src/armv7-a/arm_vectoraddrexcptn.S
@@ -75,7 +75,7 @@
* Description:
* Shouldn't happen. This exception handler is in a separate file from
* other vector handlers because some processors (e.g., Cortex-A5) do not
- * support the the Address Exception vector.
+ * support the Address Exception vector.
*
****************************************************************************/
diff --git a/nuttx/arch/arm/src/armv7-a/cache.h b/nuttx/arch/arm/src/armv7-a/cache.h
index 19d385944..aa1c7c3f1 100644
--- a/nuttx/arch/arm/src/armv7-a/cache.h
+++ b/nuttx/arch/arm/src/armv7-a/cache.h
@@ -968,7 +968,7 @@ void cp15_clean_dcache(uintptr_t start, uintptr_t end);
*
* Description:
* Flush the data cache within the specified region by cleaning and
- * invalidating the the D cache.
+ * invalidating the D cache.
*
* Input Parameters:
* start - virtual start address of region
diff --git a/nuttx/arch/arm/src/armv7-a/cp15_flush_dcache.S b/nuttx/arch/arm/src/armv7-a/cp15_flush_dcache.S
index b73abf7d9..9ff8e1972 100755
--- a/nuttx/arch/arm/src/armv7-a/cp15_flush_dcache.S
+++ b/nuttx/arch/arm/src/armv7-a/cp15_flush_dcache.S
@@ -76,7 +76,7 @@
*
* Description:
* Flush the data cache within the specified region by cleaning and
- * invalidating the the D cache.
+ * invalidating the D cache.
*
* Input Parameters:
* start - virtual start address of region
diff --git a/nuttx/arch/arm/src/armv7-m/ram_vectors.h b/nuttx/arch/arm/src/armv7-m/ram_vectors.h
index 90bcc30e6..5b228d69c 100644
--- a/nuttx/arch/arm/src/armv7-m/ram_vectors.h
+++ b/nuttx/arch/arm/src/armv7-m/ram_vectors.h
@@ -77,7 +77,7 @@
/* If CONFIG_ARCH_RAMVECTORS is defined, then the ARM logic must provide
* ARM-specific implementations of irq_initialize(), irq_attach(), and
* irq_dispatch. In this case, it is also assumed that the ARM vector
- * table resides in RAM, has the the name up_ram_vectors, and has been
+ * table resides in RAM, has the name up_ram_vectors, and has been
* properly positioned and aligned in memory by the linker script.
*/
diff --git a/nuttx/arch/arm/src/armv7-m/up_ramvec_initialize.c b/nuttx/arch/arm/src/armv7-m/up_ramvec_initialize.c
index 806bdf3fc..ee8ac43d0 100644
--- a/nuttx/arch/arm/src/armv7-m/up_ramvec_initialize.c
+++ b/nuttx/arch/arm/src/armv7-m/up_ramvec_initialize.c
@@ -65,7 +65,7 @@
/* If CONFIG_ARCH_RAMVECTORS is defined, then the ARM logic must provide
* ARM-specific implementations of up_ramvec_initialize(), irq_attach(), and
* irq_dispatch. In this case, it is also assumed that the ARM vector
- * table resides in RAM, has the the name up_ram_vectors, and has been
+ * table resides in RAM, has the name up_ram_vectors, and has been
* properly positioned and aligned in memory by the linker script.
*/
diff --git a/nuttx/arch/arm/src/kinetis/kinetis_sdhc.c b/nuttx/arch/arm/src/kinetis/kinetis_sdhc.c
index eec5fba0e..4c392cbf8 100644
--- a/nuttx/arch/arm/src/kinetis/kinetis_sdhc.c
+++ b/nuttx/arch/arm/src/kinetis/kinetis_sdhc.c
@@ -742,7 +742,7 @@ static void kinetis_dataconfig(struct kinetis_dev_s *priv, bool bwrite,
* Name: kinetis_datadisable
*
* Description:
- * Disable the the SDIO data path setup by kinetis_dataconfig() and
+ * Disable the SDIO data path setup by kinetis_dataconfig() and
* disable DMA.
*
****************************************************************************/
diff --git a/nuttx/arch/arm/src/kinetis/kinetis_serial.c b/nuttx/arch/arm/src/kinetis/kinetis_serial.c
index f176f5fa0..5bce5060f 100644
--- a/nuttx/arch/arm/src/kinetis/kinetis_serial.c
+++ b/nuttx/arch/arm/src/kinetis/kinetis_serial.c
@@ -900,8 +900,8 @@ static int up_interrupts(int irq, void *context)
if (count > 0)
#else
/* Check if the receive data register is full (RDRF). NOTE: If
- * FIFOS are enabled, this does not mean that the the FIFO is full,
- * rather, it means that the the number of bytes in the RX FIFO has
+ * FIFOS are enabled, this does not mean that the FIFO is full,
+ * rather, it means that the number of bytes in the RX FIFO has
* exceeded the watermark setting. There may actually be RX data
* available!
*
@@ -929,8 +929,8 @@ static int up_interrupts(int irq, void *context)
# error "Missing logic"
#else
/* Check if the transmit data register is "empty." NOTE: If FIFOS
- * are enabled, this does not mean that the the FIFO is empty, rather,
- * it means that the the number of bytes in the TX FIFO is below the
+ * are enabled, this does not mean that the FIFO is empty, rather,
+ * it means that the number of bytes in the TX FIFO is below the
* watermark setting. There could actually be space for additional TX
* data.
*
@@ -1090,8 +1090,8 @@ static bool up_rxavailable(struct uart_dev_s *dev)
return count > 0;
#else
/* Return true if the receive data register is full (RDRF). NOTE: If
- * FIFOS are enabled, this does not mean that the the FIFO is full,
- * rather, it means that the the number of bytes in the RX FIFO has
+ * FIFOS are enabled, this does not mean that the FIFO is full,
+ * rather, it means that the number of bytes in the RX FIFO has
* exceeded the watermark setting. There may actually be RX data
* available!
*/
@@ -1175,8 +1175,8 @@ static bool up_txready(struct uart_dev_s *dev)
# error "Missing logic"
#else
/* Return true if the transmit data register is "empty." NOTE: If
- * FIFOS are enabled, this does not mean that the the FIFO is empty,
- * rather, it means that the the number of bytes in the TX FIFO is
+ * FIFOS are enabled, this does not mean that the FIFO is empty,
+ * rather, it means that the number of bytes in the TX FIFO is
* below the watermark setting. There may actually be space for
* additional TX data.
*/
diff --git a/nuttx/arch/arm/src/kinetis/kinetis_vectors.S b/nuttx/arch/arm/src/kinetis/kinetis_vectors.S
index 220c64053..8394ff916 100644
--- a/nuttx/arch/arm/src/kinetis/kinetis_vectors.S
+++ b/nuttx/arch/arm/src/kinetis/kinetis_vectors.S
@@ -626,7 +626,7 @@ kinetis_common:
sub r1, #(4*SW_FPU_REGS)
#endif
- /* Save the the remaining registers on the stack after the registers pushed
+ /* Save the remaining registers on the stack after the registers pushed
* by the exception handling logic. r2=SP and r3=primask or basepri, r4-r11,
* r14=register values.
*/
diff --git a/nuttx/arch/arm/src/kl/kl_serial.c b/nuttx/arch/arm/src/kl/kl_serial.c
index a2f3918c7..10f4f7d6e 100644
--- a/nuttx/arch/arm/src/kl/kl_serial.c
+++ b/nuttx/arch/arm/src/kl/kl_serial.c
@@ -547,8 +547,8 @@ static int up_interrupts(int irq, void *context)
s1 = up_serialin(priv, KL_UART_S1_OFFSET);
/* Check if the receive data register is full (RDRF). NOTE: If
- * FIFOS are enabled, this does not mean that the the FIFO is full,
- * rather, it means that the the number of bytes in the RX FIFO has
+ * FIFOS are enabled, this does not mean that the FIFO is full,
+ * rather, it means that the number of bytes in the RX FIFO has
* exceeded the watermark setting. There may actually be RX data
* available!
*
@@ -567,8 +567,8 @@ static int up_interrupts(int irq, void *context)
/* Handle outgoing, transmit bytes */
/* Check if the transmit data register is "empty." NOTE: If FIFOS
- * are enabled, this does not mean that the the FIFO is empty, rather,
- * it means that the the number of bytes in the TX FIFO is below the
+ * are enabled, this does not mean that the FIFO is empty, rather,
+ * it means that the number of bytes in the TX FIFO is below the
* watermark setting. There could actually be space for additional TX
* data.
*
@@ -728,8 +728,8 @@ static bool up_rxavailable(struct uart_dev_s *dev)
struct up_dev_s *priv = (struct up_dev_s*)dev->priv;
/* Return true if the receive data register is full (RDRF). NOTE: If
- * FIFOS are enabled, this does not mean that the the FIFO is full,
- * rather, it means that the the number of bytes in the RX FIFO has
+ * FIFOS are enabled, this does not mean that the FIFO is full,
+ * rather, it means that the number of bytes in the RX FIFO has
* exceeded the watermark setting. There may actually be RX data
* available!
*/
@@ -804,8 +804,8 @@ static bool up_txready(struct uart_dev_s *dev)
struct up_dev_s *priv = (struct up_dev_s*)dev->priv;
/* Return true if the transmit data register is "empty." NOTE: If
- * FIFOS are enabled, this does not mean that the the FIFO is empty,
- * rather, it means that the the number of bytes in the TX FIFO is
+ * FIFOS are enabled, this does not mean that the FIFO is empty,
+ * rather, it means that the number of bytes in the TX FIFO is
* below the watermark setting. There may actually be space for
* additional TX data.
*/
diff --git a/nuttx/arch/arm/src/lm/lm_vectors.S b/nuttx/arch/arm/src/lm/lm_vectors.S
index 0f5a8e555..0a146d691 100644
--- a/nuttx/arch/arm/src/lm/lm_vectors.S
+++ b/nuttx/arch/arm/src/lm/lm_vectors.S
@@ -229,7 +229,7 @@ lm_irqcommon:
sub r1, #(4*SW_FPU_REGS)
#endif
- /* Save the the remaining registers on the stack after the registers pushed
+ /* Save the remaining registers on the stack after the registers pushed
* by the exception handling logic. r2=SP and r3=primask or basepri, r4-r11,
* r14=register values.
*/
diff --git a/nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c b/nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c
index 0241d4bf7..b6be03e50 100644
--- a/nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c
+++ b/nuttx/arch/arm/src/lpc17xx/lpc17_ethernet.c
@@ -2495,7 +2495,7 @@ static inline int lpc17_ethinitialize(int intf)
#endif
if (ret != 0)
{
- /* We could not attach the ISR to the the interrupt */
+ /* We could not attach the ISR to the interrupt */
return -EAGAIN;
}
diff --git a/nuttx/arch/arm/src/lpc17xx/lpc17_sdcard.c b/nuttx/arch/arm/src/lpc17xx/lpc17_sdcard.c
index 28a74deed..0fd719f24 100644
--- a/nuttx/arch/arm/src/lpc17xx/lpc17_sdcard.c
+++ b/nuttx/arch/arm/src/lpc17xx/lpc17_sdcard.c
@@ -636,7 +636,7 @@ static void lpc17_setpwrctrl(uint32_t pwrctrl)
*
* Description:
* Return the current value of the the PWRCTRL field of the SD card P
- * register. This function can be used to see the the SD card is power ON
+ * register. This function can be used to see if the SD card is powered ON
* or OFF
*
* Input Parameters:
@@ -908,7 +908,7 @@ static void lpc17_dataconfig(uint32_t timeout, uint32_t dlen, uint32_t dctrl)
* Name: lpc17_datadisable
*
* Description:
- * Disable the the SD card data path setup by lpc17_dataconfig() and
+ * Disable the SD card data path setup by lpc17_dataconfig() and
* disable DMA.
*
****************************************************************************/
diff --git a/nuttx/arch/arm/src/lpc17xx/lpc17_vectors.S b/nuttx/arch/arm/src/lpc17xx/lpc17_vectors.S
index 569559079..66e76932d 100644
--- a/nuttx/arch/arm/src/lpc17xx/lpc17_vectors.S
+++ b/nuttx/arch/arm/src/lpc17xx/lpc17_vectors.S
@@ -238,7 +238,7 @@ lpc17_common:
sub r1, #(4*SW_FPU_REGS)
#endif
- /* Save the the remaining registers on the stack after the registers pushed
+ /* Save the remaining registers on the stack after the registers pushed
* by the exception handling logic. r2=SP and r3=primask or basepri, r4-r11,
* r14=register values.
*/
diff --git a/nuttx/arch/arm/src/lpc31xx/lpc31_cgudrvr.h b/nuttx/arch/arm/src/lpc31xx/lpc31_cgudrvr.h
index a408f56b2..8aae207ed 100644
--- a/nuttx/arch/arm/src/lpc31xx/lpc31_cgudrvr.h
+++ b/nuttx/arch/arm/src/lpc31xx/lpc31_cgudrvr.h
@@ -794,7 +794,7 @@ EXTERN uint32_t lpc31_clkfreq(enum lpc31_clockid_e clkid,
* Name: lpc31_enableexten
*
* Description:
- * Enable external enabling for the the specified possible clocks.
+ * Enable external enabling for the specified possible clocks.
*
************************************************************************/
@@ -804,7 +804,7 @@ EXTERN void lpc31_enableexten(enum lpc31_clockid_e clkid);
* Name: lpc31_disableexten
*
* Description:
- * Disable external enabling for the the specified possible clocks.
+ * Disable external enabling for the specified possible clocks.
*
************************************************************************/
diff --git a/nuttx/arch/arm/src/lpc31xx/lpc31_clkexten.c b/nuttx/arch/arm/src/lpc31xx/lpc31_clkexten.c
index 20bd0c776..4ed0e5f73 100644
--- a/nuttx/arch/arm/src/lpc31xx/lpc31_clkexten.c
+++ b/nuttx/arch/arm/src/lpc31xx/lpc31_clkexten.c
@@ -69,7 +69,7 @@
* Name: lpc31_enableexten
*
* Description:
- * Enable external enabling for the the specified possible clocks.
+ * Enable external enabling for the specified possible clocks.
*
****************************************************************************/
@@ -112,7 +112,7 @@ void lpc31_enableexten(enum lpc31_clockid_e clkid)
* Name: lpc31_disableexten
*
* Description:
- * Disable external enabling for the the specified possible clocks.
+ * Disable external enabling for the specified possible clocks.
*
****************************************************************************/
diff --git a/nuttx/arch/arm/src/lpc31xx/lpc31_softreset.c b/nuttx/arch/arm/src/lpc31xx/lpc31_softreset.c
index fcade115a..7deb33a24 100644
--- a/nuttx/arch/arm/src/lpc31xx/lpc31_softreset.c
+++ b/nuttx/arch/arm/src/lpc31xx/lpc31_softreset.c
@@ -84,7 +84,7 @@ void lpc31_softreset(enum lpc31_resetid_e resetid)
for (i = 0;i < 1000; i++);
- /* Then set the the soft reset bit */
+ /* Then set the soft reset bit */
putreg32(CGU_SOFTRESET, address);
}
diff --git a/nuttx/arch/arm/src/lpc43xx/lpc43_rgu.c b/nuttx/arch/arm/src/lpc43xx/lpc43_rgu.c
index d5ab819dc..f42fda3c2 100644
--- a/nuttx/arch/arm/src/lpc43xx/lpc43_rgu.c
+++ b/nuttx/arch/arm/src/lpc43xx/lpc43_rgu.c
@@ -76,7 +76,7 @@
* Reset as many of the LPC43 peripherals as possible. This is necessary
* because the LPC43 does not provide any way of performing a full system
* reset under debugger control. So, if CONFIG_DEBUG is set (indicating
- * that a debugger is being used?), the the boot logic will call this
+ * that a debugger is being used?), the boot logic will call this
* function on all restarts.
*
* Assumptions:
@@ -93,7 +93,7 @@ void lpc43_softreset(void)
/* Disable interrupts */
flags = irqsave();
-
+
/* Reset all of the peripherals that we can (safely) */
putreg32((RGU_CTRL0_LCD_RST | RGU_CTRL0_USB0_RST |
diff --git a/nuttx/arch/arm/src/lpc43xx/lpc43_rgu.h b/nuttx/arch/arm/src/lpc43xx/lpc43_rgu.h
index 364b4d066..80b56adde 100644
--- a/nuttx/arch/arm/src/lpc43xx/lpc43_rgu.h
+++ b/nuttx/arch/arm/src/lpc43xx/lpc43_rgu.h
@@ -76,7 +76,7 @@ extern "C" {
* Reset as many of the LPC43 peripherals as possible. This is necessary
* because the LPC43 does not provide any way of performing a full system
* reset under debugger control. So, if CONFIG_DEBUG is set (indicating
- * that a debugger is being used?), the the boot logic will call this
+ * that a debugger is being used?), the boot logic will call this
* function on all restarts.
*
****************************************************************************/
diff --git a/nuttx/arch/arm/src/lpc43xx/lpc43_start.c b/nuttx/arch/arm/src/lpc43xx/lpc43_start.c
index bb9d8c6ab..8dc9f66b9 100644
--- a/nuttx/arch/arm/src/lpc43xx/lpc43_start.c
+++ b/nuttx/arch/arm/src/lpc43xx/lpc43_start.c
@@ -114,7 +114,7 @@ static inline void lpc43_setbootrom(void)
putreg32(LPC43_ROM_BASE, LPC43_CREG_M4MEMMAP);
- /* Address zero now maps to the Boot ROM. Make sure the the VTOR will
+ /* Address zero now maps to the Boot ROM. Make sure that the VTOR will
* use the ROM vector table at that address.
*/
@@ -197,7 +197,7 @@ static inline void lpc43_fpuconfig(void)
* with the volatile FP registers stacked above the basic context.
*/
- regval = getcontrol();
+ regval = getcontrol();
regval |= (1 << 2);
setcontrol(regval);
@@ -227,7 +227,7 @@ static inline void lpc43_fpuconfig(void)
* with the volatile FP registers stacked in the saved context.
*/
- regval = getcontrol();
+ regval = getcontrol();
regval &= ~(1 << 2);
setcontrol(regval);
@@ -273,7 +273,7 @@ void __start(void)
/* Reset as many of the LPC43 peripherals as possible. This is necessary
* because the LPC43 does not provide any way of performing a full system
* reset under debugger control. So, if CONFIG_DEBUG is set (indicating
- * that a debugger is being used?), the the boot logic will call this
+ * that a debugger is being used?), the boot logic will call this
* function on all restarts.
*/
diff --git a/nuttx/arch/arm/src/nuc1xx/nuc_gpio.c b/nuttx/arch/arm/src/nuc1xx/nuc_gpio.c
index 366226a8c..95f1ff143 100644
--- a/nuttx/arch/arm/src/nuc1xx/nuc_gpio.c
+++ b/nuttx/arch/arm/src/nuc1xx/nuc_gpio.c
@@ -101,7 +101,7 @@ int nuc_configgpio(gpio_cfgset_t cfgset)
DEBUGASSERT((unsigned)port <= NUC_GPIO_PORTE);
base = NUC_GPIO_CTRL_BASE(port);
- /* Set the the GPIO PMD register */
+ /* Set the GPIO PMD register */
regaddr = base + NUC_GPIO_PMD_OFFSET;
regval = getreg32(regaddr);
diff --git a/nuttx/arch/arm/src/nuc1xx/nuc_lowputc.c b/nuttx/arch/arm/src/nuc1xx/nuc_lowputc.c
index 7e8766a73..f8fe44145 100644
--- a/nuttx/arch/arm/src/nuc1xx/nuc_lowputc.c
+++ b/nuttx/arch/arm/src/nuc1xx/nuc_lowputc.c
@@ -86,7 +86,7 @@
#endif
/* Select either the external high speed crystal, the PLL output, or
- * the internal high speed clock as the the UART clock source.
+ * the internal high speed clock as the UART clock source.
*/
#if defined(CONFIG_NUC_UARTCLK_XTALHI)
diff --git a/nuttx/arch/arm/src/sam34/sam3u_dmac.c b/nuttx/arch/arm/src/sam34/sam3u_dmac.c
index 32a693d4d..9a5d85aa6 100644
--- a/nuttx/arch/arm/src/sam34/sam3u_dmac.c
+++ b/nuttx/arch/arm/src/sam34/sam3u_dmac.c
@@ -298,7 +298,7 @@ static inline uint32_t sam_fifocfg(struct sam_dma_s *dmach)
* Name: sam_txcfg
*
* Description:
- * Decode the the flags to get the correct CFG register bit settings for
+ * Decode the flags to get the correct CFG register bit settings for
* a transmit (memory to peripheral) transfer.
*
****************************************************************************/
@@ -322,7 +322,7 @@ static inline uint32_t sam_txcfg(struct sam_dma_s *dmach)
* Name: sam_rxcfg
*
* Description:
- * Decode the the flags to get the correct CFG register bit settings for
+ * Decode the flags to get the correct CFG register bit settings for
* a receive (peripheral to memory) transfer.
*
****************************************************************************/
@@ -346,7 +346,7 @@ static inline uint32_t sam_rxcfg(struct sam_dma_s *dmach)
* Name: sam_txctrlabits
*
* Description:
- * Decode the the flags to get the correct CTRLA register bit settings for
+ * Decode the flags to get the correct CTRLA register bit settings for
* a transmit (memory to peripheral) transfer. These are only the "fixed"
* CTRLA values and need to be updated with the actual transfer size before
* being written to CTRLA sam_txctrla).
@@ -492,7 +492,7 @@ static inline uint32_t sam_txctrla(struct sam_dma_s *dmach,
* Name: sam_rxctrlabits
*
* Description:
- * Decode the the flags to get the correct CTRLA register bit settings for
+ * Decode the flags to get the correct CTRLA register bit settings for
* a read (peripheral to memory) transfer. These are only the "fixed" CTRLA
* values and need to be updated with the actual transfer size before being
* written to CTRLA sam_rxctrla).
@@ -637,7 +637,7 @@ static inline uint32_t sam_rxctrla(struct sam_dma_s *dmach,
* Name: sam_txctrlb
*
* Description:
- * Decode the the flags to get the correct CTRLB register bit settings for
+ * Decode the flags to get the correct CTRLB register bit settings for
* a transmit (memory to peripheral) transfer.
*
****************************************************************************/
@@ -716,7 +716,7 @@ static inline uint32_t sam_txctrlb(struct sam_dma_s *dmach)
* Name: sam_rxctrlb
*
* Description:
- * Decode the the flags to get the correct CTRLB register bit settings for
+ * Decode the flags to get the correct CTRLB register bit settings for
* a receive (peripheral to memory) transfer.
*
****************************************************************************/
diff --git a/nuttx/arch/arm/src/sam34/sam_vectors.S b/nuttx/arch/arm/src/sam34/sam_vectors.S
index b38adf05f..fde817be4 100644
--- a/nuttx/arch/arm/src/sam34/sam_vectors.S
+++ b/nuttx/arch/arm/src/sam34/sam_vectors.S
@@ -244,7 +244,7 @@ sam_common:
sub r1, #(4*SW_FPU_REGS)
#endif
- /* Save the the remaining registers on the stack after the registers pushed
+ /* Save the remaining registers on the stack after the registers pushed
* by the exception handling logic. r2=SP and r3=primask or basepri, r4-r11,
* r14=register values.
*/
diff --git a/nuttx/arch/arm/src/sama5/chip/sama5d3x_memorymap.h b/nuttx/arch/arm/src/sama5/chip/sama5d3x_memorymap.h
index a24f9d834..db1f82939 100644
--- a/nuttx/arch/arm/src/sama5/chip/sama5d3x_memorymap.h
+++ b/nuttx/arch/arm/src/sama5/chip/sama5d3x_memorymap.h
@@ -527,7 +527,7 @@
* in the file mmu.h
*
* We must declare the page table at the bottom or at the top of internal
- * SRAM. We pick the the bottom of internal SRAM *unless* there are vectors
+ * SRAM. We pick the bottom of internal SRAM *unless* there are vectors
* in the way at that position.
*/
diff --git a/nuttx/arch/arm/src/sama5/sam_boot.c b/nuttx/arch/arm/src/sama5/sam_boot.c
index f3b342707..49dd5e540 100644
--- a/nuttx/arch/arm/src/sama5/sam_boot.c
+++ b/nuttx/arch/arm/src/sama5/sam_boot.c
@@ -172,7 +172,7 @@ static const struct section_mapping_s section_mapping[] =
/* SAMA5 External SDRAM Memory. The SDRAM is not usable until it has been
* initialized. If we are running out of SDRAM now, we can assume that some
* second level boot loader has properly configured SRAM for us. In that
- * case, we set the the MMU flags for the final, fully cache-able state.
+ * case, we set the MMU flags for the final, fully cache-able state.
*
* If we are running from ISRAM or NOR flash, then we will need to configure
* the SDRAM ourselves. In this case, we set the MMU flags to the strongly
diff --git a/nuttx/arch/arm/src/sama5/sam_dmac.c b/nuttx/arch/arm/src/sama5/sam_dmac.c
index 84e1fb8d0..07ec99946 100644
--- a/nuttx/arch/arm/src/sama5/sam_dmac.c
+++ b/nuttx/arch/arm/src/sama5/sam_dmac.c
@@ -748,7 +748,7 @@ static uint32_t sam_sink_channel(struct sam_dmach_s *dmach, uint8_t pid,
* Name: sam_txcfg
*
* Description:
- * Decode the the flags to get the correct CFG register bit settings for
+ * Decode the flags to get the correct CFG register bit settings for
* a transmit (memory to peripheral) transfer.
*
****************************************************************************/
@@ -788,7 +788,7 @@ static inline uint32_t sam_txcfg(struct sam_dmach_s *dmach)
* Name: sam_rxcfg
*
* Description:
- * Decode the the flags to get the correct CFG register bit settings for
+ * Decode the flags to get the correct CFG register bit settings for
* a receive (peripheral to memory) transfer.
*
****************************************************************************/
@@ -828,7 +828,7 @@ static inline uint32_t sam_rxcfg(struct sam_dmach_s *dmach)
* Name: sam_txctrlabits
*
* Description:
- * Decode the the flags to get the correct CTRLA register bit settings for
+ * Decode the flags to get the correct CTRLA register bit settings for
* a transmit (memory to peripheral) transfer. These are only the "fixed"
* CTRLA values and need to be updated with the actual transfer size before
* being written to CTRLA sam_txctrla).
@@ -932,7 +932,7 @@ static uint32_t sam_ntxtransfers(struct sam_dmach_s *dmach, uint32_t dmasize)
{
unsigned int srcwidth;
- /* Adjust the the source transfer size for the source chunk size (memory
+ /* Adjust the source transfer size for the source chunk size (memory
* chunk size). BTSIZE is "the number of transfers to be performed, that
* is, for writes it refers to the number of source width transfers
* to perform when DMAC is flow controller. For Reads, BTSIZE refers to
@@ -992,7 +992,7 @@ static inline uint32_t sam_txctrla(struct sam_dmach_s *dmach,
* Name: sam_rxctrlabits
*
* Description:
- * Decode the the flags to get the correct CTRLA register bit settings for
+ * Decode the flags to get the correct CTRLA register bit settings for
* a read (peripheral to memory) transfer. These are only the "fixed" CTRLA
* values and need to be updated with the actual transfer size before being
* written to CTRLA sam_rxctrla).
@@ -1100,7 +1100,7 @@ static uint32_t sam_nrxtransfers(struct sam_dmach_s *dmach, uint32_t dmasize)
{
unsigned int srcwidth;
- /* Adjust the the source transfer size for the source chunk size (peripheral
+ /* Adjust the source transfer size for the source chunk size (peripheral
* chunk size). BTSIZE is "the number of transfers to be performed, that
* is, for writes it refers to the number of source width transfers
* to perform when DMAC is flow controller. For Reads, BTSIZE refers to
@@ -1160,7 +1160,7 @@ static inline uint32_t sam_rxctrla(struct sam_dmach_s *dmach,
* Name: sam_txctrlb
*
* Description:
- * Decode the the flags to get the correct CTRLB register bit settings for
+ * Decode the flags to get the correct CTRLB register bit settings for
* a transmit (memory to peripheral) transfer.
*
****************************************************************************/
@@ -1251,7 +1251,7 @@ static inline uint32_t sam_txctrlb(struct sam_dmach_s *dmach)
* Name: sam_rxctrlb
*
* Description:
- * Decode the the flags to get the correct CTRLB register bit settings for
+ * Decode the flags to get the correct CTRLB register bit settings for
* a receive (peripheral to memory) transfer.
*
****************************************************************************/
diff --git a/nuttx/arch/arm/src/sama5/sam_ehci.c b/nuttx/arch/arm/src/sama5/sam_ehci.c
index 3ad06d0e4..cbc0bb1bd 100755
--- a/nuttx/arch/arm/src/sama5/sam_ehci.c
+++ b/nuttx/arch/arm/src/sama5/sam_ehci.c
@@ -1389,7 +1389,7 @@ static void sam_qh_enqueue(struct sam_qh_s *qh)
{
uintptr_t physaddr;
- /* Set the internal fqp field. When we transverse the the QH list later,
+ /* Set the internal fqp field. When we transverse the QH list later,
* we need to know the correct place to start because the overlay may no
* longer point to the first qTD entry.
*/
@@ -1554,7 +1554,7 @@ static int sam_qtd_addbpl(struct sam_qtd_s *qtd, const void *buffer, size_t bufl
next = (physaddr + 4096) & ~4095;
- /* How many bytes were included in the last buffer? Was the the whole
+ /* How many bytes were included in the last buffer? Was it the whole
* thing?
*/
@@ -2059,7 +2059,7 @@ static int sam_qtd_ioccheck(struct sam_qtd_s *qtd, uint32_t **bp, void *arg)
**bp = qtd->hw.nqp;
/* Subtract the number of bytes left untransferred. The epinfo->xfrd
- * field is initialized to the the total number of bytes to be transferred
+ * field is initialized to the total number of bytes to be transferred
* (all qTDs in the list). We subtract out the number of untransferred
* bytes on each transfer and the final result will be the number of bytes
* actually transferred.
@@ -3825,7 +3825,7 @@ FAR struct usbhost_connection_s *sam_ehci_initialize(int controller)
regval16 = sam_swap16(HCCR->hciversion);
uvdbg("HCIVERSION %x.%02x\n", regval16 >> 8, regval16 & 0xff);
- /* Verify the the correct number of ports is reported */
+ /* Verify that the correct number of ports is reported */
regval = sam_getreg(&HCCR->hcsparams);
nports = (regval & EHCI_HCSPARAMS_NPORTS_MASK) >> EHCI_HCSPARAMS_NPORTS_SHIFT;
diff --git a/nuttx/arch/arm/src/stm32/stm32_can.c b/nuttx/arch/arm/src/stm32/stm32_can.c
index a3011cde4..9333baec3 100644
--- a/nuttx/arch/arm/src/stm32/stm32_can.c
+++ b/nuttx/arch/arm/src/stm32/stm32_can.c
@@ -1332,7 +1332,7 @@ static int can_bittiming(struct stm32_can_s *priv)
canllvdbg("TS1: %d TS2: %d BRP: %d\n", ts1, ts2, brp);
- /* Configure bit timing. This also does the the following, less obvious
+ /* Configure bit timing. This also does the following, less obvious
* things. Unless loopback mode is enabled, it:
*
* - Disables silent mode.
diff --git a/nuttx/arch/arm/src/stm32/stm32_eth.c b/nuttx/arch/arm/src/stm32/stm32_eth.c
index 09efaf193..c61ea1f7c 100644
--- a/nuttx/arch/arm/src/stm32/stm32_eth.c
+++ b/nuttx/arch/arm/src/stm32/stm32_eth.c
@@ -1219,7 +1219,7 @@ static int stm32_uiptxpoll(struct uip_driver_s *dev)
*
* Description:
* The function is called when a frame is received using the DMA receive
- * interrupt. It scans the RX descriptors to the the received frame.
+ * interrupt. It scans the RX descriptors to the received frame.
*
* Parameters:
* priv - Reference to the driver state structure
@@ -1347,7 +1347,7 @@ static void stm32_disableint(FAR struct stm32_ethmac_s *priv, uint32_t ierbit)
*
* Description:
* The function is called when a frame is received using the DMA receive
- * interrupt. It scans the RX descriptors to the the received frame.
+ * interrupt. It scans the RX descriptors to the received frame.
*
* Parameters:
* priv - Reference to the driver state structure
@@ -1506,7 +1506,7 @@ static int stm32_recvframe(FAR struct stm32_ethmac_s *priv)
dev->d_len = ((rxdesc->rdes0 & ETH_RDES0_FL_MASK) >> ETH_RDES0_FL_SHIFT) - 4;
/* Get a buffer from the free list. We don't even check if
- * this is successful because we already assure the the free
+ * this is successful because we already assure the free
* list is not empty above.
*/
@@ -2536,7 +2536,7 @@ static inline int stm32_dm9161(FAR struct stm32_ethmac_s *priv)
return ret;
}
- /* Bit 8 of the DSCR register is zero, the the DM9161 has not selected RMII.
+ /* Bit 8 of the DSCR register is zero, then the DM9161 has not selected RMII.
* If RMII is not selected, then reset the MCU to recover.
*/
diff --git a/nuttx/arch/arm/src/stm32/stm32_iwdg.c b/nuttx/arch/arm/src/stm32/stm32_iwdg.c
index fd51ba0fe..6b4bc5b65 100644
--- a/nuttx/arch/arm/src/stm32/stm32_iwdg.c
+++ b/nuttx/arch/arm/src/stm32/stm32_iwdg.c
@@ -673,7 +673,7 @@ void stm32_iwdginitialize(FAR const char *devpath, uint32_t lsifreq)
/* Make sure that the LSI ocsillator is enabled. NOTE: The LSI oscillator
* is enabled here but is not disabled by this file (because this file does
- * not know the the global usage of the oscillator. Any clock management
+ * not know the global usage of the oscillator. Any clock management
* logic (say, as part of a power management scheme) needs handle other
* LSI controls outside of this file.
*/
diff --git a/nuttx/arch/arm/src/stm32/stm32_otgfshost.c b/nuttx/arch/arm/src/stm32/stm32_otgfshost.c
index 84903b3f8..c3a795faf 100644
--- a/nuttx/arch/arm/src/stm32/stm32_otgfshost.c
+++ b/nuttx/arch/arm/src/stm32/stm32_otgfshost.c
@@ -996,7 +996,7 @@ static int stm32_chan_wait(FAR struct stm32_usbhost_s *priv,
static void stm32_chan_wakeup(FAR struct stm32_usbhost_s *priv,
FAR struct stm32_chan_s *chan)
{
- /* Is the the transfer complete? Is there a thread waiting for this transfer
+ /* Is the transfer complete? Is there a thread waiting for this transfer
* to complete?
*/
@@ -1774,7 +1774,7 @@ static inline void stm32_gint_hcinisr(FAR struct stm32_usbhost_s *priv,
stm32_chan_halt(priv, chidx, CHREASON_XFRC);
/* Clear any pending NAK condition. The 'indata1' data toggle
- * should have been appropriately updated by the the RxFIFO
+ * should have been appropriately updated by the RxFIFO
* logic as each packet was received.
*/
@@ -2961,7 +2961,7 @@ static inline void stm32_hostinit_enable(void)
* Enable Tx FIFO empty interrupts. This is necessary when the entire
* transfer will not fit into Tx FIFO. The transfer will then be completed
* when the Tx FIFO is empty. NOTE: The Tx FIFO interrupt is disabled
- * the the fifo empty interrupt handler when the transfer is complete.
+ * the fifo empty interrupt handler when the transfer is complete.
*
* Input Parameters:
* priv - Driver state structure reference
diff --git a/nuttx/arch/arm/src/stm32/stm32_rcc.h b/nuttx/arch/arm/src/stm32/stm32_rcc.h
index 4f96f21da..76c47680e 100644
--- a/nuttx/arch/arm/src/stm32/stm32_rcc.h
+++ b/nuttx/arch/arm/src/stm32/stm32_rcc.h
@@ -76,7 +76,7 @@ extern "C"
* Public Data
************************************************************************************/
-/* This symbol references the Cortex-M3 vector table (as positioned by the the linker
+/* This symbol references the Cortex-M3 vector table (as positioned by the linker
* script, ld.script or ld.script.dfu. The standard location for the vector table is
* at the beginning of FLASH at address 0x0800:0000. If we are using the STMicro DFU
* bootloader, then the vector table will be offset to a different location in FLASH
diff --git a/nuttx/arch/arm/src/stm32/stm32_sdio.c b/nuttx/arch/arm/src/stm32/stm32_sdio.c
index 8b8d4d1de..6e94b16a1 100644
--- a/nuttx/arch/arm/src/stm32/stm32_sdio.c
+++ b/nuttx/arch/arm/src/stm32/stm32_sdio.c
@@ -203,7 +203,7 @@
# error "Unknown STM32 DMA"
#endif
-/* SDIO DMA Channel/Stream selection. For the the case of the STM32 F4, there
+/* SDIO DMA Channel/Stream selection. For the case of the STM32 F4, there
* are multiple DMA stream options that must be dis-ambiguated in the board.h
* file.
*/
@@ -682,7 +682,7 @@ static void stm32_setpwrctrl(uint32_t pwrctrl)
*
* Description:
* Return the current value of the the PWRCTRL field of the SDIO POWER
- * register. This function can be used to see the the SDIO is power ON
+ * register. This function can be used to see if the SDIO is powered ON
* or OFF
*
* Input Parameters:
@@ -952,7 +952,7 @@ static void stm32_dataconfig(uint32_t timeout, uint32_t dlen, uint32_t dctrl)
* Name: stm32_datadisable
*
* Description:
- * Disable the the SDIO data path setup by stm32_dataconfig() and
+ * Disable the SDIO data path setup by stm32_dataconfig() and
* disable DMA.
*
****************************************************************************/
diff --git a/nuttx/arch/arm/src/stm32/stm32_vectors.S b/nuttx/arch/arm/src/stm32/stm32_vectors.S
index 37c53e8d5..a49729de3 100644
--- a/nuttx/arch/arm/src/stm32/stm32_vectors.S
+++ b/nuttx/arch/arm/src/stm32/stm32_vectors.S
@@ -251,7 +251,7 @@ stm32_common:
sub r1, #(4*SW_FPU_REGS)
#endif
- /* Save the the remaining registers on the stack after the registers pushed
+ /* Save the remaining registers on the stack after the registers pushed
* by the exception handling logic. r2=SP and r3=primask or basepri, r4-r11,
* r14=register values.
*/
diff --git a/nuttx/arch/arm/src/stm32/stm32_wwdg.c b/nuttx/arch/arm/src/stm32/stm32_wwdg.c
index 4506fa4e0..ed3721cfe 100644
--- a/nuttx/arch/arm/src/stm32/stm32_wwdg.c
+++ b/nuttx/arch/arm/src/stm32/stm32_wwdg.c
@@ -623,7 +623,7 @@ static int stm32_settimeout(FAR struct watchdog_lowerhalf_s *lower,
* lower - A pointer the publicly visible representation of the "lower-half"
* driver state structure.
* newhandler - The new watchdog expiration function pointer. If this
- * function pointer is NULL, then the the reset-on-expiration
+ * function pointer is NULL, then the reset-on-expiration
* behavior is restored,
*
* Returned Values:
diff --git a/nuttx/arch/arm/src/stm32/stm32f20xxx_dma.c b/nuttx/arch/arm/src/stm32/stm32f20xxx_dma.c
index 71ac263fb..0186bec15 100644
--- a/nuttx/arch/arm/src/stm32/stm32f20xxx_dma.c
+++ b/nuttx/arch/arm/src/stm32/stm32f20xxx_dma.c
@@ -521,7 +521,7 @@ void weak_function up_dmainitialize(void)
*
* Input parameter:
* dmamap - Identifies the stream/channel resource. For the STM32 F2, this
- * is a bit-encoded value as provided by the the DMAMAP_* definitions
+ * is a bit-encoded value as provided by the DMAMAP_* definitions
* in chip/stm32f20xxx_dma.h
*
* Returned Value:
diff --git a/nuttx/arch/arm/src/stm32/stm32f40xxx_dma.c b/nuttx/arch/arm/src/stm32/stm32f40xxx_dma.c
index 5bff603b9..235e40441 100644
--- a/nuttx/arch/arm/src/stm32/stm32f40xxx_dma.c
+++ b/nuttx/arch/arm/src/stm32/stm32f40xxx_dma.c
@@ -520,7 +520,7 @@ void weak_function up_dmainitialize(void)
*
* Input parameter:
* dmamap - Identifies the stream/channel resource. For the STM32 F4, this
- * is a bit-encoded value as provided by the the DMAMAP_* definitions
+ * is a bit-encoded value as provided by the DMAMAP_* definitions
* in chip/stm32f40xxx_dma.h
*
* Returned Value:
diff --git a/nuttx/arch/avr/src/avr/excptmacros.h b/nuttx/arch/avr/src/avr/excptmacros.h
index 51e1e61a1..730f02acc 100644
--- a/nuttx/arch/avr/src/avr/excptmacros.h
+++ b/nuttx/arch/avr/src/avr/excptmacros.h
@@ -524,7 +524,7 @@
ld r25, x+
ld r24, x+
- /* Finally, recover X [r26-r27] from the the new stack. The PC remains on the new
+ /* Finally, recover X [r26-r27] from the new stack. The PC remains on the new
* stack so that the user of this macro can return with ret (not reti, ret will
* preserve the restored interrupt state).
*/
diff --git a/nuttx/arch/hc/src/m9s12/m9s12_ethernet.c b/nuttx/arch/hc/src/m9s12/m9s12_ethernet.c
index ed2977e88..75c6f8ad7 100644
--- a/nuttx/arch/hc/src/m9s12/m9s12_ethernet.c
+++ b/nuttx/arch/hc/src/m9s12/m9s12_ethernet.c
@@ -504,7 +504,7 @@ static int emac_ifdown(struct uip_driver_s *dev)
wd_cancel(priv->d_txpoll);
wd_cancel(priv->d_txtimeout);
- /* Put the the EMAC is its reset, non-operational state. This should be
+ /* Put the EMAC is its reset, non-operational state. This should be
* a known configuration that will guarantee the emac_ifup() always
* successfully brings the interface back up.
*/
@@ -655,7 +655,7 @@ int emac_initialize(int intf)
if (irq_attach(CONFIG_HCS12_IRQ, emac_interrupt))
{
- /* We could not attach the ISR to the the interrupt */
+ /* We could not attach the ISR to the interrupt */
return -EAGAIN;
}
diff --git a/nuttx/arch/mips/src/pic32mx/pic32mx-ethernet.c b/nuttx/arch/mips/src/pic32mx/pic32mx-ethernet.c
index 30860edfa..6025c0094 100644
--- a/nuttx/arch/mips/src/pic32mx/pic32mx-ethernet.c
+++ b/nuttx/arch/mips/src/pic32mx/pic32mx-ethernet.c
@@ -3136,7 +3136,7 @@ static inline int pic32mx_ethinitialize(int intf)
#endif
if (ret != 0)
{
- /* We could not attach the ISR to the the interrupt */
+ /* We could not attach the ISR to the interrupt */
return -EAGAIN;
}
diff --git a/nuttx/arch/sim/src/up_touchscreen.c b/nuttx/arch/sim/src/up_touchscreen.c
index cc40f50fe..f0d741760 100644
--- a/nuttx/arch/sim/src/up_touchscreen.c
+++ b/nuttx/arch/sim/src/up_touchscreen.c
@@ -153,7 +153,7 @@ static int up_poll(FAR struct file *filep, struct pollfd *fds, bool setup);
* Private Data
****************************************************************************/
-/* This the the vtable that supports the character driver interface */
+/* This the vtable that supports the character driver interface */
static const struct file_operations up_fops =
{
@@ -168,7 +168,7 @@ static const struct file_operations up_fops =
#endif
};
-/* Only one simulated touchscreen is supported o the the driver state
+/* Only one simulated touchscreen is supported so the driver state
* structure may as well be pre-allocated.
*/
@@ -324,7 +324,7 @@ static int up_waitsample(FAR struct up_dev_s *priv,
}
}
- /* Re-acquire the the semaphore that manages mutually exclusive access to
+ /* Re-acquire the semaphore that manages mutually exclusive access to
* the device structure. We may have to wait here. But we have our sample.
* Interrupts and pre-emption will be re-enabled while we wait.
*/
diff --git a/nuttx/binfmt/binfmt_schedunload.c b/nuttx/binfmt/binfmt_schedunload.c
index 972d17963..8ccca8a00 100644
--- a/nuttx/binfmt/binfmt_schedunload.c
+++ b/nuttx/binfmt/binfmt_schedunload.c
@@ -243,7 +243,7 @@ static void unload_callback(int signo, siginfo_t *info, void *ucontext)
*
* Description:
* If CONFIG_SCHED_HAVE_PARENT is defined, this function may be called by
- * the parent of the the newly created task to automatically unload the
+ * the parent of the newly created task to automatically unload the
* module when the task exits. This assumes that (1) the caller is the
* parent of the created task, (2) that bin was allocated with kmalloc()
* or friends. It will also automatically free the structure with kfree()
diff --git a/nuttx/binfmt/libelf/libelf.h b/nuttx/binfmt/libelf/libelf.h
index 04c9144f6..15990044a 100644
--- a/nuttx/binfmt/libelf/libelf.h
+++ b/nuttx/binfmt/libelf/libelf.h
@@ -324,7 +324,7 @@ int elf_addrenv_alloc(FAR struct elf_loadinfo_s *loadinfo, size_t envsize);
* Description:
* Release the address environment previously created by
* elf_addrenv_alloc(). This function is called only under certain error
- * conditions after the the module has been loaded but not yet started.
+ * conditions after the module has been loaded but not yet started.
* After the module has been started, the address environment will
* automatically be freed when the module exits.
*
diff --git a/nuttx/binfmt/libelf/libelf_addrenv.c b/nuttx/binfmt/libelf/libelf_addrenv.c
index d2b9870b6..f2f6db2a4 100644
--- a/nuttx/binfmt/libelf/libelf_addrenv.c
+++ b/nuttx/binfmt/libelf/libelf_addrenv.c
@@ -132,7 +132,7 @@ int elf_addrenv_alloc(FAR struct elf_loadinfo_s *loadinfo, size_t envsize)
* Description:
* Release the address environment previously created by
* elf_addrenv_create(). This function is called only under certain error
- * conditions after the the module has been loaded but not yet started.
+ * conditions after the module has been loaded but not yet started.
* After the module has been started, the address environment will
* automatically be freed when the module exits.
*
diff --git a/nuttx/binfmt/libelf/libelf_unload.c b/nuttx/binfmt/libelf/libelf_unload.c
index 7f7a3cf91..f19a32e1b 100644
--- a/nuttx/binfmt/libelf/libelf_unload.c
+++ b/nuttx/binfmt/libelf/libelf_unload.c
@@ -69,7 +69,7 @@
* Description:
* This function unloads the object from memory. This essentially undoes
* the actions of elf_load. It is called only under certain error
- * conditions after the the module has been loaded but not yet started.
+ * conditions after the module has been loaded but not yet started.
*
* Returned Value:
* 0 (OK) is returned on success and a negated errno is returned on
diff --git a/nuttx/binfmt/libnxflat/libnxflat.h b/nuttx/binfmt/libnxflat/libnxflat.h
index cb1cb7057..4eccc62d3 100644
--- a/nuttx/binfmt/libnxflat/libnxflat.h
+++ b/nuttx/binfmt/libnxflat/libnxflat.h
@@ -119,7 +119,7 @@ int nxflat_addrenv_alloc(FAR struct nxflat_loadinfo_s *loadinfo, size_t envsize)
* Description:
* Release the address environment previously created by
* nxflat_addrenv_create(). This function is called only under certain
- * error conditions after the the module has been loaded but not yet
+ * error conditions after the module has been loaded but not yet
* started. After the module has been started, the address environment
* will automatically be freed when the module exits.
*
diff --git a/nuttx/binfmt/libnxflat/libnxflat_addrenv.c b/nuttx/binfmt/libnxflat/libnxflat_addrenv.c
index d31e7fda0..9a7274e1e 100644
--- a/nuttx/binfmt/libnxflat/libnxflat_addrenv.c
+++ b/nuttx/binfmt/libnxflat/libnxflat_addrenv.c
@@ -183,7 +183,7 @@ errout_with_dspace:
* Description:
* Release the address environment previously created by
* nxflat_addrenv_create(). This function is called only under certain
- * error conditions after the the module has been loaded but not yet
+ * error conditions after the module has been loaded but not yet
* started. After the module has been started, the address environment
* will automatically be freed when the module exits.
*
diff --git a/nuttx/binfmt/libnxflat/libnxflat_unload.c b/nuttx/binfmt/libnxflat/libnxflat_unload.c
index eb1aa0343..35fef52eb 100644
--- a/nuttx/binfmt/libnxflat/libnxflat_unload.c
+++ b/nuttx/binfmt/libnxflat/libnxflat_unload.c
@@ -71,7 +71,7 @@
* Description:
* This function unloads the object from memory. This essentially undoes
* the actions of nxflat_load. It is called only under certain error
- * conditions after the the module has been loaded but not yet started.
+ * conditions after the module has been loaded but not yet started.
*
* Returned Value:
* 0 (OK) is returned on success and a negated errno is returned on
diff --git a/nuttx/configs/demo9s12ne64/README.txt b/nuttx/configs/demo9s12ne64/README.txt
index 120aa8cd3..964338357 100644
--- a/nuttx/configs/demo9s12ne64/README.txt
+++ b/nuttx/configs/demo9s12ne64/README.txt
@@ -327,7 +327,7 @@ HCS12/DEMO9S12NEC64-specific Configuration Options
CONFIG_HCS12_NONBANKED - Indicates that the target systems does not
support banking. Only short calls are made; one fixed page is
- presented the the paging window. Only 48Kb of FLASH is usable
+ presented in the paging window. Only 48Kb of FLASH is usable
in this configuration: pages 3e, 3d, then 3f will appear as a
contiguous address space in memory.
diff --git a/nuttx/configs/ea3131/src/up_fillpage.c b/nuttx/configs/ea3131/src/up_fillpage.c
index f8ad374b1..eaed9a8a2 100644
--- a/nuttx/configs/ea3131/src/up_fillpage.c
+++ b/nuttx/configs/ea3131/src/up_fillpage.c
@@ -198,7 +198,7 @@ struct pg_source_s
FAR struct mtd_dev_s *mtd;
- /* This the the device geometry */
+ /* This the device geometry */
#ifdef CONFIG_DEBUG
FAR struct mtd_geometry_s geo;
diff --git a/nuttx/configs/ea3152/src/up_fillpage.c b/nuttx/configs/ea3152/src/up_fillpage.c
index ce0d5246b..9f470ee32 100644
--- a/nuttx/configs/ea3152/src/up_fillpage.c
+++ b/nuttx/configs/ea3152/src/up_fillpage.c
@@ -198,7 +198,7 @@ struct pg_source_s
FAR struct mtd_dev_s *mtd;
- /* This the the device geometry */
+ /* This the device geometry */
#ifdef CONFIG_DEBUG
FAR struct mtd_geometry_s geo;
diff --git a/nuttx/configs/eagle100/README.txt b/nuttx/configs/eagle100/README.txt
index ab55bfe2c..eb7db47a1 100644
--- a/nuttx/configs/eagle100/README.txt
+++ b/nuttx/configs/eagle100/README.txt
@@ -84,7 +84,7 @@ CodeSourcery on Linux
If you select the CodeSourcery toolchain, the make system will assume that you
are running a Windows version of the toolchain. If you are running under Linux,
- the the make will probably fail. The fix is to edit your Make.defs file and
+ the make will probably fail. The fix is to edit your Make.defs file and
use something like:
CROSSDEV = arm-none-eabi-
diff --git a/nuttx/configs/freedom-kl25z/README.txt b/nuttx/configs/freedom-kl25z/README.txt
index d7eaff648..ca71f59f3 100644
--- a/nuttx/configs/freedom-kl25z/README.txt
+++ b/nuttx/configs/freedom-kl25z/README.txt
@@ -139,10 +139,10 @@ mbed
1. Connect the KL25Z to the host PC using the USB connector labeled
SDA.
- 2. A new file system will appear call MBED; open it with Windows
+ 2. A new file system will appear called MBED; open it with Windows
Explorer (assuming that you are using Windows).
3. Drag and drop nuttx.bin into the MBED window. This will load the
- nuttx.bin binary into the the KL25Z. the MBED window will close
+ nuttx.bin binary into the KL25Z. The MBED window will close
then re-open and the KL25Z will be running the new code.
Using the Freescale SDA debugger is essentially the same. That
diff --git a/nuttx/configs/lincoln60/src/up_buttons.c b/nuttx/configs/lincoln60/src/up_buttons.c
index 76cb1f2d9..706d858f4 100644
--- a/nuttx/configs/lincoln60/src/up_buttons.c
+++ b/nuttx/configs/lincoln60/src/up_buttons.c
@@ -211,7 +211,7 @@ xcpt_t up_irqbutton(int id, xcpt_t irqhandler)
}
else
{
- /* Disable then then detach the the old interrupt handler */
+ /* Disable then detach the old interrupt handler */
up_disable_irq(irq);
(void)irq_detach(irq);
diff --git a/nuttx/configs/lpc4330-xplorer/src/up_buttons.c b/nuttx/configs/lpc4330-xplorer/src/up_buttons.c
index 841f52b23..d99ee2356 100644
--- a/nuttx/configs/lpc4330-xplorer/src/up_buttons.c
+++ b/nuttx/configs/lpc4330-xplorer/src/up_buttons.c
@@ -210,7 +210,7 @@ xcpt_t up_irqbutton(int id, xcpt_t irqhandler)
}
else
{
- /* Disable then then detach the the old interrupt handler */
+ /* Disable then detach the old interrupt handler */
up_disable_irq(irq);
(void)irq_detach(irq);
diff --git a/nuttx/configs/mikroe-stm32f4/README.txt b/nuttx/configs/mikroe-stm32f4/README.txt
index 2fecf537c..96ad31d51 100644
--- a/nuttx/configs/mikroe-stm32f4/README.txt
+++ b/nuttx/configs/mikroe-stm32f4/README.txt
@@ -772,7 +772,7 @@ Where <subdir> is one of the following:
In the normal case (just 'make'), make will attempt to build both user-
and kernel-mode blobs more or less interleaved. This actual works!
However, for me it is very confusing so I prefer the above make command:
- Make the user-space binaries first (pass1), then make the the kernel-space
+ Make the user-space binaries first (pass1), then make the kernel-space
binaries (pass2)
NOTES:
diff --git a/nuttx/configs/mikroe-stm32f4/src/up_touchscreen.c b/nuttx/configs/mikroe-stm32f4/src/up_touchscreen.c
index b1caf6cb6..095168c89 100644
--- a/nuttx/configs/mikroe-stm32f4/src/up_touchscreen.c
+++ b/nuttx/configs/mikroe-stm32f4/src/up_touchscreen.c
@@ -266,7 +266,7 @@ static int tc_poll(FAR struct file *filep, struct pollfd *fds, bool setup);
* Private Data
****************************************************************************/
-/* This the the vtable that supports the character driver interface */
+/* This the vtable that supports the character driver interface */
static const struct file_operations tc_fops =
{
@@ -723,7 +723,7 @@ static int tc_waitsample(FAR struct tc_dev_s *priv,
}
}
- /* Re-acquire the the semaphore that manages mutually exclusive access to
+ /* Re-acquire the semaphore that manages mutually exclusive access to
* the device structure. We may have to wait here. But we have our sample.
* Interrupts and pre-emption will be re-enabled while we wait.
*/
diff --git a/nuttx/configs/mirtoo/README.txt b/nuttx/configs/mirtoo/README.txt
index 5401411de..d7589764a 100644
--- a/nuttx/configs/mirtoo/README.txt
+++ b/nuttx/configs/mirtoo/README.txt
@@ -575,7 +575,7 @@ Analog Input
19 PGED3/VREF+/CVREF+/AN0/C3INC/RPA0/CTED1/PMD7/RA0 AIN PGA117 Vout
--- ------------------------------------------------ ----------------------------
- The PGA117 driver can be enabled by setting the following the the nsh
+ The PGA117 driver can be enabled by setting the following the nsh
configuration:
CONFIG_ADC=y : Enable support for analog input devices
diff --git a/nuttx/configs/mirtoo/src/up_adc.c b/nuttx/configs/mirtoo/src/up_adc.c
index 1f1fa2eb8..a35facbce 100644
--- a/nuttx/configs/mirtoo/src/up_adc.c
+++ b/nuttx/configs/mirtoo/src/up_adc.c
@@ -62,7 +62,7 @@
* 19 PGED3/VREF+/CVREF+/AN0/C3INC/RPA0/CTED1/PMD7/RA0 AIN PGA117 Vout
--- ------------------------------------------------ ----------------------------
*
- * The PGA117 driver can be enabled by setting the following the the nsh
+ * The PGA117 driver can be enabled by setting the following the nsh
* configuration:
*
* CONFIG_ADC=y : Enable support for analog input devices
diff --git a/nuttx/configs/mirtoo/src/up_leds.c b/nuttx/configs/mirtoo/src/up_leds.c
index 8eb719717..ff9fbc9db 100644
--- a/nuttx/configs/mirtoo/src/up_leds.c
+++ b/nuttx/configs/mirtoo/src/up_leds.c
@@ -146,7 +146,7 @@ static const struct led_setting_s g_ledoffvalues[LED_NVALUES] =
{LED_OFF, LED_NC, 0},
};
-/* If CONFIG_ARCH_LEDS is not defined, the the user can control the LEDs in
+/* If CONFIG_ARCH_LEDS is not defined, then the user can control the LEDs in
* any way. The following array simply maps the PIC32MX_MIRTOO_LEDn
* index values to the correct LED pin configuration.
*/
diff --git a/nuttx/configs/ne64badge/README.txt b/nuttx/configs/ne64badge/README.txt
index 788c6d746..fa57a563f 100644
--- a/nuttx/configs/ne64badge/README.txt
+++ b/nuttx/configs/ne64badge/README.txt
@@ -434,7 +434,7 @@ HCS12/NE64BADGE-specific Configuration Options
CONFIG_HCS12_NONBANKED - Indicates that the target systems does not
support banking. Only short calls are made; one fixed page is
- presented the the paging window. Only 48Kb of FLASH is usable
+ presented in the paging window. Only 48Kb of FLASH is usable
in this configuration: pages 3e, 3d, then 3f will appear as a
contiguous address space in memory.
diff --git a/nuttx/configs/olimex-lpc1766stk/src/up_buttons.c b/nuttx/configs/olimex-lpc1766stk/src/up_buttons.c
index 6d47d2890..c50d9c8ae 100644
--- a/nuttx/configs/olimex-lpc1766stk/src/up_buttons.c
+++ b/nuttx/configs/olimex-lpc1766stk/src/up_buttons.c
@@ -214,7 +214,7 @@ xcpt_t up_irqbutton(int id, xcpt_t irqhandler)
}
else
{
- /* Disable then then detach the the old interrupt handler */
+ /* Disable then detach the old interrupt handler */
up_disable_irq(irq);
(void)irq_detach(irq);
diff --git a/nuttx/configs/olimex-lpc1766stk/src/up_ssp.c b/nuttx/configs/olimex-lpc1766stk/src/up_ssp.c
index 76d56f735..aa20e0d79 100644
--- a/nuttx/configs/olimex-lpc1766stk/src/up_ssp.c
+++ b/nuttx/configs/olimex-lpc1766stk/src/up_ssp.c
@@ -163,7 +163,7 @@ static void ssp_cdirqsetup(int irq, xcpt_t irqhandler)
}
else
{
- /* Disable then then detach the the old interrupt handler */
+ /* Disable then detach the old interrupt handler */
up_disable_irq(irq);
(void)irq_detach(irq);
diff --git a/nuttx/configs/open1788/README.txt b/nuttx/configs/open1788/README.txt
index 1425db718..1f12e4323 100644
--- a/nuttx/configs/open1788/README.txt
+++ b/nuttx/configs/open1788/README.txt
@@ -230,7 +230,7 @@ Using OpenOCD with the Olimex ARM-USB-OCD
Open1788 board.
/usr/local/share/openocd/scripts/target/lpc1788.cfg
- This is the configuration file for the the LPC1788 target.
+ This is the configuration file for the LPC1788 target.
It just sets up a few parameters then sources lpc17xx.cfg
/usr/local/share/openocd/scripts/target/lpc17xx.cfg
@@ -373,7 +373,7 @@ CONFIGURATION
In the normal case (just 'make'), make will attempt to build both user-
and kernel-mode blobs more or less interleaved. This actual works!
However, for me it is very confusing so I prefer the above make command:
- Make the user-space binaries first (pass1), then make the the kernel-space
+ Make the user-space binaries first (pass1), then make the kernel-space
binaries (pass2)
NOTES:
@@ -417,7 +417,7 @@ CONFIGURATION
System.map - Symbols in the kernel-space ELF file
Loading these .elf files with OpenOCD is tricky. It appears to me
- that when nuttx_user.elf is loaded, it destroys the the nuttx image
+ that when nuttx_user.elf is loaded, it destroys the nuttx image
in FLASH. But loading the nuttx ELF does not harm the nuttx_user.elf
in FLASH. Conclusion: Always load nuttx_user.elf before nuttx.
diff --git a/nuttx/configs/open1788/src/lpc17_buttons.c b/nuttx/configs/open1788/src/lpc17_buttons.c
index c820e01f5..e74fce1b7 100644
--- a/nuttx/configs/open1788/src/lpc17_buttons.c
+++ b/nuttx/configs/open1788/src/lpc17_buttons.c
@@ -238,7 +238,7 @@ xcpt_t up_irqbutton(int id, xcpt_t irqhandler)
}
else
{
- /* Disable then then detach the the old interrupt handler */
+ /* Disable then detach the old interrupt handler */
up_disable_irq(irq);
(void)irq_detach(irq);
diff --git a/nuttx/configs/pic32-starterkit/README.txt b/nuttx/configs/pic32-starterkit/README.txt
index 1a42574c0..d295f5879 100644
--- a/nuttx/configs/pic32-starterkit/README.txt
+++ b/nuttx/configs/pic32-starterkit/README.txt
@@ -240,7 +240,7 @@ PIN CONFIGURATIONS SIGNAL NAME ON-BOARD CONNE
MEB Connector
=============
-The following table summarizes how the pins brought the the MEB through the
+The following table summarizes how the pins brought the MEB through the
J2 on the Ethernet Starter Kit are mapped. This connect is J2 on the Ethernet
Starter Kit and J3 on the MEB.
diff --git a/nuttx/configs/pic32-starterkit/src/up_leds.c b/nuttx/configs/pic32-starterkit/src/up_leds.c
index 14b924f30..85460ae15 100644
--- a/nuttx/configs/pic32-starterkit/src/up_leds.c
+++ b/nuttx/configs/pic32-starterkit/src/up_leds.c
@@ -153,7 +153,7 @@ static const struct led_setting_s g_ledoffvalues[LED_NVALUES] =
{LED_OFF, LED_NC, LED_NC, LED_OFF},
};
-/* If CONFIG_ARCH_LEDS is not defined, the the user can control the LEDs in
+/* If CONFIG_ARCH_LEDS is not defined, then the user can control the LEDs in
* any way. The following array simply maps the PIC32MX_STARTERKIT_LEDn
* index values to the correct LED pin configuration.
*/
diff --git a/nuttx/configs/pic32mx7mmb/README.txt b/nuttx/configs/pic32mx7mmb/README.txt
index f64eee77b..358b55e82 100644
--- a/nuttx/configs/pic32mx7mmb/README.txt
+++ b/nuttx/configs/pic32mx7mmb/README.txt
@@ -670,7 +670,7 @@ Where <subdir> is one of the following:
NOTE: The SD card should *not* be mounted under NSH *and* exported
by the mass storage device!!! That can result in corruption of the
SD card format. This is the sequence of commands that you should
- used to work the the SD card safely:
+ use to work with the SD card safely:
mount -t vfat /dev/mmcsd0 /mnt/sdcard : Mount the SD card initially
...
diff --git a/nuttx/configs/pic32mx7mmb/src/up_leds.c b/nuttx/configs/pic32mx7mmb/src/up_leds.c
index 187935280..573565518 100644
--- a/nuttx/configs/pic32mx7mmb/src/up_leds.c
+++ b/nuttx/configs/pic32mx7mmb/src/up_leds.c
@@ -156,7 +156,7 @@ static const struct led_setting_s g_ledoffvalues[LED_NVALUES] =
{LED_OFF, LED_NC, LED_NC, LED_OFF},
};
-/* If CONFIG_ARCH_LEDS is not defined, the the user can control the LEDs in
+/* If CONFIG_ARCH_LEDS is not defined, then the user can control the LEDs in
* any way. The following array simply maps the PIC32MX_PIC32MX7MMB_LEDn
* index values to the correct LED pin configuration.
*/
diff --git a/nuttx/configs/pic32mx7mmb/src/up_spi.c b/nuttx/configs/pic32mx7mmb/src/up_spi.c
index c3e90729a..b5676a0ac 100644
--- a/nuttx/configs/pic32mx7mmb/src/up_spi.c
+++ b/nuttx/configs/pic32mx7mmb/src/up_spi.c
@@ -171,7 +171,7 @@ uint8_t pic32mx_spi1status(FAR struct spi_dev_s *dev, enum spi_dev_e devid)
{
ret = SPI_STATUS_PRESENT;
- /* A high value indicates the the card is write protected. */
+ /* A high value indicates that the card is write protected. */
if (pic32mx_gpioread(GPIO_SD_WP))
{
diff --git a/nuttx/configs/pic32mx7mmb/src/up_touchscreen.c b/nuttx/configs/pic32mx7mmb/src/up_touchscreen.c
index c8fe53507..7babc6194 100644
--- a/nuttx/configs/pic32mx7mmb/src/up_touchscreen.c
+++ b/nuttx/configs/pic32mx7mmb/src/up_touchscreen.c
@@ -249,7 +249,7 @@ static int tc_poll(FAR struct file *filep, struct pollfd *fds, bool setup);
* Private Data
****************************************************************************/
-/* This the the vtable that supports the character driver interface */
+/* This the vtable that supports the character driver interface */
static const struct file_operations tc_fops =
{
@@ -610,7 +610,7 @@ static int tc_waitsample(FAR struct tc_dev_s *priv,
}
}
- /* Re-acquire the the semaphore that manages mutually exclusive access to
+ /* Re-acquire the semaphore that manages mutually exclusive access to
* the device structure. We may have to wait here. But we have our sample.
* Interrupts and pre-emption will be re-enabled while we wait.
*/
diff --git a/nuttx/configs/sam3u-ek/README.txt b/nuttx/configs/sam3u-ek/README.txt
index b178f0682..309659932 100644
--- a/nuttx/configs/sam3u-ek/README.txt
+++ b/nuttx/configs/sam3u-ek/README.txt
@@ -516,7 +516,7 @@ Configurations
In the normal case (just 'make'), make will attempt to build both user-
and kernel-mode blobs more or less interleaved. This actual works!
However, for me it is very confusing so I prefer the above make command:
- Make the user-space binaries first (pass1), then make the the kernel-space
+ Make the user-space binaries first (pass1), then make the kernel-space
binaries (pass2)
NOTES:
diff --git a/nuttx/configs/sama5d3x-ek/README.txt b/nuttx/configs/sama5d3x-ek/README.txt
index 6d76fa25c..50b69e541 100644
--- a/nuttx/configs/sama5d3x-ek/README.txt
+++ b/nuttx/configs/sama5d3x-ek/README.txt
@@ -401,7 +401,7 @@ Creating and Using NORBOOT
(gdb) mon go # And jump into NOR flash
The norboot program can also be configured to jump directly into
- NOR FLASH with out requiring the the final halt and go, but since I
+ NOR FLASH without requiring the final halt and go, but since I
have been debugging the early boot sequence, the above sequence has
been most convenient for me.
@@ -489,7 +489,7 @@ Serial Consoles
PB28 RXD1 PIO_USART1_RXD
PB26 CTS1 PIO_USART1_CTS
- NOTE: Debug TX and RX pins also go the the ADM3312EARU, but I am
+ NOTE: Debug TX and RX pins also go to the ADM3312EARU, but I am
uncertain of the functionality.
-------------------------------
diff --git a/nuttx/configs/stm32f4discovery/README.txt b/nuttx/configs/stm32f4discovery/README.txt
index 35e78e067..2fda6cb66 100644
--- a/nuttx/configs/stm32f4discovery/README.txt
+++ b/nuttx/configs/stm32f4discovery/README.txt
@@ -1134,7 +1134,7 @@ Where <subdir> is one of the following:
In the normal case (just 'make'), make will attempt to build both user-
and kernel-mode blobs more or less interleaved. This actual works!
However, for me it is very confusing so I prefer the above make command:
- Make the user-space binaries first (pass1), then make the the kernel-space
+ Make the user-space binaries first (pass1), then make the kernel-space
binaries (pass2)
NOTES:
diff --git a/nuttx/configs/stm32f4discovery/elf/setenv.sh b/nuttx/configs/stm32f4discovery/elf/setenv.sh
index 8a1fdf06e..4e3e74b84 100755
--- a/nuttx/configs/stm32f4discovery/elf/setenv.sh
+++ b/nuttx/configs/stm32f4discovery/elf/setenv.sh
@@ -69,7 +69,7 @@ export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++
# toolchain.
#export TOOLCHAIN_BIN="${WD}/../misc/buildroot/build_arm_nofpu/staging_dir/bin"
-# This the the Cygwin path to the location where I built genromfs. If you use
+# This the Cygwin path to the location where I built genromfs. If you use
# the buildroot toolchain, then genromfs can probably be found in TOOLCHAIN_DIR
export GENROMFS_PATH="${WD}/../misc/buildroot/build_arm_nofpu/staging_dir/bin"
diff --git a/nuttx/configs/stm32f4discovery/posix_spawn/setenv.sh b/nuttx/configs/stm32f4discovery/posix_spawn/setenv.sh
index c06a15c9c..a3daa27b9 100755
--- a/nuttx/configs/stm32f4discovery/posix_spawn/setenv.sh
+++ b/nuttx/configs/stm32f4discovery/posix_spawn/setenv.sh
@@ -69,7 +69,7 @@ export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++
# toolchain.
#export TOOLCHAIN_BIN="${WD}/../misc/buildroot/build_arm_nofpu/staging_dir/bin"
-# This the the Cygwin path to the location where I built genromfs. If you use
+# This the Cygwin path to the location where I built genromfs. If you use
# the buildroot toolchain, then genromfs can probably be found in TOOLCHAIN_DIR
export GENROMFS_PATH="${WD}/../misc/buildroot/build_arm_nofpu/staging_dir/bin"
diff --git a/nuttx/configs/sure-pic32mx/src/pic32mx_spi.c b/nuttx/configs/sure-pic32mx/src/pic32mx_spi.c
index 40871648f..ca41dd793 100644
--- a/nuttx/configs/sure-pic32mx/src/pic32mx_spi.c
+++ b/nuttx/configs/sure-pic32mx/src/pic32mx_spi.c
@@ -238,7 +238,7 @@ uint8_t pic32mx_spi2status(FAR struct spi_dev_s *dev, enum spi_dev_e devid)
{
ret = SPI_STATUS_PRESENT;
- /* It seems that a high value indicates the the card is write
+ /* It seems that a high value indicates the card is write
* protected.
*/
diff --git a/nuttx/configs/ubw32/src/up_leds.c b/nuttx/configs/ubw32/src/up_leds.c
index dbbffdff5..0fb6fa14a 100644
--- a/nuttx/configs/ubw32/src/up_leds.c
+++ b/nuttx/configs/ubw32/src/up_leds.c
@@ -153,7 +153,7 @@ static const struct led_setting_s g_ledoffvalues[LED_NVALUES] =
{LED_OFF, LED_NC, LED_NC, LED_OFF},
};
-/* If CONFIG_ARCH_LEDS is not defined, the the user can control the LEDs in
+/* If CONFIG_ARCH_LEDS is not defined, then the user can control the LEDs in
* any way. The following array simply maps the PIC32MX_UBW32_LEDn
* index values to the correct LED pin configuration.
*/
diff --git a/nuttx/drivers/input/ads7843e.c b/nuttx/drivers/input/ads7843e.c
index b8f4f16e6..fbb1fdec4 100644
--- a/nuttx/drivers/input/ads7843e.c
+++ b/nuttx/drivers/input/ads7843e.c
@@ -130,7 +130,7 @@ static int ads7843e_poll(FAR struct file *filep, struct pollfd *fds, bool setup)
* Private Data
****************************************************************************/
-/* This the the vtable that supports the character driver interface */
+/* This the vtable that supports the character driver interface */
static const struct file_operations ads7843e_fops =
{
@@ -480,7 +480,7 @@ static int ads7843e_waitsample(FAR struct ads7843e_dev_s *priv,
ivdbg("Sampled\n");
- /* Re-acquire the the semaphore that manages mutually exclusive access to
+ /* Re-acquire the semaphore that manages mutually exclusive access to
* the device structure. We may have to wait here. But we have our sample.
* Interrupts and pre-emption will be re-enabled while we wait.
*/
diff --git a/nuttx/drivers/input/max11802.c b/nuttx/drivers/input/max11802.c
index 493a2a99b..ebb261833 100644
--- a/nuttx/drivers/input/max11802.c
+++ b/nuttx/drivers/input/max11802.c
@@ -124,7 +124,7 @@ static int max11802_poll(FAR struct file *filep, struct pollfd *fds, bool setup)
* Private Data
****************************************************************************/
-/* This the the vtable that supports the character driver interface */
+/* This the vtable that supports the character driver interface */
static const struct file_operations max11802_fops =
{
@@ -436,7 +436,7 @@ static int max11802_waitsample(FAR struct max11802_dev_s *priv,
ivdbg("Sampled\n");
- /* Re-acquire the the semaphore that manages mutually exclusive access to
+ /* Re-acquire the semaphore that manages mutually exclusive access to
* the device structure. We may have to wait here. But we have our sample.
* Interrupts and pre-emption will be re-enabled while we wait.
*/
diff --git a/nuttx/drivers/input/stmpe811_tsc.c b/nuttx/drivers/input/stmpe811_tsc.c
index c7f8b473b..29f394b68 100644
--- a/nuttx/drivers/input/stmpe811_tsc.c
+++ b/nuttx/drivers/input/stmpe811_tsc.c
@@ -137,7 +137,7 @@ static inline void stmpe811_tscinitialize(FAR struct stmpe811_dev_s *priv);
* Private Data
****************************************************************************/
-/* This the the vtable that supports the character driver interface */
+/* This the vtable that supports the character driver interface */
static const struct file_operations g_stmpe811fops =
{
@@ -323,7 +323,7 @@ static inline int stmpe811_waitsample(FAR struct stmpe811_dev_s *priv,
}
}
- /* Re-acquire the the semaphore that manages mutually exclusive access to
+ /* Re-acquire the semaphore that manages mutually exclusive access to
* the device structure. We may have to wait here. But we have our sample.
* Interrupts and pre-emption will be re-enabled while we wait.
*/
diff --git a/nuttx/drivers/input/tsc2007.c b/nuttx/drivers/input/tsc2007.c
index 163118b95..bd2450687 100644
--- a/nuttx/drivers/input/tsc2007.c
+++ b/nuttx/drivers/input/tsc2007.c
@@ -209,7 +209,7 @@ static int tsc2007_poll(FAR struct file *filep, struct pollfd *fds, bool setup);
* Private Data
****************************************************************************/
-/* This the the vtable that supports the character driver interface */
+/* This the vtable that supports the character driver interface */
static const struct file_operations tsc2007_fops =
{
@@ -390,7 +390,7 @@ static int tsc2007_waitsample(FAR struct tsc2007_dev_s *priv,
}
}
- /* Re-acquire the the semaphore that manages mutually exclusive access to
+ /* Re-acquire the semaphore that manages mutually exclusive access to
* the device structure. We may have to wait here. But we have our sample.
* Interrupts and pre-emption will be re-enabled while we wait.
*/
diff --git a/nuttx/drivers/lcd/Kconfig b/nuttx/drivers/lcd/Kconfig
index 2f956963b..b1fb7cb9c 100644
--- a/nuttx/drivers/lcd/Kconfig
+++ b/nuttx/drivers/lcd/Kconfig
@@ -446,28 +446,28 @@ config LCD_LANDSCAPE
bool "Landscape orientation"
---help---
Define for "landscape" orientation support. Landscape mode refers one
- of two orientations where the the display is wider than it is tall
+ of two orientations where the display is wider than it is tall
(LCD_RLANDSCAPE is the other). This is the default orientation.
config LCD_PORTRAIT
bool "Portrait orientation"
---help---
Define for "portrait" orientation support. Portrait mode refers one
- of two orientations where the the display is taller than it is wide
+ of two orientations where the display is taller than it is wide
(LCD_RPORTAIT is the other).
config LCD_RPORTRAIT
bool "Reverse portrait display"
---help---
Define for "reverse portrait" orientation support. Reverse portrait mode
- refers one of two orientations where the the display is taller than it is
+ refers one of two orientations where the display is taller than it is
wide (LCD_PORTAIT is the other).
config LCD_RLANDSCAPE
bool "Reverse landscape orientation"
---help---
Define for "reverse landscape" orientation support. Reverse landscape mode
- refers one of two orientations where the the display is wider than it is
+ refers one of two orientations where the display is wider than it is
tall (LCD_LANDSCAPE is the other).
endchoice
diff --git a/nuttx/drivers/lcd/ssd1289.c b/nuttx/drivers/lcd/ssd1289.c
index 75abdb1ac..3a587818b 100644
--- a/nuttx/drivers/lcd/ssd1289.c
+++ b/nuttx/drivers/lcd/ssd1289.c
@@ -1108,7 +1108,7 @@ static inline int ssd1289_hwinitialize(FAR struct ssd1289_dev_s *priv)
ssd1289_putreg(lcd, SSD1289_PWRCTRL4, PWRCTRL4_SETTING);
ssd1289_putreg(lcd, SSD1289_PWRCTRL5, PWRCTRL5_SETTING);
- /* One driver does an odd setting of the the driver output control.
+ /* One driver does an odd setting of the driver output control.
* No idea why.
*/
#if 0
diff --git a/nuttx/drivers/mmcsd/mmcsd_sdio.c b/nuttx/drivers/mmcsd/mmcsd_sdio.c
index 0ce842ae2..b2a0e99d6 100644
--- a/nuttx/drivers/mmcsd/mmcsd_sdio.c
+++ b/nuttx/drivers/mmcsd/mmcsd_sdio.c
@@ -1042,7 +1042,7 @@ static int mmcsd_verifystate(FAR struct mmcsd_state_s *priv, uint32_t state)
* Name: mmcsd_wrprotected
*
* Description:
- * Return true if the the card is unlocked an not write protected. The
+ * Return true if the card is unlocked an not write protected. The
*
*
****************************************************************************/
@@ -2763,7 +2763,7 @@ static int mmcsd_cardidentify(FAR struct mmcsd_state_s *priv)
* connected (This implementation supports only a single MMC card). So
* we cannot re-send CMD1 without first placing the card back into
* stand-by state (if the card is busy, it will automatically
- * go back to the the standby state).
+ * go back to the standby state).
*/
mmcsd_sendcmdpoll(priv, MMC_CMD1, MMCSD_VDD_33_34);
diff --git a/nuttx/drivers/mtd/sst25.c b/nuttx/drivers/mtd/sst25.c
index fc4e5b36d..3ed4f577a 100644
--- a/nuttx/drivers/mtd/sst25.c
+++ b/nuttx/drivers/mtd/sst25.c
@@ -1223,7 +1223,7 @@ FAR struct mtd_dev_s *sst25_initialize(FAR struct spi_dev_s *dev)
}
else
{
- /* Make sure the the FLASH is unprotected so that we can write into it */
+ /* Make sure that the FLASH is unprotected so that we can write into it */
#ifndef CONFIG_SST25_READONLY
sst25_unprotect(priv->dev);
diff --git a/nuttx/drivers/mtd/w25.c b/nuttx/drivers/mtd/w25.c
index 861e19ab5..b87dba044 100644
--- a/nuttx/drivers/mtd/w25.c
+++ b/nuttx/drivers/mtd/w25.c
@@ -1152,7 +1152,7 @@ FAR struct mtd_dev_s *w25_initialize(FAR struct spi_dev_s *spi)
}
else
{
- /* Make sure the the FLASH is unprotected so that we can write into it */
+ /* Make sure that the FLASH is unprotected so that we can write into it */
#ifndef CONFIG_W25_READONLY
w25_unprotect(priv);
diff --git a/nuttx/drivers/net/e1000.c b/nuttx/drivers/net/e1000.c
index e894a1dd2..3ae5aa0ba 100644
--- a/nuttx/drivers/net/e1000.c
+++ b/nuttx/drivers/net/e1000.c
@@ -703,7 +703,7 @@ static int e1000_ifdown(struct uip_driver_s *dev)
wd_cancel(e1000->txpoll);
wd_cancel(e1000->txtimeout);
- /* Put the the EMAC is its reset, non-operational state. This should be
+ /* Put the EMAC is its reset, non-operational state. This should be
* a known configuration that will guarantee the skel_ifup() always
* successfully brings the interface back up.
*/
diff --git a/nuttx/drivers/net/enc28j60.c b/nuttx/drivers/net/enc28j60.c
index 6d5802f66..d931b876b 100644
--- a/nuttx/drivers/net/enc28j60.c
+++ b/nuttx/drivers/net/enc28j60.c
@@ -448,7 +448,7 @@ static inline void enc_unlock(FAR struct enc_driver_s *priv)
*
* Description:
* Read a global register (EIE, EIR, ESTAT, ECON2, or ECON1). The cmd
- * include the CMD 'OR'd with the the global address register.
+ * include the CMD 'OR'd with the global address register.
*
* Parameters:
* priv - Reference to the driver state structure
@@ -491,7 +491,7 @@ static uint8_t enc_rdgreg2(FAR struct enc_driver_s *priv, uint8_t cmd)
*
* Description:
* Write to a global register (EIE, EIR, ESTAT, ECON2, or ECON1). The cmd
- * include the CMD 'OR'd with the the global address register.
+ * include the CMD 'OR'd with the global address register.
*
* Parameters:
* priv - Reference to the driver state structure
diff --git a/nuttx/drivers/net/vnet.c b/nuttx/drivers/net/vnet.c
index e05a39675..2eaf1c485 100644
--- a/nuttx/drivers/net/vnet.c
+++ b/nuttx/drivers/net/vnet.c
@@ -489,7 +489,7 @@ static int vnet_ifdown(struct uip_driver_s *dev)
wd_cancel(vnet->sk_txpoll);
//wd_cancel(vnet->sk_txtimeout);
- /* Put the the EMAC is its reset, non-operational state. This should be
+ /* Put the EMAC is its reset, non-operational state. This should be
* a known configuration that will guarantee the vnet_ifup() always
* successfully brings the interface back up.
*/
diff --git a/nuttx/drivers/power/pm_update.c b/nuttx/drivers/power/pm_update.c
index 4b6b58c55..247665e0c 100644
--- a/nuttx/drivers/power/pm_update.c
+++ b/nuttx/drivers/power/pm_update.c
@@ -278,7 +278,7 @@ void pm_worker(FAR void *arg)
else if (g_pmglobals.recommended < nextstate)
{
- /* No.. increment the count. Has is passed the the count required
+ /* No.. increment the count. Has it passed the count required
* for a state transition?
*/
diff --git a/nuttx/drivers/serial/serial.c b/nuttx/drivers/serial/serial.c
index d452b6b4b..c71f80bca 100644
--- a/nuttx/drivers/serial/serial.c
+++ b/nuttx/drivers/serial/serial.c
@@ -207,7 +207,7 @@ static int uart_putxmitchar(FAR uart_dev_t *dev, int ch, bool oktoblock)
}
/* The buffer is full and no data is available now. Should be block,
- * waiting for the the hardware to remove some data from the TX
+ * waiting for the hardware to remove some data from the TX
* buffer?
*/
diff --git a/nuttx/drivers/usbdev/cdcacm_desc.c b/nuttx/drivers/usbdev/cdcacm_desc.c
index fde13bfd3..5d60df612 100644
--- a/nuttx/drivers/usbdev/cdcacm_desc.c
+++ b/nuttx/drivers/usbdev/cdcacm_desc.c
@@ -272,7 +272,7 @@ static const struct usb_epdesc_s g_epbulkindesc =
1 /* interval */
};
-/* The components of the the configuration descriptor are maintained as
+/* The components of the configuration descriptor are maintained as
* a collection of separate descriptor structure coordinated by the
* following array. These descriptors could have been combined into
* one larger "super" configuration descriptor structure. However, I
diff --git a/nuttx/fs/fat/Kconfig b/nuttx/fs/fat/Kconfig
index 1831efc77..3f322c626 100644
--- a/nuttx/fs/fat/Kconfig
+++ b/nuttx/fs/fat/Kconfig
@@ -57,7 +57,7 @@ config FAT_DMAMEMORY
allocated each time a FAT file is opened.
Some hardware, however, may require special DMA-capable memory in
- order to perform the the transfers. If FAT_DMAMEMORY is defined
+ order to perform the transfers. If FAT_DMAMEMORY is defined
then the architecture-specific hardware must provide the functions
fat_dma_alloc() and fat_dma_free(): fat_dmalloc() will allocate
DMA-capable memory of the specified size; fat_dmafree() is the
diff --git a/nuttx/fs/fat/fs_fat32.c b/nuttx/fs/fat/fs_fat32.c
index a6981d088..7cfa7a8bc 100644
--- a/nuttx/fs/fat/fs_fat32.c
+++ b/nuttx/fs/fat/fs_fat32.c
@@ -1548,12 +1548,12 @@ static int fat_readdir(struct inode *mountpt, struct fs_dirent_s *dir)
{
/* The name was successfully extracted. Re-read the
* attributes: If this is long directory entry, then the
- * attributes that we need will be the the final, short file
+ * attributes that we need will be the final, short file
* name entry and not in the directory entry where we started
* looking for the file name. We can be assured that, on
* success, fat_dirname2path() will leave the short file name
* entry in the cache regardless of the kind of directory
- * entry. We simply have to re-read it to cover the the long
+ * entry. We simply have to re-read it to cover the long
* file name case.
*/
diff --git a/nuttx/fs/fat/fs_fat32.h b/nuttx/fs/fat/fs_fat32.h
index 81f3f4675..4c20e5c95 100644
--- a/nuttx/fs/fat/fs_fat32.h
+++ b/nuttx/fs/fat/fs_fat32.h
@@ -687,7 +687,7 @@
* allocated each time a FAT file is opened.
*
* Some hardware, however, may require special DMA-capable memory in
- * order to perform the the transfers. If CONFIG_FAT_DMAMEMORY is defined
+ * order to perform the transfers. If CONFIG_FAT_DMAMEMORY is defined
* then the architecture-specific hardware must provide the funtions
* fat_dma_alloc() and fat_dma_free() as prototyped below: fat_dmalloc()
* will allocate DMA-capable memory of the specified size; fat_dmafree()
diff --git a/nuttx/fs/mmap/README.txt b/nuttx/fs/mmap/README.txt
index cf4c51e9e..3e97650b3 100644
--- a/nuttx/fs/mmap/README.txt
+++ b/nuttx/fs/mmap/README.txt
@@ -1,78 +1,78 @@
-fs/mmap README File
-===================
-
-NuttX operates in a flat open address space and is focused on MCUs that do
-support Memory Management Units (MMUs). Therefore, NuttX generally does not
-require mmap() functionality and the MCUs generally cannot support true
-memory-mapped files.
-
-However, memory mapping of files is the mechanism used by NXFLAT, the NuttX
-tiny binary format, to get files into memory in order to execute them.
-mmap() support is therefore required to support NXFLAT. There are two
-conditions where mmap() can be supported:
-
-1. mmap can be used to support eXecute In Place (XIP) on random access media
- under the following very restrictive conditions:
-
- a. The filesystem supports the FIOC_MMAP ioctl command. Any file
- system that maps files contiguously on the media should support
- this ioctl. (vs. file system that scatter files over the media
- in non-contiguous sectors). As of this writing, ROMFS is the
- only file system that meets this requirement.
-
- b. The underlying block driver supports the BIOC_XIPBASE ioctl
- command that maps the underlying media to a randomly accessible
- address. At present, only the RAM/ROM disk driver does this.
-
- Some limitations of this approach are as follows:
-
- a. Since no real mapping occurs, all of the file contents are "mapped"
- into memory.
-
- b. All mapped files are read-only.
-
- c. There are no access privileges.
-
-2. If CONFIG_FS_RAMMAP is defined in the configuration, then mmap() will
- support simulation of memory mapped files by copying files whole
- into RAM. These copied files have some of the properties of
- standard memory mapped files. There are many, many exceptions
- exceptions, however. Some of these include:
-
- a. The goal is to have a single region of memory that represents a single
- file and can be shared by many threads. That is, given a filename a
- thread should be able to open the file, get a file descriptor, and
- call mmap() to get a memory region. Different file descriptors opened
- with the same file path should get the same memory region when mapped.
-
- The limitation in the current design is that there is insufficient
- knowledge to know that these different file descriptors correspond to
- the same file. So, for the time being, a new memory region is created
- each time that rammap() is called. Not very useful!
-
- b. The entire mapped portion of the file must be present in memory.
- Since it is assumed the the MCU does not have an MMU, on-demanding
- paging in of file blocks cannot be supported. Since the while mapped
- portion of the file must be present in memory, there are limitations
- in the size of files that may be memory mapped (especially on MCUs
- with no significant RAM resources).
-
- c. All mapped files are read-only. You can write to the in-memory image,
- but the file contents will not change.
-
- d. There are no access privileges.
-
- e. Since there are no processes in NuttX, all mmap() and munmap()
- operations have immediate, global effects. Under Linux, for example,
- munmap() would eliminate only the mapping with a process; the mappings
- to the same file in other processes would not be effected.
-
- f. Like true mapped file, the region will persist after closing the file
- descriptor. However, at present, these ram copied file regions are
- *not* automatically "unmapped" (i.e., freed) when a thread is terminated.
- This is primarily because it is not possible to know how many users
- of the mapped region there are and, therefore, when would be the
- appropriate time to free the region (other than when munmap is called).
-
- NOTE: Note, if the design limitation of a) were solved, then it would be
- easy to solve exception d) as well.
+fs/mmap README File
+===================
+
+NuttX operates in a flat open address space and is focused on MCUs that do
+support Memory Management Units (MMUs). Therefore, NuttX generally does not
+require mmap() functionality and the MCUs generally cannot support true
+memory-mapped files.
+
+However, memory mapping of files is the mechanism used by NXFLAT, the NuttX
+tiny binary format, to get files into memory in order to execute them.
+mmap() support is therefore required to support NXFLAT. There are two
+conditions where mmap() can be supported:
+
+1. mmap can be used to support eXecute In Place (XIP) on random access media
+ under the following very restrictive conditions:
+
+ a. The filesystem supports the FIOC_MMAP ioctl command. Any file
+ system that maps files contiguously on the media should support
+ this ioctl. (vs. file system that scatter files over the media
+ in non-contiguous sectors). As of this writing, ROMFS is the
+ only file system that meets this requirement.
+
+ b. The underlying block driver supports the BIOC_XIPBASE ioctl
+ command that maps the underlying media to a randomly accessible
+ address. At present, only the RAM/ROM disk driver does this.
+
+ Some limitations of this approach are as follows:
+
+ a. Since no real mapping occurs, all of the file contents are "mapped"
+ into memory.
+
+ b. All mapped files are read-only.
+
+ c. There are no access privileges.
+
+2. If CONFIG_FS_RAMMAP is defined in the configuration, then mmap() will
+ support simulation of memory mapped files by copying files whole
+ into RAM. These copied files have some of the properties of
+ standard memory mapped files. There are many, many exceptions
+ exceptions, however. Some of these include:
+
+ a. The goal is to have a single region of memory that represents a single
+ file and can be shared by many threads. That is, given a filename a
+ thread should be able to open the file, get a file descriptor, and
+ call mmap() to get a memory region. Different file descriptors opened
+ with the same file path should get the same memory region when mapped.
+
+ The limitation in the current design is that there is insufficient
+ knowledge to know that these different file descriptors correspond to
+ the same file. So, for the time being, a new memory region is created
+ each time that rammap() is called. Not very useful!
+
+ b. The entire mapped portion of the file must be present in memory.
+ Since it is assumed that the MCU does not have an MMU, on-demanding
+ paging in of file blocks cannot be supported. Since the while mapped
+ portion of the file must be present in memory, there are limitations
+ in the size of files that may be memory mapped (especially on MCUs
+ with no significant RAM resources).
+
+ c. All mapped files are read-only. You can write to the in-memory image,
+ but the file contents will not change.
+
+ d. There are no access privileges.
+
+ e. Since there are no processes in NuttX, all mmap() and munmap()
+ operations have immediate, global effects. Under Linux, for example,
+ munmap() would eliminate only the mapping with a process; the mappings
+ to the same file in other processes would not be effected.
+
+ f. Like true mapped file, the region will persist after closing the file
+ descriptor. However, at present, these ram copied file regions are
+ *not* automatically "unmapped" (i.e., freed) when a thread is terminated.
+ This is primarily because it is not possible to know how many users
+ of the mapped region there are and, therefore, when would be the
+ appropriate time to free the region (other than when munmap is called).
+
+ NOTE: Note, if the design limitation of a) were solved, then it would be
+ easy to solve exception d) as well.
diff --git a/nuttx/fs/nxffs/nxffs.h b/nuttx/fs/nxffs/nxffs.h
index 80e34939c..b2ac44b9c 100644
--- a/nuttx/fs/nxffs/nxffs.h
+++ b/nuttx/fs/nxffs/nxffs.h
@@ -670,7 +670,7 @@ extern off_t nxffs_inodeend(FAR struct nxffs_volume_s *volume,
* Name: nxffs_verifyblock
*
* Description:
- * Assure the the provided (logical) block number is in the block cache
+ * Assure that the provided (logical) block number is in the block cache
* and that it has a valid block header (i.e., proper magic and
* marked good)
*
diff --git a/nuttx/fs/nxffs/nxffs_block.c b/nuttx/fs/nxffs/nxffs_block.c
index 6701b6e6b..a0f76766a 100644
--- a/nuttx/fs/nxffs/nxffs_block.c
+++ b/nuttx/fs/nxffs/nxffs_block.c
@@ -74,7 +74,7 @@
* Name: nxffs_verifyblock
*
* Description:
- * Assure the the provided (logical) block number is in the block cache
+ * Assure that the provided (logical) block number is in the block cache
* and that it has a valid block header (i.e., proper magic and
* marked good)
*
@@ -94,7 +94,7 @@ int nxffs_verifyblock(FAR struct nxffs_volume_s *volume, off_t block)
FAR struct nxffs_block_s *blkhdr;
int ret;
- /* Make sure the the block is in the cache */
+ /* Make sure that the block is in the cache */
ret = nxffs_rdcache(volume, block);
if (ret < 0)
diff --git a/nuttx/fs/nxffs/nxffs_cache.c b/nuttx/fs/nxffs/nxffs_cache.c
index 0cc97980e..059c1e729 100644
--- a/nuttx/fs/nxffs/nxffs_cache.c
+++ b/nuttx/fs/nxffs/nxffs_cache.c
@@ -251,7 +251,7 @@ int nxffs_getc(FAR struct nxffs_volume_s *volume, uint16_t reserve)
}
while (ret != OK);
- /* Return the the character at this offset. Note that on return,
+ /* Return the character at this offset. Note that on return,
* iooffset could point to the byte outside of the current block.
*/
diff --git a/nuttx/fs/nxffs/nxffs_pack.c b/nuttx/fs/nxffs/nxffs_pack.c
index 5a82ae4fd..4fe3fb681 100644
--- a/nuttx/fs/nxffs/nxffs_pack.c
+++ b/nuttx/fs/nxffs/nxffs_pack.c
@@ -260,7 +260,7 @@ static inline off_t nxffs_mediacheck(FAR struct nxffs_volume_s *volume,
* pack - The volume packing state structure.
* froffset - On input, this is the location where we should be searching
* for the location to begin packing. On successful return, froffset
- * will be set the the offset in FLASH where the first inode should be
+ * will be set to the offset in FLASH where the first inode should be
* copied to. If -ENOSPC is returned -- meaning that the FLASH is full
* -- then no packing can be performed. In this case, then the free
* flash offset is returned through this location.
@@ -939,7 +939,7 @@ static inline int nxffs_packblock(FAR struct nxffs_volume_s *volume,
nxffs_packtransfer(volume, pack);
/* Now, either the (1) src block has been fully transferred, (2) all
- * of the source data has been transferred, or (3) the the destination
+ * of the source data has been transferred, or (3) the destination
* block is full, .. or all three.
*
* Check if all of the bytes in the source inode have been transferred.
@@ -1121,7 +1121,7 @@ nxffs_setupwriter(FAR struct nxffs_volume_s *volume,
*
* Writing is performed at the end of the free FLASH region and this
* implemenation is restricted to a single writer. The new inode is not
- * written to FLASH until the the writer is closed and so will not be
+ * written to FLASH until the writer is closed and so will not be
* found by nxffs_packblock().
*
* Input Parameters:
@@ -1192,7 +1192,7 @@ static inline int nxffs_packwriter(FAR struct nxffs_volume_s *volume,
nxffs_packtransfer(volume, pack);
/* Now, either the (1) src block has been fully transferred, (2) all
- * of the source data has been transferred, or (3) the the destination
+ * of the source data has been transferred, or (3) the destination
* block is full, .. or all three.
*
* Check if all of the bytes in the source inode have been transferred.
@@ -1473,7 +1473,7 @@ start_pack:
/* Writing is performed at the end of the free
* FLASH region and this implemenation is restricted
* to a single writer. The new inode is not
- * written to FLASH until the the writer is closed
+ * written to FLASH until the writer is closed
* and so will not be found by nxffs_packblock().
*/
diff --git a/nuttx/fs/nxffs/nxffs_read.c b/nuttx/fs/nxffs/nxffs_read.c
index b638dbfd4..a97c09263 100644
--- a/nuttx/fs/nxffs/nxffs_read.c
+++ b/nuttx/fs/nxffs/nxffs_read.c
@@ -127,7 +127,7 @@ static ssize_t nxffs_rdseek(FAR struct nxffs_volume_s *volume,
datstart = datend;
datend += blkentry->datlen;
- /* Offset to search for the the next data block */
+ /* Offset to search for the next data block */
offset = blkentry->hoffset + SIZEOF_NXFFS_DATA_HDR + blkentry->datlen;
}
@@ -418,7 +418,7 @@ int nxffs_rdblkhdr(FAR struct nxffs_volume_s *volume, off_t offset,
uint16_t dlen;
int ret;
- /* Make sure the the block containing the data block header is in the cache */
+ /* Make sure that the block containing the data block header is in the cache */
nxffs_ioseek(volume, offset);
ret = nxffs_rdcache(volume, volume->ioblock);
diff --git a/nuttx/fs/nxffs/nxffs_unlink.c b/nuttx/fs/nxffs/nxffs_unlink.c
index 73b0f360a..8c8553025 100644
--- a/nuttx/fs/nxffs/nxffs_unlink.c
+++ b/nuttx/fs/nxffs/nxffs_unlink.c
@@ -122,7 +122,7 @@ int nxffs_rminode(FAR struct nxffs_volume_s *volume, FAR const char *name)
nxffs_ioseek(volume, entry.hoffset);
- /* Make sure the the block is in the cache */
+ /* Make sure that the block is in the cache */
ret = nxffs_rdcache(volume, volume->ioblock);
if (ret < 0)
diff --git a/nuttx/fs/nxffs/nxffs_write.c b/nuttx/fs/nxffs/nxffs_write.c
index bf32b0fb4..756ac7467 100644
--- a/nuttx/fs/nxffs/nxffs_write.c
+++ b/nuttx/fs/nxffs/nxffs_write.c
@@ -745,7 +745,7 @@ int nxffs_wrverify(FAR struct nxffs_volume_s *volume, size_t size)
}
}
- /* If we get here, then we have looked at every byte in the the block
+ /* If we get here, then we have looked at every byte in the block
* and did not find any sequence of erased bytes long enough to hold
* the object. Skip to the next, valid block.
*/
diff --git a/nuttx/graphics/nxbe/nxbe.h b/nuttx/graphics/nxbe/nxbe.h
index aff42d6b3..34841ec03 100644
--- a/nuttx/graphics/nxbe/nxbe.h
+++ b/nuttx/graphics/nxbe/nxbe.h
@@ -385,7 +385,7 @@ EXTERN void nxbe_filltrapezoid(FAR struct nxbe_window_s *wnd,
* rect - The location to be copied
* plane - Specifies the color plane to get from.
* dest - The location to copy the memory region
- * deststride - The width, in bytes, the the dest memory
+ * deststride - The width, in bytes, of the dest memory
*
* Return:
* None
diff --git a/nuttx/graphics/nxbe/nxbe_getrectangle.c b/nuttx/graphics/nxbe/nxbe_getrectangle.c
index 84f010cd5..547afb707 100644
--- a/nuttx/graphics/nxbe/nxbe_getrectangle.c
+++ b/nuttx/graphics/nxbe/nxbe_getrectangle.c
@@ -90,7 +90,7 @@ struct nxbe_fill_s
* rect - The location to be copied
* plane - Specifies the color plane to get from.
* dest - The location to copy the memory region
- * deststride - The width, in bytes, the the dest memory
+ * deststride - The width, in bytes, of the dest memory
*
* Return:
* None
diff --git a/nuttx/graphics/nxmu/nx_getrectangle.c b/nuttx/graphics/nxmu/nx_getrectangle.c
index 9b7d3679c..fea01fcd2 100644
--- a/nuttx/graphics/nxmu/nx_getrectangle.c
+++ b/nuttx/graphics/nxmu/nx_getrectangle.c
@@ -85,7 +85,7 @@
* rect - The location to be copied
* plane - Specifies the color plane to get from.
* dest - The location to copy the memory region
- * deststride - The width, in bytes, the the dest memory
+ * deststride - The width, in bytes, of the dest memory
*
* Return:
* OK on success; ERROR on failure with errno set appropriately
diff --git a/nuttx/graphics/nxmu/nxfe.h b/nuttx/graphics/nxmu/nxfe.h
index 311cedbc6..e24b44af7 100644
--- a/nuttx/graphics/nxmu/nxfe.h
+++ b/nuttx/graphics/nxmu/nxfe.h
@@ -382,7 +382,7 @@ struct nxsvrmsg_fill_s
nxgl_mxpixel_t color[CONFIG_NX_NPLANES]; /* Color to use in the fill */
};
-/* Get a rectangular region from the the window */
+/* Get a rectangular region from the window */
struct nxsvrmsg_getrectangle_s
{
diff --git a/nuttx/graphics/nxsu/nx_getrectangle.c b/nuttx/graphics/nxsu/nx_getrectangle.c
index 472ff4c6c..06ed9330c 100644
--- a/nuttx/graphics/nxsu/nx_getrectangle.c
+++ b/nuttx/graphics/nxsu/nx_getrectangle.c
@@ -85,7 +85,7 @@
* rect - The location to be copied
* plane - Specifies the color plane to get from.
* dest - The location to copy the memory region
- * deststride - The width, in bytes, the the dest memory
+ * deststride - The width, in bytes, of the dest memory
*
* Return:
* OK on success; ERROR on failure with errno set appropriately
diff --git a/nuttx/graphics/nxtk/nxtk_gettoolbar.c b/nuttx/graphics/nxtk/nxtk_gettoolbar.c
index 70adb0cce..5b08fc840 100644
--- a/nuttx/graphics/nxtk/nxtk_gettoolbar.c
+++ b/nuttx/graphics/nxtk/nxtk_gettoolbar.c
@@ -87,7 +87,7 @@
* rect - The location to be copied
* plane - Specifies the color plane to get from.
* dest - The location to copy the memory region
- * deststride - The width, in bytes, the the dest memory
+ * deststride - The width, in bytes, of the dest memory
*
* Return:
* OK on success; ERROR on failure with errno set appropriately
diff --git a/nuttx/graphics/nxtk/nxtk_getwindow.c b/nuttx/graphics/nxtk/nxtk_getwindow.c
index c91f2d22f..b0082874f 100644
--- a/nuttx/graphics/nxtk/nxtk_getwindow.c
+++ b/nuttx/graphics/nxtk/nxtk_getwindow.c
@@ -87,7 +87,7 @@
* rect - The location to be copied
* plane - Specifies the color plane to get from.
* dest - The location to copy the memory region
- * deststride - The width, in bytes, the the dest memory
+ * deststride - The width, in bytes, of the dest memory
*
* Return:
* OK on success; ERROR on failure with errno set appropriately
diff --git a/nuttx/include/nuttx/binfmt/binfmt.h b/nuttx/include/nuttx/binfmt/binfmt.h
index a2e23e1e5..385586b32 100644
--- a/nuttx/include/nuttx/binfmt/binfmt.h
+++ b/nuttx/include/nuttx/binfmt/binfmt.h
@@ -246,7 +246,7 @@ int exec_module(FAR const struct binary_s *bin);
*
* Description:
* If CONFIG_SCHED_HAVE_PARENT is defined, this function may be called by
- * the parent of the the newly created task to automatically unload the
+ * the parent of the newly created task to automatically unload the
* module when the task exits. This assumes that (1) the caller is the
* parent of the created task, (2) that bin was allocated with kmalloc()
* or friends. It will also automatically free the structure with kfree()
diff --git a/nuttx/include/nuttx/binfmt/elf.h b/nuttx/include/nuttx/binfmt/elf.h
index 6b6851934..cbd2f0fa7 100644
--- a/nuttx/include/nuttx/binfmt/elf.h
+++ b/nuttx/include/nuttx/binfmt/elf.h
@@ -226,7 +226,7 @@ EXTERN int elf_bind(FAR struct elf_loadinfo_s *loadinfo,
* Description:
* This function unloads the object from memory. This essentially undoes
* the actions of elf_load. It is called only under certain error
- * conditions after the the module has been loaded but not yet started.
+ * conditions after the module has been loaded but not yet started.
*
* Returned Value:
* 0 (OK) is returned on success and a negated errno is returned on
diff --git a/nuttx/include/nuttx/binfmt/nxflat.h b/nuttx/include/nuttx/binfmt/nxflat.h
index db396771b..32f29401b 100644
--- a/nuttx/include/nuttx/binfmt/nxflat.h
+++ b/nuttx/include/nuttx/binfmt/nxflat.h
@@ -236,7 +236,7 @@ EXTERN int nxflat_bind(FAR struct nxflat_loadinfo_s *loadinfo,
* Description:
* This function unloads the object from memory. This essentially undoes
* the actions of nxflat_load. It is called only under certain error
- * conditions after the the module has been loaded but not yet started.
+ * conditions after the module has been loaded but not yet started.
*
* Returned Value:
* 0 (OK) is returned on success and a negated errno is returned on
diff --git a/nuttx/include/nuttx/fs/fat.h b/nuttx/include/nuttx/fs/fat.h
index ac85c502f..98c3d510a 100644
--- a/nuttx/include/nuttx/fs/fat.h
+++ b/nuttx/include/nuttx/fs/fat.h
@@ -97,7 +97,7 @@ EXTERN int fat_setattrib(const char *path, fat_attrib_t setbits, fat_attrib_t cl
* allocated each time a FAT file is opened.
*
* Some hardware, however, may require special DMA-capable memory in
- * order to perform the the transfers. If CONFIG_FAT_DMAMEMORY is defined
+ * order to perform the transfers. If CONFIG_FAT_DMAMEMORY is defined
* then the architecture-specific hardware must provide the funtions
* fat_dma_alloc() and fat_dma_free() as prototyped below: fat_dma_alloc()
* will allocate DMA-capable memory of the specified size; fat_dma_free()
diff --git a/nuttx/include/nuttx/nx/nx.h b/nuttx/include/nuttx/nx/nx.h
index 153c34a3e..3b8cc49f4 100644
--- a/nuttx/include/nuttx/nx/nx.h
+++ b/nuttx/include/nuttx/nx/nx.h
@@ -698,7 +698,7 @@ EXTERN int nx_fill(NXWINDOW hwnd, FAR const struct nxgl_rect_s *rect,
* rect - The location to be copied
* plane - Specifies the color plane to get from.
* dest - The location to copy the memory region
- * deststride - The width, in bytes, the the dest memory
+ * deststride - The width, in bytes, of the dest memory
*
* Input Parameters:
* hwnd - The window handle
diff --git a/nuttx/include/nuttx/nx/nxtk.h b/nuttx/include/nuttx/nx/nxtk.h
index 60080e47f..eb0d9df6f 100644
--- a/nuttx/include/nuttx/nx/nxtk.h
+++ b/nuttx/include/nuttx/nx/nxtk.h
@@ -310,7 +310,7 @@ EXTERN int nxtk_fillwindow(NXTKWINDOW hfwnd, FAR const struct nxgl_rect_s *rect,
* rect - The location to be copied
* plane - Specifies the color plane to get from.
* dest - The location to copy the memory region
- * deststride - The width, in bytes, the the dest memory
+ * deststride - The width, in bytes, of the dest memory
*
* Return:
* OK on success; ERROR on failure with errno set appropriately
@@ -554,7 +554,7 @@ EXTERN int nxtk_filltoolbar(NXTKWINDOW hfwnd, FAR const struct nxgl_rect_s *rect
* rect - The location to be copied
* plane - Specifies the color plane to get from.
* dest - The location to copy the memory region
- * deststride - The width, in bytes, the the dest memory
+ * deststride - The width, in bytes, of the dest memory
*
* Return:
* OK on success; ERROR on failure with errno set appropriately
diff --git a/nuttx/include/nuttx/page.h b/nuttx/include/nuttx/page.h
index b2b292381..b0366a130 100644
--- a/nuttx/include/nuttx/page.h
+++ b/nuttx/include/nuttx/page.h
@@ -253,7 +253,7 @@ extern "C"
*
* 1) Sanity checking.
* - ASSERT if the currently executing task is the page fill worker
- * thread. The page fill worker thread is how the the page fault
+ * thread. The page fill worker thread is how the page fault
* is resolved and all logic associated with the page fill worker
* must be "locked" and always present in memory.
* 2) Block the currently executing task.
diff --git a/nuttx/include/nuttx/sched.h b/nuttx/include/nuttx/sched.h
index 229f86f74..e14ff7c58 100644
--- a/nuttx/include/nuttx/sched.h
+++ b/nuttx/include/nuttx/sched.h
@@ -246,7 +246,7 @@ struct child_status_s
struct dspace_s
{
/* The life of the structure allocation is determined by this reference
- * count. This count is number of threads that shared the the same D-Space.
+ * count. This count is number of threads that shared the same D-Space.
* This includes the parent task as well as any pthreads created by the
* parent task or any of its child threads.
*/
diff --git a/nuttx/include/nuttx/spi/spi_bitbang.c b/nuttx/include/nuttx/spi/spi_bitbang.c
index 9149e6c7d..d0281a249 100755
--- a/nuttx/include/nuttx/spi/spi_bitbang.c
+++ b/nuttx/include/nuttx/spi/spi_bitbang.c
@@ -220,7 +220,7 @@ static uint32_t spi_setfrequency(FAR struct spi_bitbang_s *priv, uint32_t freque
* SPI_BITBAND_LOOPSPERMSEC is the number of times through a delay loop
* to get 1 millisecond.
*
- * SPI_BITBAND_LOOPSPERMSEC / 1000000 is then the the number of counts
+ * SPI_BITBAND_LOOPSPERMSEC / 1000000 is then the number of counts
* to get 1 nanosecond. In reality, this is a number less than zero. But
* then we can use this to calculate:
*
diff --git a/nuttx/libc/misc/lib_kbddecode.c b/nuttx/libc/misc/lib_kbddecode.c
index 4e7379832..7bbf64062 100644
--- a/nuttx/libc/misc/lib_kbddecode.c
+++ b/nuttx/libc/misc/lib_kbddecode.c
@@ -255,7 +255,7 @@ int kbd_decode(FAR struct lib_instream_s *stream,
}
}
- /* We have successfully parsed the the entire escape sequence. Return the
+ /* We have successfully parsed the entire escape sequence. Return the
* keyboard value in pch and the value an indication determined by the
* terminating character.
*/
diff --git a/nuttx/libc/misc/lib_slcddecode.c b/nuttx/libc/misc/lib_slcddecode.c
index 7a413c02c..72c36874f 100644
--- a/nuttx/libc/misc/lib_slcddecode.c
+++ b/nuttx/libc/misc/lib_slcddecode.c
@@ -391,7 +391,7 @@ enum slcdret_e slcd_decode(FAR struct lib_instream_s *stream,
}
}
- /* We have successfully parsed the the entire escape sequence. Return the
+ /* We have successfully parsed the entire escape sequence. Return the
* CLCD value in pch, return the count in parg, and an indication that this
* is a special action.
*/
diff --git a/nuttx/libc/stdio/lib_feof.c b/nuttx/libc/stdio/lib_feof.c
index e036398fd..aa971ed00 100644
--- a/nuttx/libc/stdio/lib_feof.c
+++ b/nuttx/libc/stdio/lib_feof.c
@@ -58,7 +58,7 @@
* stream is at the end of file.
*
* Returned Value:
- * This function will return non-zero if the the file pointer is positioned
+ * This function will return non-zero if the file pointer is positioned
* at the end of file.
*
****************************************************************************/
diff --git a/nuttx/libc/stdio/lib_sscanf.c b/nuttx/libc/stdio/lib_sscanf.c
index e6ba5b5e8..ba323480f 100644
--- a/nuttx/libc/stdio/lib_sscanf.c
+++ b/nuttx/libc/stdio/lib_sscanf.c
@@ -108,7 +108,7 @@ static int findwidth(FAR const char *buf, FAR const char *fmt)
return strcspn(buf, spaces);
}
- /* No.. Another possibility is the the format character is followed by
+ /* No.. Another possibility is the format character is followed by
* some recognizable delimiting value.
*/
diff --git a/nuttx/mm/mm_graninit.c b/nuttx/mm/mm_graninit.c
index 8f811c65f..30ec5f9dd 100644
--- a/nuttx/mm/mm_graninit.c
+++ b/nuttx/mm/mm_graninit.c
@@ -102,7 +102,7 @@ gran_common_initialize(FAR void *heapstart, size_t heapsize, uint8_t log2gran,
unsigned int alignedsize;
unsigned int ngranules;
- /* Check parameters if debug is on. Note the the size of a granual is
+ /* Check parameters if debug is on. Note the size of a granual is
* limited to 2**31 bytes and that the size of the granule must be greater
* than the alignment size.
*/
diff --git a/nuttx/net/Kconfig b/nuttx/net/Kconfig
index bb60f7ecb..d3a26a587 100644
--- a/nuttx/net/Kconfig
+++ b/nuttx/net/Kconfig
@@ -175,7 +175,7 @@ config NET_TCP_SPLIT
bool "Enable packet splitting"
default n
---help---
- send() will not return until the the transfer has been ACKed by the
+ send() will not return until the transfer has been ACKed by the
recipient. But under RFC 1122, the host need not ACK each packet
immediately; the host may wait for 500 MS before ACKing. This
combination can cause very slow performance with small transfers are
diff --git a/nuttx/net/net_poll.c b/nuttx/net/net_poll.c
index 77f2f6ef7..bd27b86d7 100644
--- a/nuttx/net/net_poll.c
+++ b/nuttx/net/net_poll.c
@@ -144,7 +144,7 @@ static uint16_t poll_interrupt(FAR struct uip_driver_s *dev, FAR void *conn,
if ((flags & (UIP_CLOSE|UIP_ABORT|UIP_TIMEDOUT)) != 0)
{
- /* Make the the connection has been lost */
+ /* Marki that the connection has been lost */
net_lostconnection(info->psock, flags);
eventset |= (POLLERR | POLLHUP);
diff --git a/nuttx/net/send.c b/nuttx/net/send.c
index 37f5bb8ed..9f7c71f13 100644
--- a/nuttx/net/send.c
+++ b/nuttx/net/send.c
@@ -210,7 +210,7 @@ static uint16_t send_interrupt(FAR struct uip_driver_s *dev, FAR void *pvconn,
pstate->snd_sent = pstate->snd_acked;
#if defined(CONFIG_NET_TCP_SPLIT)
- /* Reset the the even/odd indicator to even since we need to
+ /* Reset the even/odd indicator to even since we need to
* retransmit.
*/
diff --git a/nuttx/sched/group_childstatus.c b/nuttx/sched/group_childstatus.c
index ef42b6c34..233649baf 100644
--- a/nuttx/sched/group_childstatus.c
+++ b/nuttx/sched/group_childstatus.c
@@ -266,7 +266,7 @@ void group_addchild(FAR struct task_group_s *group,
*
* Description:
* Find a child status structure in the given task group. A reference to
- * the child structure is returned, but the child remains the the group's
+ * the child structure is returned, but the child remains in the group's
* list of children.
*
* Parameters:
diff --git a/nuttx/sched/pg_miss.c b/nuttx/sched/pg_miss.c
index 32c9c5bb8..aa04b2d53 100644
--- a/nuttx/sched/pg_miss.c
+++ b/nuttx/sched/pg_miss.c
@@ -65,7 +65,7 @@
*
* 1) Sanity checking.
* - ASSERT if the currently executing task is the page fill worker
- * thread. The page fill worker thread is how the the page fault
+ * thread. The page fill worker thread is how the page fault
* is resolved and all logic associated with the page fill worker
* must be "locked" and always present in memory.
* - ASSERT if an interrupt was executing at the time of the exception.
@@ -127,7 +127,7 @@ void pg_miss(void)
/* Sanity checking
*
* ASSERT if the currently executing task is the page fill worker thread.
- * The page fill worker thread is how the the page fault is resolved and
+ * The page fill worker thread is how the page fault is resolved and
* all logic associated with the page fill worker must be "locked" and
* always present in memory.
*/
diff --git a/nuttx/sched/sched_waitid.c b/nuttx/sched/sched_waitid.c
index 545353e8b..9bb6c200d 100644
--- a/nuttx/sched/sched_waitid.c
+++ b/nuttx/sched/sched_waitid.c
@@ -191,7 +191,7 @@ int waitid(idtype_t idtype, id_t id, FAR siginfo_t *info, int options)
sched_lock();
- /* Verify that this task actually has children and that the the requested
+ /* Verify that this task actually has children and that the requested
* TCB is actually a child of this task.
*/
diff --git a/nuttx/sched/sem_timedwait.c b/nuttx/sched/sem_timedwait.c
index 344b3a072..f375ac06c 100644
--- a/nuttx/sched/sem_timedwait.c
+++ b/nuttx/sched/sem_timedwait.c
@@ -185,7 +185,7 @@ int sem_timedwait(FAR sem_t *sem, FAR const struct timespec *abstime)
#endif
/* Create a watchdog. We will not actually need this watchdog
- * unless the the semaphore is unavailable, but we will reserve it up
+ * unless the semaphore is unavailable, but we will reserve it up
* front before we enter the following critical section.
*/
diff --git a/nuttx/tools/Config.mk b/nuttx/tools/Config.mk
index 9ac93e7d0..bddaa17df 100644
--- a/nuttx/tools/Config.mk
+++ b/nuttx/tools/Config.mk
@@ -75,7 +75,7 @@ endif
# Depends on this setting passed as a make commaond line definition from the
# toplevel Makefile:
#
-# TOPDIR - The path to the the top level NuttX directory in the form
+# TOPDIR - The path to the top level NuttX directory in the form
# appropriate for the current build environment
#
# Depends on this settings defined in board-specific defconfig file installed
diff --git a/nuttx/tools/README.txt b/nuttx/tools/README.txt
index cb09b7aa7..3407644ae 100644
--- a/nuttx/tools/README.txt
+++ b/nuttx/tools/README.txt
@@ -4,7 +4,7 @@ tools/README.txt
This README file addresses the contents of the NuttX tools/ directory.
The tools/ directory contains miscellaneous scripts and host C programs
-that are necessary parts of the the NuttX build system. These files
+that are necessary parts of the NuttX build system. These files
include:
README.txt
@@ -427,7 +427,7 @@ incdir.bat
---------
Different compilers have different conventions for specifying lists
- of include file paths on the the compiler command line. This incdir.sh
+ of include file paths on the compiler command line. This incdir.sh
bash script allows the build system to create include file paths without
concern for the particular compiler in use.
@@ -489,7 +489,7 @@ kconfig.bat
only a few options for the Windows user (see the top-level README.txt
file).
- You can, with some effort, run the the Cygwin kconfig-mconf tool directly
+ You can, with some effort, run the Cygwin kconfig-mconf tool directly
in the CMD.exe shell. In this case, you do not have to modify the
.config file, but there are other complexities: You need to
temporarily set the Cgywin directories in the PATH variable and
diff --git a/nuttx/tools/kconfig2html.c b/nuttx/tools/kconfig2html.c
index 7c7d2603a..742e1989c 100644
--- a/nuttx/tools/kconfig2html.c
+++ b/nuttx/tools/kconfig2html.c
@@ -469,7 +469,7 @@ static int htmlize_character(char *dest, char ch)
const char *str;
/* Transfer the character from into the destination buffer, perform the
- * conversion only the the character is one of the special characters.
+ * conversion only if the character is one of the special characters.
*/
str = NULL;
@@ -1413,7 +1413,7 @@ static void process_default(FILE *stream, struct default_s *defp)
* Name: print_default
*
* Description:
- * Output and the list of defaults to the the HTML body file.
+ * Output and the list of defaults to the HTML body file.
*
****************************************************************************/
@@ -1485,7 +1485,7 @@ static void print_default(struct default_s *defp, output_t outfunc)
* Name: free_default
*
* Description:
- * Output and the list of defaults to the the HTML body file.
+ * Output and the list of defaults to the HTML body file.
*
****************************************************************************/