From d660492289a0766846b59ab2587ae310e15b91fd Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sun, 23 Feb 2020 02:52:12 +0800 Subject: [PATCH] Run codespell -w against all files and fix the wrong correction --- COPYING | 2 +- ChangeLog.txt | 20 +++++++++---------- examples/README.txt | 2 +- examples/dsptest/test_foc.c | 2 +- examples/dsptest/test_motor.c | 8 ++++---- examples/embedlog/embedlog_main.c | 2 +- examples/flowc/Kconfig | 2 +- examples/ft80x/ft80x_main.c | 2 +- examples/helloxx/helloxx_main.cxx | 2 +- examples/modbus/modbus_main.c | 2 +- examples/netpkt/netpkt_main.c | 2 +- examples/nettest/Kconfig | 2 +- examples/nxflat/nxflat_main.c | 4 ++-- examples/nxlines/nxlines_bkgd.c | 4 ++-- examples/pdcurses/testcurs_main.c | 2 +- examples/pwlines/pwlines_update.c | 4 ++-- examples/userfs/userfs_main.c | 2 +- examples/webserver/httpd-fs/stats.shtml | 2 +- examples/xmlrpc/calls.c | 2 +- examples/xmlrpc/xmlrpc_main.c | 2 +- fsutils/inih/Kconfig | 2 +- fsutils/mkfatfs/configfat.c | 2 +- fsutils/mksmartfs/mksmartfs.c | 2 +- gpsutils/minmea/README.md | 2 +- graphics/nxwidgets/ChangeLog.txt | 10 +++++----- graphics/nxwidgets/Doxygen/Doxyfile | 2 +- graphics/nxwidgets/Kconfig | 2 +- .../UnitTests/CButton/cbuttontest.cxx | 2 +- .../UnitTests/CButton/cbuttontest.hxx | 2 +- .../CButtonArray/cbuttonarraytest.cxx | 2 +- .../CButtonArray/cbuttonarraytest.hxx | 2 +- .../CGlyphButton/cglyphbuttontest.cxx | 2 +- .../CGlyphButton/cglyphbuttontest.hxx | 2 +- .../UnitTests/CKeypad/ckeypadtest.cxx | 2 +- .../UnitTests/CKeypad/ckeypadtest.hxx | 2 +- .../CLatchButton/clatchbuttontest.cxx | 2 +- .../CLatchButton/clatchbuttontest.hxx | 2 +- .../clatchbuttonarraytest.cxx | 2 +- .../clatchbuttonarraytest.hxx | 2 +- .../nxwidgets/src/cglyphsliderhorizontal.cxx | 2 +- graphics/nxwidgets/src/ckeypad.cxx | 2 +- graphics/nxwidgets/src/cnxwidget.cxx | 2 +- graphics/nxwidgets/src/crlepalettebitmap.cxx | 2 +- graphics/nxwidgets/src/cwidgetcontrol.cxx | 2 +- graphics/nxwidgets/src/singletons.cxx | 2 +- graphics/nxwm/ChangeLog.txt | 10 +++++----- graphics/nxwm/Doxygen/Doxyfile | 2 +- graphics/nxwm/Kconfig | 4 ++-- graphics/nxwm/TODO.txt | 2 +- graphics/nxwm/src/chexcalculator.cxx | 2 +- graphics/nxwm/src/cmediaplayer.cxx | 2 +- graphics/nxwm/src/ctaskbar.cxx | 8 ++++---- graphics/pdcurs34/nuttx/pdcthread.c | 2 +- graphics/pdcurs34/pdcurses/pdc_mouse.c | 2 +- graphics/twm4nx/src/ciconmgr.cxx | 6 +++--- graphics/twm4nx/src/cwindowevent.cxx | 6 +++--- include/canutils/obd_frame.h | 6 +++--- include/fsutils/mksmartfs.h | 2 +- include/graphics/nxwidgets/ckeypad.hxx | 2 +- include/graphics/nxwidgets/cnxwidget.hxx | 2 +- include/graphics/nxwidgets/cwidgetcontrol.hxx | 2 +- include/graphics/nxwm/ccalibration.hxx | 2 +- include/graphics/nxwm/chexcalculator.hxx | 2 +- include/graphics/nxwm/ctaskbar.hxx | 2 +- include/graphics/nxwm/ctouchscreen.hxx | 2 +- include/graphics/nxwm/iapplication.hxx | 2 +- include/graphics/nxwm/iapplicationwindow.hxx | 2 +- include/graphics/twm4nx/cwindowfactory.hxx | 2 +- include/netutils/discover.h | 2 +- include/netutils/telnetc.h | 10 +++++----- include/netutils/xmlrpc.h | 2 +- include/system/zmodem.h | 6 +++--- include/wireless/wapi.h | 2 +- interpreters/bas/bas_global.c | 4 ++-- interpreters/minibasic/basic.c | 2 +- modbus/ascii/mbascii.c | 4 ++-- modbus/functions/mbfunccoils.c | 6 +++--- modbus/functions/mbfunccoils_m.c | 2 +- modbus/functions/mbfuncholding.c | 4 ++-- modbus/functions/mbfuncholding_m.c | 4 ++-- modbus/functions/mbfuncinput.c | 2 +- modbus/functions/mbfuncinput_m.c | 2 +- modbus/mb.c | 2 +- modbus/mb_m.c | 6 +++--- modbus/rtu/mbrtu.c | 2 +- modbus/rtu/mbrtu_m.c | 6 +++--- netutils/dhcpd/dhcpd.c | 2 +- netutils/discover/discover.c | 8 ++++---- netutils/esp8266/esp8266.c | 2 +- netutils/ftpc/ftpc_filetime.c | 2 +- netutils/ftpc/ftpc_getfile.c | 2 +- netutils/ftpc/ftpc_listdir.c | 4 ++-- netutils/ftpc/ftpc_rpwd.c | 2 +- netutils/ftpc/ftpc_unlink.c | 2 +- netutils/libcurl4nx/curl4nx_easy_perform.c | 2 +- netutils/pppd/ppp.c | 2 +- netutils/smtp/smtp.c | 2 +- netutils/telnetc/telnetc.c | 2 +- netutils/thttpd/config.h | 2 +- netutils/thttpd/libhttpd.c | 4 ++-- netutils/xmlrpc/response.c | 2 +- netutils/xmlrpc/xmlparser.c | 2 +- nshlib/Kconfig | 4 ++-- nshlib/README.txt | 6 +++--- nshlib/nsh.h | 6 +++--- nshlib/nsh_command.c | 2 +- nshlib/nsh_fsutils.c | 2 +- nshlib/nsh_mntcmds.c | 2 +- system/embedlog/Kconfig | 4 ++-- system/hexed/src/hexed.c | 2 +- system/nxplayer/nxplayer.c | 8 ++++---- system/nxrecorder/nxrecorder.c | 2 +- system/psmq/Kconfig | 2 +- system/vi/vi.c | 2 +- system/zmodem/Kconfig | 2 +- system/zmodem/host/nuttx/compiler.h | 2 +- system/zmodem/zm_receive.c | 2 +- system/zmodem/zm_send.c | 2 +- testing/ostest/mqueue.c | 2 +- testing/ostest/robust.c | 2 +- testing/ostest/timedmqueue.c | 2 +- wireless/ieee802154/i8sak/README.txt | 2 +- wireless/ieee802154/i8sak/i8sak.h | 2 +- wireless/ieee802154/i8sak/i8sak_acceptassoc.c | 2 +- wireless/ieee802154/i8sak/i8sak_get.c | 2 +- wireless/ieee802154/i8sak/i8sak_main.c | 2 +- wireless/ieee802154/i8sak/i8sak_set.c | 2 +- wireless/wapi/src/network.c | 2 +- 128 files changed, 191 insertions(+), 191 deletions(-) diff --git a/COPYING b/COPYING index 902fe927a..bbfe72f36 100644 --- a/COPYING +++ b/COPYING @@ -53,7 +53,7 @@ derive from uIP which has a similar BSD style license: FreeModbus ^^^^^^^^^ -FreeModbus Libary: A portable Modbus implementation for Modbus ASCII/RTU. +FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU. Copyright (c) 2006 Christian Walter All rights reserved. diff --git a/ChangeLog.txt b/ChangeLog.txt index b45cd5696..71fde9e68 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1914,7 +1914,7 @@ * Added support for set [{+|-}{e|x|xe|ex}] [ ]. Set the 'exit on error control' and/or 'print a trace' of commands when parsing scripts in NSH. The settinngs are in effect from the point - of exection, until they are changed again, or in the case of the init + of execution, until they are changed again, or in the case of the init script, the settings are returned to the default settings when it exits. Included child scripts will run with the parents settings and changes made in the child script will effect the parent on return. @@ -2403,7 +2403,7 @@ * examples/alarm: add options for reading alarm value and canceling it. From Juha Niskanen (2017-10-17). * apps/fsutils/mkfatfs: Move mkfatfs from the OS to here. Not fully - integrated on the intial commit (2017-10-20). + integrated on the initial commit (2017-10-20). * apps/examples/adps9960: Add ADPS-9960 example. From Alan Carvalho de Assis (2017-10-23). * This commit eliminates the ping command from NSH and replaces it with @@ -2504,7 +2504,7 @@ * apps/example/pdcurses: Add logic to build one of the several pdcurses demo/test programs (2017-11-18). * apps/graphics/pdcurs34/nuttx: Completes first cut at framebuffer - rendering logic. Add NuttX framebuffer color managment and beginning of + rendering logic. Add NuttX framebuffer color management and beginning of some rendering logic (2017-11-19). * apps/examples/pdcurses/: Fix a few more bugs found in testing; Brings in the remaining pdcurses demo programs (2017-11-19). @@ -2610,7 +2610,7 @@ previously existing tftpget/tftpput functions are now wrappers on the new ones, with callbacks that read/write from files, so my modifications are backwards compatible with existing applications, eg the associated nsh - commands dont need to be changed. From Sebastien Lorquet (2018-03-09). + commands don't need to be changed. From Sebastien Lorquet (2018-03-09). * apps/examples/ft80x: Fix some size calculations. Add option to disable primitive tests... just too boring to have to watch over and over again. Fix a typo in backlight fade logic; Fix error in formatted display light @@ -3132,7 +3132,7 @@ - apps/examples/fstest: Call statfs() and show state of file system on each loop. - apps/examples/fstest: Fix a situation where a file system under test - could cause the fstest to get stuck in an infinit loop. From Gregory + could cause the fstest to get stuck in an infinite loop. From Gregory Nutt (2018-09-27). * - apps/examples/fstest: Add logic to dump logic content of SPIFFS - apps/examples/fstest/Kconfig: SPIFFS GC and integrity check option @@ -3438,7 +3438,7 @@ 3. Paste buffer from 'dd' was being free'd after the 'p'aste operation, preventing multiple paste opportunity. Fixed. 4. The cursor was not being bound to the line end and was allowed to - 'hover' over the '\n' EOL character. This caused wierd (relative to + 'hover' over the '\n' EOL character. This caused weird (relative to standard vi) insertion locations and cursor movement with 'a'ppend and 'i'nsert. Fixed. 5. The 'vi_shrinkpos' position didn't take the end of file pointer into @@ -3446,7 +3446,7 @@ wierdness when deleting things near the end of the file. Fixed. 6. The 'yy'ank command was improperly deleting the text from the document instead of simply yanking to the paste buffer. Fixed. - 7. The 'dd'elete line funciton was not copying the deleted line to the + 7. The 'dd'elete line function was not copying the deleted line to the paste buffer as part of the delete operation. Fixed. 8. The bottom line of the screen was sometimes being used for document text and other times for command / find entry. Fixed by reserving @@ -3482,7 +3482,7 @@ 17. In command mode, backspace was deleting characters which is different from standard vi. Backspace in command mode normally simply moves the cursor left / to the previous line. Fixed. - 18. Added code to handle boundry conditions when the file is new and + 18. Added code to handle boundary conditions when the file is new and commands are applied to an empty file. 19. Fixed vi_shrinktext so it doesn't allocate a zero-length buffer when the last character in the file is deleted. @@ -3691,7 +3691,7 @@ * Missing semicolon at the end of function call. From Kejun ZHOU (2019-03-11). * graphics: nx_openwindow() and nxtk_openwindow() now accepts an - addtional 'flag' parameter. This argument is not used at present but + additional 'flag' parameter. This argument is not used at present but will, eventually enable a RAM backed, per-window framebuffer. From Gregory Nutt (2019-03-13). * This commit adds a test example at apps/examples/pwfb that will be used @@ -4479,7 +4479,7 @@ ramdisk_register() directly. No only is this a violation of the interface specification, but also prevents use of mkrd in PROTECTED or KERNEL buils. With this change, the NSH mkrd command now used the BOARDIOC_MKRD boardctl() - command. This command is availabe in all build modes. The effect of this + command. This command is available in all build modes. The effect of this change is to move the hear of the NSH mkrd command into to OS and provide user-space access via boardctl(). From Gregory Nutt (2019-10-26). * apps/examples/mount: Replace illegal call to ramdisk_register() with a call to diff --git a/examples/README.txt b/examples/README.txt index 70192b546..1dea92a26 100644 --- a/examples/README.txt +++ b/examples/README.txt @@ -1382,7 +1382,7 @@ examples/pwfb position. The windows are being updated from the per-winidow framebuffers automatically. - This example is reminescent of Pong: Each window travels in straight + This example is reminiscent of Pong: Each window travels in straight line until it hits an edge, then it bounces off. The window is also raised when it hits the edge (gets "focus"). This tests all combinations of overap. diff --git a/examples/dsptest/test_foc.c b/examples/dsptest/test_foc.c index 6a10bc1cb..ccb454b10 100644 --- a/examples/dsptest/test_foc.c +++ b/examples/dsptest/test_foc.c @@ -210,7 +210,7 @@ static void test_foc_process_zeros(void) TEST_ASSERT_EQUAL_FLOAT_ZERO(foc.v_ab_mod.b); } -/* Proces FOC with some test data */ +/* Process FOC with some test data */ static void test_foc_process(void) { diff --git a/examples/dsptest/test_motor.c b/examples/dsptest/test_motor.c index c0571f8f3..b53ed353d 100644 --- a/examples/dsptest/test_motor.c +++ b/examples/dsptest/test_motor.c @@ -73,7 +73,7 @@ static void test_openloop_init(void) float max_speed = 100; float per = 10e-6; - /* Initialize openlooop controler */ + /* Initialize openlooop controller */ motor_openloop_init(&op, max_speed, per); @@ -99,7 +99,7 @@ static void test_openloop_one_step(void) float speed = 10; float per = 10e-6; - /* Initialize openlooop controler */ + /* Initialize openlooop controller */ motor_openloop_init(&op, max_speed, per); @@ -149,7 +149,7 @@ static void test_openloop_many_steps(void) int iter = 10; int i = 0; - /* Initialize openlooop controler */ + /* Initialize openlooop controller */ motor_openloop_init(&op, max_speed, per); @@ -212,7 +212,7 @@ static void test_openloop_normalize_angle(void) int iter = 1000; int i = 0; - /* Initialize openlooop controler */ + /* Initialize openlooop controller */ motor_openloop_init(&op, max_speed, per); diff --git a/examples/embedlog/embedlog_main.c b/examples/embedlog/embedlog_main.c index 1efda61fa..53d730a3b 100644 --- a/examples/embedlog/embedlog_main.c +++ b/examples/embedlog/embedlog_main.c @@ -263,7 +263,7 @@ static void el_print_file(const char *workdir) * performance greatly. And there are situations when you are willing to * loose some info or debug data (up to configured sync every value), but * when critical error shows up, you want data to be synced immediately to - * minimize chance of loosing information about critical error. For that + * minimize chance of losing information about critical error. For that * you can define which log level will be synced *every* time regardless * of sync every value. Here we will instruct embedlog to log prints that * have severity higher or equal to critical (so critial, alert and fatal) diff --git a/examples/flowc/Kconfig b/examples/flowc/Kconfig index f8f080995..10269269c 100644 --- a/examples/flowc/Kconfig +++ b/examples/flowc/Kconfig @@ -14,7 +14,7 @@ config EXAMPLES_FLOWC CONFIG_SERIAL_TERMIOS=y - In addtion, you will need these related serial driver settings (the + In addition, you will need these related serial driver settings (the actual values of the watermark setting may be tuned to suit your preferences) diff --git a/examples/ft80x/ft80x_main.c b/examples/ft80x/ft80x_main.c index 077265527..19bd8f39c 100644 --- a/examples/ft80x/ft80x_main.c +++ b/examples/ft80x/ft80x_main.c @@ -181,7 +181,7 @@ static int ft80x_showname(int fd, FAR struct ft80x_dlbuffer_s *buffer, int ret; - /* Mkae sure that the backlight off */ + /* Make sure that the backlight off */ ft80x_backlight_set(fd, 0); diff --git a/examples/helloxx/helloxx_main.cxx b/examples/helloxx/helloxx_main.cxx index a76ee3a10..6eda33f19 100644 --- a/examples/helloxx/helloxx_main.cxx +++ b/examples/helloxx/helloxx_main.cxx @@ -136,7 +136,7 @@ extern "C" up_cxxinitialize(); #endif - // Exercise an explictly instantiated C++ object + // Exercise an explicitly instantiated C++ object CHelloWorld *pHelloWorld = new CHelloWorld; printf("helloxx_main: Saying hello from the dynamically constructed instance\n"); diff --git a/examples/modbus/modbus_main.c b/examples/modbus/modbus_main.c index 08cfa4283..70c9f03fd 100644 --- a/examples/modbus/modbus_main.c +++ b/examples/modbus/modbus_main.c @@ -34,7 +34,7 @@ **************************************************************************** * Leveraged from: * - * FreeModbus Libary: Linux Demo Application + * FreeModbus Library: Linux Demo Application * Copyright (C) 2006 Christian Walter * * This library is free software; you can redistribute it and/or diff --git a/examples/netpkt/netpkt_main.c b/examples/netpkt/netpkt_main.c index 821925d99..72dfcf404 100644 --- a/examples/netpkt/netpkt_main.c +++ b/examples/netpkt/netpkt_main.c @@ -208,7 +208,7 @@ int main(int argc, FAR char *argv[]) { if (verbose) { - printf("transmited %d octets\n", txc); + printf("transmitted %d octets\n", txc); print_buf(buf, txc); } } diff --git a/examples/nettest/Kconfig b/examples/nettest/Kconfig index 470d389d5..6759fbb3f 100644 --- a/examples/nettest/Kconfig +++ b/examples/nettest/Kconfig @@ -17,7 +17,7 @@ config EXAMPLES_NETTEST_SENDSIZE int "Payload size" default 4096 ---help--- - The test client sends well-known packets to ther server. The server + The test client sends well-known packets to the server. The server will receive and verfity those packets. This setting determines size of each packet. diff --git a/examples/nxflat/nxflat_main.c b/examples/nxflat/nxflat_main.c index f2f2b7b75..5001f3aee 100644 --- a/examples/nxflat/nxflat_main.c +++ b/examples/nxflat/nxflat_main.c @@ -190,13 +190,13 @@ int main(int argc, FAR char *argv[]) setenv("PATH", MOUNTPT, 1); #endif - /* Now excercise every progrm in the ROMFS file system */ + /* Now exercise every progrm in the ROMFS file system */ for (i = 0; dirlist[i]; i++) { FAR const char *filename; - /* Output a seperated so that we can clearly discrinmate the output of + /* Output a separated so that we can clearly discrinmate the output of * this program from the others. */ diff --git a/examples/nxlines/nxlines_bkgd.c b/examples/nxlines/nxlines_bkgd.c index a35f76d1a..b9fb69b08 100644 --- a/examples/nxlines/nxlines_bkgd.c +++ b/examples/nxlines/nxlines_bkgd.c @@ -58,7 +58,7 @@ #ifdef CONFIG_NX_ANTIALIASING /* If anti-aliasing is enabled, then we must clear a slightly - * larger region to prevent wierd edge effects. + * larger region to prevent weird edge effects. */ # define CLEAR_WIDTH (CONFIG_EXAMPLES_NXLINES_LINEWIDTH + 2) @@ -330,7 +330,7 @@ void nxlines_test(NXWINDOW hwnd) #ifdef CONFIG_NX_ANTIALIASING /* If anti-aliasing is enabled, then we must clear a slightly - * larger region to prevent wierd edge effects. + * larger region to prevent weird edge effects. */ halfx = b16toi(b16muli(sinangle, radius + 1)); diff --git a/examples/pdcurses/testcurs_main.c b/examples/pdcurses/testcurs_main.c index 524b73240..935ceeaf8 100644 --- a/examples/pdcurses/testcurs_main.c +++ b/examples/pdcurses/testcurs_main.c @@ -613,7 +613,7 @@ static void input_test(WINDOW *win) mvwaddstr(win, 3, 2, "The window should have moved"); mvwaddstr(win, 4, 2, "This text should have appeared without you pressing a key"); - mvwaddstr(win, 6, 2, "Enter a number then a string seperated by space"); + mvwaddstr(win, 6, 2, "Enter a number then a string separated by space"); mvwin(win, 2, 1); wrefresh(win); mvwscanw(win, 7, 6, "%d %s", &num, buffer); diff --git a/examples/pwlines/pwlines_update.c b/examples/pwlines/pwlines_update.c index cf979b8b2..10509a0dd 100644 --- a/examples/pwlines/pwlines_update.c +++ b/examples/pwlines/pwlines_update.c @@ -58,7 +58,7 @@ #ifdef CONFIG_NX_ANTIALIASING /* If anti-aliasing is enabled, then we must clear a slightly - * larger region to prevent wierd edge effects. + * larger region to prevent weird edge effects. */ # define CLEAR_WIDTH (CONFIG_EXAMPLES_PWLINES_LINEWIDTH + 2) @@ -226,7 +226,7 @@ void pwlines_update(FAR struct pwlines_state_s *st) #ifdef CONFIG_NX_ANTIALIASING /* If anti-aliasing is enabled, then we must clear a slightly - * larger region to prevent wierd edge effects. + * larger region to prevent weird edge effects. */ halfx = b16toi(b16muli(sinangle, wndo->radius + 1)); diff --git a/examples/userfs/userfs_main.c b/examples/userfs/userfs_main.c index 157765a8f..e231ae0fd 100644 --- a/examples/userfs/userfs_main.c +++ b/examples/userfs/userfs_main.c @@ -252,7 +252,7 @@ static int ufstest_open(FAR void *volinfo, FAR const char *relpath, opriv->file = file; - /* Initiallly, there is one refernce count on the open data. This may + /* Initiallly, there is one reference count on the open data. This may * be incremented in the event that the file is dup'ed. */ diff --git a/examples/webserver/httpd-fs/stats.shtml b/examples/webserver/httpd-fs/stats.shtml index c63ed4afd..b17a8c611 100644 --- a/examples/webserver/httpd-fs/stats.shtml +++ b/examples/webserver/httpd-fs/stats.shtml @@ -23,7 +23,7 @@ TCP Packets received Data packets without ACKs Resets Retransmissions - No connection avaliable + No connection available Connection attempts to closed ports
%! net-stats
 
diff --git a/examples/xmlrpc/calls.c b/examples/xmlrpc/calls.c index dd4bc6f9a..097d96385 100644 --- a/examples/xmlrpc/calls.c +++ b/examples/xmlrpc/calls.c @@ -26,7 +26,7 @@ * derived from this software without specific prior * written permission. * - * THIS SOFTWARE IS PROVIDED BY COGITO LLC AND CONTRIBUTERS 'AS IS' + * THIS SOFTWARE IS PROVIDED BY COGITO LLC AND CONTRIBUTORS 'AS IS' * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COGITO LLC diff --git a/examples/xmlrpc/xmlrpc_main.c b/examples/xmlrpc/xmlrpc_main.c index e120f7a21..32bedb524 100644 --- a/examples/xmlrpc/xmlrpc_main.c +++ b/examples/xmlrpc/xmlrpc_main.c @@ -27,7 +27,7 @@ * derived from this software without specific prior * written permission. * - * THIS SOFTWARE IS PROVIDED BY COGITO LLC AND CONTRIBUTERS 'AS IS' + * THIS SOFTWARE IS PROVIDED BY COGITO LLC AND CONTRIBUTORS 'AS IS' * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COGITO LLC diff --git a/fsutils/inih/Kconfig b/fsutils/inih/Kconfig index 377bbd1e6..c0034c8d3 100644 --- a/fsutils/inih/Kconfig +++ b/fsutils/inih/Kconfig @@ -38,7 +38,7 @@ config INIH_INITIAL_ALLOC int "Initial allocation size" default 128 ---help--- - inih will allocate this ammount of memory and will double it when + inih will allocate this amount of memory and will double it when line is bigger than currently allocated memory. endif # INIH_USE_MALLOC diff --git a/fsutils/mkfatfs/configfat.c b/fsutils/mkfatfs/configfat.c index 03dc95844..94a737fcb 100644 --- a/fsutils/mkfatfs/configfat.c +++ b/fsutils/mkfatfs/configfat.c @@ -538,7 +538,7 @@ mkfatfs_tryfat16(FAR struct fat_format_s *fmt, FAR struct fat_var_s *var, /* Check if this number of clusters would overflow the maximum for * FAT16 (remembering that two FAT cluster slots are reserved). * Check the lower limit as well. The FAT12 is distinguished from FAT16 - * by comparing the number of clusters on the device agains a known + * by comparing the number of clusters on the device against a known * threshold. If a small FAT16 file system were created, then it would * be confused as a FAT12 at mount time. */ diff --git a/fsutils/mksmartfs/mksmartfs.c b/fsutils/mksmartfs/mksmartfs.c index eea777ea5..de5d7befa 100644 --- a/fsutils/mksmartfs/mksmartfs.c +++ b/fsutils/mksmartfs/mksmartfs.c @@ -88,7 +88,7 @@ * EINVAL - NULL block driver string * ENOENT - 'pathname' does not refer to anything in the filesystem. * ENOTBLK - 'pathname' does not refer to a block driver - * EFTYPE - the block driver hasn't been formated yet + * EFTYPE - the block driver hasn't been formatted yet * ****************************************************************************/ diff --git a/gpsutils/minmea/README.md b/gpsutils/minmea/README.md index 299ce3caa..f6e35ba71 100644 --- a/gpsutils/minmea/README.md +++ b/gpsutils/minmea/README.md @@ -91,7 +91,7 @@ while (fgets(line, sizeof(line), stdin) != NULL) { struct minmea_sentence_gsv frame; if (minmea_parse_gsv(&frame, line)) { printf("$GSV: message %d of %d\n", frame.msg_nr, frame.total_msgs); - printf("$GSV: sattelites in view: %d\n", frame.total_sats); + printf("$GSV: satellites in view: %d\n", frame.total_sats); for (int i = 0; i < 4; i++) printf("$GSV: sat nr %d, elevation: %d, azimuth: %d, snr: %d dbm\n", frame.sats[i].nr, diff --git a/graphics/nxwidgets/ChangeLog.txt b/graphics/nxwidgets/ChangeLog.txt index 2442c1877..fc808792c 100644 --- a/graphics/nxwidgets/ChangeLog.txt +++ b/graphics/nxwidgets/ChangeLog.txt @@ -6,7 +6,7 @@ * Updated and verified the NxWidgets DOxygen documentation. Contributed by Jose Pablo Carballo. -* IBitmap, CRlePalettBitmap: Extended class to support differnt LUTs +* IBitmap, CRlePalettBitmap: Extended class to support different LUTs for selected and non-selected images. * CImage: If selected, uses different LUTs based, different borders. CImage is now basically a button type. @@ -112,7 +112,7 @@ 1.2 2012-06-15 Gregory Nutt -* NXWidgets::CCallback: callback arguement is now type CCallback and not +* NXWidgets::CCallback: callback argument is now type CCallback and not CWidgetControl; Added a method to redirect keyboard contacts to either the widgets in the window (via CWidgetControl) or to an NxConsole (via nxcon_kbdin()). @@ -127,10 +127,10 @@ * NxWM:CKeyboard: Add a new class that implements a keyboard listener thread. This thread reads from /dev/console and injects the keyboard input into NX. NX will determine which window is at the top of the - heirarchy and re-direct the keyboard input to only that top window. + hierarchy and re-direct the keyboard input to only that top window. This solves an important problem with, for example, running multiple copies of the NxConsole: On the copy of the NxConsole at the top of - the heirarchy should get the keyboard input. + the hierarchy should get the keyboard input. * UnitTests/nxwm/main.cxx: Now starts the keyboard thread if CONFIG_NXWM_KEYBOARD is defined. * NxWM::CTaskbar: After drawing the task bar, need to raise the @@ -226,7 +226,7 @@ * NxWM::CScrollingPanel::scrollChildren(): Avoid unnecessary redraws in CScrollingPanel (contributed by Petteri Aimonen). * NxWM::CCycleButton: Remove the separator from CCycleButton. It draws in - wrong place, and doesnt look very good in the correct place either. + wrong place, and doesn't look very good in the correct place either. (from Petteri Aimonen). * NxWidgets::CGraphicsPort: Many times we only want a constant background. In that case the old code fills the background, reads it back, renders diff --git a/graphics/nxwidgets/Doxygen/Doxyfile b/graphics/nxwidgets/Doxygen/Doxyfile index 13cf8dd25..cd1f38e9b 100644 --- a/graphics/nxwidgets/Doxygen/Doxyfile +++ b/graphics/nxwidgets/Doxygen/Doxyfile @@ -281,7 +281,7 @@ TYPEDEF_HIDES_STRUCT = NO # causing a significant performance penality. # If the system has enough physical memory increasing the cache will improve the # performance by keeping more symbols in memory. Note that the value works on -# a logarithmic scale so increasing the size by one will rougly double the +# a logarithmic scale so increasing the size by one will roughly double the # memory usage. The cache size is given by this formula: # 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0, # corresponding to a cache size of 2^16 = 65536 symbols diff --git a/graphics/nxwidgets/Kconfig b/graphics/nxwidgets/Kconfig index 0d4be821b..7a750af40 100644 --- a/graphics/nxwidgets/Kconfig +++ b/graphics/nxwidgets/Kconfig @@ -23,7 +23,7 @@ config NXWIDGETS_FLICKERFREE ---help--- Because of their performance an in the manner in which they are updated, LCDs may be prone to "flicker" in the displays when Widgets - are updated. Often more complex (and slower) options are availble + are updated. Often more complex (and slower) options are available to reduce the flicker. Enabling this option will enabled those lower-performance flicker-reductions measures where-ever thay may be available. diff --git a/graphics/nxwidgets/UnitTests/CButton/cbuttontest.cxx b/graphics/nxwidgets/UnitTests/CButton/cbuttontest.cxx index d9eb4d2de..7657bb1ce 100644 --- a/graphics/nxwidgets/UnitTests/CButton/cbuttontest.cxx +++ b/graphics/nxwidgets/UnitTests/CButton/cbuttontest.cxx @@ -267,7 +267,7 @@ void CButtonTest::showButton(CButton *button) } // Perform a simulated mouse click on the button. This method injects -// the mouse click through the NX heirarchy just as would real mouse +// the mouse click through the NX hierarchy just as would real mouse // hardward. void CButtonTest::click(void) diff --git a/graphics/nxwidgets/UnitTests/CButton/cbuttontest.hxx b/graphics/nxwidgets/UnitTests/CButton/cbuttontest.hxx index 9a4156d54..bc4479663 100644 --- a/graphics/nxwidgets/UnitTests/CButton/cbuttontest.hxx +++ b/graphics/nxwidgets/UnitTests/CButton/cbuttontest.hxx @@ -127,7 +127,7 @@ public: void showButton(CButton *button); // Perform a simulated mouse click on the button. This method injects - // the mouse click through the NX heirarchy just as would real mouse + // the mouse click through the NX hierarchy just as would real mouse // hardward. void click(void); diff --git a/graphics/nxwidgets/UnitTests/CButtonArray/cbuttonarraytest.cxx b/graphics/nxwidgets/UnitTests/CButtonArray/cbuttonarraytest.cxx index deb6c92d7..641be2714 100644 --- a/graphics/nxwidgets/UnitTests/CButtonArray/cbuttonarraytest.cxx +++ b/graphics/nxwidgets/UnitTests/CButtonArray/cbuttonarraytest.cxx @@ -229,7 +229,7 @@ void CButtonArrayTest::showButton(CButtonArray *buttonArray) } // Perform a simulated mouse click on a button in the array. This method injects -// the mouse click through the NX heirarchy just as would real mouse +// the mouse click through the NX hierarchy just as would real mouse // hardward. void CButtonArrayTest::click(CButtonArray *buttonArray, int column, int row) diff --git a/graphics/nxwidgets/UnitTests/CButtonArray/cbuttonarraytest.hxx b/graphics/nxwidgets/UnitTests/CButtonArray/cbuttonarraytest.hxx index 5a5bdfb47..10003f17d 100644 --- a/graphics/nxwidgets/UnitTests/CButtonArray/cbuttonarraytest.hxx +++ b/graphics/nxwidgets/UnitTests/CButtonArray/cbuttonarraytest.hxx @@ -133,7 +133,7 @@ public: void showButton(CButtonArray *buttonArray); // Perform a simulated mouse click on a button in the array. This method injects - // the mouse click through the NX heirarchy just as would real mouse + // the mouse click through the NX hierarchy just as would real mouse // hardward. void click(CButtonArray *buttonArray, int column, int row); diff --git a/graphics/nxwidgets/UnitTests/CGlyphButton/cglyphbuttontest.cxx b/graphics/nxwidgets/UnitTests/CGlyphButton/cglyphbuttontest.cxx index 8e40b4d14..6506dd943 100644 --- a/graphics/nxwidgets/UnitTests/CGlyphButton/cglyphbuttontest.cxx +++ b/graphics/nxwidgets/UnitTests/CGlyphButton/cglyphbuttontest.cxx @@ -249,7 +249,7 @@ void CGlyphButtonTest::showButton(CGlyphButton *button) } // Perform a simulated mouse click on the button. This method injects -// the mouse click through the NX heirarchy just as would real mouse +// the mouse click through the NX hierarchy just as would real mouse // hardward. void CGlyphButtonTest::click(void) diff --git a/graphics/nxwidgets/UnitTests/CGlyphButton/cglyphbuttontest.hxx b/graphics/nxwidgets/UnitTests/CGlyphButton/cglyphbuttontest.hxx index 07a65b5b0..41da3ef14 100644 --- a/graphics/nxwidgets/UnitTests/CGlyphButton/cglyphbuttontest.hxx +++ b/graphics/nxwidgets/UnitTests/CGlyphButton/cglyphbuttontest.hxx @@ -133,7 +133,7 @@ public: void showButton(CGlyphButton *button); // Perform a simulated mouse click on the button. This method injects - // the mouse click through the NX heirarchy just as would real mouse + // the mouse click through the NX hierarchy just as would real mouse // hardward. void click(void); diff --git a/graphics/nxwidgets/UnitTests/CKeypad/ckeypadtest.cxx b/graphics/nxwidgets/UnitTests/CKeypad/ckeypadtest.cxx index e6f17e147..6b062c0b0 100644 --- a/graphics/nxwidgets/UnitTests/CKeypad/ckeypadtest.cxx +++ b/graphics/nxwidgets/UnitTests/CKeypad/ckeypadtest.cxx @@ -347,7 +347,7 @@ void CKeypadTest::showKeypad(CKeypad *keypad) } // Perform a simulated mouse click on a button in the array. This method injects -// the mouse click through the NX heirarchy just as would real mouse +// the mouse click through the NX hierarchy just as would real mouse // hardward. void CKeypadTest::click(CKeypad *keypad, int column, int row) diff --git a/graphics/nxwidgets/UnitTests/CKeypad/ckeypadtest.hxx b/graphics/nxwidgets/UnitTests/CKeypad/ckeypadtest.hxx index 9f2f0aaa0..77c67ffb0 100644 --- a/graphics/nxwidgets/UnitTests/CKeypad/ckeypadtest.hxx +++ b/graphics/nxwidgets/UnitTests/CKeypad/ckeypadtest.hxx @@ -144,7 +144,7 @@ public: void showKeypad(CKeypad *keypad); // Perform a simulated mouse click on a button in the array. This method injects - // the mouse click through the NX heirarchy just as would real mouse + // the mouse click through the NX hierarchy just as would real mouse // hardward. void click(CKeypad *keypad, int column, int row); diff --git a/graphics/nxwidgets/UnitTests/CLatchButton/clatchbuttontest.cxx b/graphics/nxwidgets/UnitTests/CLatchButton/clatchbuttontest.cxx index c6be2ddec..e94505dde 100644 --- a/graphics/nxwidgets/UnitTests/CLatchButton/clatchbuttontest.cxx +++ b/graphics/nxwidgets/UnitTests/CLatchButton/clatchbuttontest.cxx @@ -268,7 +268,7 @@ void CLatchButtonTest::showButton(CLatchButton *button) } // Perform a simulated mouse click on the button. This method injects -// the mouse click through the NX heirarchy just as would real mouse +// the mouse click through the NX hierarchy just as would real mouse // hardward. void CLatchButtonTest::click(void) diff --git a/graphics/nxwidgets/UnitTests/CLatchButton/clatchbuttontest.hxx b/graphics/nxwidgets/UnitTests/CLatchButton/clatchbuttontest.hxx index 1d8ff2e30..1039e07dd 100644 --- a/graphics/nxwidgets/UnitTests/CLatchButton/clatchbuttontest.hxx +++ b/graphics/nxwidgets/UnitTests/CLatchButton/clatchbuttontest.hxx @@ -127,7 +127,7 @@ public: void showButton(CLatchButton *button); // Perform a simulated mouse click on the button. This method injects - // the mouse click through the NX heirarchy just as would real mouse + // the mouse click through the NX hierarchy just as would real mouse // hardward. void click(void); diff --git a/graphics/nxwidgets/UnitTests/CLatchButtonArray/clatchbuttonarraytest.cxx b/graphics/nxwidgets/UnitTests/CLatchButtonArray/clatchbuttonarraytest.cxx index 59821cf54..2fbf9a76d 100644 --- a/graphics/nxwidgets/UnitTests/CLatchButtonArray/clatchbuttonarraytest.cxx +++ b/graphics/nxwidgets/UnitTests/CLatchButtonArray/clatchbuttonarraytest.cxx @@ -229,7 +229,7 @@ void CLatchButtonArrayTest::showButton(CLatchButtonArray *buttonArray) } // Perform a simulated mouse click on a button in the array. This method injects -// the mouse click through the NX heirarchy just as would real mouse +// the mouse click through the NX hierarchy just as would real mouse // hardward. void CLatchButtonArrayTest::click(CLatchButtonArray *buttonArray, int column, int row) diff --git a/graphics/nxwidgets/UnitTests/CLatchButtonArray/clatchbuttonarraytest.hxx b/graphics/nxwidgets/UnitTests/CLatchButtonArray/clatchbuttonarraytest.hxx index 633c6e7a2..98193a41a 100644 --- a/graphics/nxwidgets/UnitTests/CLatchButtonArray/clatchbuttonarraytest.hxx +++ b/graphics/nxwidgets/UnitTests/CLatchButtonArray/clatchbuttonarraytest.hxx @@ -133,7 +133,7 @@ public: void showButton(CLatchButtonArray *buttonArray); // Perform a simulated mouse click on a button in the array. This method injects - // the mouse click through the NX heirarchy just as would real mouse + // the mouse click through the NX hierarchy just as would real mouse // hardward. void click(CLatchButtonArray *buttonArray, int column, int row); diff --git a/graphics/nxwidgets/src/cglyphsliderhorizontal.cxx b/graphics/nxwidgets/src/cglyphsliderhorizontal.cxx index e89f38f31..3e7224dff 100644 --- a/graphics/nxwidgets/src/cglyphsliderhorizontal.cxx +++ b/graphics/nxwidgets/src/cglyphsliderhorizontal.cxx @@ -331,7 +331,7 @@ void CGlyphSliderHorizontal::drawContents(CGraphicsPort * port) int width; nxwidget_pixel_t color; - // Fill in (erase) the region to the left and right of the fuel guage + // Fill in (erase) the region to the left and right of the fuel gauge width = m_grip->getX() > halfGripWidth ? halfGripWidth : m_grip->getX() - getX(); diff --git a/graphics/nxwidgets/src/ckeypad.cxx b/graphics/nxwidgets/src/ckeypad.cxx index 21743e355..1c2ef8738 100644 --- a/graphics/nxwidgets/src/ckeypad.cxx +++ b/graphics/nxwidgets/src/ckeypad.cxx @@ -184,7 +184,7 @@ void CKeypad::onClick(nxgl_coord_t x, nxgl_coord_t y) } /** - * Configure the keypad for the currenly selected display mode. + * Configure the keypad for the currently selected display mode. */ void CKeypad::configureKeypadMode(void) diff --git a/graphics/nxwidgets/src/cnxwidget.cxx b/graphics/nxwidgets/src/cnxwidget.cxx index 63abd4d77..5461471c0 100644 --- a/graphics/nxwidgets/src/cnxwidget.cxx +++ b/graphics/nxwidgets/src/cnxwidget.cxx @@ -1354,7 +1354,7 @@ bool CNxWidget::remove(void) * Does not erase the widget from the display. * * @param widget Pointer to the widget to remove from the hierarchy. - * @return True if the widget was succesfully removed. + * @return True if the widget was successfully removed. */ bool CNxWidget::removeChild(CNxWidget *widget) diff --git a/graphics/nxwidgets/src/crlepalettebitmap.cxx b/graphics/nxwidgets/src/crlepalettebitmap.cxx index 492a081a9..7c8b320f8 100644 --- a/graphics/nxwidgets/src/crlepalettebitmap.cxx +++ b/graphics/nxwidgets/src/crlepalettebitmap.cxx @@ -242,7 +242,7 @@ void CRlePaletteBitmap::startOfImage(void) bool CRlePaletteBitmap::advancePosition(nxgl_coord_t npixels) { - // Advance to the next column after consuming 'npixels' on this colum + // Advance to the next column after consuming 'npixels' on this column int newcol = m_col + npixels; // Have we consumed the entire row? diff --git a/graphics/nxwidgets/src/cwidgetcontrol.cxx b/graphics/nxwidgets/src/cwidgetcontrol.cxx index a5de417cb..1b47f2da1 100644 --- a/graphics/nxwidgets/src/cwidgetcontrol.cxx +++ b/graphics/nxwidgets/src/cwidgetcontrol.cxx @@ -211,7 +211,7 @@ void CWidgetControl::postWindowEvent(void) * This method normally called externally... either periodically * or when a window event is detected. If CONFIG_NXWIDGET_EVENTWAIT * is defined, then external logic want call waitWindow event and - * when awakened, they chould call this function. As an example: + * when awakened, they should call this function. As an example: * * for (;;) * { diff --git a/graphics/nxwidgets/src/singletons.cxx b/graphics/nxwidgets/src/singletons.cxx index 5e1082cfd..d6a1866f5 100644 --- a/graphics/nxwidgets/src/singletons.cxx +++ b/graphics/nxwidgets/src/singletons.cxx @@ -118,7 +118,7 @@ void NXWidgets::instantiateSingletons(void) sched_lock(); - // Create a global, empty string that may be used whereever a string is + // Create a global, empty string that may be used wherever a string is // required, but not needed. if (!g_nullString) diff --git a/graphics/nxwm/ChangeLog.txt b/graphics/nxwm/ChangeLog.txt index 2442c1877..fc808792c 100644 --- a/graphics/nxwm/ChangeLog.txt +++ b/graphics/nxwm/ChangeLog.txt @@ -6,7 +6,7 @@ * Updated and verified the NxWidgets DOxygen documentation. Contributed by Jose Pablo Carballo. -* IBitmap, CRlePalettBitmap: Extended class to support differnt LUTs +* IBitmap, CRlePalettBitmap: Extended class to support different LUTs for selected and non-selected images. * CImage: If selected, uses different LUTs based, different borders. CImage is now basically a button type. @@ -112,7 +112,7 @@ 1.2 2012-06-15 Gregory Nutt -* NXWidgets::CCallback: callback arguement is now type CCallback and not +* NXWidgets::CCallback: callback argument is now type CCallback and not CWidgetControl; Added a method to redirect keyboard contacts to either the widgets in the window (via CWidgetControl) or to an NxConsole (via nxcon_kbdin()). @@ -127,10 +127,10 @@ * NxWM:CKeyboard: Add a new class that implements a keyboard listener thread. This thread reads from /dev/console and injects the keyboard input into NX. NX will determine which window is at the top of the - heirarchy and re-direct the keyboard input to only that top window. + hierarchy and re-direct the keyboard input to only that top window. This solves an important problem with, for example, running multiple copies of the NxConsole: On the copy of the NxConsole at the top of - the heirarchy should get the keyboard input. + the hierarchy should get the keyboard input. * UnitTests/nxwm/main.cxx: Now starts the keyboard thread if CONFIG_NXWM_KEYBOARD is defined. * NxWM::CTaskbar: After drawing the task bar, need to raise the @@ -226,7 +226,7 @@ * NxWM::CScrollingPanel::scrollChildren(): Avoid unnecessary redraws in CScrollingPanel (contributed by Petteri Aimonen). * NxWM::CCycleButton: Remove the separator from CCycleButton. It draws in - wrong place, and doesnt look very good in the correct place either. + wrong place, and doesn't look very good in the correct place either. (from Petteri Aimonen). * NxWidgets::CGraphicsPort: Many times we only want a constant background. In that case the old code fills the background, reads it back, renders diff --git a/graphics/nxwm/Doxygen/Doxyfile b/graphics/nxwm/Doxygen/Doxyfile index 13cf8dd25..cd1f38e9b 100644 --- a/graphics/nxwm/Doxygen/Doxyfile +++ b/graphics/nxwm/Doxygen/Doxyfile @@ -281,7 +281,7 @@ TYPEDEF_HIDES_STRUCT = NO # causing a significant performance penality. # If the system has enough physical memory increasing the cache will improve the # performance by keeping more symbols in memory. Note that the value works on -# a logarithmic scale so increasing the size by one will rougly double the +# a logarithmic scale so increasing the size by one will roughly double the # memory usage. The cache size is given by this formula: # 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0, # corresponding to a cache size of 2^16 = 65536 symbols diff --git a/graphics/nxwm/Kconfig b/graphics/nxwm/Kconfig index fa2889bb7..fc140cdfe 100644 --- a/graphics/nxwm/Kconfig +++ b/graphics/nxwm/Kconfig @@ -547,7 +547,7 @@ config NXWM_KEYBOARD_USBHOST A USB Keyboard is a removable device. When it is inserted, then device at NXWM_KEYBOARD_DEVPATH will appear; when it removed, keyboard reads will fail and the device at NXWM_KEYBOARD_DEVPATH - will disappear. Selecting this option builds addtional logic into + will disappear. Selecting this option builds additional logic into the keyboard listener thread in order to handle this case. config NXWM_KEYBOARD_SIGNO @@ -704,7 +704,7 @@ config NXWM_CALIBRATION_ANISOTROPIC If you have such an LCD, then you may select this option to enable some much more complex scaling alorithms to handle this case. Not - only are these algorithms more complex, but they are (currenly) + only are these algorithms more complex, but they are (currently) implemented using floating point. As a result, you should not select this option if you have a lower end MCU without hardware floating point support. diff --git a/graphics/nxwm/TODO.txt b/graphics/nxwm/TODO.txt index 3cc709bbd..03ad4fcfb 100644 --- a/graphics/nxwm/TODO.txt +++ b/graphics/nxwm/TODO.txt @@ -11,7 +11,7 @@ See also the NuttX TODO list graphics/ section for related issues. o General NxWM Issues ------------------- - Title: DISPLAY INTIALIZATION + Title: DISPLAY INITIALIZATION Description: During the initialization of the display, the basic frame of the start window is drawn momentarily. This is just the empty window frame. This is a consequence of how NX creates windows: The diff --git a/graphics/nxwm/src/chexcalculator.cxx b/graphics/nxwm/src/chexcalculator.cxx index 0ac574f25..accd1f1af 100644 --- a/graphics/nxwm/src/chexcalculator.cxx +++ b/graphics/nxwm/src/chexcalculator.cxx @@ -492,7 +492,7 @@ void CHexCalculator::setGeometry(void) } /** - * Create the calculator widgets. Only start as part of the applicaiton + * Create the calculator widgets. Only start as part of the application * start method. */ diff --git a/graphics/nxwm/src/cmediaplayer.cxx b/graphics/nxwm/src/cmediaplayer.cxx index ff82f1e2d..5dc3145b7 100644 --- a/graphics/nxwm/src/cmediaplayer.cxx +++ b/graphics/nxwm/src/cmediaplayer.cxx @@ -1034,7 +1034,7 @@ bool CMediaPlayer::createPlayer(void) nxgl_coord_t motionH = (nxgl_coord_t)(m_font->getHeight()); // Horizontal position: aligned with the right size of volume slider - // Vertical postion: same as the motion controls + // Vertical position: same as the motion controls m_speed = new NXWidgets::CLabel(control, volumeControlX + volumeControlW - motionW, diff --git a/graphics/nxwm/src/ctaskbar.cxx b/graphics/nxwm/src/ctaskbar.cxx index 182dd164c..7f3f381cd 100644 --- a/graphics/nxwm/src/ctaskbar.cxx +++ b/graphics/nxwm/src/ctaskbar.cxx @@ -286,7 +286,7 @@ bool CTaskbar::startWindowManager(void) if (!app->run()) { // Call stopApplication on a failure to start. This will call - // app->stop() (which is probably not necesary for the application + // app->stop() (which is probably not necessary for the application // but it should be prepared/ to handle it). stopApplication() // will also removed the icon image from the list and delete it. @@ -542,7 +542,7 @@ bool CTaskbar::startApplication(IApplication *app, bool minimized) if (!app->run()) { // Call stopApplication on a failure to start. This will call - // app->stop() (which is probably not necesary for the application + // app->stop() (which is probably not necessary for the application // but it should be prepared/ to handle it). stopApplication() // will also removed the icon image from the list and delete it. @@ -1206,7 +1206,7 @@ bool CTaskbar::redrawTaskbarWindow(void) } /** - * Redraw the window at the top of the heirarchy. + * Redraw the window at the top of the hierarchy. * * @return true on success */ @@ -1342,7 +1342,7 @@ bool CTaskbar::redrawApplicationWindow(IApplication *app) m_backImage->disableDrawing(); - // Raise to top application to the top of the NX window heirarchy + // Raise to top application to the top of the NX window hierarchy raiseTopApplication(); diff --git a/graphics/pdcurs34/nuttx/pdcthread.c b/graphics/pdcurs34/nuttx/pdcthread.c index de01f83ce..38e0c24de 100644 --- a/graphics/pdcurs34/nuttx/pdcthread.c +++ b/graphics/pdcurs34/nuttx/pdcthread.c @@ -173,7 +173,7 @@ static FAR struct pdc_context_s *PDC_ctx_new(void) * * Description: * Added pdcurses interface called from many functions to eliminate - * global and static function variable usage. This function retuns a + * global and static function variable usage. This function returns a * task specific context / struct pointer to those variables instead, * allowing the pdcurses routines to be used by multiple tasks in a * FLAT build. diff --git a/graphics/pdcurs34/pdcurses/pdc_mouse.c b/graphics/pdcurs34/pdcurses/pdc_mouse.c index 41e3ae9db..268f4c0b7 100644 --- a/graphics/pdcurs34/pdcurses/pdc_mouse.c +++ b/graphics/pdcurs34/pdcurses/pdc_mouse.c @@ -75,7 +75,7 @@ * KEY_MOUSE return from getch(). If found, it would call * request_mouse_pos() to get the current mouse status. * - * mouse_set(), mouse_on() and mouse_off() are analagous to + * mouse_set(), mouse_on() and mouse_off() are analogous to * attrset(), attron() and attroff(). These functions set the * mouse button events to trap. The button masks used in these * functions are defined in curses.h and can be or'ed together. diff --git a/graphics/twm4nx/src/ciconmgr.cxx b/graphics/twm4nx/src/ciconmgr.cxx index 15df4b3fd..99abbd6e7 100644 --- a/graphics/twm4nx/src/ciconmgr.cxx +++ b/graphics/twm4nx/src/ciconmgr.cxx @@ -563,7 +563,7 @@ bool CIconMgr::createIconManagerWindow(FAR const char *prefix) } // Get the height and width of the Icon manager window. The width is - // determined by the typical string lenght the maximum character width, + // determined by the typical string length the maximum character width, // The height of one row is determined (mostly) by the maximum font // height @@ -858,7 +858,7 @@ void CIconMgr::handleActionEvent(const NXWidgets::CWidgetEventArgs &e) if (m_buttons->isButtonClicked(column, row)) { - // Now find the window assigned to this row x colum + // Now find the window assigned to this row x column for (FAR struct SWindowEntry *swin = m_head; swin != (FAR struct SWindowEntry *)0; @@ -887,7 +887,7 @@ void CIconMgr::handleActionEvent(const NXWidgets::CWidgetEventArgs &e) } else { - // Otherwise, raise the window to the top of the heirarchy + // Otherwise, raise the window to the top of the hierarchy msg.eventID = EVENT_WINDOW_RAISE; } diff --git a/graphics/twm4nx/src/cwindowevent.cxx b/graphics/twm4nx/src/cwindowevent.cxx index c9aa18ea7..6a0388d6b 100644 --- a/graphics/twm4nx/src/cwindowevent.cxx +++ b/graphics/twm4nx/src/cwindowevent.cxx @@ -208,7 +208,7 @@ void CWindowEvent::handleRedrawEvent(FAR const nxgl_rect_s *nxRect, * toolbar, but can easily move into the main window (or even outside * of the window!). To these case, there may be two instances of * CWindowEvent, one for the toolbar and one for the main window. The - * IEventTap implementation (along with the user arguement) can keep a + * IEventTap implementation (along with the user argument) can keep a * consistent movement context across both instances. * * NOTE: NX will continually forward the mouse events to the same raw @@ -248,11 +248,11 @@ void CWindowEvent::handleMouseEvent(FAR const struct nxgl_point_s *pos, twminfo("Continue movemenht (%d,%d) buttons=%02x m_tapHandler=%p\n", mousePos.x, mousePos.y, buttons, m_tapHandler); - // Yes.. generate a movment event if we have a tap event handler + // Yes.. generate a movement event if we have a tap event handler if (m_tapHandler->moveEvent(mousePos, m_tapArg)) { - // Skip the input poll until the movment completes + // Skip the input poll until the movement completes return; } diff --git a/include/canutils/obd_frame.h b/include/canutils/obd_frame.h index d7afb9693..87209bedf 100644 --- a/include/canutils/obd_frame.h +++ b/include/canutils/obd_frame.h @@ -55,12 +55,12 @@ /* Single Frame fields */ -#define OBD_SF_DATA_LEN(x) (x & 0xf) /* Data Lenght of Single Frame */ +#define OBD_SF_DATA_LEN(x) (x & 0xf) /* Data Length of Single Frame */ /* First Frame fields */ -#define OBD_FF_DATA_LEN_D0(x) ((x & 0xf) << 8) /* Data Lenght of First Frame D0 */ -#define OBD_FF_DATA_LEN_D1(x) (x & 0xff) /* Data Lenght of First Frame D1 */ +#define OBD_FF_DATA_LEN_D0(x) ((x & 0xf) << 8) /* Data Length of First Frame D0 */ +#define OBD_FF_DATA_LEN_D1(x) (x & 0xff) /* Data Length of First Frame D1 */ /* Consecutive Frame fields */ diff --git a/include/fsutils/mksmartfs.h b/include/fsutils/mksmartfs.h index 0df47cf4c..07afe634e 100644 --- a/include/fsutils/mksmartfs.h +++ b/include/fsutils/mksmartfs.h @@ -72,7 +72,7 @@ extern "C" * EINVAL - NULL block driver string * ENOENT - 'pathname' does not refer to anything in the filesystem. * ENOTBLK - 'pathname' does not refer to a block driver - * EFTYPE - the block driver hasn't been formated yet + * EFTYPE - the block driver hasn't been formatted yet * ****************************************************************************/ diff --git a/include/graphics/nxwidgets/ckeypad.hxx b/include/graphics/nxwidgets/ckeypad.hxx index 35cdece8b..baf24f1cd 100644 --- a/include/graphics/nxwidgets/ckeypad.hxx +++ b/include/graphics/nxwidgets/ckeypad.hxx @@ -79,7 +79,7 @@ namespace NXWidgets bool m_numeric; /**< True: Numeric keypad, False: Alpha */ /** - * Configure the keypad for the currenly selected display mode. + * Configure the keypad for the currently selected display mode. */ void configureKeypadMode(void); diff --git a/include/graphics/nxwidgets/cnxwidget.hxx b/include/graphics/nxwidgets/cnxwidget.hxx index cb346d812..1118caf81 100644 --- a/include/graphics/nxwidgets/cnxwidget.hxx +++ b/include/graphics/nxwidgets/cnxwidget.hxx @@ -1310,7 +1310,7 @@ namespace NXWidgets * Does not erase the widget from the display. * * @param widget Pointer to the widget to remove from the hierarchy. - * @return True if the widget was succesfully removed. + * @return True if the widget was successfully removed. */ bool removeChild(CNxWidget *widget); diff --git a/include/graphics/nxwidgets/cwidgetcontrol.hxx b/include/graphics/nxwidgets/cwidgetcontrol.hxx index 3a8eaf061..9c3cd674c 100644 --- a/include/graphics/nxwidgets/cwidgetcontrol.hxx +++ b/include/graphics/nxwidgets/cwidgetcontrol.hxx @@ -411,7 +411,7 @@ namespace NXWidgets * This method normally called externally... either periodically * or when a window event is detected. If CONFIG_NXWIDGET_EVENTWAIT * is defined, then external logic want call waitWindow event and - * when awakened, they chould call this function. As an example: + * when awakened, they should call this function. As an example: * * for (;;) * { diff --git a/include/graphics/nxwm/ccalibration.hxx b/include/graphics/nxwm/ccalibration.hxx index 87cc22d36..f5e5a90da 100644 --- a/include/graphics/nxwm/ccalibration.hxx +++ b/include/graphics/nxwm/ccalibration.hxx @@ -233,7 +233,7 @@ namespace NxWM * * Both of those states will cause isRunning() to return false. * - * @return True if the calibration thread is runnning normally. + * @return True if the calibration thread is running normally. */ inline bool isRunning(void) const diff --git a/include/graphics/nxwm/chexcalculator.hxx b/include/graphics/nxwm/chexcalculator.hxx index b57aae4da..8a63bf7a7 100644 --- a/include/graphics/nxwm/chexcalculator.hxx +++ b/include/graphics/nxwm/chexcalculator.hxx @@ -143,7 +143,7 @@ namespace NxWM inline void setGeometry(void); /** - * Create the calculator keypad. Only start as part of the applicaiton + * Create the calculator keypad. Only start as part of the application * start method. */ diff --git a/include/graphics/nxwm/ctaskbar.hxx b/include/graphics/nxwm/ctaskbar.hxx index 2905ab28f..d595abd00 100644 --- a/include/graphics/nxwm/ctaskbar.hxx +++ b/include/graphics/nxwm/ctaskbar.hxx @@ -179,7 +179,7 @@ namespace NxWM virtual bool redrawTaskbarWindow(void); /** - * Redraw the window at the top of the heirarchy. + * Redraw the window at the top of the hierarchy. * * @return true on success */ diff --git a/include/graphics/nxwm/ctouchscreen.hxx b/include/graphics/nxwm/ctouchscreen.hxx index 8434be534..2a6985669 100644 --- a/include/graphics/nxwm/ctouchscreen.hxx +++ b/include/graphics/nxwm/ctouchscreen.hxx @@ -212,7 +212,7 @@ namespace NxWM * This function is not re-entrant: There may be only one thread waiting for * raw touchscreen data. * - * @return True if the raw touchscreen data was sucessfully obtained + * @return True if the raw touchscreen data was successfully obtained */ bool waitRawTouchData(struct touch_sample_s *touch); diff --git a/include/graphics/nxwm/iapplication.hxx b/include/graphics/nxwm/iapplication.hxx index 5da235004..572a67c69 100644 --- a/include/graphics/nxwm/iapplication.hxx +++ b/include/graphics/nxwm/iapplication.hxx @@ -58,7 +58,7 @@ namespace NxWM { /** - * Foward references + * Forward references */ class IApplicationWindow; diff --git a/include/graphics/nxwm/iapplicationwindow.hxx b/include/graphics/nxwm/iapplicationwindow.hxx index d2ab92eb7..92d46f400 100644 --- a/include/graphics/nxwm/iapplicationwindow.hxx +++ b/include/graphics/nxwm/iapplicationwindow.hxx @@ -61,7 +61,7 @@ namespace NxWM { /** - * Foward references + * Forward references */ class IApplication; diff --git a/include/graphics/twm4nx/cwindowfactory.hxx b/include/graphics/twm4nx/cwindowfactory.hxx index f3ead4da3..e40fc71b7 100644 --- a/include/graphics/twm4nx/cwindowfactory.hxx +++ b/include/graphics/twm4nx/cwindowfactory.hxx @@ -78,7 +78,7 @@ namespace Twm4Nx struct SWindow { - FAR struct SWindow *flink; /**< Foward link tonext window */ + FAR struct SWindow *flink; /**< Forward link tonext window */ FAR struct SWindow *blink; /**< Backward link to previous window */ FAR struct SWindowEntry *wentry; /**< Icon manager list entry (for list removal) */ FAR CWindow *cwin; /**< Window object payload */ diff --git a/include/netutils/discover.h b/include/netutils/discover.h index df792b8ca..00122459a 100644 --- a/include/netutils/discover.h +++ b/include/netutils/discover.h @@ -54,7 +54,7 @@ struct discover_info_s * Description: * Start the discover daemon. * - * Input Paramters: + * Input Parameters: * * info Discover information, if NULL mconf defaults will be used. * diff --git a/include/netutils/telnetc.h b/include/netutils/telnetc.h index 394d3a629..1e0742c66 100644 --- a/include/netutils/telnetc.h +++ b/include/netutils/telnetc.h @@ -235,8 +235,8 @@ enum telnet_event_type_e TELNET_EV_TTYPE, /* TTYPE command has been received */ TELNET_EV_ENVIRON, /* ENVIRON command has been received */ TELNET_EV_MSSP, /* MSSP command has been received */ - TELNET_EV_WARNING, /* Recoverable error has occured */ - TELNET_EV_ERROR /* Non-recoverable error has occured */ + TELNET_EV_WARNING, /* Recoverable error has occurred */ + TELNET_EV_ERROR /* Non-recoverable error has occurred */ }; /* Environ/MSSP command information */ @@ -280,10 +280,10 @@ union telnet_event_u struct { enum telnet_event_type_e _type; /* Alias for type */ - const char *file; /* File the error occured in */ - const char *func; /* Function the error occured in */ + const char *file; /* File the error occurred in */ + const char *func; /* Function the error occurred in */ const char *msg; /* Error message string */ - int line; /* Line of file error occured on */ + int line; /* Line of file error occurred on */ enum telnet_error_e errcode; /* Error code */ } error; diff --git a/include/netutils/xmlrpc.h b/include/netutils/xmlrpc.h index 8df9e0206..329ed93e1 100644 --- a/include/netutils/xmlrpc.h +++ b/include/netutils/xmlrpc.h @@ -26,7 +26,7 @@ * derived from this software without specific prior * written permission. * - * THIS SOFTWARE IS PROVIDED BY COGITO LLC AND CONTRIBUTERS 'AS IS' + * THIS SOFTWARE IS PROVIDED BY COGITO LLC AND CONTRIBUTORS 'AS IS' * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COGITO LLC diff --git a/include/system/zmodem.h b/include/system/zmodem.h index 1fd51fbf8..1fd0bd979 100644 --- a/include/system/zmodem.h +++ b/include/system/zmodem.h @@ -76,7 +76,7 @@ #endif /* Data may be received in gulps of varying size and alignment. Received - * packets data is properly unescaped, aligned and packed nto a packet + * packets data is properly unescaped, aligned and packed into a packet * buffer of this size. */ @@ -92,7 +92,7 @@ # define CONFIG_SYSTEM_ZMODEM_SNDBUFSIZE 512 #endif -/* Absolute pathes are not accepted. This configuration value must be +/* Absolute paths are not accepted. This configuration value must be * set to provide the path to the file storage directory (such as a * mountpoint directory). */ @@ -165,7 +165,7 @@ # define CONFIG_SYSTEM_ZMODEM_WRITESIZE 0 #endif -/* Absolute pathes in received file names are not accepted. This +/* Absolute paths in received file names are not accepted. This * configuration value must be set to provide the path to the file storage * directory (such as a mountpoint directory). * diff --git a/include/wireless/wapi.h b/include/wireless/wapi.h index ac0bce2ee..6630ee081 100644 --- a/include/wireless/wapi.h +++ b/include/wireless/wapi.h @@ -346,7 +346,7 @@ int wapi_get_ip(int sock, FAR const char *ifname, struct in_addr *addr); * Name: wapi_set_ip * * Description: - * Sets IP adress of the given network interface. + * Sets IP address of the given network interface. * ****************************************************************************/ diff --git a/interpreters/bas/bas_global.c b/interpreters/bas/bas_global.c index a6e6373bc..41fbf5b19 100644 --- a/interpreters/bas/bas_global.c +++ b/interpreters/bas/bas_global.c @@ -219,7 +219,7 @@ static struct Value *hex(struct Value *v, long int value, long int digits) } static struct Value *find(struct Value *v, struct String *pattern, - long int occurence) + long int occurrence) { struct String dirname, basename; char *slash; @@ -258,7 +258,7 @@ static struct Value *find(struct Value *v, struct String *pattern, { if (wildcardmatch(ent->d_name, basename.character)) { - if (found == occurence) + if (found == occurrence) { if (currentdir) { diff --git a/interpreters/minibasic/basic.c b/interpreters/minibasic/basic.c index 7ce5ed07b..69cdc3a36 100644 --- a/interpreters/minibasic/basic.c +++ b/interpreters/minibasic/basic.c @@ -3804,7 +3804,7 @@ static int isstring(int tokenid) * Get a numerical value from the parse string * Params: str - the string to search * len - return pinter for no chars read - * Retuns: the value of the string. + * Returns: the value of the string. * ****************************************************************************/ diff --git a/modbus/ascii/mbascii.c b/modbus/ascii/mbascii.c index b3c41c93e..6e5695cb7 100644 --- a/modbus/ascii/mbascii.c +++ b/modbus/ascii/mbascii.c @@ -68,7 +68,7 @@ typedef enum { STATE_RX_IDLE, /* Receiver is in idle state. */ - STATE_RX_RCV, /* Frame is beeing received. */ + STATE_RX_RCV, /* Frame is being received. */ STATE_RX_WAIT_EOF /* Wait for End of Frame. */ } eMBRcvState; @@ -231,7 +231,7 @@ eMBErrorCode eMBASCIIReceive(uint8_t *pucRcvAddress, uint8_t **pucFrame, if ((usRcvBufferPos >= MB_SER_PDU_SIZE_MIN) && (prvucMBLRC((uint8_t *) ucASCIIBuf, usRcvBufferPos) == 0)) { - /* Save the address field. All frames are passed to the upper layed + /* Save the address field. All frames are passed to the upper laid * and the decision if a frame is used is done there. */ diff --git a/modbus/functions/mbfunccoils.c b/modbus/functions/mbfunccoils.c index 729e1ddf4..0be07d56f 100644 --- a/modbus/functions/mbfunccoils.c +++ b/modbus/functions/mbfunccoils.c @@ -131,7 +131,7 @@ eMBException eMBFuncReadCoils(uint8_t *pucFrame, uint16_t *usLen) eRegStatus = eMBRegCoilsCB(pucFrameCur, usRegAddress, usCoilCount, MB_REG_READ); - /* If an error occured convert it into a Modbus exception. */ + /* If an error occurred convert it into a Modbus exception. */ if (eRegStatus != MB_ENOERR) { @@ -196,7 +196,7 @@ eMBException eMBFuncWriteCoil(uint8_t *pucFrame, uint16_t *usLen) eRegStatus = eMBRegCoilsCB(&ucBuf[0], usRegAddress, 1, MB_REG_WRITE); - /* If an error occured convert it into a Modbus exception. */ + /* If an error occurred convert it into a Modbus exception. */ if (eRegStatus != MB_ENOERR) { @@ -263,7 +263,7 @@ eMBException eMBFuncWriteMultipleCoils(uint8_t *pucFrame, uint16_t *usLen) eMBRegCoilsCB(&pucFrame[MB_PDU_FUNC_WRITE_MUL_VALUES_OFF], usRegAddress, usCoilCnt, MB_REG_WRITE); - /* If an error occured convert it into a Modbus exception. */ + /* If an error occurred convert it into a Modbus exception. */ if (eRegStatus != MB_ENOERR) { diff --git a/modbus/functions/mbfunccoils_m.c b/modbus/functions/mbfunccoils_m.c index 21dc36fb4..710504268 100644 --- a/modbus/functions/mbfunccoils_m.c +++ b/modbus/functions/mbfunccoils_m.c @@ -299,7 +299,7 @@ eMBException eMBMasterFuncWriteCoil(uint8_t *pucFrame, uint16_t *usLen) eRegStatus = eMBMasterRegCoilsCB(&ucBuf[0], usRegAddress, 1, MB_REG_WRITE); - /* If an error occured convert it into a Modbus exception. */ + /* If an error occurred convert it into a Modbus exception. */ if (eRegStatus != MB_ENOERR) { diff --git a/modbus/functions/mbfuncholding.c b/modbus/functions/mbfuncholding.c index d53623268..1f8b99898 100644 --- a/modbus/functions/mbfuncholding.c +++ b/modbus/functions/mbfuncholding.c @@ -99,7 +99,7 @@ eMBException eMBFuncWriteHoldingRegister(uint8_t *pucFrame, uint16_t *usLen) eRegStatus = eMBRegHoldingCB(&pucFrame[MB_PDU_FUNC_WRITE_VALUE_OFF], usRegAddress, 1, MB_REG_WRITE); - /* If an error occured convert it into a Modbus exception. */ + /* If an error occurred convert it into a Modbus exception. */ if (eRegStatus != MB_ENOERR) { @@ -224,7 +224,7 @@ eMBException eMBFuncReadHoldingRegister(uint8_t * pucFrame, uint16_t * usLen) eRegStatus = eMBRegHoldingCB(pucFrameCur, usRegAddress, usRegCount, MB_REG_READ); - /* If an error occured convert it into a Modbus exception. */ + /* If an error occurred convert it into a Modbus exception. */ if (eRegStatus != MB_ENOERR) { diff --git a/modbus/functions/mbfuncholding_m.c b/modbus/functions/mbfuncholding_m.c index 997aa7af0..040782563 100644 --- a/modbus/functions/mbfuncholding_m.c +++ b/modbus/functions/mbfuncholding_m.c @@ -163,7 +163,7 @@ eMBException eMBMasterFuncWriteHoldingRegister(uint8_t *pucFrame, eRegStatus = eMBMasterRegHoldingCB(&pucFrame[MB_PDU_FUNC_WRITE_VALUE_OFF], usRegAddress, 1, MB_REG_WRITE); - /* If an error occured convert it into a Modbus exception. */ + /* If an error occurred convert it into a Modbus exception. */ if (eRegStatus != MB_ENOERR) { @@ -276,7 +276,7 @@ eMBException eMBMasterFuncWriteMultipleHoldingRegister(uint8_t *pucFrame, eMBMasterRegHoldingCB(&ucMBFrame[MB_PDU_REQ_WRITE_MUL_VALUES_OFF], usRegAddress, usRegCount, MB_REG_WRITE); - /* If an error occured convert it into a Modbus exception. */ + /* If an error occurred convert it into a Modbus exception. */ if (eRegStatus != MB_ENOERR) { diff --git a/modbus/functions/mbfuncinput.c b/modbus/functions/mbfuncinput.c index 702023f9d..73eebb056 100644 --- a/modbus/functions/mbfuncinput.c +++ b/modbus/functions/mbfuncinput.c @@ -107,7 +107,7 @@ eMBException eMBFuncReadInputRegister(uint8_t *pucFrame, uint16_t *usLen) eRegStatus = eMBRegInputCB(pucFrameCur, usRegAddress, usRegCount); - /* If an error occured convert it into a Modbus exception. */ + /* If an error occurred convert it into a Modbus exception. */ if (eRegStatus != MB_ENOERR) { diff --git a/modbus/functions/mbfuncinput_m.c b/modbus/functions/mbfuncinput_m.c index 28f539ec4..b9577a5cb 100644 --- a/modbus/functions/mbfuncinput_m.c +++ b/modbus/functions/mbfuncinput_m.c @@ -1,7 +1,7 @@ /**************************************************************************** * apps/modbus/functions/mbfuncinput_m.c * - * FreeModbus Libary: A portable Modbus implementation for Modbus ASCII/RTU. + * FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU. * Copyright (C) 2013 Armink * All rights reserved. * diff --git a/modbus/mb.c b/modbus/mb.c index 224901e12..7a8155779 100644 --- a/modbus/mb.c +++ b/modbus/mb.c @@ -418,7 +418,7 @@ eMBErrorCode eMBPoll(void) { if (eException != MB_EX_NONE) { - /* An exception occured. Build an error frame. */ + /* An exception occurred. Build an error frame. */ usLength = 0; ucMBFrame[usLength++] = (uint8_t)(ucFunctionCode | MB_FUNC_ERROR); diff --git a/modbus/mb_m.c b/modbus/mb_m.c index 4bfb74259..336181136 100644 --- a/modbus/mb_m.c +++ b/modbus/mb_m.c @@ -1,5 +1,5 @@ /**************************************************************************** - * FreeModbus Libary: A portable Modbus implementation for Modbus ASCII/RTU. + * FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU. * * Copyright (C) 2013 Armink * All rights reserved. @@ -93,7 +93,7 @@ static peMBFrameReceive peMBMasterFrameReceiveCur; static pvMBFrameClose pvMBMasterFrameCloseCur; /* Callback functions required by the porting layer. They are called when - * an external event has happend which includes a timeout or the reception + * an external event has happened which includes a timeout or the reception * or transmission of a character. * Using for Modbus Master,Add by Armink 20130813 */ @@ -194,7 +194,7 @@ eMBErrorCode eMBMasterInit(eMBMode eMode, uint8_t ucPort, { if (!xMBMasterPortEventInit()) { - /* Port dependent event module initalization failed. */ + /* Port dependent event module initialization failed. */ eStatus = MB_EPORTERR; } diff --git a/modbus/rtu/mbrtu.c b/modbus/rtu/mbrtu.c index 8b4570d67..6d875f0ee 100644 --- a/modbus/rtu/mbrtu.c +++ b/modbus/rtu/mbrtu.c @@ -179,7 +179,7 @@ eMBErrorCode eMBRTUReceive(uint8_t *pucRcvAddress, uint8_t **pucFrame, if ((usRcvBufferPos >= MB_SER_PDU_SIZE_MIN) && (usMBCRC16((uint8_t *) ucRTUBuf, usRcvBufferPos) == 0)) { - /* Save the address field. All frames are passed to the upper layed + /* Save the address field. All frames are passed to the upper laid * and the decision if a frame is used is done there. */ diff --git a/modbus/rtu/mbrtu_m.c b/modbus/rtu/mbrtu_m.c index cca30fe1c..507f6e7db 100644 --- a/modbus/rtu/mbrtu_m.c +++ b/modbus/rtu/mbrtu_m.c @@ -1,7 +1,7 @@ /**************************************************************************** * apps/modbus/rtu/mbrtu_m.c * - * FreeModbus Libary: A portable Modbus implementation for Modbus ASCII/RTU. + * FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU. * Copyright (c) 2013 China Beijing Armink * All rights reserved. * @@ -190,7 +190,7 @@ eMBErrorCode eMBMasterRTUReceive(uint8_t *pucRcvAddress, uint8_t **pucFrame, if ((usMasterRcvBufferPos >= MB_SER_PDU_SIZE_MIN) && (usMBCRC16((uint8_t *) ucMasterRTURcvBuf, usMasterRcvBufferPos) == 0)) { - /* Save the address field. All frames are passed to the upper layed and + /* Save the address field. All frames are passed to the upper laid and * the decision if a frame is used is done there. */ @@ -422,7 +422,7 @@ bool xMBMasterRTUTimerExpired(void) xNeedPoll = xMBMasterPortEventPost(EV_MASTER_FRAME_RECEIVED); break; - /* An error occured while receiving the frame. */ + /* An error occurred while receiving the frame. */ case STATE_M_RX_ERROR: vMBMasterSetErrorType(EV_ERROR_RECEIVE_DATA); diff --git a/netutils/dhcpd/dhcpd.c b/netutils/dhcpd/dhcpd.c index 69f1e053b..e9ffe5385 100644 --- a/netutils/dhcpd/dhcpd.c +++ b/netutils/dhcpd/dhcpd.c @@ -986,7 +986,7 @@ static int dhcpd_sendpacket(int bbroadcast) sockfd = dhcpd_openresponder(); if (sockfd >= 0) { - /* Then send the reponse to the DHCP client port at that address */ + /* Then send the response to the DHCP client port at that address */ memset(&addr, 0, sizeof(struct sockaddr_in)); addr.sin_family = AF_INET; diff --git a/netutils/discover/discover.c b/netutils/discover/discover.c index a30775926..c0dc6a280 100644 --- a/netutils/discover/discover.c +++ b/netutils/discover/discover.c @@ -92,7 +92,7 @@ /* Internal Definitions *****************************************************/ /* Discover request packet format: * Byte Description - * 0 Protocol indentifier (0x99) + * 0 Protocol identifier (0x99) * 1 Request command 0x01 * 2 Destination device class (For querying subsets of available devices) * 0xff for all devices @@ -101,8 +101,8 @@ /* Discover response packet format: * Byte Description - * 0 Protocol indentifier (0x99) - * 1 Reponse command (0x02) + * 0 Protocol identifier (0x99) + * 1 Response command (0x02) * 2-33 Device description string with 0 bytes filled * 34 Checksum (Byte 0 - Byte 1 - Byte n) & 0xff */ @@ -280,7 +280,7 @@ static inline int discover_respond(in_addr_t *ipaddr) return ERROR; } - /* Then send the reponse to the DHCP client port at that address */ + /* Then send the response to the DHCP client port at that address */ memset(&addr, 0, sizeof(struct sockaddr_in)); addr.sin_family = AF_INET; diff --git a/netutils/esp8266/esp8266.c b/netutils/esp8266/esp8266.c index f51858343..679aa7bde 100644 --- a/netutils/esp8266/esp8266.c +++ b/netutils/esp8266/esp8266.c @@ -1665,7 +1665,7 @@ int lesp_ap_connect(const char *ssid_name, const char *ap_key, int timeout_s) * None * * Output Parmeters: - * ap : details of connected acces point + * ap : details of connected access point * * Returned Value: * 0 on success, -1 in case of error. diff --git a/netutils/ftpc/ftpc_filetime.c b/netutils/ftpc/ftpc_filetime.c index 1b1c60183..2394750ad 100644 --- a/netutils/ftpc/ftpc_filetime.c +++ b/netutils/ftpc/ftpc_filetime.c @@ -73,7 +73,7 @@ /**************************************************************************** * Name: ftpc_filetime * - * Descripton: + * Description: * Return the timestamp on the remote file. Returned time is UTC * (Universal Coordinated Time). * diff --git a/netutils/ftpc/ftpc_getfile.c b/netutils/ftpc/ftpc_getfile.c index 9d09c3766..3c6530b03 100644 --- a/netutils/ftpc/ftpc_getfile.c +++ b/netutils/ftpc/ftpc_getfile.c @@ -93,7 +93,7 @@ static int ftpc_recvinit(struct ftpc_session_s *session, FAR const char *path, return ERROR; } - /* Configure the transfer: Initial file offset and tranfer mode */ + /* Configure the transfer: Initial file offset and transfer mode */ session->offset = 0; ftpc_xfrmode(session, xfrmode); diff --git a/netutils/ftpc/ftpc_listdir.c b/netutils/ftpc/ftpc_listdir.c index 118b96b13..cf77853b5 100644 --- a/netutils/ftpc/ftpc_listdir.c +++ b/netutils/ftpc/ftpc_listdir.c @@ -262,9 +262,9 @@ static int ftpc_recvdir(FAR struct ftpc_session_s *session, * but the parsing is a bitch. See http://cr.yp.to/ftpparse.html * * NOTE: We expect to receive only well structured directory paths. Tilde - * expansion "~/xyz" and relative pathes (abc/def) because we do have + * expansion "~/xyz" and relative paths (abc/def) because we do have * special knowledge about the home and current directories. But otherwise - * the pathes are expected to be pre-sanitized: No . or .. in paths, + * the paths are expected to be pre-sanitized: No . or .. in paths, * no '//' in paths, etc. * ****************************************************************************/ diff --git a/netutils/ftpc/ftpc_rpwd.c b/netutils/ftpc/ftpc_rpwd.c index ae324fa65..5c8e49e4d 100644 --- a/netutils/ftpc/ftpc_rpwd.c +++ b/netutils/ftpc/ftpc_rpwd.c @@ -74,7 +74,7 @@ /**************************************************************************** * Name: ftpc_rpwd * - * Descripton: + * Description: * Returns the current working directory on the remote server. * ****************************************************************************/ diff --git a/netutils/ftpc/ftpc_unlink.c b/netutils/ftpc/ftpc_unlink.c index 9b9cffcde..5a89bf415 100644 --- a/netutils/ftpc/ftpc_unlink.c +++ b/netutils/ftpc/ftpc_unlink.c @@ -70,7 +70,7 @@ /**************************************************************************** * Name: ftpc_unlink * - * Descripton: + * Description: * Delete the given file from the remote server. * ****************************************************************************/ diff --git a/netutils/libcurl4nx/curl4nx_easy_perform.c b/netutils/libcurl4nx/curl4nx_easy_perform.c index cf77d250c..8f2f1633f 100644 --- a/netutils/libcurl4nx/curl4nx_easy_perform.c +++ b/netutils/libcurl4nx/curl4nx_easy_perform.c @@ -101,7 +101,7 @@ /**************************************************************************** * Name: curl4nx_resolve * Description: - * Translate a host name to an IP addres (V4 only for the moment) + * Translate a host name to an IP address (V4 only for the moment) * - either the host is a string with an IP * - either the known hosts were defined by CURL4NXOPT_ ****************************************************************************/ diff --git a/netutils/pppd/ppp.c b/netutils/pppd/ppp.c index f604793fa..a4412b524 100644 --- a/netutils/pppd/ppp.c +++ b/netutils/pppd/ppp.c @@ -369,7 +369,7 @@ uint16_t scan_packet(FAR struct ppp_context_s *ctx, uint16_t protocol, while (bptr < options + len) { - /* Get code and see if it matches somwhere in the list, if not we don't + /* Get code and see if it matches somewhere in the list, if not we don't * support it. */ diff --git a/netutils/smtp/smtp.c b/netutils/smtp/smtp.c index 612d8a481..0b6d10514 100644 --- a/netutils/smtp/smtp.c +++ b/netutils/smtp/smtp.c @@ -9,7 +9,7 @@ * Heavily leveraged from uIP 1.0 which also has a BSD-like license: * * The Simple Mail Transfer Protocol (SMTP) as defined by RFC821 is - * the standard way of sending and transfering e-mail on the + * the standard way of sending and transferring e-mail on the * Internet. This simple example implementation is intended as an * example of how to implement protocols in uIP, and is able to send * out e-mail but has not been extensively tested. diff --git a/netutils/telnetc/telnetc.c b/netutils/telnetc/telnetc.c index a95c659ed..7b60905e3 100644 --- a/netutils/telnetc/telnetc.c +++ b/netutils/telnetc/telnetc.c @@ -475,7 +475,7 @@ static void _negotiate(struct telnet_s *telnet, unsigned char telopt) union telnet_event_u ev; struct telnet_rfc1143_s q; - /* In PROXY mode, just pass it thru and do nothing */ + /* In PROXY mode, just pass it through and do nothing */ if (telnet->flags & TELNET_FLAG_PROXY) { diff --git a/netutils/thttpd/config.h b/netutils/thttpd/config.h index f6ae26273..cc169228c 100644 --- a/netutils/thttpd/config.h +++ b/netutils/thttpd/config.h @@ -103,7 +103,7 @@ # define CONFIG_THTTPD_CGI_PATH "/mnt/www/cgi-bin" # endif -/* Only CGI programs whose fully expanded pathes match this pattern will be executed. In fact, +/* Only CGI programs whose fully expanded paths match this pattern will be executed. In fact, * if this value is not defined then no CGI logic will be built. */ diff --git a/netutils/thttpd/libhttpd.c b/netutils/thttpd/libhttpd.c index 26a619224..0e2cf7419 100644 --- a/netutils/thttpd/libhttpd.c +++ b/netutils/thttpd/libhttpd.c @@ -1146,7 +1146,7 @@ static char *expand_filename(char *path, char **restP, bool tildemapped) } #endif /* 0 */ - /* Handle leading / or . and relative pathes by copying the default directory into checked */ + /* Handle leading / or . and relative paths by copying the default directory into checked */ if ((path[0] == '/' && strncmp(path, httpd_root, strlen(httpd_root)) != 0) || path[0] != '/') { @@ -1165,7 +1165,7 @@ static char *expand_filename(char *path, char **restP, bool tildemapped) path++; } - /* Add '/' to separate relative pathes */ + /* Add '/' to separate relative paths */ else if (path[0] != '/') { diff --git a/netutils/xmlrpc/response.c b/netutils/xmlrpc/response.c index 52f249066..98d438bb9 100644 --- a/netutils/xmlrpc/response.c +++ b/netutils/xmlrpc/response.c @@ -26,7 +26,7 @@ * derived from this software without specific prior * written permission. * - * THIS SOFTWARE IS PROVIDED BY COGITO LLC AND CONTRIBUTERS 'AS IS' + * THIS SOFTWARE IS PROVIDED BY COGITO LLC AND CONTRIBUTORS 'AS IS' * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COGITO LLC diff --git a/netutils/xmlrpc/xmlparser.c b/netutils/xmlrpc/xmlparser.c index ef5e89d01..c39c0a385 100644 --- a/netutils/xmlrpc/xmlparser.c +++ b/netutils/xmlrpc/xmlparser.c @@ -26,7 +26,7 @@ * derived from this software without specific prior * written permission. * - * THIS SOFTWARE IS PROVIDED BY COGITO LLC AND CONTRIBUTERS 'AS IS' + * THIS SOFTWARE IS PROVIDED BY COGITO LLC AND CONTRIBUTORS 'AS IS' * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COGITO LLC diff --git a/nshlib/Kconfig b/nshlib/Kconfig index 601a416f9..ce2ee151a 100644 --- a/nshlib/Kconfig +++ b/nshlib/Kconfig @@ -175,7 +175,7 @@ config NSH_NESTDEPTH default 3 ---help--- The maximum number of nested if-then[-else]-fi sequences that - are permissable. Default: 3 + are permissible. Default: 3 config NSH_DISABLEBG bool "Disable background commands" @@ -1175,7 +1175,7 @@ config NSH_IOBUFFER_SIZE default 512 ---help--- Determines the size of the I/O buffer to use for sending/ - receiving TELNET commands/reponses. Default: 512 + receiving TELNET commands/responses. Default: 512 endif # NSH_TELNET endmenu # Telnet Configuration diff --git a/nshlib/README.txt b/nshlib/README.txt index 25d887520..fa4b2d65c 100644 --- a/nshlib/README.txt +++ b/nshlib/README.txt @@ -1169,7 +1169,7 @@ o set [{+|-}{e|x|xe|ex}] [ ] foolbar=foovalue Set the 'exit on error control' and/or 'print a trace' of commands when parsing - scripts in NSH. The settinngs are in effect from the point of exection, until + scripts in NSH. The settinngs are in effect from the point of execution, until they are changed again, or in the case of the init script, the settings are returned to the default settings when it exits. Included child scripts will run with the parents settings and changes made in the child script will effect the @@ -1686,7 +1686,7 @@ NSH-Specific Configuration Settings * CONFIG_NSH_NESTDEPTH The maximum number of nested if-then[-else]-fi sequences that - are permissable. Default: 3 + are permissible. Default: 3 * CONFIG_NSH_DISABLESCRIPT This can be set to 'y' to suppress support for scripting. This @@ -1860,7 +1860,7 @@ NSH-Specific Configuration Settings * CONFIG_NSH_IOBUFFER_SIZE Determines the size of the I/O buffer to use for sending/ - receiving TELNET commands/reponses + receiving TELNET commands/responses * CONFIG_NETINIT_DHCPC Obtain the IP address via DHCP. diff --git a/nshlib/nsh.h b/nshlib/nsh.h index 27a0a567a..8a731ed91 100644 --- a/nshlib/nsh.h +++ b/nshlib/nsh.h @@ -474,7 +474,7 @@ #endif /* The maximum number of nested if-then[-else]-fi sequences that - * are permissable. + * are permissible. */ #ifndef CONFIG_NSH_NESTDEPTH @@ -1238,7 +1238,7 @@ int cmd_pmconfig(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv); * name - A point to the name containing the name to be matched. * matches - A table is size CONFIG_READLINE_MAX_EXTCMDS that can * be used to remember matching name indices. - * namelen - The lenght of the name to match + * namelen - The length of the name to match * * Returned Values: * The number commands that match to the first namelen characters. @@ -1300,7 +1300,7 @@ int nsh_catfile(FAR struct nsh_vtbl_s *vtbl, FAR const char *cmd, * be a string and is guaranteed to be NUL-termined. An error occurs if * the file content (+terminator) will not fit into the provided 'buffer'. * - * Input Paramters: + * Input Parameters: * vtbl - The console vtable * cmd - NSH command name to use in error reporting * filepath - The full path to the file to be read diff --git a/nshlib/nsh_command.c b/nshlib/nsh_command.c index 4201ae3db..69755bfcb 100644 --- a/nshlib/nsh_command.c +++ b/nshlib/nsh_command.c @@ -1043,7 +1043,7 @@ int nsh_command(FAR struct nsh_vtbl_s *vtbl, int argc, char *argv[]) * name - A point to the name containing the name to be matched. * matches - A table is size CONFIG_READLINE_MAX_EXTCMDS that can * be used to remember matching name indices. - * namelen - The lenght of the name to match + * namelen - The length of the name to match * * Returned Values: * The number commands that match to the first namelen characters. diff --git a/nshlib/nsh_fsutils.c b/nshlib/nsh_fsutils.c index bbe775392..223274838 100644 --- a/nshlib/nsh_fsutils.c +++ b/nshlib/nsh_fsutils.c @@ -189,7 +189,7 @@ int nsh_catfile(FAR struct nsh_vtbl_s *vtbl, FAR const char *cmd, * be a string and is guaranteed to be NUL-termined. An error occurs if * the file content (+terminator) will not fit into the provided 'buffer'. * - * Input Paramters: + * Input Parameters: * vtbl - The console vtable * filepath - The full path to the file to be read * buffer - The user-provided buffer into which the file is read. diff --git a/nshlib/nsh_mntcmds.c b/nshlib/nsh_mntcmds.c index 4c893fde1..fa3b1376d 100644 --- a/nshlib/nsh_mntcmds.c +++ b/nshlib/nsh_mntcmds.c @@ -313,7 +313,7 @@ int cmd_nfsmount(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv) return ERROR; } - /* Place all of the NFS arguements into the nfs_args structure */ + /* Place all of the NFS arguments into the nfs_args structure */ memset(&data, 0, sizeof(data)); diff --git a/system/embedlog/Kconfig b/system/embedlog/Kconfig index 12f5ce23c..1fab472e9 100644 --- a/system/embedlog/Kconfig +++ b/system/embedlog/Kconfig @@ -94,7 +94,7 @@ config EMBEDLOG_ENABLE_PREFIX default n ---help--- If enabled, you will be able to set prefix that will be added to - each message logged by embedlog. Usefull when multiple tasks print + each message logged by embedlog. Useful when multiple tasks print to one tty (via syslog) and you need an easy way to know which program printed given log message. @@ -148,7 +148,7 @@ config EMBEDLOG_LOG_MAX 200 bytes since '%s' may be a long string. Metadata like timestamp or file info uses this space too. Output log will be truncated if it exceeds this value. Lowering/increasing will result in - apropriate higher/lower stack usage. + appropriate higher/lower stack usage. config EMBEDLOG_MEM_LINE_SIZE int "Number of bytes in line" diff --git a/system/hexed/src/hexed.c b/system/hexed/src/hexed.c index 1e9499d14..62ea9c6b7 100644 --- a/system/hexed/src/hexed.c +++ b/system/hexed/src/hexed.c @@ -335,7 +335,7 @@ int runargs(void) if (quit != CMD_QUIT) { - /* All other commands require a filename arguement */ + /* All other commands require a filename argument */ if (g_hexfile == NULL) { diff --git a/system/nxplayer/nxplayer.c b/system/nxplayer/nxplayer.c index fce6dab8e..3d1a87a8d 100644 --- a/system/nxplayer/nxplayer.c +++ b/system/nxplayer/nxplayer.c @@ -285,7 +285,7 @@ static int _open_with_http(const char *fullurl) * * nxplayer_opendevice() either searches the Audio system for a device * that is compatible with the specified audio format and opens it, or - * tries to open the prefered device if specified and validates that + * tries to open the preferred device if specified and validates that * it supports the requested format. * * Return: @@ -546,7 +546,7 @@ static inline int nxplayer_fmtfromextension(FAR struct nxplayer_s *pplayer, x = strlen(pFilename) - 1; while (x > 0) { - /* Seach backward for the first '.' */ + /* Search backward for the first '.' */ if (pFilename[x] == '.') { @@ -1004,7 +1004,7 @@ static void *nxplayer_playthread(pthread_addr_t pvarg) * (3) Terminate playing by sending the AUDIO_MSG_COMPLETE message. */ - audinfo("%s\n", running ? "Playing..." : "Not runnning"); + audinfo("%s\n", running ? "Playing..." : "Not running"); while (running) { /* Wait for a signal either from the Audio driver that it needs @@ -2294,7 +2294,7 @@ void nxplayer_reference(FAR struct nxplayer_s *pplayer) /**************************************************************************** * Name: nxplayer_detach * - * nxplayer_detach() detaches from the playthread to make it independant + * nxplayer_detach() detaches from the playthread to make it independent * so the caller can abandon the context while the file is still * being played. * diff --git a/system/nxrecorder/nxrecorder.c b/system/nxrecorder/nxrecorder.c index 6f209ec41..af96d0551 100644 --- a/system/nxrecorder/nxrecorder.c +++ b/system/nxrecorder/nxrecorder.c @@ -430,7 +430,7 @@ static void *nxrecorder_recordthread(pthread_addr_t pvarg) * (3) Terminate recording by sending the AUDIO_MSG_COMPLETE message. */ - audinfo("%s\n", running ? "Recording..." : "Not runnning"); + audinfo("%s\n", running ? "Recording..." : "Not running"); while (running) { /* Wait for a signal either from the Audio driver that it needs diff --git a/system/psmq/Kconfig b/system/psmq/Kconfig index 13fefccaf..4ef57849a 100644 --- a/system/psmq/Kconfig +++ b/system/psmq/Kconfig @@ -50,7 +50,7 @@ config PSMQ_TOPIC_MAX "/012" will be too long. Library will use PSMQ_TOPIC_MAX + 1 as an array size for topic. - This means, to prevent unecessary paddings, use values like 7, or 15 + This means, to prevent unnecessary paddings, use values like 7, or 15 or 31. config PSMQD_PRIORITY diff --git a/system/vi/vi.c b/system/vi/vi.c index 64f6aa422..44c7167eb 100644 --- a/system/vi/vi.c +++ b/system/vi/vi.c @@ -4098,7 +4098,7 @@ static void vi_cmd_mode(FAR struct vi_s *vi) vi->cmdlen = 2; vi_parsecolon(vi); - /* If save quit succeds, we won't return */ + /* If save quit succeeds, we won't return */ } else { diff --git a/system/zmodem/Kconfig b/system/zmodem/Kconfig index 21caa36bc..16cd241b5 100644 --- a/system/zmodem/Kconfig +++ b/system/zmodem/Kconfig @@ -75,7 +75,7 @@ config SYSTEM_ZMODEM_MOUNTPOINT string "Zmodem sandbox" default "/tmp" ---help--- - Absolute pathes in received file names are not accepted. This + Absolute paths in received file names are not accepted. This configuration value must be set to provide the path to the file storage directory (such as a mountpoint directory). diff --git a/system/zmodem/host/nuttx/compiler.h b/system/zmodem/host/nuttx/compiler.h index d3c8d8cde..f700b7486 100644 --- a/system/zmodem/host/nuttx/compiler.h +++ b/system/zmodem/host/nuttx/compiler.h @@ -91,7 +91,7 @@ # define farcall_function __attribute__ ((long_call)) -/* The packed attribute informs GCC that the stucture elements are packed, +/* The packed attribute informs GCC that the structure elements are packed, * ignoring other alignment rules. */ diff --git a/system/zmodem/zm_receive.c b/system/zmodem/zm_receive.c index 39244f027..6d7cd3a00 100644 --- a/system/zmodem/zm_receive.c +++ b/system/zmodem/zm_receive.c @@ -1135,7 +1135,7 @@ static int zmr_parsefilename(FAR struct zmr_state_s *pzmr, DEBUGASSERT(pzmr && !pzmr->filename); - /* Don't allow absolute pathes */ + /* Don't allow absolute paths */ if (*namptr == '/') { diff --git a/system/zmodem/zm_send.c b/system/zmodem/zm_send.c index a12abe1ee..ad69c88bd 100644 --- a/system/zmodem/zm_send.c +++ b/system/zmodem/zm_send.c @@ -1479,7 +1479,7 @@ static int zms_sendfile(FAR struct zms_state_s *pzms, filename, rfilename, f0, f1); /* TODO: The local file name *must* be an absolute patch for now. This if - * environment variables are supported, then any relative pathes could be + * environment variables are supported, then any relative paths could be * extended using the contents of the current working directory CWD. */ diff --git a/testing/ostest/mqueue.c b/testing/ostest/mqueue.c index fb1ec13e4..586fa8e0b 100644 --- a/testing/ostest/mqueue.c +++ b/testing/ostest/mqueue.c @@ -61,7 +61,7 @@ # define TEST_MSGLEN (31) #else - /* Message lenght is the size of the message plus the null terminator */ + /* Message length is the size of the message plus the null terminator */ # define TEST_MSGLEN (strlen(TEST_MESSAGE)+1) #endif diff --git a/testing/ostest/robust.c b/testing/ostest/robust.c index 3680bab8a..1b1f1be2b 100644 --- a/testing/ostest/robust.c +++ b/testing/ostest/robust.c @@ -232,7 +232,7 @@ void robust_test(void) } } - /* Release and destory the mutex then return success */ + /* Release and destroy the mutex then return success */ status = pthread_mutex_unlock(&g_robust_mutex); if (status != 0) diff --git a/testing/ostest/timedmqueue.c b/testing/ostest/timedmqueue.c index 588015e30..8fa9a6e1b 100644 --- a/testing/ostest/timedmqueue.c +++ b/testing/ostest/timedmqueue.c @@ -61,7 +61,7 @@ # define TEST_MSGLEN (31) #else - /* Message lenght is the size of the message plus the null terminator */ + /* Message length is the size of the message plus the null terminator */ # define TEST_MSGLEN (strlen(TEST_MESSAGE)+1) #endif diff --git a/wireless/ieee802154/i8sak/README.txt b/wireless/ieee802154/i8sak/README.txt index 79bda2ba3..aeda78423 100644 --- a/wireless/ieee802154/i8sak/README.txt +++ b/wireless/ieee802154/i8sak/README.txt @@ -73,7 +73,7 @@ i8 /dev/ieee0 assoc This command attempts to associate with the node at the configured endpoint address. If everything is setup correctly, device A should have log information saying -that a device tried to associate and that it accepted the assocation. On device +that a device tried to associate and that it accepted the association. On device B, the console should show that the association request was successful. With all default settings, device B should have been allocated a short address of 0x000B. diff --git a/wireless/ieee802154/i8sak/i8sak.h b/wireless/ieee802154/i8sak/i8sak.h index 3b5b0eca2..91ba2c55d 100644 --- a/wireless/ieee802154/i8sak/i8sak.h +++ b/wireless/ieee802154/i8sak/i8sak.h @@ -124,7 +124,7 @@ struct i8sak_s FAR char ifname[I8SAK_MAX_IFNAME]; int result; int fd; /* File/Socket descriptor. Only to be used by operations - * occuring within the Daemon TCB + * occurring within the Daemon TCB */ sem_t exclsem; /* For synchronizing access to the signaling semaphore */ diff --git a/wireless/ieee802154/i8sak/i8sak_acceptassoc.c b/wireless/ieee802154/i8sak/i8sak_acceptassoc.c index 3d7230e35..84ef7d8d7 100644 --- a/wireless/ieee802154/i8sak/i8sak_acceptassoc.c +++ b/wireless/ieee802154/i8sak/i8sak_acceptassoc.c @@ -182,7 +182,7 @@ static void acceptassoc_eventcb(FAR struct ieee802154_primitive_s *primitive, IEEE802154_EADDRCOPY(assocresp.devaddr, primitive->u.assocind.devaddr); /* If the address matches our device, accept the association. - * Otherwise, reject the assocation. + * Otherwise, reject the association. */ if (i8sak->acceptall || diff --git a/wireless/ieee802154/i8sak/i8sak_get.c b/wireless/ieee802154/i8sak/i8sak_get.c index bdbedb568..4facfb1cd 100644 --- a/wireless/ieee802154/i8sak/i8sak_get.c +++ b/wireless/ieee802154/i8sak/i8sak_get.c @@ -194,7 +194,7 @@ void i8sak_get_cmd(FAR struct i8sak_s *i8sak, int argc, FAR char *argv[]) } #endif - /* Check for paramters that are attributes requiring file access */ + /* Check for parameters that are attributes requiring file access */ else { diff --git a/wireless/ieee802154/i8sak/i8sak_main.c b/wireless/ieee802154/i8sak/i8sak_main.c index d7690be0e..b6430dde2 100644 --- a/wireless/ieee802154/i8sak/i8sak_main.c +++ b/wireless/ieee802154/i8sak/i8sak_main.c @@ -722,7 +722,7 @@ static int i8sak_setup(FAR struct i8sak_s *i8sak, FAR const char *ifname) * Name : i8sak_daemon * * Description : - * Runs command in seperate task + * Runs command in separate task ****************************************************************************/ static int i8sak_daemon(int argc, FAR char *argv[]) diff --git a/wireless/ieee802154/i8sak/i8sak_set.c b/wireless/ieee802154/i8sak/i8sak_set.c index eda35a690..7a112c461 100644 --- a/wireless/ieee802154/i8sak/i8sak_set.c +++ b/wireless/ieee802154/i8sak/i8sak_set.c @@ -203,7 +203,7 @@ void i8sak_set_cmd(FAR struct i8sak_s *i8sak, int argc, FAR char *argv[]) } #endif - /* Check for paramters that are attributes requiring file access */ + /* Check for parameters that are attributes requiring file access */ else { diff --git a/wireless/wapi/src/network.c b/wireless/wapi/src/network.c index fdc5b43a6..9ffa4c429 100644 --- a/wireless/wapi/src/network.c +++ b/wireless/wapi/src/network.c @@ -278,7 +278,7 @@ int wapi_get_ip(int sock, FAR const char *ifname, FAR struct in_addr *addr) * Name: wapi_set_ip * * Description: - * Sets IP adress of the given network interface. + * Sets IP address of the given network interface. * ****************************************************************************/