diff --git a/ChangeLog b/ChangeLog index b125a38b3b..bd79a12623 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3335,7 +3335,7 @@ the UDP discovery utility. Contributed by Max Holtzberg. * mm/README.txt: Add a new README file. * include/nuttx/usb/usb.h, arch/*/src/*usb.c, and arch/*/src/*otg*.c: - Add hooks to to use common, external DMA buffer allocation + Add hooks to use common, external DMA buffer allocation implementation. * net/recvfrom.c: Don't block in recvfrom if (1) read-ahead buffering is enabled and (2) some data was obtained from read-ahead buffers. @@ -3924,7 +3924,7 @@ locking up the whole system. * sched/sched_waitpid.c: Use SIGCHLD instead of a semaphore. This is a much more spec-compliant implementation. However, there are - some issues with overruning signals because NuttX does not support + some issues with overrunning signals because NuttX does not support queueing of signals (POSIX does not require it). I think it may need to. * sched/sched_waitid.c and sched_wait.c: Add support for waitid() @@ -4442,7 +4442,7 @@ type as the second parameter (2013-03-23). * arch/arm/src/lm, kinetis, lpc43, and nuc1xx: Add kernel build support to all ARMv7-M and ARMv6-M chips. There are no - configurations in place to to verify these additions! + configurations in place to verify these additions! (2013-03-24). * arch/arm/src/lm/lm_gpio.h: Correct typos in alternate function definitions (2013-03-24). @@ -8429,7 +8429,7 @@ addresses to physical addresses, and vice versa (2104-9-7). * SAM3X/Arduino Due: Fix typo in sam3x_periphclks.h; add SCLK definitions to board.h header file. From Fabien Comte (2014-9-8). - * Several pthread interfaces: Add const storage class to to phthread + * Several pthread interfaces: Add const storage class to the phthread parameters. From Freddie Chopin (2014-9-8). * libc/math: Corrected atan2 implementations from Denis Arnst (2014-9-8). * sama5d4-ek/knsh: Rename the kernel configuration to knsh to better @@ -12026,9 +12026,9 @@ * STM32F7: Add SPI, I2C, and ADC drivers. From Lok Tep (2016-06-15). * err(), warn(), info(), and alert() renamed to include leading '_'. This was done to avoid some naming collisions (2-06-16 - * STM32: Move backup domain reset to to earlier in the initialization + * STM32: Move backup domain reset to earlier in the initialization sequence (stm32_rcc.c() in order to avoid disabling LSE during RTC - initialiation. From Alan Carvalho de Assis (2016-06-16). + initialization. From Alan Carvalho de Assis (2016-06-16). * SYSLOG: syslog() will now automatically redirect output to lowsyslog() if called from an interrupt handler (2016-06-16). * STM32: When configuring a GPIO via stm32_configgpio() the function @@ -16638,7 +16638,7 @@ because current data structures do not support it (2017-08-29). * Networking: Clean up some naming that has bothered me for a long time... There are no interrupts and no interrupt handlers in the - network. There are events and event handler (there used to to be + network. There are events and event handler (there used to be interrupt logic in there years ago but that is long, long gone) (2017-08-29). * configs: update STM32L4 configs for ADC changes. From Juha Niskanen @@ -24932,7 +24932,7 @@ * arch/arm/src/am335x/am335x_sysclk.c: Add a function to return a frequency of the system clock. From Gregory Nutt (2019-07-08). * arch/arm/src/am335x/am335x_lcdc.c: Add logic to get/set the module - reference clock. Still one more clocking interface to to. From Gregory + reference clock. Still one more clocking interface to do. From Gregory Nutt (2019-07-08). * configs/beaglebone-black/lcd/defconfig: Add a configuration for bringing up the LCDC driver. From Gregory Nutt (2019-07-08). diff --git a/Documentation/NXGraphicsSubsystem.html b/Documentation/NXGraphicsSubsystem.html index d22e778e16..a4684731e2 100644 --- a/Documentation/NXGraphicsSubsystem.html +++ b/Documentation/NXGraphicsSubsystem.html @@ -1037,7 +1037,7 @@ int nxmu_start(int display, int plane);
Returned Value:
- On success zero (OKERROR) is returned on failure with the errno variable to to indicate the nature of the failure.
+ On success zero (OKERROR) is returned on failure with the errno variable set to indicate the nature of the failure.
New Add the font to the NX build system. - There are several files that you have to modify to to this. + There are several files that you have to modify to do this. Look how the build system uses the font CONFIG_NXFONT_SANS23X27 for examaples:
Description:
up_addrenv_create()), this function may be called to to instantiate that address environment in the virtual address space.
+ After an address environment has been established for a task (via up_addrenv_create()), this function may be called to instantiate that address environment in the virtual address space.
This might be necessary, for example, to load the code for the task from a file or to access address environment private data.
Input Parameters:
@@ -3742,7 +3742,7 @@ void lpwork_restorepriority(uint8_t reqprio);Description:
up_addrenv_select,
- this function may be called to to restore the original address environment.
+ this function may be called to restore the original address environment.
Input Parameters:
Returned Value:
OK) is returned;
- -1 (ERROR) is returned on failure with the errno variable to to indicate the nature of the failure.
+ -1 (ERROR) is returned on failure with the errno variable set to indicate the nature of the failure.
The logic in this function only deletes non-running tasks.
- If the pid parameter refers to to the currently runing task, then processing is redirected to exit().
+ If the pid parameter refers to the currently running task, then processing is redirected to exit().
This can only happen if a task calls task_delete() in order to delete itself.
diff --git a/ReleaseNotes b/ReleaseNotes index 88a2bcb6af..7af34909f6 100644 --- a/ReleaseNotes +++ b/ReleaseNotes @@ -4295,8 +4295,8 @@ Additional new features and extended functionality: * STM32: - Added an option to conditionally disable the "wfi" sleep mode. This - is needed with certain JTAG debuggers to to prevent the debug - session from begin disconnected (from Ken Pettit). + is needed with certain JTAG debuggers to prevent the debug session + from being disconnected (from Ken Pettit). - Added support for the STM32L (STM32L15X/STM32L16x) family. - Added STM32F103C4 and F103C8 chip support (from Laurent Latil). - Added a new interface function, stm32_dmacapable() that can be used @@ -6060,7 +6060,7 @@ Bugfixes (see the ChangeLog for details). Some of these are very important: * NuttShell (NSH): - Use strncpy vs strcpy in the Telnet console logic to avoid - overruning the username and password buffers (from Bertold Van den + overrunning the username and password buffers (from Bertold Van den Bergh). - Add a newline after printing the file in the 'cat' command. This prevents the NSH prompt from be in the same line as the final line @@ -11651,7 +11651,7 @@ detailed bugfix information): From Konstantin Berezenko. - STM32 F1-F4: Correct the CAN2 RX IRQ number for stm32f10xx chips. From Konstantin Berezenko. - - STM32 F1-F4: Move backup domain reset to to earlier in the + - STM32 F1-F4: Move backup domain reset to earlier in the initialization sequence (stm32_rcc.c() in order to avoid disabling LSE during RTC initialiation. From Alan Carvalho de Assis. - STM32 F1-F4: When configuring a GPIO via stm32_configgpio() the diff --git a/TODO b/TODO index fa665ced80..52e7140c28 100644 --- a/TODO +++ b/TODO @@ -789,7 +789,7 @@ o Signals (sched/signal, arch/) up_schedule_sigaction()) - up_sigdeliver() is a trampoline function that performs the actual signal action as well as some housekeeping functions - then + then - up_sigdeliver() performs a context switch back to the normal, uninterrupted thread instead of returning to nxsig_deliver(). @@ -1218,7 +1218,7 @@ o C++ Support one task can effect another task. There can only one uClibc++ state and it will be shared by all tasks. uClibc++ apparently relies on global instances (at least for cin and - cout) there is no way to to have any unique state for any + cout) there is no way to have any unique state for any "task group". [NuttX does not support processes because in order to have diff --git a/arch/arm/src/armv6-m/Toolchain.defs b/arch/arm/src/armv6-m/Toolchain.defs index dfe5b9c9fd..3ebaf1aa6c 100644 --- a/arch/arm/src/armv6-m/Toolchain.defs +++ b/arch/arm/src/armv6-m/Toolchain.defs @@ -186,6 +186,6 @@ ifeq ($(CONFIG_ARMV6M_TOOLCHAIN),GNU_EABIW) endif # Individual tools may limit the optimizatin level but, by default, the -# optimization level will be set to to -Os +# optimization level will be set to -Os MAXOPTIMIZATION ?= -Os diff --git a/arch/arm/src/armv6-m/up_svcall.c b/arch/arm/src/armv6-m/up_svcall.c index d2b5b9cf12..f964248cbc 100644 --- a/arch/arm/src/armv6-m/up_svcall.c +++ b/arch/arm/src/armv6-m/up_svcall.c @@ -222,7 +222,7 @@ int up_svcall(int irq, FAR void *context, FAR void *arg) * * In this case, we do both: We save the context registers to the save * register area reference by the saved contents of R1 and then set - * CURRENT_REGS to to the save register area referenced by the saved + * CURRENT_REGS to the save register area referenced by the saved * contents of R2. */ diff --git a/arch/arm/src/armv7-a/arm_addrenv.c b/arch/arm/src/armv7-a/arm_addrenv.c index 64828a28c8..a40abd6571 100644 --- a/arch/arm/src/armv7-a/arm_addrenv.c +++ b/arch/arm/src/armv7-a/arm_addrenv.c @@ -482,7 +482,7 @@ ssize_t up_addrenv_heapsize(FAR const group_addrenv_t *addrenv) * * Description: * After an address environment has been established for a task group (via - * up_addrenv_create(). This function may be called to to instantiate + * up_addrenv_create(). This function may be called to instantiate * that address environment in the virtual address space. this might be * necessary, for example, to load the code for the task group from a file or * to access address environment private data. @@ -620,7 +620,7 @@ int up_addrenv_select(FAR const group_addrenv_t *addrenv, * * Description: * After an address environment has been temporarily instantiated by - * up_addrenv_select(), this function may be called to to restore the + * up_addrenv_select(), this function may be called to restore the * original address environment. * * Input Parameters: diff --git a/arch/arm/src/armv7-m/up_svcall.c b/arch/arm/src/armv7-m/up_svcall.c index c0e782cd2e..50897568cb 100644 --- a/arch/arm/src/armv7-m/up_svcall.c +++ b/arch/arm/src/armv7-m/up_svcall.c @@ -219,7 +219,7 @@ int up_svcall(int irq, FAR void *context, FAR void *arg) * * In this case, we do both: We save the context registers to the save * register area reference by the saved contents of R1 and then set - * CURRENT_REGS to to the save register area referenced by the saved + * CURRENT_REGS to the save register area referenced by the saved * contents of R2. */ diff --git a/arch/arm/src/c5471/c5471_watchdog.c b/arch/arm/src/c5471/c5471_watchdog.c index b4d1ff4f23..806851ca6b 100644 --- a/arch/arm/src/c5471/c5471_watchdog.c +++ b/arch/arm/src/c5471/c5471_watchdog.c @@ -76,7 +76,7 @@ #define CLOCK_KHZ 47500 #define CLOCK_MHZx2 95 -/* Macros to manage access to to watchdog timer macros */ +/* Macros to manage access to the watchdog timer */ #define c5471_wdt_cntl (*(volatile uint32_t*)C5471_TIMER0_CTRL) #define c5471_wdt_count (*(volatile uint32_t*)C5471_TIMER0_CNT) diff --git a/arch/arm/src/dm320/dm320_timerisr.c b/arch/arm/src/dm320/dm320_timerisr.c index 3838e7d442..50abbceb70 100644 --- a/arch/arm/src/dm320/dm320_timerisr.c +++ b/arch/arm/src/dm320/dm320_timerisr.c @@ -82,7 +82,7 @@ /* System Timer * * Timer0 is dedicated as the system timer. The rate of system timer - * interrupts is assumed to to 10MS per tick / 100Hz. The following + * interrupts is assumed to be 10MS per tick / 100Hz. The following * register settings are used for timer 0 * * System clock formula: diff --git a/arch/arm/src/imx1/imx_spi.c b/arch/arm/src/imx1/imx_spi.c index a37b8b3b4d..c9af7513c8 100644 --- a/arch/arm/src/imx1/imx_spi.c +++ b/arch/arm/src/imx1/imx_spi.c @@ -395,7 +395,7 @@ static int spi_performtx(struct imx_spidev_s *priv) priv->txword(priv); } - /* Update the count of words to to transferred */ + /* Update the count of words to be transferred */ priv->ntxwords -= ntxd; } diff --git a/arch/arm/src/imx6/imx_ecspi.c b/arch/arm/src/imx6/imx_ecspi.c index c068f2e579..a679b4a3f3 100644 --- a/arch/arm/src/imx6/imx_ecspi.c +++ b/arch/arm/src/imx6/imx_ecspi.c @@ -520,7 +520,7 @@ static int spi_performtx(struct imx_spidev_s *priv) priv->txword(priv); } - /* Update the count of words to to transferred */ + /* Update the count of words to be transferred */ priv->ntxwords -= ntxd; } diff --git a/arch/arm/src/kinetis/kinetis_rtc.c b/arch/arm/src/kinetis/kinetis_rtc.c index 3617cd095f..e5a15f731d 100644 --- a/arch/arm/src/kinetis/kinetis_rtc.c +++ b/arch/arm/src/kinetis/kinetis_rtc.c @@ -320,7 +320,7 @@ int up_rtc_initialize(void) #ifdef KINETIS_RTC_GEN2 /* Check if the one-time initialization of the RTC has already been * performed. We can determine this by checking if the magic number - * has been writing to to back-up date register DR0. + * has been written to the back-up date register DR0. */ regval = getreg32(KINETIS_RTC_MCLR); diff --git a/arch/arm/src/lpc43xx/lpc43_ethernet.c b/arch/arm/src/lpc43xx/lpc43_ethernet.c index d9f845ad85..520ea4953f 100644 --- a/arch/arm/src/lpc43xx/lpc43_ethernet.c +++ b/arch/arm/src/lpc43xx/lpc43_ethernet.c @@ -870,7 +870,7 @@ static inline uint8_t *lpc43_allocbuffer(FAR struct lpc43_ethmac_s *priv) static inline void lpc43_freebuffer(FAR struct lpc43_ethmac_s *priv, uint8_t *buffer) { - /* Free the buffer by adding it to to the end of the free buffer list */ + /* Free the buffer by adding it to the end of the free buffer list */ sq_addlast((FAR sq_entry_t *)buffer, &priv->freeb); } diff --git a/arch/arm/src/nuc1xx/nuc_lowputc.c b/arch/arm/src/nuc1xx/nuc_lowputc.c index 0ff3e8c525..dcf27628b4 100644 --- a/arch/arm/src/nuc1xx/nuc_lowputc.c +++ b/arch/arm/src/nuc1xx/nuc_lowputc.c @@ -332,7 +332,7 @@ void nuc_lowputc(uint32_t ch) nuc_console_ready(); - /* Then write the character to to the TX FIFO */ + /* Then write the character to the TX FIFO */ putreg32(ch, NUC_CONSOLE_BASE + NUC_UART_THR_OFFSET); #endif /* HAVE_SERIAL_CONSOLE */ diff --git a/arch/arm/src/sama5/sam_tsd.c b/arch/arm/src/sama5/sam_tsd.c index 91491d27d8..66107631b8 100644 --- a/arch/arm/src/sama5/sam_tsd.c +++ b/arch/arm/src/sama5/sam_tsd.c @@ -582,7 +582,7 @@ static void sam_tsd_bottomhalf(void *arg) { /* If we have not yet processed the last pen up event, then we * cannot handle this pen down event. We will have to discard it. That - * should be okay because we will set the timer to to sample again + * should be okay because we will set the timer to sample again * a little later. NOTE that pen interrupts are not re-enabled in * this case; we rely on the timer expiry to get us going again. */ diff --git a/arch/arm/src/samd5e5/sam_clockconfig.c b/arch/arm/src/samd5e5/sam_clockconfig.c index 716d745f15..475ffd4239 100644 --- a/arch/arm/src/samd5e5/sam_clockconfig.c +++ b/arch/arm/src/samd5e5/sam_clockconfig.c @@ -828,7 +828,7 @@ static void sam_dfll_gclkready(const struct sam_dfll_config_s *config) { } - /* Set the source of GCLK0 to to the configured source. */ + /* Set the source of GCLK0 to the configured source. */ regval32 = getreg32(SAM_GCLK_GENCTRL(0)); regval32 &= ~GCLK_GENCTRL_SRC_MASK; diff --git a/arch/arm/src/stm32/stm32_eth.c b/arch/arm/src/stm32/stm32_eth.c index f0cf5e7dbd..2f670b9f8b 100644 --- a/arch/arm/src/stm32/stm32_eth.c +++ b/arch/arm/src/stm32/stm32_eth.c @@ -978,7 +978,7 @@ static inline uint8_t *stm32_allocbuffer(FAR struct stm32_ethmac_s *priv) static inline void stm32_freebuffer(FAR struct stm32_ethmac_s *priv, uint8_t *buffer) { - /* Free the buffer by adding it to to the end of the free buffer list */ + /* Free the buffer by adding it to the end of the free buffer list */ sq_addlast((FAR sq_entry_t *)buffer, &priv->freeb); } diff --git a/arch/arm/src/stm32/stm32_otgfshost.c b/arch/arm/src/stm32/stm32_otgfshost.c index 71f316373b..fc358e0c65 100644 --- a/arch/arm/src/stm32/stm32_otgfshost.c +++ b/arch/arm/src/stm32/stm32_otgfshost.c @@ -2001,7 +2001,7 @@ static ssize_t stm32_in_transfer(FAR struct stm32_usbhost_s *priv, int chidx, else { /* Successfully received another chunk of data... add that to the - * runing total. Then continue reading until we read 'buflen' + * running total. Then continue reading until we read 'buflen' * bytes of data or until the devices NAKs (implying a short * packet). */ diff --git a/arch/arm/src/stm32/stm32_otghshost.c b/arch/arm/src/stm32/stm32_otghshost.c index a20a2e881a..ca5b71dae9 100644 --- a/arch/arm/src/stm32/stm32_otghshost.c +++ b/arch/arm/src/stm32/stm32_otghshost.c @@ -2006,7 +2006,7 @@ static ssize_t stm32_in_transfer(FAR struct stm32_usbhost_s *priv, int chidx, else { /* Successfully received another chunk of data... add that to the - * runing total. Then continue reading until we read 'buflen' + * running total. Then continue reading until we read 'buflen' * bytes of data or until the devices NAKs (implying a short * packet). */ diff --git a/arch/arm/src/stm32/stm32_rtcc.c b/arch/arm/src/stm32/stm32_rtcc.c index b5dad05a6b..418fb5d3ec 100644 --- a/arch/arm/src/stm32/stm32_rtcc.c +++ b/arch/arm/src/stm32/stm32_rtcc.c @@ -638,7 +638,7 @@ int up_rtc_initialize(void) /* Check if the one-time initialization of the RTC has already been * performed. We can determine this by checking if the magic number - * has been writing to to back-up date register DR0. + * has been written to the back-up date register DR0. */ if (regval != RTC_MAGIC && regval != RTC_MAGIC_TIME_SET) diff --git a/arch/arm/src/stm32/stm32f40xxx_rtcc.c b/arch/arm/src/stm32/stm32f40xxx_rtcc.c index 94558c98b3..780462e1a9 100644 --- a/arch/arm/src/stm32/stm32f40xxx_rtcc.c +++ b/arch/arm/src/stm32/stm32f40xxx_rtcc.c @@ -1035,7 +1035,7 @@ int up_rtc_initialize(void) /* Check if the one-time initialization of the RTC has already been * performed. We can determine this by checking if the magic number - * has been writing to to back-up date register DR0. + * has been written to the back-up date register DR0. */ if (regval != RTC_MAGIC && regval != RTC_MAGIC_TIME_SET) diff --git a/arch/arm/src/stm32f7/stm32_ethernet.c b/arch/arm/src/stm32f7/stm32_ethernet.c index 67ecc93ba5..a909ea52b7 100644 --- a/arch/arm/src/stm32f7/stm32_ethernet.c +++ b/arch/arm/src/stm32f7/stm32_ethernet.c @@ -993,7 +993,7 @@ static inline uint8_t *stm32_allocbuffer(struct stm32_ethmac_s *priv) static inline void stm32_freebuffer(struct stm32_ethmac_s *priv, uint8_t *buffer) { - /* Free the buffer by adding it to to the end of the free buffer list */ + /* Free the buffer by adding it to the end of the free buffer list */ sq_addlast((sq_entry_t *)buffer, &priv->freeb); } diff --git a/arch/arm/src/stm32f7/stm32_otghost.c b/arch/arm/src/stm32f7/stm32_otghost.c index 3a1fe41220..d29acc2ed6 100644 --- a/arch/arm/src/stm32f7/stm32_otghost.c +++ b/arch/arm/src/stm32f7/stm32_otghost.c @@ -1999,7 +1999,7 @@ static ssize_t stm32_in_transfer(FAR struct stm32_usbhost_s *priv, int chidx, else { /* Successfully received another chunk of data... add that to the - * runing total. Then continue reading until we read 'buflen' + * running total. Then continue reading until we read 'buflen' * bytes of data or until the devices NAKs (implying a short * packet). */ diff --git a/arch/arm/src/stm32f7/stm32_rtc.c b/arch/arm/src/stm32f7/stm32_rtc.c index c7d8219a78..f7d7234fa6 100644 --- a/arch/arm/src/stm32f7/stm32_rtc.c +++ b/arch/arm/src/stm32f7/stm32_rtc.c @@ -1047,7 +1047,7 @@ int up_rtc_initialize(void) /* Check if the one-time initialization of the RTC has already been * performed. We can determine this by checking if the magic number - * has been writing to to back-up date register DR0. + * has been written to the back-up date register DR0. */ if (regval != RTC_MAGIC && regval != RTC_MAGIC_TIME_SET) diff --git a/arch/arm/src/stm32h7/stm32_ethernet.c b/arch/arm/src/stm32h7/stm32_ethernet.c index b66a8731f4..4f29f91945 100644 --- a/arch/arm/src/stm32h7/stm32_ethernet.c +++ b/arch/arm/src/stm32h7/stm32_ethernet.c @@ -994,7 +994,7 @@ static inline uint8_t *stm32_allocbuffer(struct stm32_ethmac_s *priv) static inline void stm32_freebuffer(struct stm32_ethmac_s *priv, uint8_t *buffer) { - /* Free the buffer by adding it to to the end of the free buffer list */ + /* Free the buffer by adding it to the end of the free buffer list */ sq_addlast((sq_entry_t *)buffer, &priv->freeb); } diff --git a/arch/arm/src/stm32h7/stm32_otghost.c b/arch/arm/src/stm32h7/stm32_otghost.c index 60fcbdef39..78499a533a 100644 --- a/arch/arm/src/stm32h7/stm32_otghost.c +++ b/arch/arm/src/stm32h7/stm32_otghost.c @@ -2004,7 +2004,7 @@ static ssize_t stm32_in_transfer(FAR struct stm32_usbhost_s *priv, int chidx, else { /* Successfully received another chunk of data... add that to the - * runing total. Then continue reading until we read 'buflen' + * running total. Then continue reading until we read 'buflen' * bytes of data or until the devices NAKs (implying a short * packet). */ diff --git a/arch/arm/src/stm32h7/stm32_rtc.c b/arch/arm/src/stm32h7/stm32_rtc.c index 15f4e79ef3..4af11daedc 100644 --- a/arch/arm/src/stm32h7/stm32_rtc.c +++ b/arch/arm/src/stm32h7/stm32_rtc.c @@ -1047,7 +1047,7 @@ int up_rtc_initialize(void) /* Check if the one-time initialization of the RTC has already been * performed. We can determine this by checking if the magic number - * has been writing to to back-up date register DR0. + * has been written to back-up date register DR0. */ if (regval != RTC_MAGIC && regval != RTC_MAGIC_TIME_SET) diff --git a/arch/arm/src/stm32l4/stm32l4_otgfshost.c b/arch/arm/src/stm32l4/stm32l4_otgfshost.c index a58433a6e6..dbea969705 100644 --- a/arch/arm/src/stm32l4/stm32l4_otgfshost.c +++ b/arch/arm/src/stm32l4/stm32l4_otgfshost.c @@ -2005,7 +2005,7 @@ static ssize_t stm32l4_in_transfer(FAR struct stm32l4_usbhost_s *priv, else { /* Successfully received another chunk of data... add that to the - * runing total. Then continue reading until we read 'buflen' + * running total. Then continue reading until we read 'buflen' * bytes of data or until the devices NAKs (implying a short * packet). */ diff --git a/arch/arm/src/stm32l4/stm32l4x3xx_rcc.c b/arch/arm/src/stm32l4/stm32l4x3xx_rcc.c index e84253cdf2..d1127a39fe 100644 --- a/arch/arm/src/stm32l4/stm32l4x3xx_rcc.c +++ b/arch/arm/src/stm32l4/stm32l4x3xx_rcc.c @@ -950,7 +950,7 @@ static inline void rcc_enableperipherals(void) rcc_enableapb2(); #ifdef STM32L4_USE_HSI48 - /* Enable HSI48 clocking to to support USB transfers or RNG */ + /* Enable HSI48 clocking to support USB transfers or RNG */ stm32l4_enable_hsi48(STM32L4_HSI48_SYNCSRC); #endif diff --git a/arch/arm/src/stm32l4/stm32l4x6xx_rcc.c b/arch/arm/src/stm32l4/stm32l4x6xx_rcc.c index 60098e47bd..7111a8a184 100644 --- a/arch/arm/src/stm32l4/stm32l4x6xx_rcc.c +++ b/arch/arm/src/stm32l4/stm32l4x6xx_rcc.c @@ -1018,7 +1018,7 @@ static inline void rcc_enableperipherals(void) rcc_enableapb2(); #ifdef STM32L4_USE_HSI48 - /* Enable HSI48 clocking to to support USB transfers or RNG */ + /* Enable HSI48 clocking to support USB transfers or RNG */ stm32l4_enable_hsi48(STM32L4_HSI48_SYNCSRC); #endif diff --git a/arch/arm/src/stm32l4/stm32l4xrxx_rcc.c b/arch/arm/src/stm32l4/stm32l4xrxx_rcc.c index 6c2c12d9a1..60f4126d2f 100644 --- a/arch/arm/src/stm32l4/stm32l4xrxx_rcc.c +++ b/arch/arm/src/stm32l4/stm32l4xrxx_rcc.c @@ -995,7 +995,7 @@ static inline void rcc_enableperipherals(void) rcc_enableapb2(); #ifdef STM32L4_USE_HSI48 - /* Enable HSI48 clocking to to support USB transfers or RNG */ + /* Enable HSI48 clocking to support USB transfers or RNG */ stm32l4_enable_hsi48(STM32L4_HSI48_SYNCSRC); #endif diff --git a/arch/arm/src/str71x/str71x_head.S b/arch/arm/src/str71x/str71x_head.S index 767f646142..afe9466dca 100644 --- a/arch/arm/src/str71x/str71x_head.S +++ b/arch/arm/src/str71x/str71x_head.S @@ -260,7 +260,7 @@ * Description: * The EIC is initialized for use with NuttX. This initialization does not * take advantage of the high performance capabilities of the EIC. Instead, - * The EIC is only used to to provide NuttX IRQ numbers. Here is what is + * The EIC is only used to provide NuttX IRQ numbers. Here is what is * done: * * IRQs and FIQs are disabled @@ -340,7 +340,7 @@ eicloop: */ cmp \irqno, #STR71X_EIC_NCHANNELS - blt eicloop + blt eicloop .endm /***************************************************************************** diff --git a/arch/arm/src/tiva/common/tiva_ssi.c b/arch/arm/src/tiva/common/tiva_ssi.c index 08cbcf53de..57e8f82923 100644 --- a/arch/arm/src/tiva/common/tiva_ssi.c +++ b/arch/arm/src/tiva/common/tiva_ssi.c @@ -699,7 +699,7 @@ static int ssi_performtx(struct tiva_ssidev_s *priv) priv->txword(priv); } - /* Update the count of words to to transferred */ + /* Update the count of words to be transferred */ priv->ntxwords -= ntxd; } diff --git a/arch/arm/src/tiva/tm4c/tm4c_ethernet.c b/arch/arm/src/tiva/tm4c/tm4c_ethernet.c index 71c4a97025..68d83f475e 100644 --- a/arch/arm/src/tiva/tm4c/tm4c_ethernet.c +++ b/arch/arm/src/tiva/tm4c/tm4c_ethernet.c @@ -978,7 +978,7 @@ static inline uint8_t *tiva_allocbuffer(FAR struct tiva_ethmac_s *priv) static inline void tiva_freebuffer(FAR struct tiva_ethmac_s *priv, uint8_t *buffer) { - /* Free the buffer by adding it to to the end of the free buffer list */ + /* Free the buffer by adding it to the end of the free buffer list */ sq_addlast((FAR sq_entry_t *)buffer, &priv->freeb); } diff --git a/arch/mips/src/mips32/up_swint0.c b/arch/mips/src/mips32/up_swint0.c index 40cc800592..67b2278b69 100644 --- a/arch/mips/src/mips32/up_swint0.c +++ b/arch/mips/src/mips32/up_swint0.c @@ -183,8 +183,8 @@ int up_swint0(int irq, FAR void *context, FAR void *arg) * R6 = restoreregs * * In this case, we save the context registers to the save register - * area reference by the saved contents of R5 and then set - * g_current_regs to to the save register area referenced by the saved + * area referenced by the saved contents of R5 and then set + * g_current_regs to the save register area referenced by the saved * contents of R6. */ diff --git a/arch/misoc/src/lm32/lm32_swint.c b/arch/misoc/src/lm32/lm32_swint.c index 3f5aeb73cd..54e17dc150 100644 --- a/arch/misoc/src/lm32/lm32_swint.c +++ b/arch/misoc/src/lm32/lm32_swint.c @@ -184,8 +184,8 @@ int lm32_swint(int irq, FAR void *context, FAR void *arg) * A2 = restoreregs * * In this case, we save the context registers to the save register - * area reference by the saved contents of R5 and then set - * g_current_regs to to the save register area referenced by the saved + * area referenced by the saved contents of R5 and then set + * g_current_regs to the save register area referenced by the saved * contents of R6. */ diff --git a/arch/misoc/src/minerva/minerva_swint.c b/arch/misoc/src/minerva/minerva_swint.c index 98cc6d3a7c..4404cbae60 100644 --- a/arch/misoc/src/minerva/minerva_swint.c +++ b/arch/misoc/src/minerva/minerva_swint.c @@ -176,9 +176,9 @@ int minerva_swint(int irq, FAR void *context, FAR void *arg) /* A0=SYS_switch_context: This a switch context command: void * up_switchcontext(uint32_t *saveregs, uint32_t *restoreregs); At this * point, the following values are saved in context: A0 = - * SYS_switch_context A1 = saveregs A2 = restoreregs In this case, we - * save the context registers to the save register area reference by the - * saved contents of R5 and then set g_current_regs to to the save + * SYS_switch_context A1 = saveregs A2 = restoreregs. In this case, we + * save the context registers to the save register area referenced by + * the saved contents of R5 and then set g_current_regs to the save * register area referenced by the saved contents of R6. */ diff --git a/arch/risc-v/src/rv32im/Toolchain.defs b/arch/risc-v/src/rv32im/Toolchain.defs index 28827918c8..6fab51473e 100644 --- a/arch/risc-v/src/rv32im/Toolchain.defs +++ b/arch/risc-v/src/rv32im/Toolchain.defs @@ -105,8 +105,8 @@ ifeq ($(CONFIG_RISCV_TOOLCHAIN),GNU_RISCY) ARCHCPUFLAGS = -march=rv32imcxgap8 -mPE=8 -mFC=1 -D__riscv__ -D__pulp__ -D__GAP8__ endif -# Individual tools may limit the optimizatin level but, by default, the -# optimization level will be set to to -Os +# Individual tools may limit the optimization level but, by default, the +# optimization level will be set to -Os ifeq ($(CONFIG_DEBUG_SYMBOLS),) MAXOPTIMIZATION ?= -Os diff --git a/arch/risc-v/src/rv32im/up_swint.c b/arch/risc-v/src/rv32im/up_swint.c index 1ba8c73bbd..e1b8dca8ad 100644 --- a/arch/risc-v/src/rv32im/up_swint.c +++ b/arch/risc-v/src/rv32im/up_swint.c @@ -181,8 +181,8 @@ int up_swint(int irq, FAR void *context, FAR void *arg) * A2 = restoreregs * * In this case, we save the context registers to the save register - * area reference by the saved contents of R5 and then set - * g_current_regs to to the save register area referenced by the saved + * area referenced by the saved contents of R5 and then set + * g_current_regs to the save register area referenced by the saved * contents of R6. */ diff --git a/arch/z16/src/z16f/z16f_timerisr.c b/arch/z16/src/z16f/z16f_timerisr.c index aaaa04f7ed..0e49e66a96 100644 --- a/arch/z16/src/z16f/z16f_timerisr.c +++ b/arch/z16/src/z16f/z16f_timerisr.c @@ -148,7 +148,7 @@ void z16_timer_initialize(void) * scaledfreq = 20,000,000 / 100 * = 200,000 * divisor = ((18,432,000 / 100) >> 16) + 1 - * = 3 -> 4 (need to to up to next power of two) + * = 3 -> 4 (need to go up to next power of two) * reload_value = 20,000,000 / 100 / 4 * = 56,080 */ diff --git a/arch/z80/src/z180/z180_mmu.c b/arch/z80/src/z180/z180_mmu.c index 8af556b58f..1c02041649 100644 --- a/arch/z80/src/z180/z180_mmu.c +++ b/arch/z80/src/z180/z180_mmu.c @@ -419,7 +419,7 @@ ssize_t up_addrenv_heapsize(FAR const group_addrenv_t *addrenv) * * Description: * After an address environment has been established for a task (via - * up_addrenv_create()), this function may be called to to instantiate + * up_addrenv_create()), this function may be called to instantiate * that address environment in the virtual address space. This might be * necessary, for example, to load the code for the task from a file or * to access address environment private data. @@ -463,8 +463,8 @@ int up_addrenv_select(FAR const group_addrenv_t *addrenv, * Name: up_addrenv_restore * * Description: - * After an address environment has been temporarilty instantiated by - * up_addrenv_select, this function may be called to to restore the + * After an address environment has been temporarily instantiated by + * up_addrenv_select, this function may be called to restore the * original address environment. * * Input Parameters: diff --git a/audio/pcm_decode.c b/audio/pcm_decode.c index 6aa6579a5f..60896be33c 100644 --- a/audio/pcm_decode.c +++ b/audio/pcm_decode.c @@ -1335,7 +1335,7 @@ static void pcm_callback(FAR void *arg, uint16_t reason, DEBUGASSERT(priv && priv->export.upper); - /* The buffer belongs to to an upper level. Just forward the event to + /* The buffer belongs to an upper level. Just forward the event to * the next level up. */ diff --git a/boards/Kconfig b/boards/Kconfig index 9668b77158..4a72808d08 100644 --- a/boards/Kconfig +++ b/boards/Kconfig @@ -1871,7 +1871,7 @@ config ARCH_BOARD_CUSTOM_DIR to also tell the build system where it can find the board directory for the custom board. - In this case, the board directory is assume to lie outside the + In this case, the board directory is assumed to lie outside the NuttX directory. The provided path must then be a full, absolute path to some location outside of the NuttX source tree (like "~/projects/myboard"). diff --git a/boards/arm/cxd56xx/spresense/src/cxd56_ioctl.c b/boards/arm/cxd56xx/spresense/src/cxd56_ioctl.c index 960e16b35b..014fd4ca91 100644 --- a/boards/arm/cxd56xx/spresense/src/cxd56_ioctl.c +++ b/boards/arm/cxd56xx/spresense/src/cxd56_ioctl.c @@ -80,7 +80,7 @@ * * Returned Value: * On success zero (OK) is returned; -1 (ERROR) is returned on failure - * with the errno variable to to indicate the nature of the failure. + * with the errno variable to indicate the nature of the failure. * ****************************************************************************/ diff --git a/boards/arm/stm32/mikroe-stm32f4/src/stm32_touchscreen.c b/boards/arm/stm32/mikroe-stm32f4/src/stm32_touchscreen.c index 2b83f41940..1f8d5dcc72 100644 --- a/boards/arm/stm32/mikroe-stm32f4/src/stm32_touchscreen.c +++ b/boards/arm/stm32/mikroe-stm32f4/src/stm32_touchscreen.c @@ -677,7 +677,7 @@ static int tc_waitsample(FAR struct tc_dev_s *priv, { int ret; - /* Pre-emption must be disabled when this is called to to prevent sampled + /* Pre-emption must be disabled when this is called to prevent sampled * data from changing until it has been reported. */ diff --git a/boards/arm/stm32/stm32f4discovery/README.txt b/boards/arm/stm32/stm32f4discovery/README.txt index 4d245dc4cf..f70d7d5d43 100644 --- a/boards/arm/stm32/stm32f4discovery/README.txt +++ b/boards/arm/stm32/stm32f4discovery/README.txt @@ -1383,7 +1383,7 @@ Configuration Sub-directories executable in PATH variable (see apps/examples/README.txt) 5. This configuration can be extended to use the hello++4 example and to - build uClibc with the following additions to to the configuration file + build uClibc with the following additions to the configuration file (from Leo aloe3132): CONFIG_C99_BOOL8=y @@ -1439,7 +1439,7 @@ Configuration Sub-directories You may also want to reconfigure the serial console to USART1. - 2. The HCI UART is assume to connect to the UART3 on the following pins: + 2. The HCI UART is assumed to connect to the UART3 on the following pins: USART3 TX : PB10 USART3 RX : PB11 diff --git a/boards/boardctl.c b/boards/boardctl.c index 65b438cdb1..31ba396f73 100644 --- a/boards/boardctl.c +++ b/boards/boardctl.c @@ -89,7 +89,7 @@ * * Returned Value: * On success zero (OK) is returned; -1 (ERROR) is returned on failure - * with the errno variable to to indicate the nature of the failure. + * with the errno variable to indicate the nature of the failure. * ****************************************************************************/ @@ -258,7 +258,7 @@ static inline int boardctl_usbdevctrl(FAR struct boardioc_usbdev_ctrl_s *ctrl) * * Returned Value: * On success zero (OK) is returned; -1 (ERROR) is returned on failure - * with the errno variable to to indicate the nature of the failure. + * with the errno variable to indicate the nature of the failure. * ****************************************************************************/ diff --git a/boards/mips/pic32mx/pic32mx7mmb/src/pic32_touchscreen.c b/boards/mips/pic32mx/pic32mx7mmb/src/pic32_touchscreen.c index 38cbf0eccb..c7c1d50ce0 100644 --- a/boards/mips/pic32mx/pic32mx7mmb/src/pic32_touchscreen.c +++ b/boards/mips/pic32mx/pic32mx7mmb/src/pic32_touchscreen.c @@ -578,7 +578,7 @@ static int tc_waitsample(FAR struct tc_dev_s *priv, { int ret; - /* Pre-emption must be disabled when this is called to to prevent sampled + /* Pre-emption must be disabled when this is called to prevent sampled * data from changing until it has been reported. */ diff --git a/drivers/input/ads7843e.c b/drivers/input/ads7843e.c index eb25551eb2..9ff3f9b10a 100644 --- a/drivers/input/ads7843e.c +++ b/drivers/input/ads7843e.c @@ -595,7 +595,7 @@ static void ads7843e_worker(FAR void *arg) { /* If we have not yet processed the last pen up event, then we * cannot handle this pen down event. We will have to discard it. That - * should be okay because we will set the timer to to sample again + * should be okay because we will set the timer to sample again * later. */ diff --git a/drivers/input/max11802.c b/drivers/input/max11802.c index 901a7594a6..bfc32cc6e7 100644 --- a/drivers/input/max11802.c +++ b/drivers/input/max11802.c @@ -578,7 +578,7 @@ static void max11802_worker(FAR void *arg) { /* If we have not yet processed the last pen up event, then we * cannot handle this pen down event. We will have to discard it. - * That should be okay because we will set the timer to to sample + * That should be okay because we will set the timer to sample * again later. */ diff --git a/drivers/net/enc28j60.c b/drivers/net/enc28j60.c index bbd0332cf7..7d73aa9784 100644 --- a/drivers/net/enc28j60.c +++ b/drivers/net/enc28j60.c @@ -1582,7 +1582,7 @@ static void enc_pktif(FAR struct enc_driver_s *priv) priv->dev.d_len = pktlen - 4; /* Copy the data data from the receive buffer to priv->dev.d_buf. - * ERDPT should be correctly positioned from the last call to to + * ERDPT should be correctly positioned from the last call to * end_rdbuffer (above). */ diff --git a/drivers/net/slip.c b/drivers/net/slip.c index 447e7e1f19..12dff74ba1 100644 --- a/drivers/net/slip.c +++ b/drivers/net/slip.c @@ -554,8 +554,8 @@ static inline void slip_receive(FAR struct slip_driver_s *priv) { uint8_t ch; - /* Copy the data data from the hardware to to the RX buffer until we - * put together a whole packet. Make sure not to copy them into the + /* Copy the data from the hardware to the RX buffer until we put + * together a whole packet. Make sure not to copy them into the * packet if we run out of room. */ diff --git a/drivers/usbhost/Kconfig b/drivers/usbhost/Kconfig index 07e695b02f..8598087115 100644 --- a/drivers/usbhost/Kconfig +++ b/drivers/usbhost/Kconfig @@ -202,7 +202,7 @@ config USBHOST_CDCACM_TXDELAY default 200 ---help--- When the appellation is inactive, the host must poll it at this - rate in order to discover if it has serial data to send to to the + rate in order to discover if it has serial data to send to the device. config USBHOST_CDCACM_NPREALLOC diff --git a/fs/cromfs/README.txt b/fs/cromfs/README.txt index 35b4bb81bd..b122367606 100644 --- a/fs/cromfs/README.txt +++ b/fs/cromfs/README.txt @@ -155,7 +155,7 @@ block can be converted to an absolute address in the in-memory CROMFS image by simply adding that offset to the well-known address of the volume header. Each hard link, directory, and file node in the directory list includes -such a "peer offset" to to the next node in the list. Each node is followed +such a "peer offset" to the next node in the list. Each node is followed by the NUL-terminated name of the node. Each node also holds an additional offset. Directory nodes contain a "child offset". That is, the offset to the first entry in another singly linked list of nodes comprising the sub- diff --git a/fs/smartfs/smartfs_utils.c b/fs/smartfs/smartfs_utils.c index 20436d4478..cb6e6e2af5 100644 --- a/fs/smartfs/smartfs_utils.c +++ b/fs/smartfs/smartfs_utils.c @@ -1659,7 +1659,7 @@ errout: * Name: smartfs_shrinkfile * * Description: - * Shrink the size existing file to to the specified length + * Shrink the size of an existing file to the specified length * ****************************************************************************/ diff --git a/fs/vfs/fs_rename.c b/fs/vfs/fs_rename.c index 627abba7a9..8a421c834d 100644 --- a/fs/vfs/fs_rename.c +++ b/fs/vfs/fs_rename.c @@ -263,7 +263,7 @@ next_subdir: * * Remove the old inode. Because we hold a reference count on the * inode, it will not be deleted now. It will be deleted when all of - * the references to to the inode have been released (perhaps when + * the references to the inode have been released (perhaps when * inode_release() is called in remove()). inode_remove() should return * -EBUSY to indicate that the inode was not deleted now. */ diff --git a/fs/vfs/fs_unlink.c b/fs/vfs/fs_unlink.c index c5f958de57..0cbd0785b6 100644 --- a/fs/vfs/fs_unlink.c +++ b/fs/vfs/fs_unlink.c @@ -199,7 +199,7 @@ int unlink(FAR const char *pathname) /* Remove the old inode. Because we hold a reference count on the * inode, it will not be deleted now. It will be deleted when all - * of the references to to the inode have been released (perhaps + * of the references to the inode have been released (perhaps * when inode_release() is called below). inode_remove() will * return -EBUSY to indicate that the inode was not deleted now. */ diff --git a/include/nuttx/arch.h b/include/nuttx/arch.h index 938c1be590..7733619d0a 100644 --- a/include/nuttx/arch.h +++ b/include/nuttx/arch.h @@ -967,10 +967,10 @@ ssize_t up_addrenv_heapsize(FAR const group_addrenv_t *addrenv); * * Description: * After an address environment has been established for a task group (via - * up_addrenv_create(). This function may be called to to instantiate - * that address environment in the virtual address space. this might be - * necessary, for example, to load the code for the task group from a file or - * to access address environment private data. + * up_addrenv_create(). This function may be called to instantiate + * that address environment in the virtual address space. This might be + * necessary, for example, to load the code for the task group from a file + * or to access address environment private data. * * Input Parameters: * addrenv - The representation of the task address environment previously @@ -997,7 +997,7 @@ int up_addrenv_select(FAR const group_addrenv_t *addrenv, * * Description: * After an address environment has been temporarily instantiated by - * up_addrenv_select(), this function may be called to to restore the + * up_addrenv_select(), this function may be called to restore the * original address environment. * * Input Parameters: diff --git a/include/nuttx/sensors/adxl372.h b/include/nuttx/sensors/adxl372.h index d86701d9a7..41b76462ba 100644 --- a/include/nuttx/sensors/adxl372.h +++ b/include/nuttx/sensors/adxl372.h @@ -58,11 +58,11 @@ * The Low Pass Filter is enabled and the High Pass Filter is disabled. * A filter settling time of 370ms is selected. * - * If the user desires a different configuration settings, the the user may + * If the user desires different configuration settings, then the user may * either provide a pointer to an array of "struct adxl372_reg_pair_s" that - * will be applied to to the sensor upon open(); or dynamically use - * the lseek() and write() file_operations functions to set the - * sensor configuration as desired. + * will be applied to the sensor upon open(); or dynamically use the lseek() + * and write() file_operations functions to set the sensor configuration as + * desired. * * When using the sensor from the file_operations interface, the sensor is * accessed in Programmed I/O (PIO) mode. (i.e. When the read() function is diff --git a/include/nuttx/sensors/lsm330.h b/include/nuttx/sensors/lsm330.h index 5a65b1a388..efad364d68 100644 --- a/include/nuttx/sensors/lsm330.h +++ b/include/nuttx/sensors/lsm330.h @@ -64,11 +64,11 @@ * Range = 500 dps. * Low Pass Filter #1 selected. * - * If the user desires a different configuration settings, the the user may + * If the user desires different configuration settings, then the user may * either provide a pointer to an array of "struct lsm330_reg_pair_s" that - * will be applied to to the sensor upon open(); or dynamically use the - * lseek() and write() file_operations functions to set the sensor - * configuration as desired. + * will be applied to the sensor upon open(); or dynamically use the lseek() + * and write() file_operations functions to set the sensor configuration + * as desired. * * When using the sensor from the file_operations interface, the sensor is * accessed in Programmed I/O (PIO) mode. (i.e. When the read() function is diff --git a/include/sys/boardctl.h b/include/sys/boardctl.h index c0d200a236..9c61bf16e2 100644 --- a/include/sys/boardctl.h +++ b/include/sys/boardctl.h @@ -367,7 +367,7 @@ extern "C" * * Returned Value: * On success zero (OK) is returned; -1 (ERROR) is returned on failure - * with the errno variable to to indicate the nature of the failure. + * with the errno variable set to indicate the nature of the failure. * ****************************************************************************/ diff --git a/libs/libnx/nxfonts/README.txt b/libs/libnx/nxfonts/README.txt index 457d290fd0..25be637269 100644 --- a/libs/libnx/nxfonts/README.txt +++ b/libs/libnx/nxfonts/README.txt @@ -56,7 +56,7 @@ Installing New Fonts ... New Add the font to the NX build system. There are several files that - you have to modify to to this. Look how the build system uses the + you have to modify to do this. Look how the build system uses the font CONFIG_NXFONT_SANS23X27 for examaples: 5. nuttx/graphics/Makefile. This file needs logic to auto-generate diff --git a/sched/task/task_delete.c b/sched/task/task_delete.c index 54d4526b20..b566f1885f 100644 --- a/sched/task/task_delete.c +++ b/sched/task/task_delete.c @@ -63,7 +63,7 @@ * function. * * The logic in this function only deletes non-running tasks. If the - * 'pid' parameter refers to to the currently runing task, then processing + * 'pid' parameter refers to the currently running task, then processing * is redirected to exit(). This can only happen if a task calls * task_delete()in order to delete itself. * diff --git a/tools/kconfig2html.c b/tools/kconfig2html.c index f9655b0377..d6afe9ba2c 100644 --- a/tools/kconfig2html.c +++ b/tools/kconfig2html.c @@ -987,7 +987,7 @@ static char *get_html_string(void) pend = findchar(pbegin, '"'); if (pend) { - /* Replace the final quote with a NUL. g_lnptr is set to to + /* Replace the final quote with a NUL. g_lnptr is set to * the next valid character after the terminating quote. */