From 41d88f06e7f0bd816ca88f71d98faf975d37bbde Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sun, 23 Feb 2020 12:51:44 +0800 Subject: [PATCH] Run codespell -w with the latest dictonary again --- COPYING | 2 +- ChangeLog.txt | 80 ++++++------- canutils/canlib/canlib_setloopback.c | 2 +- canutils/canlib/canlib_setsilent.c | 2 +- examples/README.txt | 52 ++++----- examples/alarm/alarm_main.c | 2 +- examples/charger/Kconfig | 2 +- examples/charger/charger_main.c | 2 +- examples/chat/chat_main.c | 2 +- examples/chrono/chrono_main.c | 2 +- examples/configdata/Kconfig | 2 +- examples/dhcpd/target.c | 2 +- examples/dsptest/test_misc.c | 2 +- examples/dsptest/test_motor.c | 2 +- examples/elf/tests/mksymtab.sh | 2 +- examples/fb/fb_main.c | 2 +- examples/fboverlay/fboverlay_main.c | 18 +-- examples/flash_test/flash_test.c | 4 +- examples/ftpd/ftpd_main.c | 2 +- examples/gps/gps_main.c | 2 +- examples/media/Kconfig | 2 +- examples/media/media_main.c | 2 +- examples/module/Kconfig | 2 +- examples/module/drivers/mksymtab.sh | 2 +- examples/mtdpart/Kconfig | 2 +- examples/mtdpart/mtdpart_main.c | 6 +- examples/nettest/Kconfig | 2 +- examples/nx/nx_internal.h | 2 +- examples/nxtext/nxtext_internal.h | 2 +- examples/nxtext/nxtext_main.c | 2 +- examples/pdcurses/tui.c | 2 +- examples/pdcurses/tui.h | 2 +- examples/poll/net_reader.c | 2 +- examples/posix_spawn/filesystem/mksymtab.sh | 2 +- examples/posix_spawn/spawn_main.c | 2 +- examples/powerled/powerled_main.c | 4 +- examples/pwfb/pwfb_main.c | 2 +- examples/romfs/romfs_main.c | 2 +- examples/smps/smps_main.c | 4 +- examples/sotest/Kconfig | 2 +- examples/tcpblaster/Kconfig | 2 +- examples/telnetd/README.txt | 2 +- examples/wget/wget_main.c | 2 +- examples/xmlrpc/calls.c | 2 +- examples/xmlrpc/xmlrpc_main.c | 2 +- fsutils/mkfatfs/configfat.c | 36 +++--- fsutils/mkfatfs/fat32.h | 4 +- fsutils/mkfatfs/mkfatfs.c | 2 +- fsutils/mkfatfs/mkfatfs.h | 2 +- fsutils/mksmartfs/mksmartfs.c | 4 +- fsutils/passwd/passwd_lock.c | 2 +- fsutils/passwd/passwd_verify.c | 2 +- gpsutils/minmea/minmea.c | 2 +- graphics/ft80x/ft80x_touch.c | 4 +- graphics/littlevgl/Kconfig | 4 +- graphics/nxglyphs/include/mkcursor.sh | 2 +- .../nxglyphs/src/glyph_calculator24x25.cxx | 2 +- .../nxglyphs/src/glyph_calibration24x21.cxx | 2 +- graphics/nxglyphs/src/glyph_cmd25x22.cxx | 2 +- graphics/nxglyphs/src/glyph_minimize21x21.cxx | 2 +- graphics/nxglyphs/src/glyph_nxlogo160x160.cxx | 2 +- graphics/nxglyphs/src/glyph_nxlogo320x320.cxx | 2 +- graphics/nxglyphs/src/glyph_play24x24.cxx | 2 +- graphics/nxglyphs/src/glyph_play48x48.cxx | 2 +- graphics/nxglyphs/src/glyph_stop21x21.cxx | 2 +- graphics/nxwidgets/ChangeLog.txt | 12 +- graphics/nxwidgets/Doxygen/Doxyfile | 2 +- graphics/nxwidgets/Doxygen/gendoc.sh | 2 +- graphics/nxwidgets/Kconfig | 2 +- graphics/nxwidgets/ReleaseNotes.txt | 8 +- .../UnitTests/CButton/cbuttontest.cxx | 2 +- .../UnitTests/CButton/cbuttontest.hxx | 2 +- .../CButtonArray/cbuttonarraytest.cxx | 6 +- .../CButtonArray/cbuttonarraytest.hxx | 2 +- .../CGlyphButton/cglyphbuttontest.cxx | 2 +- .../CGlyphButton/cglyphbuttontest.hxx | 2 +- .../UnitTests/CKeypad/ckeypadtest.cxx | 6 +- .../UnitTests/CKeypad/ckeypadtest.hxx | 2 +- .../CLatchButton/clatchbuttontest.cxx | 2 +- .../CLatchButton/clatchbuttontest.hxx | 2 +- .../clatchbuttonarraytest.cxx | 6 +- .../clatchbuttonarraytest.hxx | 2 +- .../CRadioButton/cradiobuttontest.cxx | 2 +- graphics/nxwidgets/doc/mainpage.h | 4 +- graphics/nxwidgets/src/cbuttonarray.cxx | 10 +- graphics/nxwidgets/src/ccallback.cxx | 4 +- graphics/nxwidgets/src/cgraphicsport.cxx | 2 +- graphics/nxwidgets/src/cnxwidget.cxx | 4 +- graphics/nxwidgets/src/crect.cxx | 4 +- graphics/nxwidgets/src/cstickybuttonarray.cxx | 2 +- graphics/nxwidgets/src/cwidgetcontrol.cxx | 6 +- .../nxwidgets/src/cwindoweventhandlerlist.cxx | 2 +- graphics/nxwm/COPYING | 2 +- graphics/nxwm/ChangeLog.txt | 12 +- graphics/nxwm/Doxygen/Doxyfile | 2 +- graphics/nxwm/Doxygen/gendoc.sh | 2 +- graphics/nxwm/Kconfig | 8 +- graphics/nxwm/ReleaseNotes.txt | 8 +- graphics/nxwm/TODO.txt | 4 +- graphics/nxwm/src/cmediaplayer.cxx | 2 +- graphics/nxwm/src/cnxterm.cxx | 2 +- graphics/nxwm/src/cstartwindow.cxx | 2 +- graphics/nxwm/src/ctouchscreen.cxx | 2 +- graphics/nxwm/src/nxwm_main.cxx | 4 +- graphics/pdcurs34/HISTORY | 10 +- graphics/pdcurs34/IMPLEMNT | 2 +- graphics/pdcurs34/Kconfig | 2 +- graphics/pdcurs34/nuttx/pdcdisp.c | 6 +- graphics/pdcurs34/nuttx/pdcnuttx.h | 2 +- graphics/pdcurs34/nuttx/pdcsetsc.c | 2 +- graphics/pdcurs34/nuttx/pdcutil.c | 2 +- graphics/pdcurs34/pdcurses/Kconfig | 2 +- graphics/pdcurs34/pdcurses/pdc_mouse.c | 2 +- graphics/pdcurs34/pdcurses/pdc_scroll.c | 2 +- graphics/screenshot/Kconfig | 2 +- graphics/tiff/tiff_utils.c | 2 +- graphics/twm4nx/COPYING | 2 +- graphics/twm4nx/apps/cnxterm.cxx | 2 +- graphics/twm4nx/src/cresize.cxx | 2 +- graphics/twm4nx/src/ctwm4nx.cxx | 2 +- graphics/twm4nx/src/cwindow.cxx | 2 +- graphics/twm4nx/src/cwindowevent.cxx | 4 +- graphics/twm4nx/src/cwindowfactory.cxx | 2 +- include/canutils/canlib.h | 4 +- include/canutils/obd_pid.h | 8 +- include/fsutils/passwd.h | 2 +- include/graphics/ft80x.h | 4 +- include/graphics/nxwidgets/cbuttonarray.hxx | 2 +- include/graphics/nxwidgets/ccallback.hxx | 4 +- include/graphics/nxwidgets/cgraphicsport.hxx | 2 +- include/graphics/nxwidgets/clabelgrid.hxx | 2 +- include/graphics/nxwidgets/cnxtoolbar.hxx | 2 +- include/graphics/nxwidgets/cnxwidget.hxx | 2 +- include/graphics/nxwidgets/crect.hxx | 4 +- include/graphics/nxwidgets/cwidgetcontrol.hxx | 4 +- .../nxwidgets/cwindoweventhandlerlist.hxx | 2 +- include/graphics/nxwidgets/tnxarray.hxx | 2 +- include/graphics/nxwm/ccalibration.hxx | 2 +- include/graphics/nxwm/chexcalculator.hxx | 2 +- include/graphics/nxwm/ckeyboard.hxx | 2 +- include/graphics/nxwm/cstartwindow.hxx | 2 +- include/graphics/nxwm/ctouchscreen.hxx | 2 +- include/graphics/nxwm/iapplication.hxx | 2 +- include/graphics/tiff.h | 2 +- include/graphics/twm4nx/apps/cclock.hxx | 2 +- include/graphics/twm4nx/apps/cnxterm.hxx | 2 +- include/graphics/twm4nx/ciconmgr.hxx | 2 +- include/graphics/twm4nx/ctwm4nx.hxx | 2 +- include/graphics/twm4nx/cwindow.hxx | 2 +- include/graphics/twm4nx/cwindowevent.hxx | 2 +- include/graphics/twm4nx/cwindowfactory.hxx | 2 +- include/graphics/twm4nx/twm4nx_events.hxx | 2 +- include/netutils/ftpc.h | 2 +- include/netutils/telnetc.h | 2 +- include/netutils/xmlrpc.h | 2 +- include/nshlib/nshlib.h | 4 +- include/system/nxplayer.h | 4 +- include/system/nxrecorder.h | 2 +- include/system/zmodem.h | 2 +- include/wireless/wapi.h | 2 +- industry/abnt_codi/README.txt | 2 +- interpreters/bas/bas_fs.c | 10 +- interpreters/bas/bas_fs.h | 2 +- interpreters/bas/bas_main.c | 4 +- interpreters/minibasic/basic.c | 10 +- modbus/ascii/mbascii.c | 2 +- modbus/nuttx/portevent_m.c | 8 +- modbus/rtu/mbrtu.c | 2 +- modbus/rtu/mbrtu_m.c | 2 +- netutils/chat/chat.c | 4 +- netutils/dhcpd/dhcpd.c | 2 +- netutils/esp8266/esp8266.c | 106 +++++++++--------- netutils/ftpc/ftpc_cmd.c | 4 +- netutils/ftpc/ftpc_getreply.c | 2 +- netutils/ftpc/ftpc_putfile.c | 2 +- netutils/ftpc/ftpc_transfer.c | 4 +- netutils/ftpd/ftpd.c | 8 +- netutils/libcurl4nx/curl4nx_private.h | 2 +- netutils/netinit/netinit.c | 2 +- netutils/netlib/netlib_ipv4route.c | 2 +- netutils/netlib/netlib_ipv6route.c | 2 +- netutils/netlib/netlib_nodeaddrconv.c | 2 +- netutils/pppd/ahdlc.c | 2 +- netutils/pppd/ipcp.c | 2 +- netutils/pppd/pap.c | 2 +- netutils/telnetc/telnetc.c | 2 +- netutils/tftpc/tftpc_get.c | 2 +- netutils/tftpc/tftpc_internal.h | 2 +- netutils/tftpc/tftpc_put.c | 4 +- netutils/thttpd/fdwatch.c | 2 +- netutils/thttpd/libhttpd.c | 4 +- netutils/thttpd/timers.c | 2 +- netutils/xmlrpc/response.c | 2 +- netutils/xmlrpc/xmlparser.c | 2 +- nshlib/Kconfig | 8 +- nshlib/README.txt | 14 +-- nshlib/nsh.h | 6 +- nshlib/nsh_command.c | 2 +- nshlib/nsh_dbgcmds.c | 2 +- nshlib/nsh_fileapps.c | 2 +- nshlib/nsh_fscmds.c | 2 +- nshlib/nsh_fsutils.c | 6 +- nshlib/nsh_netcmds.c | 2 +- nshlib/nsh_parse.c | 2 +- nshlib/nsh_syscmds.c | 6 +- nshlib/nsh_telnetd.c | 2 +- system/cdcacm/README.txt | 2 +- system/cfgdata/README.txt | 2 +- system/cfgdata/cfgdata_main.c | 4 +- system/composite/composite.h | 2 +- system/dhcpc/Kconfig | 2 +- system/embedlog/Kconfig | 2 +- system/embedlog/Makefile | 2 +- system/hexed/include/bfile.h | 2 +- system/hexed/src/cmdargs.c | 2 +- system/i2c/Kconfig | 2 +- system/i2c/README.txt | 6 +- system/i2c/i2c_dump.c | 2 +- system/i2c/i2c_get.c | 2 +- system/i2c/i2c_main.c | 2 +- system/i2c/i2c_set.c | 2 +- system/i2c/i2c_verf.c | 2 +- system/i2c/i2ctool.h | 2 +- system/lzf/lzf_main.c | 2 +- system/nsh/Kconfig | 2 +- system/ntpc/Kconfig | 2 +- system/nxplayer/nxplayer.c | 4 +- system/nxrecorder/nxrecorder_main.c | 2 +- system/psmq/Kconfig | 2 +- system/readline/readline.c | 2 +- system/spi/README.txt | 2 +- system/spi/spi_main.c | 2 +- system/telnet/Kconfig | 2 +- system/termcurses/README.txt | 2 +- system/vi/Kconfig | 4 +- system/vi/vi.c | 12 +- system/zmodem/Kconfig | 2 +- system/zmodem/README.txt | 6 +- system/zmodem/zm.h | 4 +- system/zmodem/zm_receive.c | 2 +- system/zmodem/zm_send.c | 8 +- system/zmodem/zm_state.c | 8 +- testing/README.txt | 2 +- testing/nxffs/Kconfig | 2 +- testing/ostest/cancel.c | 18 +-- testing/ostest/fpu.c | 2 +- testing/ostest/prioinherit.c | 2 +- testing/ostest/specific.c | 4 +- testing/ostest/waitpid.c | 2 +- testing/smart/Kconfig | 2 +- testing/smart/README.txt | 2 +- testing/smart_test/smart_test.c | 2 +- tools/README.txt | 2 +- tools/bitmap_converter.py | 2 +- tools/mkkconfig.bat | 4 +- tools/mksymtab.sh | 2 +- wireless/gs2200m/gs2200m_main.c | 2 +- wireless/ieee802154/i8sak/README.txt | 2 +- wireless/ieee802154/i8sak/i8sak_assoc.c | 2 +- wireless/ieee802154/i8sak/i8sak_events.c | 2 +- wireless/ieee802154/i8sak/i8sak_tx.c | 2 +- 261 files changed, 529 insertions(+), 529 deletions(-) diff --git a/COPYING b/COPYING index bbfe72f36..893d115e8 100644 --- a/COPYING +++ b/COPYING @@ -2,7 +2,7 @@ COPYING -- Describes the terms under which Nuttx is distributed. A copy of the BSD-style licensing is included in this file. In my words -- I believe that you should free to use NuttX in any environment, private, private, commercial, open, closed, etc. -provided only that you repect the modest copyright notices as +provided only that you respect the modest copyright notices as described in license (below). Please feel free to contact me if you have any licensing concerns. diff --git a/ChangeLog.txt b/ChangeLog.txt index 71fde9e68..556923ec4 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -107,7 +107,7 @@ 6.10 2011-10-06 Gregory Nutt - * apps/system/i2c: Add repitition and address auto-incrementing so that + * apps/system/i2c: Add repetition and address auto-incrementing so that and command can be executed numerous times. Add a new verify command that will write to a register, read from register, and verify that returned value. @@ -1133,7 +1133,7 @@ if DHCP is enabled. That can't be right???? (2014-11-17). * apps/examples/bridge: Add a simple UDP relay bridge for testing configurations with multiple networks. Initial checkin is not - very usuable because it lacks a host-side test driver for the + very usable because it lacks a host-side test driver for the bridge (2014-11-17). * apps/netutils/codecs/md5.c: Fix md5 hashing when digest[$i] lower that 16. From Sergey (2015-11-20). @@ -1233,7 +1233,7 @@ called to perform these test operations on the touchscreen driver (2015-03-31). * apps/examples/adc: Change apps/examples/adc to that is now calls - boardctl() instead of adc_devinit() in order to initalize the ADC + boardctl() instead of adc_devinit() in order to initialize the ADC device(2015-03-31). * apps/examples/pwm/: Replace calls to pwm_devinit() in apps/examples/pwm with calls to boardctl() (2015-03-31). @@ -1242,7 +1242,7 @@ (2015-04-04). * apps/examples/nxlines/: Add the new 'capped' parameter to nx_drawline() calls (2015-04-05). - * apps/modbus/tcp: Fix some complile problems when TCP is enabled + * apps/modbus/tcp: Fix some compile problems when TCP is enabled (2015-04-06). * apps/system: Clean up Kconfig menus. The way it worked before, it was difficult to see what was enabled and what was not. menus replaced @@ -1336,7 +1336,7 @@ * apps/nshlib: Add support for a uname command (2015-07-04). * apps/system/sysinfo: Remove the system sysinfo command. This is replaced with the NSH uname command (2015-07-04). - * apps/syste/netdb: Add a command to access the network database + * apps/system/netdb: Add a command to access the network database (2015-07-08). * apps/netutils/dnsclient and include/netutils/dnsclient.h: Move the DNS client logic into the NuttX C library. It is a necessary part @@ -1365,7 +1365,7 @@ do start at the same time (2015-07-24). * apps/examples/ostest: Add a test for the sporadic scheduler. This test is failing as of this commit (2015-07-24). - * apps/system/readline: Add support for Unix-style tab complete toi + * apps/system/readline: Add support for Unix-style tab complete to readline. This currently works only for built-in functions. Contributed by Nghia Ho (2015-07-28). * apps/system/readline and apps/nshlib: Extended the tab-completion @@ -1687,7 +1687,7 @@ configured to support Cortex-M4F and the hard float ABI, target files are compiles with: -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard. I’m not sure the best way to address this, but the - this chage is the first that comes to mind. Note, I added the float + this change is the first that comes to mind. Note, I added the float qualifier ‘F’ after a few constants to prevent the compiler from promoting the multiplication and division to double (expensive on M4F) then demoting to single float for the store. From David @@ -1749,7 +1749,7 @@ * nshlib/: Add logic to support an NSH-specific system command (2016-08-25). * apps/system/system: Add a generic system command. Current - implentation cannot use /bin/sh and spawns the custom NSH system + implementation cannot use /bin/sh and spawns the custom NSH system command directly (2016-08-25). * apps/examples/system: Add a simple test of the system command. Fix the first bug discovered by the test (2016-08-25). @@ -1783,18 +1783,18 @@ Cygwin (2016-11-17). * apps/examples/timer: Should detach signal handler before exiting (2016-11-18). - * Fixed bug that didn't free ftpd ressources on exit. From Pascal + * Fixed bug that didn't free ftpd resources on exit. From Pascal Speck (2016-11-21). * The examples/qencoder app was trying to init the encoder by a direct call into the board, cheating in a local header to declare the normally unavailable function prototype. From Sebastien Lorquet (2016-11-22). - * apps/examples/archbuttons: Removed becaue it violates OS interface + * apps/examples/archbuttons: Removed because it violates OS interface principles (2016-11-22). * apps/system/sched_note: Extend to include additions to instumentation for SMP (2016-11-27). * apps/system/sched_lock: Add support for spinlock notes (2016-12-01). - * Graphics: Remove all NX server taks. Instead, call boardctl() to the + * Graphics: Remove all NX server tasks. Instead, call boardctl() to the NX server kernel thread (2016-12-01). * Remove RGMP example (2016-12-02). * Remove some garbage characters added by error. From Pierre-Noel @@ -1844,7 +1844,7 @@ #ifndef instead of #ifdef. Noted by Oleg Evseev (2017-01-30). * NSH: Add support for the 'ln' command (2017-02-02). * NSH ls command: if node is a symobolic link, use readlink() to get and - the display the target of the symblic link (2017-02-03). + the display the target of the symbolic link (2017-02-03). * NSH: Add readlink command (2017-02-05). * examples/ostest: Add a test of setvbuf() (2017-02-09). * apps/examples/stat: Add a simple test for stat(), fstat(), and @@ -1948,7 +1948,7 @@ * wireless/wapi: Quick port of Wapi wireless services. No build support yet. This also depends on features not supported by NuttX. This is a work in progress (2017-04-10). - * wireless/wapi: Remove logic that depnds on Linux netlink. Add + * wireless/wapi: Remove logic that depends on Linux netlink. Add (untested) build support (2017-04-10). * wireless/wapi: Remove functionality that depends on the Linux procfs: This includes only 1) listing of available interfaces and 2) @@ -1995,8 +1995,8 @@ eth0 for network device name (2017-05-02). * wireless/wext: Add drivers_wext from the WPA supplicant; Integrate into NSH. From Simon Piriou (2017-05-02). - * 6LoWPAN: Replace some Rime address naming with more consistent - short/exended address terminology (2017-05-04). + * 6LoWPAN: Replace some rime address naming with more consistent + short/extended address terminology (2017-05-04). * wireless/ieee802154: Removes libradio to coincide with removal of ioctl with radio. Moves all functionality from libradio to libmac. From Anthony Merlino (2017-05-05). @@ -2049,7 +2049,7 @@ * wireless/ieee802154: i8sak adds event handling from MAC char driver. From Anthony Merlino (2017-05-16). * apps/examples/mtdpart: Prevent part array overflow. mtdpart examples - create partions and allocate from 1 index not a 0 index to part[] + create partitions and allocate from 1 index not a 0 index to part[] array. This cause buffer overflow for part array. This change fixes this problem. From EunBong Song (2017-05-17). * apps/examples/can: Fix can example app to print data when @@ -2082,7 +2082,7 @@ 7.22 2017-09-06 Gregory Nutt - * apps/system/composite: Update to apps/system/composite assocated with + * apps/system/composite: Update to apps/system/composite associated with big changes to the composite device logic. From Frank Benkert (2017-06-01). * wireless/ieee802154: Modifies i8 to support running various routines. @@ -2132,7 +2132,7 @@ test. Separate out network initialization so that it may, eventually, be used by both a target server and a target client. Fix client/server naming confusion; add command line option to select the - server address on the target. Add support for both enpoints on + server address on the target. Add support for both endpoints on target boards vs. one on a target and one on the host PC (2017-06-23). * system/dhcpc: The DHCPC renew command did not build correctly due to @@ -2150,7 +2150,7 @@ * ieee802154: start of scan/beacon-enabled network. From Anthony Merlino (2017-06-26). * netutils/telnetc: This a port of libtelnet to NuttX (2017-06-26). - * system/telnet: Add Telnet Chat deamon and and client from libtelent + * system/telnet: Add Telnet Chat daemon and and client from libtelent (2017-06-26). * NSH library: Add a Telnetd command. This is needed when network initialization is deferred. In that case, telnet daemon cannot be @@ -2189,7 +2189,7 @@ * apps/examples/keypadtest: REMOVED and warehoused in the Obsoleted repository. This was just a bad clone of apps/examples/hidkbd for a keypad driver that was removed years ago. It also uses illegal - function calls into the OS. So it has no purpse: It is + function calls into the OS. So it has no purpose: It is redundant, it uses illegal interfaces, and is a test for non-existent code (2017-07-04). * tools/mkkconfig.bat: Use %cd% instead of %~dp0 for usage of APPSDIR @@ -2244,7 +2244,7 @@ * apps/netutils/netlib: Add support for PktRadio IOCTL commands (2017-08-02). * NSH library: Extend ifconfig command so that it can set variable - length packet radio addresss (2017-08-02). + length packet radio address (2017-08-02). * netutils/netlib: Fix netlib_nodaddrconv() so that its return type is the same as other address conversion functions. NSH: Correct parsing of ifconfig so that you can specify the HW address without specifying @@ -2345,7 +2345,7 @@ SENSORS_QENCODER fix it here. From Alan Carvalho de Assis (2017-09-24). * nshlib/nsh_parse.c: Avoid truncating the strcmp result into a unsigned char variable. nshlib/nsh_netcmds.c: Check for valid hostip before - using it. nshlib/nsh_ddcmd.c: Fix resouce leak when 'if=' or 'of=' + using it. nshlib/nsh_ddcmd.c: Fix resource leak when 'if=' or 'of=' params are repeated in the command line. For example: - dd if=/dev/null if=/dev/zero of=/dev/null or - dd if=/dev/zero of=/dev/zero of=/dev/null @@ -2493,7 +2493,7 @@ /proc/meminfo (2017-11-13). * apps/graphics/pdcurs34: This commit brings the basic public domain pdcurses library into NuttX. This library is complete but not yet - usuable because it still requires the NuttX interfacing code needed hook + usable because it still requires the NuttX interfacing code needed hook pdcurses into the NuttX graphics drivers. Also test cases are needed to verify the pdcurses integration (2017-11-17). * apps/examples/pdcurses: Bring in pdcurses demos and make them conform @@ -2541,7 +2541,7 @@ * apps/graphics/pdcurs34: Correct logic that sets the font buffer to the background color for the case of BPP < 8 (2017-11-29). * apps/examples/pdcurses: Clean up charset example so that the display - geomtry is better on very wide displays (wide with respect to the width + geometry is better on very wide displays (wide with respect to the width of a character) (2017-11-30). 7.24 2018-03-02 Gregory Nutt @@ -2588,7 +2588,7 @@ * examples/bmp180: Add BMP180 application example. From Alan Carvalho de Assis (2018-02-04). * apps/graphics/ft80x: Add the FTDU FT80x GUI support library. - Consists of some dispaly list helpers, audio helpers, touch helpers, RAM + Consists of some display list helpers, audio helpers, touch helpers, RAM access, register access etc. From Gregory Nutt (2018-02-18). * apps/examples/ft80x: Add a test of the FT80x based on FTDI SampleApp. Includes tests of GPU primitives and graphics co-processor @@ -2629,7 +2629,7 @@ * apps/examples/lzf: Add the test case from Marc Alexander Lehmann's LIBLZF3.6 librrary From Boris Astardzhiev (2018-03-14). * apps/examples/lzf: lzf_compress() now expects the hash table as user - allocated input parmeter rather than declaring the huge array on the + allocated input parameter rather than declaring the huge array on the stack. From Gregory Nutt (2018-03-15). * apps/examples/lzf: unlzf and lzcat are not supported. From Gregory Nutt (2018-03-15). @@ -2686,7 +2686,7 @@ CONFIG_EXAMPLES_OSTEST_AIO From Juha Niskanen (2018-04-11). * apps/examples/nxdemo: Add nxdemo application From Alan Carvalho de Assis (2018-04-28). - * apps/system/embedlog: Support for embedlog data loggin package from + * apps/system/embedlog: Support for embedlog data logging package from https://embedlog.kurwinet.pl/ From Michal Lyszczek (2018-05-06). * nshlib/nsh_fscmds.c: Add the mkfatfs -r option which can be used to specify the number of entries in the FAT12/FAT16 root directory. From @@ -2817,7 +2817,7 @@ remove unnecessary usleep(). From Masayuki Ishikawa (2018-07-31). * apps/system/i2c: Adapt to rename I2C_M_RESTART->i2C_M_START. I2C_M_NOSTOP should be in flags of first message in every write-read - and write-write mesage sequence. From Gregory Nutt (2018-08-03). + and write-write message sequence. From Gregory Nutt (2018-08-03). * include/netutils/netlib.h: Eliminate a warning about AF_UNSPEC and AF_INET not defined. From Gregory Nutt (2018-08-03). * Introduce a build system for loadable apps for nsh. @@ -2936,7 +2936,7 @@ order. From Xiang Xiao (2018-08-23). * apps/system/ping and ping6: Change dependency in ping and ping6 Kconfig. These may be implemented in users sockets and, hence, may - need to be avaiable even if ICMP and ICMPv6 sockets are not support. + need to be available even if ICMP and ICMPv6 sockets are not support. From Xiang Xiao (2018-08-23). * apps/system/cu/cu_main.c: (1) Protect from possible re-definition of signal values, (2) Fix CU ctrl-C hand when remote core hang. From @@ -3443,7 +3443,7 @@ and 'i'nsert. Fixed. 5. The 'vi_shrinkpos' position didn't take the end of file pointer into account when calculating 'curpos', 'prevpos' variables causing - wierdness when deleting things near the end of the file. Fixed. + weirdness 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 function was not copying the deleted line to the @@ -3534,7 +3534,7 @@ 18. Support for '?' reverse search mode. 19. Support for 'J'oin next line with current line command. 20. Printing of current row,col in status line of display. - 21. Command repeat '.' support for commands that modifiy text. + 21. Command repeat '.' support for commands that modify text. 22. Support in replace / insert mode for arrow keys, PGUP / PGDN, HOME, and END. Using these will cause the command repeat buffer to reset such that only the last text addition after a cursor movement @@ -3600,7 +3600,7 @@ * apps/netutils/dhcpc/dhcpc.c: Fix an error for DHCP REQUEST receiving a NAK.In DHCP Request operation, no need to update ciaddr to the client address and keep it as 0. From Kevin Liu (2019-01-30). - * apps/eamples/modbusmaster: Add Simple Modbus master example. This + * apps/examples/modbusmaster: Add Simple Modbus master example. This example only supports Read/Write HoldingRegisters, but it is easy to extend it to support Read/Write Input/Coils/etc. Originally creatd bey Vytautas in 2016 and updated with minor fixes for this commit. From @@ -3808,7 +3808,7 @@ 3. Revist Icons. They are windows now, but need to be compound widgets lying on the background. 4. Widget events are only partially integrated. A lot more needs to be - done. A partial change to thoe event system that hints at the + done. A partial change to those event system that hints at the redesign is in place but it is far from complete. From Gregory Nutt (2019-04-25). * graphics/twm4nx/src/cwindow.cxx: Finishes first cut at window event @@ -3825,7 +3825,7 @@ toolbar, it is necessary to get the CWidgetControl instance from the window we want to use, not to create a new instance. From Gregory Nutt (2019-04-26). - * apps/graphics/twm4nx: Finsh menu-related event handling. Extended menu + * apps/graphics/twm4nx: Finish menu-related event handling. Extended menu handling. Allow external application event handling using a new base class (CTwm4NxEvent). From Gregory Nutt (2019-04-27). * apps/graphics/twm4nx: Flesh out some of the Resize logic. Still missing @@ -4143,7 +4143,7 @@ initial calibration screen optional. From Gregory Nutt (2019-05-20). * apps/nshlib: Fix all places where cle() and readline() are used. readline() returns EOF on a failure. cle() returns a negated errno - value. Checking only for EOF causes failues to be missed (and infinite + value. Checking only for EOF causes failures to be missed (and infinite loops ensuing). From Valmantas Paliksa (2019-05-21). * Add an alternative COMPONTEMPORARY theme. Still has some artifacts on the display. From Gregory Nutt (2019-05-21). @@ -4184,7 +4184,7 @@ simulated segments of an SLCD display. From Gregory Nutt (2019-05-31). * apps/graphics/tmw4nx and apps/graphics/slcd: Add a CClock class that implements the Twm4Nx digital clock based on the CSLcd simulated SLCD - segements. From Gregory Nutt (2019-06-01). + segments. From Gregory Nutt (2019-06-01). * apps/graphics/slcd: Improve the representation of '1', 'l', and 'I'. From Gregory Nutt (2019-06-01). * netutils/telnetd/telnetd_daemon.c: Fix another C89 violation that caused @@ -4319,7 +4319,7 @@ AT24CS0x, FLASH chips with a UUID that appears as a 2nd I2C slave at (address+8), report their serial number at Reg[80]-Reg[8F] and will NAK a read of Reg[0]. - - modify get/set to prevent write of reg index if not specifed From + - modify get/set to prevent write of reg index if not specified From David Alessio (2019-08-20). * Move apps/builtins/builtin_forindex.c to nuttx/libs/libc/builtin since it is required by kernel logic as well. Other changes account for @@ -4433,7 +4433,7 @@ slaves with register files that start from a higher index, i.e. the AT24CS0x, FLASH chips with a UUID that appears as a 2nd I2C slave at (address+8), report their serial number at Reg[80]-Reg[8F] and will NAK a read of Reg[0]. - - modify get/set to prevent write of reg index if not specifed + - modify get/set to prevent write of reg index if not specified - add 'dump' command to issue a single transaction to retrieve multiple bytes from an I2C slave and register/offset. - use NuttX' isprint() @@ -4522,7 +4522,7 @@ * apps/nshlib/README.txt: Update README to at least mention the new pmconfig command. From Gregory Nutt (2019-11-04). * netutils/netlib/netlib_getarptab.c: Do not initialize response buffer, it is - write-only. Also add a check to assue that the sequence number in the response + write-only. Also add a check to assure that the sequence number in the response is the same as the sequence number in the request. From Gregory Nutt (2019-11-04). * apps/system/cle/cle.c: This change modifies the cle to use the streams file @@ -4534,7 +4534,7 @@ * apps/system/cu/cu_main.c: (1) Fix early exit. getc(stdin) can return 0 the first time around. (2) Set optind to zero. getopt() was being left in a bad state, causing parsing errors on second use. (3) Fix priority of cu_listen(). - (4) Add suppor for -h. From David Alessio (2019-11-05). + (4) Add support for -h. From David Alessio (2019-11-05). * netutils/netlib/netlib_getarptab.c: Per an old Linux Journal article, the nl_pid fild of struct sockaddr_nl should be set to the PID of the task that created the Netlink socket. Also fixes a warning. From Gregory Nutt diff --git a/canutils/canlib/canlib_setloopback.c b/canutils/canlib/canlib_setloopback.c index dd0a87c37..2037cf54c 100644 --- a/canutils/canlib/canlib_setloopback.c +++ b/canutils/canlib/canlib_setloopback.c @@ -57,7 +57,7 @@ * * Input Parameter: * fd - file descriptor of an opened can device - * loopback - wether to use loopback mode. + * loopback - whether to use loopback mode. * * Returned Value: * Zero (OK) is returned on success. Otherwise -1 (ERROR) diff --git a/canutils/canlib/canlib_setsilent.c b/canutils/canlib/canlib_setsilent.c index 1d7dda6e8..5544caaa8 100644 --- a/canutils/canlib/canlib_setsilent.c +++ b/canutils/canlib/canlib_setsilent.c @@ -57,7 +57,7 @@ * * Input Parameter: * fd - file descriptor of an opened can device - * loopback - wether to use loopback mode. + * loopback - whether to use loopback mode. * * Returned Value: * Zero (OK) is returned on success. Otherwise -1 (ERROR) diff --git a/examples/README.txt b/examples/README.txt index 1dea92a26..44c681969 100644 --- a/examples/README.txt +++ b/examples/README.txt @@ -250,7 +250,7 @@ examples/dhcpd CONFIG_EXAMPLES_DHCPD_NOMAC - (May be defined to use software assigned MAC) CONFIG_EXAMPLES_DHCPD_IPADDR - Target IP address - CONFIG_EXAMPLES_DHCPD_DRIPADDR - Default router IP addess + CONFIG_EXAMPLES_DHCPD_DRIPADDR - Default router IP address CONFIG_EXAMPLES_DHCPD_NETMASK - Network mask See also CONFIG_NETUTILS_DHCPD_* settings described elsewhere @@ -300,7 +300,7 @@ examples/djoystick examples/dsptest ^^^^^^^^^^^^^^^^^^ - This is a Unit Test for the Nuttx DSP library. It use Unity testing framwork. + This is a Unit Test for the Nuttx DSP library. It use Unity testing framework. Dependencies: @@ -340,7 +340,7 @@ examples/elf Similarly for C++ flags which must be provided in CXXELFFLAGS. - 2. Your top-level nuttx/Make.defs file must also include an approproate definition, + 2. Your top-level nuttx/Make.defs file must also include an appropriate definition, LDELFFLAGS, to generate a relocatable ELF object. With GNU LD, this should include '-r' and '-e main' (or _main on some platforms). @@ -414,7 +414,7 @@ examples/ftpc of the FTPC library (apps/netutils/ftpc). From NSH, the startup command sequence is as follows. This is only - an example, your configration could have different mass storage devices, + an example, your configuration could have different mass storage devices, mount paths, and FTP directories: nsh> mount -t vfat /dev/mmcsd0 /tmp # Mount the SD card at /tmp @@ -442,7 +442,7 @@ examples/ftpc behaviors are desire-able if Telnet is used. You may also want to define the following in your configuration file. - Otherwise, you will have not feeback about what is going on: + Otherwise, you will have not feedback about what is going on: CONFIG_DEBUG_FEATURES=y CONFIG_DEBUG_INFO=y @@ -488,7 +488,7 @@ examples/ftpd CONFIG_DISABLE_PTHREAD - pthread support is required - Other FTPD configuration options thay may be of interest: + Other FTPD configuration options they may be of interest: CONFIG_FTPD_VENDORID - The vendor name to use in FTP communications. Default: "NuttX" @@ -758,7 +758,7 @@ examples/module Similarly for C++ flags which must be provided in CXXMODULEFLAGS. - 2. Your top-level nuttx/Make.defs file must also include an approproate definition, + 2. Your top-level nuttx/Make.defs file must also include an appropriate definition, LDMODULEFLAGS, to generate a relocatable ELF object. With GNU LD, this should include '-r' and '-e '. @@ -858,7 +858,7 @@ examples/mtdpart * CONFIG_EXAMPLES_MTDPART_ERASESIZE - This value gives the size of one erase block in the MTD RAM device. This must exactly match the default configuration in drivers/mtd/rammtd.c! - * CONFIG_EXAMPLES_MTDPART_NEBLOCKS - This value gives the nubmer of erase + * CONFIG_EXAMPLES_MTDPART_NEBLOCKS - This value gives the number of erase blocks in MTD RAM device. examples/mtdrwb @@ -882,7 +882,7 @@ examples/mtdrwb * CONFIG_EXAMPLES_MTDRWB_ERASESIZE - This value gives the size of one erase block in the MTD RAM device. This must exactly match the default configuration in drivers/mtd/rammtd.c! - * CONFIG_EXAMPLES_MTDRWB_NEBLOCKS - This value gives the nubmer of erase + * CONFIG_EXAMPLES_MTDRWB_NEBLOCKS - This value gives the number of erase blocks in MTD RAM device. examples/netpkt @@ -902,7 +902,7 @@ examples/netloop Dependencies: - CONFIG_NET_LOOPBACK - Requires local loopback supprt + CONFIG_NET_LOOPBACK - Requires local loopback support CONFIG_NET_TCP - Requires TCP support with the following: CONFIG_NET_TCPBACKLOG CONFIG_NET_TCP_WRITE_BUFFERS @@ -1090,7 +1090,7 @@ examples/nximage How was that run-length encoded image produced? a. I used GIMP output the image as a .c file. - b. I added som C logic to palette-ize the RGB image in the GIMP .c file + b. I added some C logic to palette-ize the RGB image in the GIMP .c file c. Then I add some simple run-length encoding to palette-ized image. But now there is a tool that can be found in the NxWidgets package at @@ -1141,7 +1141,7 @@ examples/nxtext This directory contains another simple test of a subset of the NX APIs defined in include/nuttx/nx/nx.h. This text focuses on text displays on - the dispaly background combined with pop-up displays over the text. + the display background combined with pop-up displays over the text. The text display will continue to update while the pop-up is visible. NOTE: This example will *only* work with FB drivers and with LCD @@ -1174,7 +1174,7 @@ examples/nxtext reading from the display. CONFIG_EXAMPLES_NXTEXT_BMCACHE - The maximum number of characters that can be put in the background window. Default is 128. - CONFIG_EXAMPLES_NXTEXT_GLCACHE - The maximum nuber of pre-rendered + CONFIG_EXAMPLES_NXTEXT_GLCACHE - The maximum number of pre-rendered fonts that can be retained for the background window. CONFIG_EXAMPLES_NXTEXT_STACKSIZE -- The stacksize to use when creating the NX server. Default 2048 @@ -1242,7 +1242,7 @@ examples/poll CONFIG_EXAMPLES_POLL_NOMAC - (May be defined to use software assigned MAC) CONFIG_EXAMPLES_POLL_IPADDR - Target IP address - CONFIG_EXAMPLES_POLL_DRIPADDR - Default router IP addess + CONFIG_EXAMPLES_POLL_DRIPADDR - Default router IP address CONFIG_EXAMPLES_POLL_NETMASK - Network mask In order to for select to work with incoming connections, you @@ -1321,7 +1321,7 @@ examples/posix_spawn Similarly for C++ flags which must be provided in CXXELFFLAGS. - 2. Your top-level nuttx/Make.defs file must also include an approproate + 2. Your top-level nuttx/Make.defs file must also include an appropriate definition, LDELFFLAGS, to generate a relocatable ELF object. With GNU LD, this should include '-r' and '-e main' (or _main on some platforms). @@ -1443,7 +1443,7 @@ examples/qencoder collected and the program terminates. Default: Samples are collected indefinitely. CONFIG_EXAMPLES_QENCODER_DELAY - This value provides the delay (in - milliseonds) between each sample. Default: 100 milliseconds + milliseconds) between each sample. Default: 100 milliseconds examples/random ^^^^^^^^^^^^^^^ @@ -1504,7 +1504,7 @@ examples/romfs The ROM disk sector size to use. Default is 64. * CONFIG_EXAMPLES_ROMFS_MOUNTPOINT - The location to mount the ROM disk. Deafault: "/usr/local/share" + The location to mount the ROM disk. Default: "/usr/local/share" examples/sendmail ^^^^^^^^^^^^^^^^^ @@ -1520,7 +1520,7 @@ examples/sendmail CONFIG_EXAMPLES_SENDMAIL_NOMAC - May be defined to use software assigned MAC (optional) CONFIG_EXAMPLES_SENDMAIL_IPADDR - Target IP address (required) - CONFIG_EXAMPLES_SENDMAIL_DRIPADDR - Default router IP addess (required) + CONFIG_EXAMPLES_SENDMAIL_DRIPADDR - Default router IP address (required) CONFIG_EXAMPLES_SENDMAILT_NETMASK - Network mask (required) CONFIG_EXAMPLES_SENDMAIL_RECIPIENT - The recipient of the email (required) CONFIG_EXAMPLES_SENDMAIL_SENDER - Optional. Default: "nuttx-testing@example.com" @@ -1536,7 +1536,7 @@ examples/sendmail unprotected recipients can be used. Most will protect themselves from this test email because it looks like SPAM. - Applications using this example will need to enble the following + Applications using this example will need to enable the following netutils libraries in their defconfig file: CONFIG_NETUTILS_NETLIB=y @@ -1605,7 +1605,7 @@ examples/sotest Similarly for C++ flags which must be provided in CXXMODULEFLAGS. - 2. Your top-level nuttx/Make.defs file must also include an approproate definition, + 2. Your top-level nuttx/Make.defs file must also include an appropriate definition, LDMODULEFLAGS, to generate a relocatable ELF object. With GNU LD, this should include '-r' and '-e '. @@ -1688,7 +1688,7 @@ examples/telnetd ^^^^^^^^^^^^^^^^ This directory contains a functional port of the tiny uIP shell. In - the NuttX environment, the NuttShell (at apps/nshlib) supercedes this + the NuttX environment, the NuttShell (at apps/nshlib) supersedes this tiny shell and also supports telnetd. CONFIG_EXAMPLES_TELNETD - Enable the Telnetd example @@ -1724,7 +1724,7 @@ examples/thttpd In addition to those, this example accepts: CONFIG_EXAMPLES_THTTPD_NOMAC - (May be defined to use software assigned MAC) - CONFIG_EXAMPLES_THTTPD_DRIPADDR - Default router IP addess + CONFIG_EXAMPLES_THTTPD_DRIPADDR - Default router IP address CONFIG_EXAMPLES_THTTPD_NETMASK - Network mask Applications using this example will need to enable the following @@ -1740,7 +1740,7 @@ examples/tiff It is configured to work in the Linux user-mode simulation and has not been tested in any other environment. - At a miniumum, to run in an embedded environment, you will probably have to + At a minimum, to run in an embedded environment, you will probably have to change the configured paths to the TIFF files defined in the example. CONFIG_EXAMPLES_TIFF_OUTFILE - Name of the resulting TIFF file. Default is @@ -2008,7 +2008,7 @@ examples/webserver CONFIG_EXAMPLES_WEBSERVER_NOMAC - (May be defined to use software assigned MAC) CONFIG_EXAMPLES_WEBSERVER_IPADDR - Target IP address - CONFIG_EXAMPLES_WEBSERVER_DRIPADDR - Default router IP addess + CONFIG_EXAMPLES_WEBSERVER_DRIPADDR - Default router IP address CONFIG_EXAMPLES_WEBSERVER_NETMASK - Network mask CONFIG_EXAMPLES_WEBSERVER_DHCPC - Select to get IP address via DHCP @@ -2056,7 +2056,7 @@ examples/wget CONFIG_EXAMPLES_WGET_URL - The URL of the file to get CONFIG_EXAMPLES_WGET_NOMAC - (May be defined to use software assigned MAC) CONFIG_EXAMPLES_WGET_IPADDR - Target IP address - CONFIG_EXAMPLES_WGET_DRIPADDR - Default router IP addess + CONFIG_EXAMPLES_WGET_DRIPADDR - Default router IP address CONFIG_EXAMPLES_WGET_NETMASK - Network mask This example uses netutils/webclient. Additional configuration settings apply @@ -2108,7 +2108,7 @@ examples/xmlrpc CONFIG_EXAMPLES_XMLRPC_BUFFERSIZE - HTTP buffer size. Default 1024 CONFIG_EXAMPLES_XMLRPC_DHCPC - Use DHCP Client. Default n. Ignored if CONFIG_NSH_NETINIT is selected. - CONFIG_EXAMPLES_XMLRPC_NOMAC - Use Canned MAC Address. Defaul n. Ignored + CONFIG_EXAMPLES_XMLRPC_NOMAC - Use Canned MAC Address. Default n. Ignored if CONFIG_NSH_NETINIT is selected. CONFIG_EXAMPLES_XMLRPC_IPADDR - Target IP address. Default 0x0a000002. Ignored if CONFIG_NSH_NETINIT is selected. diff --git a/examples/alarm/alarm_main.c b/examples/alarm/alarm_main.c index 1967f5557..8d15d6fc2 100644 --- a/examples/alarm/alarm_main.c +++ b/examples/alarm/alarm_main.c @@ -141,7 +141,7 @@ static int alarm_daemon(int argc, FAR char *argv[]) } /* Now wait a little while and poll again. If a signal is received - * this should cuase us to awken earlier. + * this should cause us to awken earlier. */ usleep(500*1000L); diff --git a/examples/charger/Kconfig b/examples/charger/Kconfig index 1785e6aa5..b9a98f1d9 100644 --- a/examples/charger/Kconfig +++ b/examples/charger/Kconfig @@ -3,7 +3,7 @@ config EXAMPLES_CHARGER bool "Battery charger example" default n ---help--- - This application is an example of using charger deivce. + This application is an example of using charger device. if EXAMPLES_CHARGER diff --git a/examples/charger/charger_main.c b/examples/charger/charger_main.c index 16f92161b..8dad39424 100644 --- a/examples/charger/charger_main.c +++ b/examples/charger/charger_main.c @@ -212,7 +212,7 @@ int charger_main(int argc, char *argv[]) argc--; argv++; - /* Initialize and create battery charger deivce */ + /* Initialize and create battery charger device */ board_charger_initialize(DEVPATH); diff --git a/examples/chat/chat_main.c b/examples/chat/chat_main.c index 9c453d50c..ed27090e2 100644 --- a/examples/chat/chat_main.c +++ b/examples/chat/chat_main.c @@ -75,7 +75,7 @@ struct chat_app FAR char** argv; /* command-line arguments */ char tty[CHAT_TTYNAME_SIZE]; /* modem TTY device node */ FAR const char *script; /* raw chat script - input to the parser */ - bool script_dynalloc; /* true iff the script should be freed */ + bool script_dynalloc; /* true if the script should be freed */ }; /**************************************************************************** diff --git a/examples/chrono/chrono_main.c b/examples/chrono/chrono_main.c index 391d47fbd..2392f59e0 100644 --- a/examples/chrono/chrono_main.c +++ b/examples/chrono/chrono_main.c @@ -397,7 +397,7 @@ int main(int argc, FAR char *argv[]) for (; ; ) { - /* If the device is reseted, show 00.. and assume it is initial time */ + /* If the device is reset, show 00.. and assume it is initial time */ if (priv->state == CHRONO_RESETED) { diff --git a/examples/configdata/Kconfig b/examples/configdata/Kconfig index d9ad53420..f491579e2 100644 --- a/examples/configdata/Kconfig +++ b/examples/configdata/Kconfig @@ -28,7 +28,7 @@ config EXAMPLES_CONFIGDATA_NEBLOCKS ---help--- When EXAMPLES_CONFIGDATA_ARCHINIT is not defined, this test will use the RAM MTD device at drivers/mtd/rammtd.c to simulate FLASH. In - this case, this value must be provided to give the nubmer of erase + this case, this value must be provided to give the number of erase blocks in the MTD RAM device. The size of the allocated RAM drive will be: diff --git a/examples/dhcpd/target.c b/examples/dhcpd/target.c index 64c11394c..b90fcb86f 100644 --- a/examples/dhcpd/target.c +++ b/examples/dhcpd/target.c @@ -52,7 +52,7 @@ * Preprocessor Definitions ****************************************************************************/ -/* Configuation Checkes *****************************************************/ +/* Configuration Checks *****************************************************/ /* BEWARE: * There are other configuration settings needed in netutils/dhcpd/dhcpdc.c, diff --git a/examples/dsptest/test_misc.c b/examples/dsptest/test_misc.c index ba0ec7388..2996f2b41 100644 --- a/examples/dsptest/test_misc.c +++ b/examples/dsptest/test_misc.c @@ -604,7 +604,7 @@ void test_misc(void) TEST_SEPARATOR(); - /* Test helper funcions */ + /* Test helper functions */ RUN_TEST(test_f_saturate); diff --git a/examples/dsptest/test_motor.c b/examples/dsptest/test_motor.c index b53ed353d..bf8a9bba7 100644 --- a/examples/dsptest/test_motor.c +++ b/examples/dsptest/test_motor.c @@ -88,7 +88,7 @@ static void test_openloop_init(void) TEST_ASSERT_EQUAL_FLOAT(max_speed, op.max); } -/* Singe step openloop */ +/* Single step openloop */ static void test_openloop_one_step(void) { diff --git a/examples/elf/tests/mksymtab.sh b/examples/elf/tests/mksymtab.sh index 4e8a1106f..f422c11cc 100755 --- a/examples/elf/tests/mksymtab.sh +++ b/examples/elf/tests/mksymtab.sh @@ -27,7 +27,7 @@ varlist=`find ${dir} -type f -perm -a=x | xargs nm | fgrep ' U ' | sed -e "s/^[ # Now output the symbol table as a structure in a C source file. All # undefined symbols are declared as void* types. If the toolchain does # any kind of checking for function vs. data objects, then this could -# faile +# failed echo "#include " echo "#include " diff --git a/examples/fb/fb_main.c b/examples/fb/fb_main.c index 59d6ce9ee..96edbcff4 100644 --- a/examples/fb/fb_main.c +++ b/examples/fb/fb_main.c @@ -193,7 +193,7 @@ static void draw_rect1(FAR struct fb_state_s *state, startx = (rect->pt1.x >> 3); endx = ((rect->pt2.x + 7) >> 3); - /* Caculate a mask on the first and last bytes of the sequence that may + /* Calculate a mask on the first and last bytes of the sequence that may * not be completely filled with pixel. */ diff --git a/examples/fboverlay/fboverlay_main.c b/examples/fboverlay/fboverlay_main.c index 4b65d8b24..025e1001a 100644 --- a/examples/fboverlay/fboverlay_main.c +++ b/examples/fboverlay/fboverlay_main.c @@ -72,10 +72,10 @@ * * Parameters: * argb - argb8888 color - * a - Reference ot 8-bit alpha channel - * r - Reference ot 8-bit red channel - * g - Reference ot 8-bit green channel - * b - Reference ot 8-bit blue channel + * a - Reference to 8-bit alpha channel + * r - Reference to 8-bit red channel + * g - Reference to 8-bit green channel + * b - Reference to 8-bit blue channel * ****************************************************************************/ @@ -120,7 +120,7 @@ static uint16_t rgb565(uint32_t argb) * * Parameters: * fbmem - Points to framebuffer start address - * oinfo - Refence to overlay information + * oinfo - Reference to overlay information * area - Area draw * color - cmap color entry * @@ -160,7 +160,7 @@ static void draw_rect8(FAR void *fbmem, FAR struct fb_overlayinfo_s * oinfo, * * Parameters: * fbmem - Points to framebuffer start address - * oinfo - Refence to overlay information + * oinfo - Reference to overlay information * area - Area draw * rgb - rgb565 color * @@ -198,7 +198,7 @@ static void draw_rect16(FAR void *fbmem, FAR struct fb_overlayinfo_s * oinfo, * * Parameters: * fbmem - Points to framebuffer start address - * oinfo - Refence to overlay information + * oinfo - Reference to overlay information * area - Area draw * rgb - rgb888 color * @@ -246,7 +246,7 @@ static void draw_rect24(FAR void *fbmem, FAR struct fb_overlayinfo_s * oinfo, * * Parameters: * fbmem - Points to framebuffer start address - * oinfo - Refence to overlay information + * oinfo - Reference to overlay information * area - Area draw * argb - argb8888 color * @@ -956,7 +956,7 @@ static int fbopen(const char * device) * Commandline info * * Parameters: - * progname - Name of the programm + * progname - Name of the program * ****************************************************************************/ diff --git a/examples/flash_test/flash_test.c b/examples/flash_test/flash_test.c index c47461a0b..22aabd1c0 100644 --- a/examples/flash_test/flash_test.c +++ b/examples/flash_test/flash_test.c @@ -82,7 +82,7 @@ int main(int argc, FAR char *argv[]) return -1; } - /* Find the inode of the block driver indentified by 'source' */ + /* Find the inode of the block driver identified by 'source' */ ret = open_blockdriver(argv[1], 0, &inode); if (ret < 0) @@ -211,7 +211,7 @@ int main(int argc, FAR char *argv[]) goto errout_with_buffers; } - /* Generate compare string and do the comapre */ + /* Generate compare string and do the compare */ printf("\r%d ", sectors[x]); diff --git a/examples/ftpd/ftpd_main.c b/examples/ftpd/ftpd_main.c index 33ada463a..dfd7fb663 100644 --- a/examples/ftpd/ftpd_main.c +++ b/examples/ftpd/ftpd_main.c @@ -194,7 +194,7 @@ int ftpd_daemon(int s_argc, char **s_argv) return EXIT_FAILURE; } - /* Configure acounts */ + /* Configure accounts */ ftpd_accounts(handle); diff --git a/examples/gps/gps_main.c b/examples/gps/gps_main.c index dac7abaa3..de5c88696 100644 --- a/examples/gps/gps_main.c +++ b/examples/gps/gps_main.c @@ -104,7 +104,7 @@ int main(int argc, FAR char *argv[]) minmea_rescale(&frame.speed, 1000)); printf("Floating point degree latitude.: %2.6f\n", minmea_tocoord(&frame.latitude)); - printf("Floating point degree longitute: %2.6f\n", + printf("Floating point degree longitude: %2.6f\n", minmea_tocoord(&frame.longitude)); printf("Floating point speed...........: %2.6f\n", minmea_tocoord(&frame.speed)); diff --git a/examples/media/Kconfig b/examples/media/Kconfig index ac52227fd..b255e30ea 100644 --- a/examples/media/Kconfig +++ b/examples/media/Kconfig @@ -49,7 +49,7 @@ config EXAMPLES_MEDIA_DEVPATH ret = bchdev_register(/dev/mtdblock, , false); - NOTE: This drivr path can be overridden when the application is + NOTE: This driver path can be overridden when the application is executed by providing a differ device path on the 'media' command line. config EXAMPLES_MEDIA_BLOCKSIZE diff --git a/examples/media/media_main.c b/examples/media/media_main.c index 207451776..e4b12ed62 100644 --- a/examples/media/media_main.c +++ b/examples/media/media_main.c @@ -324,7 +324,7 @@ int main(int argc, FAR char *argv[]) info.nblocks = blockno; } - /* Seek to the beginnin of the file */ + /* Seek to the beginning of the file */ seekpos = lseek(fd, 0, SEEK_SET); if (seekpos == (off_t)-1) diff --git a/examples/module/Kconfig b/examples/module/Kconfig index 8f6a29245..864a8097d 100644 --- a/examples/module/Kconfig +++ b/examples/module/Kconfig @@ -111,7 +111,7 @@ config EXAMPLES_MODULE_BINDIR default "/mnt/moddata" depends on !EXAMPLES_MODULE_BUILTINFS && !EXAMPLES_MODULE_FSMOUNT ---help--- - The full, absolte path to the location for the binaries can be + The full, absolute path to the location for the binaries can be located in a pre-mounted external file system. config EXAMPLES_MODULE_NOSTRIP diff --git a/examples/module/drivers/mksymtab.sh b/examples/module/drivers/mksymtab.sh index bc4335da1..77ef4dd7a 100755 --- a/examples/module/drivers/mksymtab.sh +++ b/examples/module/drivers/mksymtab.sh @@ -27,7 +27,7 @@ varlist=`find ${dir} -type f -perm -a=x | xargs nm | fgrep ' U ' | sed -e "s/^[ # Now output the symbol table as a structure in a C source file. All # undefined symbols are declared as void* types. If the toolchain does # any kind of checking for function vs. data objects, then this could -# faile +# failed echo "#include " echo "#include " diff --git a/examples/mtdpart/Kconfig b/examples/mtdpart/Kconfig index 4395083f7..d653d13fc 100644 --- a/examples/mtdpart/Kconfig +++ b/examples/mtdpart/Kconfig @@ -32,7 +32,7 @@ config EXAMPLES_MTDPART_NEBLOCKS ---help--- When EXAMPLES_MTDPART_ARCHINIT is not defined, this test will use the RAM MTD device at drivers/mtd/rammtd.c to simulate FLASH. In - this case, this value must be provided to give the nubmer of erase + this case, this value must be provided to give the number of erase blocks in MTD RAM device. The size of the allocated RAM drive will be: diff --git a/examples/mtdpart/mtdpart_main.c b/examples/mtdpart/mtdpart_main.c index faa4b1444..6d26a34c4 100644 --- a/examples/mtdpart/mtdpart_main.c +++ b/examples/mtdpart/mtdpart_main.c @@ -417,7 +417,7 @@ int main(int argc, FAR char *argv[]) exit(16); } - /* Verfy the offsets in the block */ + /* Verify the offsets in the block */ for (k = 0; k < geo.blocksize / sizeof(uint32_t); k++) { @@ -488,7 +488,7 @@ int main(int argc, FAR char *argv[]) * should on the device. */ - printf("Verfying media:\n"); + printf("Verifying media:\n"); fd = open("/dev/mtd0", O_RDONLY); if (fd < 0) @@ -526,7 +526,7 @@ int main(int argc, FAR char *argv[]) exit(26); } - /* Verfy the values in the block */ + /* Verify the values in the block */ for (k = 0; k < geo.blocksize / sizeof(uint32_t); k++) { diff --git a/examples/nettest/Kconfig b/examples/nettest/Kconfig index 6759fbb3f..d7b76f5bc 100644 --- a/examples/nettest/Kconfig +++ b/examples/nettest/Kconfig @@ -449,7 +449,7 @@ config EXAMPLES_NETTEST_SERVERIPv6ADDR_1 ---help--- IP address of the server. If the target is the server, then EXAMPLES_NETTEST_SERVERIP should be the same as - EXAMPLES_NETTEST_IPADDR (default). If the target is the cleint, + EXAMPLES_NETTEST_IPADDR (default). If the target is the client, then the default value of EXAMPLES_NETTEST_SERVERIP is set to the host PC IP address (possibly the gateway address, EXAMPLES_NETTEST_DRIPADDR?). diff --git a/examples/nx/nx_internal.h b/examples/nx/nx_internal.h index f089871b4..be9017593 100644 --- a/examples/nx/nx_internal.h +++ b/examples/nx/nx_internal.h @@ -235,7 +235,7 @@ struct nxeg_state_s * Public Data ****************************************************************************/ -/* The connecton handle */ +/* The connection handle */ extern NXHANDLE g_hnx; diff --git a/examples/nxtext/nxtext_internal.h b/examples/nxtext/nxtext_internal.h index 8118b331d..994f99744 100644 --- a/examples/nxtext/nxtext_internal.h +++ b/examples/nxtext/nxtext_internal.h @@ -276,7 +276,7 @@ struct nxtext_state_s * Public Data ****************************************************************************/ -/* The connecton handler */ +/* The connection handler */ extern NXHANDLE g_hnx; diff --git a/examples/nxtext/nxtext_main.c b/examples/nxtext/nxtext_main.c index 75858eb22..1a1461b33 100644 --- a/examples/nxtext/nxtext_main.c +++ b/examples/nxtext/nxtext_main.c @@ -136,7 +136,7 @@ static const char *g_bgmsg[BGMSG_LINES] = * Public Data ****************************************************************************/ -/* The connecton handler */ +/* The connection handler */ NXHANDLE g_hnx = NULL; diff --git a/examples/pdcurses/tui.c b/examples/pdcurses/tui.c index af468c255..ecdfb777a 100644 --- a/examples/pdcurses/tui.c +++ b/examples/pdcurses/tui.c @@ -693,7 +693,7 @@ static void repainteditbox(WINDOW *win, int x, char *buf) * * Description: * The initial value of 'str' with a maximum length of 'field' - 1, - * which is supplied by the calling routine, is editted. The user's + * which is supplied by the calling routine, is edited. The user's * erase (^H), kill (^U) and delete word (^W) chars are interpreted. * The PC insert or Tab keys toggle between insert and edit mode. * Escape aborts the edit session, leaving 'str' unchanged. diff --git a/examples/pdcurses/tui.h b/examples/pdcurses/tui.h index 9f9ac9d96..aa748e9c8 100644 --- a/examples/pdcurses/tui.h +++ b/examples/pdcurses/tui.h @@ -86,7 +86,7 @@ typedef struct } menu; /**************************************************************************** - * Public Functin Prototypes + * Public Function Prototypes ****************************************************************************/ void clsbody(void); diff --git a/examples/poll/net_reader.c b/examples/poll/net_reader.c index cbb70e6e4..359e8594f 100644 --- a/examples/poll/net_reader.c +++ b/examples/poll/net_reader.c @@ -310,7 +310,7 @@ void *net_reader(pthread_addr_t pvarg) } #endif - /* Handle incoming messsages on the connection. */ + /* Handle incoming messages on the connection. */ net_receive(acceptsd); diff --git a/examples/posix_spawn/filesystem/mksymtab.sh b/examples/posix_spawn/filesystem/mksymtab.sh index 8b7d4dc23..05384be86 100755 --- a/examples/posix_spawn/filesystem/mksymtab.sh +++ b/examples/posix_spawn/filesystem/mksymtab.sh @@ -27,7 +27,7 @@ varlist=`find ${dir} -type f -perm -a=x | xargs nm | fgrep ' U ' | sed -e "s/^[ # Now output the symbol table as a structure in a C source file. All # undefined symbols are declared as void* types. If the toolchain does # any kind of checking for function vs. data objects, then this could -# faile +# failed echo "#include " echo "#include " diff --git a/examples/posix_spawn/spawn_main.c b/examples/posix_spawn/spawn_main.c index f01ea78c9..f5a3adba9 100644 --- a/examples/posix_spawn/spawn_main.c +++ b/examples/posix_spawn/spawn_main.c @@ -434,7 +434,7 @@ int main(int argc, FAR char *argv[]) sleep(2); mm_update(&g_mmstep, "after posix_spawn"); - /* Free attibutes and file actions */ + /* Free attributes and file actions */ ret = posix_spawn_file_actions_destroy(&file_actions); if (ret != 0) diff --git a/examples/powerled/powerled_main.c b/examples/powerled/powerled_main.c index 05c466a70..e036c483a 100644 --- a/examples/powerled/powerled_main.c +++ b/examples/powerled/powerled_main.c @@ -130,7 +130,7 @@ static void powerled_help(FAR struct args_s *args) { printf("Usage: powerled [OPTIONS]\n\n"); printf(" [-m mode] select mode\n"); - printf(" 0 - demo mode [deafult]\n"); + printf(" 0 - demo mode [default]\n"); printf(" 1 - continuous mode\n"); printf(" 2 - flash mode\n"); printf(" [-d duty] selects duty cycle for flash mode in %%\n"); @@ -444,7 +444,7 @@ int main(int argc, char *argv[]) terminate = false; config = true; - /* Initialize powerled stuctures */ + /* Initialize powerled structures */ memset(&powerled_limits, 0, sizeof(struct powerled_limits_s)); memset(&powerled_params, 0, sizeof(struct powerled_params_s)); diff --git a/examples/pwfb/pwfb_main.c b/examples/pwfb/pwfb_main.c index 75001aa75..e394cc7ea 100644 --- a/examples/pwfb/pwfb_main.c +++ b/examples/pwfb/pwfb_main.c @@ -221,7 +221,7 @@ static bool pwfb_state_initialize(FAR struct pwfb_state_s *st) st->color[0] = CONFIG_EXAMPLES_PWFB_TBCOLOR; /* Connect each window to the font cache. They cannot share the - * font cache becuse of the differing background colors. + * font cache because of the differing background colors. */ st->wndo[0].fcache = nxf_cache_connect(CONFIG_EXAMPLES_PWFB_FONTID, diff --git a/examples/romfs/romfs_main.c b/examples/romfs/romfs_main.c index e15154c4b..200c9ea1d 100644 --- a/examples/romfs/romfs_main.c +++ b/examples/romfs/romfs_main.c @@ -33,7 +33,7 @@ * ****************************************************************************/ -/* Mount the ROMFS image, Verifty that it contains the +/* Mount the ROMFS image, Verify that it contains the * following: * * testdir diff --git a/examples/smps/smps_main.c b/examples/smps/smps_main.c index 6ef5ce16c..98f1d1f33 100644 --- a/examples/smps/smps_main.c +++ b/examples/smps/smps_main.c @@ -143,7 +143,7 @@ static void smps_help(FAR struct args_s *args) printf(" [-p power] output power in W\n"); printf(" valid values from 0.0 to output power limit\n"); printf(" [-t time] run time in seconds\n"); - printf(" valid values greather than 0 and\n"); + printf(" valid values greater than 0 and\n"); printf(" -1 for infinity [default]\n"); printf("\n"); } @@ -445,7 +445,7 @@ int main(int argc, char *argv[]) int ret = 0; int fd = 0; - /* Initialize smps stuctures */ + /* Initialize smps structures */ memset(&smps_limits, 0, sizeof(struct smps_limits_s)); memset(&smps_params, 0, sizeof(struct smps_params_s)); diff --git a/examples/sotest/Kconfig b/examples/sotest/Kconfig index 3920c76e3..0f376eb84 100644 --- a/examples/sotest/Kconfig +++ b/examples/sotest/Kconfig @@ -59,7 +59,7 @@ config EXAMPLES_SOTEST_BINDIR string "Path to Test Shared Libraries" default "/mnt/sdcard" ---help--- - The path to the directoy on the mounted volume where the test shared + The path to the directory on the mounted volume where the test shared libraries can found at runtime. endif # !EXAMPLES_SOTEST_BUILTINFS diff --git a/examples/tcpblaster/Kconfig b/examples/tcpblaster/Kconfig index bd923c63c..c002ef7f6 100644 --- a/examples/tcpblaster/Kconfig +++ b/examples/tcpblaster/Kconfig @@ -459,7 +459,7 @@ config EXAMPLES_TCPBLASTER_SERVERIPv6ADDR_1 ---help--- IP address of the server. If the target is the server, then EXAMPLES_TCPBLASTER_SERVERIP should be the same as - EXAMPLES_TCPBLASTER_IPADDR (default). If the target is the cleint, + EXAMPLES_TCPBLASTER_IPADDR (default). If the target is the client, then the default value of EXAMPLES_TCPBLASTER_SERVERIP is set to the host PC IP address (possibly the gateway address, EXAMPLES_TCPBLASTER_DRIPADDR?). diff --git a/examples/telnetd/README.txt b/examples/telnetd/README.txt index ebc9684ca..bdba71d9a 100644 --- a/examples/telnetd/README.txt +++ b/examples/telnetd/README.txt @@ -2,7 +2,7 @@ README.txt ^^^^^^^^^^ This directory contains a functional port of the tiny uIP shell. In the -NuttX environment, the NuttShell (at apps/nshlib) supercedes this tiny +NuttX environment, the NuttShell (at apps/nshlib) supersedes this tiny shell and also supports telnetd. This example is retained here for reference purposes only. diff --git a/examples/wget/wget_main.c b/examples/wget/wget_main.c index a47499814..32ed435fa 100644 --- a/examples/wget/wget_main.c +++ b/examples/wget/wget_main.c @@ -53,7 +53,7 @@ * Preprocessor Definitions ****************************************************************************/ -/* Configuation Checks ******************************************************/ +/* Configuration Checks ******************************************************/ /* BEWARE: * There are other configuration settings needed in netutitls/wget/wgetc.s, * but there are default values for those so we cannot check them here. diff --git a/examples/xmlrpc/calls.c b/examples/xmlrpc/calls.c index 097d96385..aedb94006 100644 --- a/examples/xmlrpc/calls.c +++ b/examples/xmlrpc/calls.c @@ -28,7 +28,7 @@ * * 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 + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COGITO LLC * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARAY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT diff --git a/examples/xmlrpc/xmlrpc_main.c b/examples/xmlrpc/xmlrpc_main.c index 32bedb524..649fc7f68 100644 --- a/examples/xmlrpc/xmlrpc_main.c +++ b/examples/xmlrpc/xmlrpc_main.c @@ -29,7 +29,7 @@ * * 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 + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COGITO LLC * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARAY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT diff --git a/fsutils/mkfatfs/configfat.c b/fsutils/mkfatfs/configfat.c index 94a737fcb..24bdd7321 100644 --- a/fsutils/mkfatfs/configfat.c +++ b/fsutils/mkfatfs/configfat.c @@ -135,10 +135,10 @@ mkfatfs_nfatsect12(FAR struct fat_format_s *fmt, FAR struct fat_var_s *var, { #ifdef CONFIG_HAVE_LONG_LONG uint64_t denom; - uint64_t numer; + uint64_t number; #else uint32_t denom; - uint32_t numer; + uint32_t number; #endif /* For FAT12, the cluster number is held in a 12-bit number or 1.5 bytes per @@ -174,9 +174,9 @@ mkfatfs_nfatsect12(FAR struct fat_format_s *fmt, FAR struct fat_var_s *var, denom = (fmt->ff_nfats << 1) + fmt->ff_nfats + (var->fv_sectorsize << (fmt->ff_clustshift + 1)); - numer = (navailsects << 1) + navailsects + number = (navailsects << 1) + navailsects + (1 << (fmt->ff_clustshift + 2)) + (1 << (fmt->ff_clustshift + 1)); - return (uint32_t)((numer + denom - 1) / denom); + return (uint32_t)((number + denom - 1) / denom); #ifndef CONFIG_HAVE_LONG_LONG } @@ -213,10 +213,10 @@ mkfatfs_nfatsect16(FAR struct fat_format_s *fmt, FAR struct fat_var_s *var, { #ifdef CONFIG_HAVE_LONG_LONG uint64_t denom; - uint64_t numer; + uint64_t number; #else uint32_t denom; - uint32_t numer; + uint32_t number; #endif /* For FAT16, the cluster number is held in a 16-bit number or 2 bytes per @@ -244,15 +244,15 @@ mkfatfs_nfatsect16(FAR struct fat_format_s *fmt, FAR struct fat_var_s *var, if (fmt->ff_clustshift == 0) { denom = fmt->ff_nfats + (var->fv_sectorsize >> 1); - numer = navailsects + 2; + number = navailsects + 2; } else { denom = fmt->ff_nfats + (var->fv_sectorsize << (fmt->ff_clustshift - 1)); - numer = navailsects + (1 << (fmt->ff_clustshift + 1)); + number = navailsects + (1 << (fmt->ff_clustshift + 1)); } - return (uint32_t)((numer + denom - 1) / denom); + return (uint32_t)((number + denom - 1) / denom); } /**************************************************************************** @@ -281,10 +281,10 @@ mkfatfs_nfatsect32(FAR struct fat_format_s *fmt, FAR struct fat_var_s *var, { #ifdef CONFIG_HAVE_LONG_LONG uint64_t denom; - uint64_t numer; + uint64_t number; #else uint32_t denom; - uint32_t numer; + uint32_t number; #endif /* For FAT32, the cluster number is held in a 32-bit number or 4 bytes per @@ -312,20 +312,20 @@ mkfatfs_nfatsect32(FAR struct fat_format_s *fmt, FAR struct fat_var_s *var, if (fmt->ff_clustshift == 0) { denom = fmt->ff_nfats + (var->fv_sectorsize >> 2); - numer = navailsects + 3; + number = navailsects + 3; } else if (fmt->ff_clustshift == 1) { denom = fmt->ff_nfats + (var->fv_sectorsize >> 1); - numer = navailsects + 6; + number = navailsects + 6; } else { denom = fmt->ff_nfats + (var->fv_sectorsize << (fmt->ff_clustshift - 2)); - numer = navailsects + (1 << (fmt->ff_clustshift + 1)) + (1 << fmt->ff_clustshift); + number = navailsects + (1 << (fmt->ff_clustshift + 1)) + (1 << fmt->ff_clustshift); } - return (uint32_t)((numer + denom - 1) / denom); + return (uint32_t)((number + denom - 1) / denom); } /**************************************************************************** @@ -361,7 +361,7 @@ mkfatfs_clustersearchlimits(FAR struct fat_format_s *fmt, FAR struct fat_var_s * if (fmt->ff_nsectors < 2048) { - /* 2k sectors, start wit 1 sector/cluster. */ + /* 2k sectors, start with 1 sector/cluster. */ fmt->ff_clustshift = 0; } else if (fmt->ff_nsectors < 4096) @@ -399,7 +399,7 @@ mkfatfs_clustersearchlimits(FAR struct fat_format_s *fmt, FAR struct fat_var_s * else { /* The caller has selected a cluster size. There will be no search! - * Just set the maximum to the caller specificed value. + * Just set the maximum to the caller specified value. */ mxclustshift = fmt->ff_clustshift; @@ -861,7 +861,7 @@ mkfatfs_clustersearch(FAR struct fat_format_s *fmt, FAR struct fat_var_s *var) * * Input: * fmt - Caller specified format parameters - * var - Holds disk geomtry data. Also, the location to return FAT + * var - Holds disk geometry data. Also, the location to return FAT * configuration data * * Return: diff --git a/fsutils/mkfatfs/fat32.h b/fsutils/mkfatfs/fat32.h index 3f036d950..fb68f35b3 100644 --- a/fsutils/mkfatfs/fat32.h +++ b/fsutils/mkfatfs/fat32.h @@ -236,7 +236,7 @@ */ #define DIR_NAME 0 /* 11@ 0: NAME: 8 bytes + 3 byte extension */ -#define DIR_ATTRIBUTES 11 /* 1@11: File attibutes (see below) */ +#define DIR_ATTRIBUTES 11 /* 1@11: File attributes (see below) */ #define DIR_NTRES 12 /* 1@12: Reserved for use by NT */ #define DIR_CRTTIMETENTH 13 /* 1@13: Tenth sec creation timestamp */ #define DIR_CRTIME 14 /* 2@14: Time file created */ @@ -354,7 +354,7 @@ #define FAT_BAD 0x0ffffff7 /**************************************************************************** - * Maximum cluster by FAT type. This is the key value used to distinquish + * Maximum cluster by FAT type. This is the key value used to distinguish * between FAT12, 16, and 32. */ diff --git a/fsutils/mkfatfs/mkfatfs.c b/fsutils/mkfatfs/mkfatfs.c index 816b02087..028234ccb 100644 --- a/fsutils/mkfatfs/mkfatfs.c +++ b/fsutils/mkfatfs/mkfatfs.c @@ -322,7 +322,7 @@ int mkfatfs(FAR const char *pathname, FAR struct fat_format_s *fmt) } #endif - /* Find the inode of the block driver indentified by 'source' */ + /* Find the inode of the block driver identified by 'source' */ var.fv_fd = open(pathname, O_RDWR); if (var.fv_fd < 0) diff --git a/fsutils/mkfatfs/mkfatfs.h b/fsutils/mkfatfs/mkfatfs.h index 790ee01fa..2b37944a2 100644 --- a/fsutils/mkfatfs/mkfatfs.h +++ b/fsutils/mkfatfs/mkfatfs.h @@ -114,7 +114,7 @@ struct fat_format_s; /* Forward reference */ * * Input: * fmt - Caller specified format parameters - * var - Holds disk geomtry data. Also, the location to return FAT + * var - Holds disk geometry data. Also, the location to return FAT * configuration data * * Return: diff --git a/fsutils/mksmartfs/mksmartfs.c b/fsutils/mksmartfs/mksmartfs.c index de5d7befa..5124d6a98 100644 --- a/fsutils/mksmartfs/mksmartfs.c +++ b/fsutils/mksmartfs/mksmartfs.c @@ -172,7 +172,7 @@ int mksmartfs(FAR const char *pathname, uint16_t sectorsize) int x; int ret; - /* Find the inode of the block driver indentified by 'source' */ + /* Find the inode of the block driver identified by 'source' */ fd = open(pathname, O_RDWR); if (fd < 0) @@ -198,7 +198,7 @@ int mksmartfs(FAR const char *pathname, uint16_t sectorsize) ret = ioctl(fd, BIOC_GETFORMAT, (unsigned long) &fmt); /* Now Write the filesystem to media. Loop for each root dir entry and - * allocate the reserved Root Dir Enty, then write a blank root dir for it. + * allocate the reserved Root Dir Entry, then write a blank root dir for it. */ type = SMARTFS_SECTOR_TYPE_DIR; diff --git a/fsutils/passwd/passwd_lock.c b/fsutils/passwd/passwd_lock.c index a2dc85ec2..63b1f13ab 100644 --- a/fsutils/passwd/passwd_lock.c +++ b/fsutils/passwd/passwd_lock.c @@ -61,7 +61,7 @@ #ifndef CONFIG_FS_NAMED_SEMAPHORES /* In the FLAT and PROTECTED build modes, we do not need to bother with a - * named semaphore. We use a single global semaphore in theses cases. + * named semaphore. We use a single global semaphore in these cases. */ static sem_t g_passwd_sem = SEM_INITIALIZER(1); diff --git a/fsutils/passwd/passwd_verify.c b/fsutils/passwd/passwd_verify.c index 6bdaa13c2..72d701249 100644 --- a/fsutils/passwd/passwd_verify.c +++ b/fsutils/passwd/passwd_verify.c @@ -52,7 +52,7 @@ * * Description: * Return true if the username exists in the /etc/passwd file and if the - * password matches the user password in that faile. + * password matches the user password in that failed. * * Input Parameters: * diff --git a/gpsutils/minmea/minmea.c b/gpsutils/minmea/minmea.c index 5354b09a3..5bb41b8da 100644 --- a/gpsutils/minmea/minmea.c +++ b/gpsutils/minmea/minmea.c @@ -89,7 +89,7 @@ uint8_t minmea_checksum(FAR const char *sentence) { uint8_t checksum = 0x00; - /* Support senteces with or without the starting dollar sign. */ + /* Support sentences with or without the starting dollar sign. */ if (*sentence == '$') { diff --git a/graphics/ft80x/ft80x_touch.c b/graphics/ft80x/ft80x_touch.c index e4c9196c3..0c10ce151 100644 --- a/graphics/ft80x/ft80x_touch.c +++ b/graphics/ft80x/ft80x_touch.c @@ -58,12 +58,12 @@ * Name: ft80x_touch_gettransform * * Description: - * Read the touch transfrom matrix + * Read the touch transform matrix * * Input Parameters: * fd - The file descriptor of the FT80x device. Opened by the caller * with write access. - * matrix - The location to return the transfrom matrix + * matrix - The location to return the transform matrix * * Returned Value: * Zero (OK) on success. A negated errno value on failure. diff --git a/graphics/littlevgl/Kconfig b/graphics/littlevgl/Kconfig index a4bb36c3d..58efef870 100644 --- a/graphics/littlevgl/Kconfig +++ b/graphics/littlevgl/Kconfig @@ -7,7 +7,7 @@ menuconfig GRAPHICS_LVGL bool "Littlev Graphic Library (LVGL)" default n ---help--- - Enable support for the LVGL GUI libray. + Enable support for the LVGL GUI library. if GRAPHICS_LVGL @@ -59,7 +59,7 @@ config LV_VDB_DOUBLE ---help--- Enable to use one buffer for rendering an other to flush the ready content to the frame buffer. - The flushing should be done by a hardware modul (e.g. DMA) to + The flushing should be done by a hardware module (e.g. DMA) to make rendering and flushing parallel if LV_VDB_DOUBLE diff --git a/graphics/nxglyphs/include/mkcursor.sh b/graphics/nxglyphs/include/mkcursor.sh index c0611be06..d466788c9 100644 --- a/graphics/nxglyphs/include/mkcursor.sh +++ b/graphics/nxglyphs/include/mkcursor.sh @@ -43,7 +43,7 @@ # Output is to stdout, but may be re-directed to a file. PROGNAME=$0 -USAGE="USAGE: $PROGNAME [-d] -f [-bg ] -[f1 ] [-f2 ] [-f3 ] -o " +USAGE="USAGE: $PROGNAME [-d] -f [-bg ] -[f1 ] [-f2 ] [-f3 ] -o " CFILE=mkcursor.c TMPFILE1=_tmpfile1.c diff --git a/graphics/nxglyphs/src/glyph_calculator24x25.cxx b/graphics/nxglyphs/src/glyph_calculator24x25.cxx index ba96abed8..99ec88b5b 100644 --- a/graphics/nxglyphs/src/glyph_calculator24x25.cxx +++ b/graphics/nxglyphs/src/glyph_calculator24x25.cxx @@ -127,7 +127,7 @@ static const nxgl_mxpixel_t g_calculatorBrightLut[BITMAP_NLUTCODES] = # endif /* CONFIG_NXWIDGETS_GREYSCALE */ #else -# error "Unsupport pixel format" +# error "Unsupported pixel format" #endif static const struct SRlePaletteBitmapEntry g_calculatorRleEntries[] = diff --git a/graphics/nxglyphs/src/glyph_calibration24x21.cxx b/graphics/nxglyphs/src/glyph_calibration24x21.cxx index 685d2dd5c..e493c3351 100644 --- a/graphics/nxglyphs/src/glyph_calibration24x21.cxx +++ b/graphics/nxglyphs/src/glyph_calibration24x21.cxx @@ -138,7 +138,7 @@ static const nxgl_mxpixel_t g_calibrationSelectedLut[BITMAP_NLUTCODES] = # endif #else -# error "Unsupport pixel format" +# error "Unsupported pixel format" #endif static const struct SRlePaletteBitmapEntry g_calibrationRleEntries[] = diff --git a/graphics/nxglyphs/src/glyph_cmd25x22.cxx b/graphics/nxglyphs/src/glyph_cmd25x22.cxx index e2537fbae..e33410f0c 100644 --- a/graphics/nxglyphs/src/glyph_cmd25x22.cxx +++ b/graphics/nxglyphs/src/glyph_cmd25x22.cxx @@ -130,7 +130,7 @@ static const nxgl_mxpixel_t g_cmdBrightLut[BITMAP_NLUTCODES] = # endif #else -# error "Unsupport pixel format" +# error "Unsupported pixel format" #endif static const struct SRlePaletteBitmapEntry g_cmdRleEntries[] = diff --git a/graphics/nxglyphs/src/glyph_minimize21x21.cxx b/graphics/nxglyphs/src/glyph_minimize21x21.cxx index 50466b8cf..d2f2c39fc 100644 --- a/graphics/nxglyphs/src/glyph_minimize21x21.cxx +++ b/graphics/nxglyphs/src/glyph_minimize21x21.cxx @@ -131,7 +131,7 @@ static const uint8_t g_minimizeBrightLut[BITMAP_NLUTCODES] = # endif #else -# error "Unsupport pixel format" +# error "Unsupported pixel format" #endif static const struct SRlePaletteBitmapEntry g_minimizeRleEntries[] = diff --git a/graphics/nxglyphs/src/glyph_nxlogo160x160.cxx b/graphics/nxglyphs/src/glyph_nxlogo160x160.cxx index 0fdcdb26c..017464d89 100644 --- a/graphics/nxglyphs/src/glyph_nxlogo160x160.cxx +++ b/graphics/nxglyphs/src/glyph_nxlogo160x160.cxx @@ -153,7 +153,7 @@ static const nxgl_mxpixel_t g_nuttxLut[BITMAP_NLUTCODES] = # endif #else -# error "Unsupport pixel format" +# error "Unsupported pixel format" #endif #if CONFIG_NXWIDGETS_BPP == 24 || CONFIG_NXWIDGETS_BPP == 32 diff --git a/graphics/nxglyphs/src/glyph_nxlogo320x320.cxx b/graphics/nxglyphs/src/glyph_nxlogo320x320.cxx index 3daceb8fc..569856075 100644 --- a/graphics/nxglyphs/src/glyph_nxlogo320x320.cxx +++ b/graphics/nxglyphs/src/glyph_nxlogo320x320.cxx @@ -111,7 +111,7 @@ static const nxgl_mxpixel_t g_nuttxLut[BITMAP_NLUTCODES] = # endif #else -# error "Unsupport pixel format" +# error "Unsupported pixel format" #endif static const struct SRlePaletteBitmapEntry g_nuttxRleEntries[] = diff --git a/graphics/nxglyphs/src/glyph_play24x24.cxx b/graphics/nxglyphs/src/glyph_play24x24.cxx index d3ac2f530..819ac3818 100644 --- a/graphics/nxglyphs/src/glyph_play24x24.cxx +++ b/graphics/nxglyphs/src/glyph_play24x24.cxx @@ -207,7 +207,7 @@ static const nxgl_mxpixel_t g_playBrightLut[BITMAP_NLUTCODES] = # endif /* DARK_PLAY_ICON */ # endif /* CONFIG_NXWIDGETS_GREYSCALE */ #else -# error "Unsupport pixel format" +# error "Unsupported pixel format" #endif static const struct SRlePaletteBitmapEntry g_playRleEntries[] = diff --git a/graphics/nxglyphs/src/glyph_play48x48.cxx b/graphics/nxglyphs/src/glyph_play48x48.cxx index ccd680c99..10e26f1a7 100644 --- a/graphics/nxglyphs/src/glyph_play48x48.cxx +++ b/graphics/nxglyphs/src/glyph_play48x48.cxx @@ -209,7 +209,7 @@ static const nxgl_mxpixel_t g_playBrightLut[BITMAP_NLUTCODES] = # endif /* DARK_PLAY_ICON */ # endif /* CONFIG_NXWIDGETS_GREYSCALE */ #else -# error "Unsupport pixel format" +# error "Unsupported pixel format" #endif static const struct SRlePaletteBitmapEntry g_playRleEntries[] = diff --git a/graphics/nxglyphs/src/glyph_stop21x21.cxx b/graphics/nxglyphs/src/glyph_stop21x21.cxx index b2b94f7d4..c2de213da 100644 --- a/graphics/nxglyphs/src/glyph_stop21x21.cxx +++ b/graphics/nxglyphs/src/glyph_stop21x21.cxx @@ -135,7 +135,7 @@ static const uint8_t g_stopBrightLut[BITMAP_NLUTCODES] = # endif #else -# error "Unsupport pixel format" +# error "Unsupported pixel format" #endif static const struct SRlePaletteBitmapEntry g_stopRleEntries[] = diff --git a/graphics/nxwidgets/ChangeLog.txt b/graphics/nxwidgets/ChangeLog.txt index fc808792c..9e34210f0 100644 --- a/graphics/nxwidgets/ChangeLog.txt +++ b/graphics/nxwidgets/ChangeLog.txt @@ -10,7 +10,7 @@ for selected and non-selected images. * CImage: If selected, uses different LUTs based, different borders. CImage is now basically a button type. -* CImage: Add logic to hightlight an CImage (using the selected LUT). +* CImage: Add logic to highlight an CImage (using the selected LUT). * nxwm: The tiny NX window manager (NxWM) is being developed in this directory. * UnitTests/nxwm: A unit test for the NX window manager. * CWidgetControl: Add a semaphore to force clients to wait if the @@ -20,7 +20,7 @@ out in the 1.0 release but is verfied functional in 1.1. * CRlePalettBitmap: Fix an error in the text that determines if we need to "rewind" to the beginning of the image. -* CRlePalettBitmap: Fixe a positioning problem. It was actually losing +* CRlePalettBitmap: Fix a positioning problem. It was actually losing the last row of every image! * CNxWidget: Removed support for "shelving" widgets. I will be removing some lesser used feature over time in order to reduce the NxWidgets @@ -117,7 +117,7 @@ the widgets in the window (via CWidgetControl) or to an NxConsole (via nxcon_kbdin()). * NXWidgets::INxWindow, CBgWindow, CNxTkWindow, CNxToolbar, CNxWindow: - Now pass the CCallback intances as the callback argument instead of + Now pass the CCallback instances as the callback argument instead of the CWidgetControl instance. New method redirectNxConsole() will support redirection of any window keyboard input to the NxConsole (via CCallback). @@ -474,7 +474,7 @@ * NxWidgets::CImage: Should not attempt to draw the "empty" regions at the top and the bottom of the image box in greyscale (2014-7-17). * NxWM::CMediaPlayer: Fix some state-related bugs introduced yesterday. - Improved state-related button displayes. Now correctly catches and + Improved state-related button display. Now correctly catches and handles file selection events (2014-7-17). * NxWidgets::CImage: Cannot use NxWidgets::CGraphicsPort:drawBitmapGreyScale() because it does not respect transparent or background colors in its current @@ -569,7 +569,7 @@ incompatibility with versions of NuttX prior to 7.16 (2016-04-14). * UnitTests: Add Make.defs files to all UnitTests directories. This is required by the current apps/Makefile. Hmmm.. This means that no one - has built the NxWidgets packages in the last several realeases! + has built the NxWidgets packages in the last several releases! (2016-04-23). * UnitTests: Add some default definitions to handle the (unusual) case where 'make clean' is called with no .config or Make.defs file installed @@ -587,7 +587,7 @@ * Unittests: All Makefiles must provided a (dummy) prefconfig target to be compatible with changes to the apps/ configuration system that will be be released in NuttX-7.17 (2016-06-29). -* Changes to pre-processor include statments needed to handle reorganization +* Changes to pre-processor include statements needed to handle reorganization of the apps/include directory (2016-07-01). * Update include paths to adapt to changes made to apps/ include path logic (2016-07-22). diff --git a/graphics/nxwidgets/Doxygen/Doxyfile b/graphics/nxwidgets/Doxygen/Doxyfile index cd1f38e9b..45ab1094e 100644 --- a/graphics/nxwidgets/Doxygen/Doxyfile +++ b/graphics/nxwidgets/Doxygen/Doxyfile @@ -278,7 +278,7 @@ TYPEDEF_HIDES_STRUCT = NO # For small to medium size projects (<1000 input files) the default value is # probably good enough. For larger projects a too small cache size can cause # doxygen to be busy swapping symbols to and from disk most of the time -# causing a significant performance penality. +# causing a significant performance penalty. # 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 roughly double the diff --git a/graphics/nxwidgets/Doxygen/gendoc.sh b/graphics/nxwidgets/Doxygen/gendoc.sh index 48fb98a48..40b11534c 100755 --- a/graphics/nxwidgets/Doxygen/gendoc.sh +++ b/graphics/nxwidgets/Doxygen/gendoc.sh @@ -43,7 +43,7 @@ function ShowUsage() echo "USAGE: $0 " echo "" echo "Where:" - echo " is the full, absolut path to place the doxygen output" + echo " is the full, absolute path to place the doxygen output" echo "" } diff --git a/graphics/nxwidgets/Kconfig b/graphics/nxwidgets/Kconfig index 7a750af40..46cf936ca 100644 --- a/graphics/nxwidgets/Kconfig +++ b/graphics/nxwidgets/Kconfig @@ -25,7 +25,7 @@ config NXWIDGETS_FLICKERFREE updated, LCDs may be prone to "flicker" in the displays when Widgets 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 + lower-performance flicker-reductions measures where-ever they may be available. config NXWIDGET_SERVERINIT diff --git a/graphics/nxwidgets/ReleaseNotes.txt b/graphics/nxwidgets/ReleaseNotes.txt index 69eb5d6ca..5f6b9ba1c 100644 --- a/graphics/nxwidgets/ReleaseNotes.txt +++ b/graphics/nxwidgets/ReleaseNotes.txt @@ -37,7 +37,7 @@ headline new feature in this release is: menu and create as many NSH sessions in windows as you want. (keybard input still comes through serial). - This initial realease of NxWM should be considered an alpha release. + This initial release of NxWM should be considered an alpha release. All know issues are listed in the top-level TODO list. Other important new features include: @@ -126,7 +126,7 @@ Additional new features and extended functionality in Version 1.4: * NxWdigets::CNxServer: Reduce start-up delay * NxWM::CApplicationWindow: Option to eliminate minimize button. -* NxWM::CTaskbar: Option to eliminte the background image; highlight current +* NxWM::CTaskbar: Option to eliminate the background image; highlight current icon in the task bar. * NxWidgets::CNumericEdit: New widget. Basically a CLabel with +/- buttons. * NxWidgets::CNxTimer: Replace the original signal-based solution with a @@ -532,7 +532,7 @@ Bugfixes\: incompatibility with versions of NuttX prior to 7.16. * UnitTests: Add Make.defs files to all UnitTests directories. This is required by the current apps/Makefile. Hmmm.. This means that no one - has built the NxWidgets packages in the last several realeases! + has built the NxWidgets packages in the last several releases! * UnitTests: Add some default definitions to handle the (unusual) case where 'make clean' is called with no .config or Make.defs file installed @@ -555,7 +555,7 @@ Additional new features and extended functionality in Version 1.17: info(), warn(), and err(). - Changes to Unittests/ Makefiles to deal with changes in the apps/ build system. - - Changes to pre-processor include statments needed to handle + - Changes to pre-processor include statements needed to handle reorganization of the apps/include directory. - Update include paths to adapt to changes made to apps/ include path logic diff --git a/graphics/nxwidgets/UnitTests/CButton/cbuttontest.cxx b/graphics/nxwidgets/UnitTests/CButton/cbuttontest.cxx index 7657bb1ce..07200c45c 100644 --- a/graphics/nxwidgets/UnitTests/CButton/cbuttontest.cxx +++ b/graphics/nxwidgets/UnitTests/CButton/cbuttontest.cxx @@ -268,7 +268,7 @@ void CButtonTest::showButton(CButton *button) // Perform a simulated mouse click on the button. This method injects // the mouse click through the NX hierarchy just as would real mouse -// hardward. +// hardware. void CButtonTest::click(void) { diff --git a/graphics/nxwidgets/UnitTests/CButton/cbuttontest.hxx b/graphics/nxwidgets/UnitTests/CButton/cbuttontest.hxx index bc4479663..46d4da1d4 100644 --- a/graphics/nxwidgets/UnitTests/CButton/cbuttontest.hxx +++ b/graphics/nxwidgets/UnitTests/CButton/cbuttontest.hxx @@ -128,7 +128,7 @@ public: // Perform a simulated mouse click on the button. This method injects // the mouse click through the NX hierarchy just as would real mouse - // hardward. + // hardware. void click(void); diff --git a/graphics/nxwidgets/UnitTests/CButtonArray/cbuttonarraytest.cxx b/graphics/nxwidgets/UnitTests/CButtonArray/cbuttonarraytest.cxx index 641be2714..d443c14ca 100644 --- a/graphics/nxwidgets/UnitTests/CButtonArray/cbuttonarraytest.cxx +++ b/graphics/nxwidgets/UnitTests/CButtonArray/cbuttonarraytest.cxx @@ -230,7 +230,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 hierarchy just as would real mouse -// hardward. +// hardware. void CButtonArrayTest::click(CButtonArray *buttonArray, int column, int row) { @@ -244,7 +244,7 @@ void CButtonArrayTest::click(CButtonArray *buttonArray, int column, int row) NXHANDLE handle = getServer(); - // The the coorinates of the center of the button + // The the coordinates of the center of the button nxgl_coord_t buttonX = buttonArray->getX() + column * BUTTONARRAY_BUTTONWIDTH + @@ -273,7 +273,7 @@ void CButtonArrayTest::release(CButtonArray *buttonArray, int column, int row) NXHANDLE handle = getServer(); - // The the coorinates of the center of the button + // The the coordinates of the center of the button nxgl_coord_t buttonX = buttonArray->getX() + column * BUTTONARRAY_BUTTONWIDTH + diff --git a/graphics/nxwidgets/UnitTests/CButtonArray/cbuttonarraytest.hxx b/graphics/nxwidgets/UnitTests/CButtonArray/cbuttonarraytest.hxx index 10003f17d..50c297e6d 100644 --- a/graphics/nxwidgets/UnitTests/CButtonArray/cbuttonarraytest.hxx +++ b/graphics/nxwidgets/UnitTests/CButtonArray/cbuttonarraytest.hxx @@ -134,7 +134,7 @@ public: // Perform a simulated mouse click on a button in the array. This method injects // the mouse click through the NX hierarchy just as would real mouse - // hardward. + // hardware. 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 6506dd943..0d2592856 100644 --- a/graphics/nxwidgets/UnitTests/CGlyphButton/cglyphbuttontest.cxx +++ b/graphics/nxwidgets/UnitTests/CGlyphButton/cglyphbuttontest.cxx @@ -250,7 +250,7 @@ void CGlyphButtonTest::showButton(CGlyphButton *button) // Perform a simulated mouse click on the button. This method injects // the mouse click through the NX hierarchy just as would real mouse -// hardward. +// hardware. void CGlyphButtonTest::click(void) { diff --git a/graphics/nxwidgets/UnitTests/CGlyphButton/cglyphbuttontest.hxx b/graphics/nxwidgets/UnitTests/CGlyphButton/cglyphbuttontest.hxx index 41da3ef14..bc3f4b387 100644 --- a/graphics/nxwidgets/UnitTests/CGlyphButton/cglyphbuttontest.hxx +++ b/graphics/nxwidgets/UnitTests/CGlyphButton/cglyphbuttontest.hxx @@ -134,7 +134,7 @@ public: // Perform a simulated mouse click on the button. This method injects // the mouse click through the NX hierarchy just as would real mouse - // hardward. + // hardware. void click(void); diff --git a/graphics/nxwidgets/UnitTests/CKeypad/ckeypadtest.cxx b/graphics/nxwidgets/UnitTests/CKeypad/ckeypadtest.cxx index 6b062c0b0..3f9eab7f4 100644 --- a/graphics/nxwidgets/UnitTests/CKeypad/ckeypadtest.cxx +++ b/graphics/nxwidgets/UnitTests/CKeypad/ckeypadtest.cxx @@ -348,7 +348,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 hierarchy just as would real mouse -// hardward. +// hardware. void CKeypadTest::click(CKeypad *keypad, int column, int row) { @@ -362,7 +362,7 @@ void CKeypadTest::click(CKeypad *keypad, int column, int row) NXHANDLE handle = getServer(); - // The the coorinates of the center of the button + // The the coordinates of the center of the button nxgl_coord_t buttonX = keypad->getX() + column * m_buttonWidth + (m_buttonWidth >> 1); nxgl_coord_t buttonY = keypad->getY() + row * m_buttonHeight + (m_buttonHeight >> 1); @@ -387,7 +387,7 @@ void CKeypadTest::release(CKeypad *keypad, int column, int row) NXHANDLE handle = getServer(); - // The the coorinates of the center of the button + // The the coordinates of the center of the button nxgl_coord_t buttonX = keypad->getX() + column * m_buttonWidth + diff --git a/graphics/nxwidgets/UnitTests/CKeypad/ckeypadtest.hxx b/graphics/nxwidgets/UnitTests/CKeypad/ckeypadtest.hxx index 77c67ffb0..15c9a73ed 100644 --- a/graphics/nxwidgets/UnitTests/CKeypad/ckeypadtest.hxx +++ b/graphics/nxwidgets/UnitTests/CKeypad/ckeypadtest.hxx @@ -145,7 +145,7 @@ public: // Perform a simulated mouse click on a button in the array. This method injects // the mouse click through the NX hierarchy just as would real mouse - // hardward. + // hardware. 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 e94505dde..314d19342 100644 --- a/graphics/nxwidgets/UnitTests/CLatchButton/clatchbuttontest.cxx +++ b/graphics/nxwidgets/UnitTests/CLatchButton/clatchbuttontest.cxx @@ -269,7 +269,7 @@ void CLatchButtonTest::showButton(CLatchButton *button) // Perform a simulated mouse click on the button. This method injects // the mouse click through the NX hierarchy just as would real mouse -// hardward. +// hardware. void CLatchButtonTest::click(void) { diff --git a/graphics/nxwidgets/UnitTests/CLatchButton/clatchbuttontest.hxx b/graphics/nxwidgets/UnitTests/CLatchButton/clatchbuttontest.hxx index 1039e07dd..79a7530b6 100644 --- a/graphics/nxwidgets/UnitTests/CLatchButton/clatchbuttontest.hxx +++ b/graphics/nxwidgets/UnitTests/CLatchButton/clatchbuttontest.hxx @@ -128,7 +128,7 @@ public: // Perform a simulated mouse click on the button. This method injects // the mouse click through the NX hierarchy just as would real mouse - // hardward. + // hardware. void click(void); diff --git a/graphics/nxwidgets/UnitTests/CLatchButtonArray/clatchbuttonarraytest.cxx b/graphics/nxwidgets/UnitTests/CLatchButtonArray/clatchbuttonarraytest.cxx index 2fbf9a76d..57bd4e319 100644 --- a/graphics/nxwidgets/UnitTests/CLatchButtonArray/clatchbuttonarraytest.cxx +++ b/graphics/nxwidgets/UnitTests/CLatchButtonArray/clatchbuttonarraytest.cxx @@ -230,7 +230,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 hierarchy just as would real mouse -// hardward. +// hardware. void CLatchButtonArrayTest::click(CLatchButtonArray *buttonArray, int column, int row) { @@ -244,7 +244,7 @@ void CLatchButtonArrayTest::click(CLatchButtonArray *buttonArray, int column, in NXHANDLE handle = getServer(); - // The the coorinates of the center of the button + // The the coordinates of the center of the button nxgl_coord_t buttonX = buttonArray->getX() + column * BUTTONARRAY_BUTTONWIDTH + @@ -273,7 +273,7 @@ void CLatchButtonArrayTest::release(CLatchButtonArray *buttonArray, int column, NXHANDLE handle = getServer(); - // The the coorinates of the center of the button + // The the coordinates of the center of the button nxgl_coord_t buttonX = buttonArray->getX() + column * BUTTONARRAY_BUTTONWIDTH + diff --git a/graphics/nxwidgets/UnitTests/CLatchButtonArray/clatchbuttonarraytest.hxx b/graphics/nxwidgets/UnitTests/CLatchButtonArray/clatchbuttonarraytest.hxx index 98193a41a..837609fce 100644 --- a/graphics/nxwidgets/UnitTests/CLatchButtonArray/clatchbuttonarraytest.hxx +++ b/graphics/nxwidgets/UnitTests/CLatchButtonArray/clatchbuttonarraytest.hxx @@ -134,7 +134,7 @@ public: // Perform a simulated mouse click on a button in the array. This method injects // the mouse click through the NX hierarchy just as would real mouse - // hardward. + // hardware. void click(CLatchButtonArray *buttonArray, int column, int row); diff --git a/graphics/nxwidgets/UnitTests/CRadioButton/cradiobuttontest.cxx b/graphics/nxwidgets/UnitTests/CRadioButton/cradiobuttontest.cxx index 51ec6d9dc..9ccb6a3ef 100644 --- a/graphics/nxwidgets/UnitTests/CRadioButton/cradiobuttontest.cxx +++ b/graphics/nxwidgets/UnitTests/CRadioButton/cradiobuttontest.cxx @@ -224,7 +224,7 @@ CRadioButton *CRadioButtonTest::newRadioButton(void) } } - // Create the new radio button at the botton of the radio button group and + // Create the new radio button at the bottom of the radio button group and // with the size of the ON radio button glyph (they all need to be the same // size!). Note that coordinates are relative to the parent bounding box. diff --git a/graphics/nxwidgets/doc/mainpage.h b/graphics/nxwidgets/doc/mainpage.h index 53c1c7bba..581667588 100644 --- a/graphics/nxwidgets/doc/mainpage.h +++ b/graphics/nxwidgets/doc/mainpage.h @@ -2,7 +2,7 @@ * * In order to better support NuttX based platforms, a special graphical user * interface has been created called NXWidgets. NXWidgets is written in C++ - * and integrates seamlessly with the NuttX NX graphics subystem in order to + * and integrates seamlessly with the NuttX NX graphics subsystem in order to * provide graphic objects, or "widgets", in the * NX Graphics Subsystem. @@ -17,7 +17,7 @@ * * \subsection nx_integration NX Integration * - * Integrates seamlessly with the NX graphics subsytem. Think of the X + * Integrates seamlessly with the NX graphics subsystem. Think of the X * server under Linux... the NX graphics subsystem is like a tiny X server * that provides windowing under NuttX. By adding NXWidgets, you can * support graphic objects like buttons and text boxes in the NX windows diff --git a/graphics/nxwidgets/src/cbuttonarray.cxx b/graphics/nxwidgets/src/cbuttonarray.cxx index f11e84e21..73458b497 100644 --- a/graphics/nxwidgets/src/cbuttonarray.cxx +++ b/graphics/nxwidgets/src/cbuttonarray.cxx @@ -100,7 +100,7 @@ CButtonArray::CButtonArray(CWidgetControl *pWidgetControl, m_redrawButton = false; - // No hightlighted buttons + // No highlighted buttons m_cursorOn = false; m_cursorChange = false; @@ -291,7 +291,7 @@ void CButtonArray::cursor(bool cursorOn) /** * Return the current cursor position (button indices) and an indication - * if the button at the cursor is currently hightlighted. + * if the button at the cursor is currently highlighted. * * @param column The location to return the column index of the button * of interest @@ -348,7 +348,7 @@ bool CButtonArray::setCursorPosition(int column, int row) if (redrawCursor) { - // Yes.. Set the new cursor hightlight + // Yes.. Set the new cursor highlight m_cursorOn = true; redraw(); @@ -433,7 +433,7 @@ void CButtonArray::drawContents(CGraphicsPort *port) drawButton(port, column, row, isClicked()); } - // Do we just draw the hightlighted button? + // Do we just draw the highlighted button? else if (m_cursorChange) { @@ -503,7 +503,7 @@ void CButtonArray::drawButton(CGraphicsPort *port, int column, int row, bool use nxwidget_pixel_t backColor; nxwidget_pixel_t textColor; - // Pick the background and test colors. Should we use the 'clicked' backgound style? + // Pick the background and test colors. Should we use the 'clicked' background style? if (useClicked || isCursorPosition(column, row)) { diff --git a/graphics/nxwidgets/src/ccallback.cxx b/graphics/nxwidgets/src/ccallback.cxx index 839063407..8d91a949e 100644 --- a/graphics/nxwidgets/src/ccallback.cxx +++ b/graphics/nxwidgets/src/ccallback.cxx @@ -344,14 +344,14 @@ void CCallback::windowEvent(NXWINDOW hwnd, enum nx_event_e event, switch (event) { - case NXEVENT_SYNCHED: // Server is syncrhonized + case NXEVENT_SYNCHED: // Server is synchronized { // The second argument must be the CCallback instance CCallback *This = (CCallback *)arg2; DEBUGASSERT(This != NULL); - // We are now syncrhonized + // We are now synchronized This->m_synchronized = true; sem_post(&This->m_semevent); diff --git a/graphics/nxwidgets/src/cgraphicsport.cxx b/graphics/nxwidgets/src/cgraphicsport.cxx index 4252dcdce..e6e011555 100644 --- a/graphics/nxwidgets/src/cgraphicsport.cxx +++ b/graphics/nxwidgets/src/cgraphicsport.cxx @@ -613,7 +613,7 @@ void CGraphicsPort::drawText(struct nxgl_point_s *pos, CRect *bound, } /** - * Draw a particular length of a string to the window in a secific color. + * Draw a particular length of a string to the window in a specific color. * * @param pos The window-relative x/y coordinate of the string. * @param bound The window-relative bounds of the string. diff --git a/graphics/nxwidgets/src/cnxwidget.cxx b/graphics/nxwidgets/src/cnxwidget.cxx index 5461471c0..d0ed322f5 100644 --- a/graphics/nxwidgets/src/cnxwidget.cxx +++ b/graphics/nxwidgets/src/cnxwidget.cxx @@ -226,7 +226,7 @@ CNxWidget::~CNxWidget(void) m_children[0]->destroy(); } - // Remove ourselve from the controlled widget list + // Remove ourselves from the controlled widget list m_widgetControl->removeControlledWidget(this); @@ -980,7 +980,7 @@ bool CNxWidget::blur(void) /** * Move the widget to the new coordinates. - * Co-ordinates are relative to the parent widget. + * Coordinates are relative to the parent widget. * * @param x The new x coordinate. * @param y The new y coordinate. diff --git a/graphics/nxwidgets/src/crect.cxx b/graphics/nxwidgets/src/crect.cxx index d67826259..f51a490eb 100644 --- a/graphics/nxwidgets/src/crect.cxx +++ b/graphics/nxwidgets/src/crect.cxx @@ -231,7 +231,7 @@ void CRect::setY2(nxgl_coord_t y2) } /** - * Populates dest with a rectangle representating the intersection + * Populates dest with a rectangle representing the intersection * of this rectangle and rect. * * @param rect The rectangle to intersect with this. @@ -252,7 +252,7 @@ void CRect::getIntersect(const CRect &rect, CRect &dest) const } /** - * Populates dest with a rectangle representating the smallest + * Populates dest with a rectangle representing the smallest * rectangle that contains this rectangle and rect. * * @param rect The rectangle to add to this. diff --git a/graphics/nxwidgets/src/cstickybuttonarray.cxx b/graphics/nxwidgets/src/cstickybuttonarray.cxx index ec306e296..392b7bfe6 100644 --- a/graphics/nxwidgets/src/cstickybuttonarray.cxx +++ b/graphics/nxwidgets/src/cstickybuttonarray.cxx @@ -243,7 +243,7 @@ void CStickyButtonArray::drawContents(CGraphicsPort *port) } } - // Do we just draw the hightlighted button? + // Do we just draw the highlighted button? else if (m_cursorChange) { diff --git a/graphics/nxwidgets/src/cwidgetcontrol.cxx b/graphics/nxwidgets/src/cwidgetcontrol.cxx index 1b47f2da1..a6b35fe15 100644 --- a/graphics/nxwidgets/src/cwidgetcontrol.cxx +++ b/graphics/nxwidgets/src/cwidgetcontrol.cxx @@ -107,7 +107,7 @@ CWidgetControl::CWidgetControl(FAR const CWidgetStyle *style) m_nCh = 0; m_nCc = 0; - // Intialize semaphores: + // Initialize semaphores: // // m_waitSem. The semaphore that will wake up the external logic on mouse events, // keypress events, or widget deletion events. @@ -927,8 +927,8 @@ void CWidgetControl::takeGeoSem(void) } /** - * Check if geomtry data is available. If not, [re-]request the - * geomtry data and wait for it to become valid. + * Check if geometry data is available. If not, [re-]request the + * geometry data and wait for it to become valid. * * CAREFUL: This assumes that if we already have geometry data, then * it is valid. This might not be true if the size position was diff --git a/graphics/nxwidgets/src/cwindoweventhandlerlist.cxx b/graphics/nxwidgets/src/cwindoweventhandlerlist.cxx index 6f5ffb435..6d55df624 100644 --- a/graphics/nxwidgets/src/cwindoweventhandlerlist.cxx +++ b/graphics/nxwidgets/src/cwindoweventhandlerlist.cxx @@ -149,7 +149,7 @@ void CWindowEventHandlerList::raiseMouseEvent(FAR const struct nxgl_point_s *pos #ifdef CONFIG_NX_KBD /** - * Raise an NX keybord input event + * Raise an NX keyboard input event */ void CWindowEventHandlerList::raiseKeyboardEvent(void) diff --git a/graphics/nxwm/COPYING b/graphics/nxwm/COPYING index 0f9a9db15..fd6a0362f 100644 --- a/graphics/nxwm/COPYING +++ b/graphics/nxwm/COPYING @@ -2,7 +2,7 @@ COPYING -- Describes the terms under which NxWM is distributed. A copy of the BSD-style licensing is included in this file. In my words -- I believe that you should free to use NxWM in any environment, private, private, commercial, open, closed, etc. -provided only that you repect the modest copyright notices as +provided only that you respect the modest copyright notices as described in license (below). Please feel free to contact me if you have any licensing concerns. diff --git a/graphics/nxwm/ChangeLog.txt b/graphics/nxwm/ChangeLog.txt index fc808792c..9e34210f0 100644 --- a/graphics/nxwm/ChangeLog.txt +++ b/graphics/nxwm/ChangeLog.txt @@ -10,7 +10,7 @@ for selected and non-selected images. * CImage: If selected, uses different LUTs based, different borders. CImage is now basically a button type. -* CImage: Add logic to hightlight an CImage (using the selected LUT). +* CImage: Add logic to highlight an CImage (using the selected LUT). * nxwm: The tiny NX window manager (NxWM) is being developed in this directory. * UnitTests/nxwm: A unit test for the NX window manager. * CWidgetControl: Add a semaphore to force clients to wait if the @@ -20,7 +20,7 @@ out in the 1.0 release but is verfied functional in 1.1. * CRlePalettBitmap: Fix an error in the text that determines if we need to "rewind" to the beginning of the image. -* CRlePalettBitmap: Fixe a positioning problem. It was actually losing +* CRlePalettBitmap: Fix a positioning problem. It was actually losing the last row of every image! * CNxWidget: Removed support for "shelving" widgets. I will be removing some lesser used feature over time in order to reduce the NxWidgets @@ -117,7 +117,7 @@ the widgets in the window (via CWidgetControl) or to an NxConsole (via nxcon_kbdin()). * NXWidgets::INxWindow, CBgWindow, CNxTkWindow, CNxToolbar, CNxWindow: - Now pass the CCallback intances as the callback argument instead of + Now pass the CCallback instances as the callback argument instead of the CWidgetControl instance. New method redirectNxConsole() will support redirection of any window keyboard input to the NxConsole (via CCallback). @@ -474,7 +474,7 @@ * NxWidgets::CImage: Should not attempt to draw the "empty" regions at the top and the bottom of the image box in greyscale (2014-7-17). * NxWM::CMediaPlayer: Fix some state-related bugs introduced yesterday. - Improved state-related button displayes. Now correctly catches and + Improved state-related button display. Now correctly catches and handles file selection events (2014-7-17). * NxWidgets::CImage: Cannot use NxWidgets::CGraphicsPort:drawBitmapGreyScale() because it does not respect transparent or background colors in its current @@ -569,7 +569,7 @@ incompatibility with versions of NuttX prior to 7.16 (2016-04-14). * UnitTests: Add Make.defs files to all UnitTests directories. This is required by the current apps/Makefile. Hmmm.. This means that no one - has built the NxWidgets packages in the last several realeases! + has built the NxWidgets packages in the last several releases! (2016-04-23). * UnitTests: Add some default definitions to handle the (unusual) case where 'make clean' is called with no .config or Make.defs file installed @@ -587,7 +587,7 @@ * Unittests: All Makefiles must provided a (dummy) prefconfig target to be compatible with changes to the apps/ configuration system that will be be released in NuttX-7.17 (2016-06-29). -* Changes to pre-processor include statments needed to handle reorganization +* Changes to pre-processor include statements needed to handle reorganization of the apps/include directory (2016-07-01). * Update include paths to adapt to changes made to apps/ include path logic (2016-07-22). diff --git a/graphics/nxwm/Doxygen/Doxyfile b/graphics/nxwm/Doxygen/Doxyfile index cd1f38e9b..45ab1094e 100644 --- a/graphics/nxwm/Doxygen/Doxyfile +++ b/graphics/nxwm/Doxygen/Doxyfile @@ -278,7 +278,7 @@ TYPEDEF_HIDES_STRUCT = NO # For small to medium size projects (<1000 input files) the default value is # probably good enough. For larger projects a too small cache size can cause # doxygen to be busy swapping symbols to and from disk most of the time -# causing a significant performance penality. +# causing a significant performance penalty. # 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 roughly double the diff --git a/graphics/nxwm/Doxygen/gendoc.sh b/graphics/nxwm/Doxygen/gendoc.sh index 27b2fb94c..8869c5175 100644 --- a/graphics/nxwm/Doxygen/gendoc.sh +++ b/graphics/nxwm/Doxygen/gendoc.sh @@ -43,7 +43,7 @@ function ShowUsage() echo "USAGE: $0 " echo "" echo "Where:" - echo " is the full, absolut path to place the doxygen output" + echo " is the full, absolute path to place the doxygen output" echo "" } diff --git a/graphics/nxwm/Kconfig b/graphics/nxwm/Kconfig index fc140cdfe..28683786a 100644 --- a/graphics/nxwm/Kconfig +++ b/graphics/nxwm/Kconfig @@ -346,7 +346,7 @@ config NXWM_STARTWINDOW_MXMSGS int "Max Messages" default 32 ---help--- - The maximum number of messages to queue before blocking. Defualt 32 + The maximum number of messages to queue before blocking. Default 32 config NXWM_STARTWINDOW_MXMPRIO int "Message Priority" @@ -694,7 +694,7 @@ config NXWM_CALIBRATION_ANISOTROPIC default n ---help--- Most touchscreens have the property that the X value consistent across - the entire vertial range of the display, i.e., if you press in the + the entire vertical range of the display, i.e., if you press in the upper left of the display and in the low right of the display, then only the Y value will change. This is true of some touchscreens: For some touchscreens the X values in the same vertical column will @@ -719,7 +719,7 @@ config NXWM_CUSTOM_CALIBRATION_ICON if NXWM_CUSTOM_CALIBRATION_ICON config NXWM_CALIBRATION_ICON - string "Callibration Icon" + string "Calibration Icon" default "NXWidgets::g_calibrationBitmap" ---help--- The ICON to use for the touchscreen calibration application. Default: @@ -754,7 +754,7 @@ config NXWM_HEXCALCULATOR_CUSTOM_COLORS bool "Custom Hex Calculator Colors" default n ---help--- - Select custom default colors for the Hex Calcualtor window. If + Select custom default colors for the Hex Calculator window. If defined, the hexadecimal values for all hex calculator colors must be provided (there are no default colors because the hexadecimal representation of the default colors depend on the diff --git a/graphics/nxwm/ReleaseNotes.txt b/graphics/nxwm/ReleaseNotes.txt index 69eb5d6ca..5f6b9ba1c 100644 --- a/graphics/nxwm/ReleaseNotes.txt +++ b/graphics/nxwm/ReleaseNotes.txt @@ -37,7 +37,7 @@ headline new feature in this release is: menu and create as many NSH sessions in windows as you want. (keybard input still comes through serial). - This initial realease of NxWM should be considered an alpha release. + This initial release of NxWM should be considered an alpha release. All know issues are listed in the top-level TODO list. Other important new features include: @@ -126,7 +126,7 @@ Additional new features and extended functionality in Version 1.4: * NxWdigets::CNxServer: Reduce start-up delay * NxWM::CApplicationWindow: Option to eliminate minimize button. -* NxWM::CTaskbar: Option to eliminte the background image; highlight current +* NxWM::CTaskbar: Option to eliminate the background image; highlight current icon in the task bar. * NxWidgets::CNumericEdit: New widget. Basically a CLabel with +/- buttons. * NxWidgets::CNxTimer: Replace the original signal-based solution with a @@ -532,7 +532,7 @@ Bugfixes\: incompatibility with versions of NuttX prior to 7.16. * UnitTests: Add Make.defs files to all UnitTests directories. This is required by the current apps/Makefile. Hmmm.. This means that no one - has built the NxWidgets packages in the last several realeases! + has built the NxWidgets packages in the last several releases! * UnitTests: Add some default definitions to handle the (unusual) case where 'make clean' is called with no .config or Make.defs file installed @@ -555,7 +555,7 @@ Additional new features and extended functionality in Version 1.17: info(), warn(), and err(). - Changes to Unittests/ Makefiles to deal with changes in the apps/ build system. - - Changes to pre-processor include statments needed to handle + - Changes to pre-processor include statements needed to handle reorganization of the apps/include directory. - Update include paths to adapt to changes made to apps/ include path logic diff --git a/graphics/nxwm/TODO.txt b/graphics/nxwm/TODO.txt index 03ad4fcfb..684869528 100644 --- a/graphics/nxwm/TODO.txt +++ b/graphics/nxwm/TODO.txt @@ -71,13 +71,13 @@ o CMediaPlayer Issues Priority: Low for now Title: PLAY PROGRESS FEEDBACK - Decription: Need a way to know the position in the file, how long the + Description: Need a way to know the position in the file, how long the file is (in minutes), and an indication when playing complete. Status: Open Priorit: Medium. Certain affect usability. - Title: NO BALANCE/TONE/EQUALIZER CONTORLS + Title: NO BALANCE/TONE/EQUALIZER CONTROLS Description: The title says it all Status: Open Priority: Medium. That is big functional limitation. diff --git a/graphics/nxwm/src/cmediaplayer.cxx b/graphics/nxwm/src/cmediaplayer.cxx index 5dc3145b7..1e5d36767 100644 --- a/graphics/nxwm/src/cmediaplayer.cxx +++ b/graphics/nxwm/src/cmediaplayer.cxx @@ -897,7 +897,7 @@ bool CMediaPlayer::createPlayer(void) m_play->addWidgetEventHandler(this); - // Create the Pause image (at the same position ans size as the Play image) + // Create the Pause image (at the same position and size as the Play image) m_pause = new NXWidgets:: CImage(control, playControlX, controlTop, playControlW, controlH, diff --git a/graphics/nxwm/src/cnxterm.cxx b/graphics/nxwm/src/cnxterm.cxx index a20fb016a..8273b69e5 100644 --- a/graphics/nxwm/src/cnxterm.cxx +++ b/graphics/nxwm/src/cnxterm.cxx @@ -498,7 +498,7 @@ int CNxTerm::nxterm(int argc, char *argv[]) // Now re-direct stdout and stderr so that they use the NX console driver. // Notes: (1) stdin is retained (file descriptor 0, probably the the serial // console). (2) Don't bother trying to put debug instrumentation in the - // following becaue it will end up in the NxTerm window. + // following because it will end up in the NxTerm window. std::fflush(stdout); std::fflush(stderr); diff --git a/graphics/nxwm/src/cstartwindow.cxx b/graphics/nxwm/src/cstartwindow.cxx index 4be9e8f1a..7c94c1366 100644 --- a/graphics/nxwm/src/cstartwindow.cxx +++ b/graphics/nxwm/src/cstartwindow.cxx @@ -216,7 +216,7 @@ void CStartWindow::hide(void) /** * Redraw the entire window. The application has been maximized or - * otherwise moved to the top of the hiearchy + * otherwise moved to the top of the hierarchy */ void CStartWindow::redraw(void) diff --git a/graphics/nxwm/src/ctouchscreen.cxx b/graphics/nxwm/src/ctouchscreen.cxx index 2ab620446..19253b2ac 100644 --- a/graphics/nxwm/src/ctouchscreen.cxx +++ b/graphics/nxwm/src/ctouchscreen.cxx @@ -383,7 +383,7 @@ FAR void *CTouchscreen::listener(FAR void *arg) } /** - * Inject touchscreen data into NX as mouse intput + * Inject touchscreen data into NX as mouse input */ void CTouchscreen::handleMouseInput(struct touch_sample_s *sample) diff --git a/graphics/nxwm/src/nxwm_main.cxx b/graphics/nxwm/src/nxwm_main.cxx index 4dfcad020..0436a8bb7 100644 --- a/graphics/nxwm/src/nxwm_main.cxx +++ b/graphics/nxwm/src/nxwm_main.cxx @@ -124,7 +124,7 @@ static void testCleanUpAndExit(int exitCode) // Delete the task bar then the start window. the order is important because // we must bet all of the application references out of the task bar before // deleting the start window. When the start window is deleted, it will - // also delete of of the resouces contained within the start window. + // also delete of of the resources contained within the start window. if (g_nxwmtest.taskbar) { @@ -184,7 +184,7 @@ static bool createTaskbar(void) printf("createTaskbar: Initialize CTaskbar instance\n"); if (!g_nxwmtest.taskbar->initWindowManager()) { - printf("createTaskbar: ERROR: Failed to intialize CTaskbar instance\n"); + printf("createTaskbar: ERROR: Failed to initialize CTaskbar instance\n"); return false; } diff --git a/graphics/pdcurs34/HISTORY b/graphics/pdcurs34/HISTORY index 93d4a8124..ecefd1845 100644 --- a/graphics/pdcurs34/HISTORY +++ b/graphics/pdcurs34/HISTORY @@ -105,7 +105,7 @@ Bug fixes and such: cursor position is changed, even if there are no other changes. - Set SP->audible on a per-platform basis, as was documented in - IMPLEMNT, but not actually being done. + IMPLEMENT, but not actually being done. - Minor tweaks for efficiency and readability, notably with wscrl(). @@ -278,7 +278,7 @@ Bug fixes and such: - Moved RIPPEDOFFLINE to curspriv.h. -- Typos in IMPLEMNT. +- Typos in IMPLEMENT. ------------------------------------------------------------------------ @@ -366,7 +366,7 @@ New features: and either the static lib or DLL is built, not both at once (except for X11). -- A new document, IMPLEMNT, describing PDCurses' internal functions for +- A new document, IMPLEMENT, describing PDCurses' internal functions for those wishing to port it to new platforms. - Mark Hessling has released the X11 port to the public domain. @@ -1279,7 +1279,7 @@ EXTRA OPTIONS: ACKNOWLEDGEMENTS: (for this release) - Pieter Kunst, David Nugent, Warren Tucker, Darin Haugen, Stefan Strack, + Pieter Kunst, David Nugent, Warren Tucker, Darin Haugen, Stefan Stack, Wade Schauer and others who either alerted me to bugs or supplied fixes. @@ -1343,7 +1343,7 @@ OTHER NOTES: overlay() and overwrite() - Both of theses functions in PDCurses 2.0 allowed for one window to be + Both of these functions in PDCurses 2.0 allowed for one window to be effectively placed on top of another, and the characters in the first window were overlaid or overwritten starting at 0,0 in both windows. This behavior of these functions was not correct. These functions only diff --git a/graphics/pdcurs34/IMPLEMNT b/graphics/pdcurs34/IMPLEMNT index adbccae67..a5fa8f3e4 100644 --- a/graphics/pdcurs34/IMPLEMNT +++ b/graphics/pdcurs34/IMPLEMNT @@ -287,7 +287,7 @@ This is the core delay routine, called by napms(). It pauses for about (the X/Open spec says "at least") ms milliseconds, then returns. High degrees of accuracy and precision are not expected (though desirable, if you can achieve them). More important is that this function gives back -the process' time slice to the OS, so that PDCurses idles at low CPU +the process time slice to the OS, so that PDCurses idles at low CPU usage. const char *PDC_sysname(void); diff --git a/graphics/pdcurs34/Kconfig b/graphics/pdcurs34/Kconfig index d31c9ea13..ac3a986a2 100644 --- a/graphics/pdcurs34/Kconfig +++ b/graphics/pdcurs34/Kconfig @@ -10,7 +10,7 @@ menuconfig GRAPHICS_PDCURSES select NXFONTS_PACKEDMSFIRST select LCD_PACKEDMSFIRST if LCD ---help--- - Enable support for the pdcurses Text User Interface (TUI) libray. + Enable support for the pdcurses Text User Interface (TUI) library. if GRAPHICS_PDCURSES source "$APPSDIR/graphics/pdcurs34/pdcurses/Kconfig" diff --git a/graphics/pdcurs34/nuttx/pdcdisp.c b/graphics/pdcurs34/nuttx/pdcdisp.c index 49461c1cd..01a1ea244 100644 --- a/graphics/pdcurs34/nuttx/pdcdisp.c +++ b/graphics/pdcurs34/nuttx/pdcdisp.c @@ -524,7 +524,7 @@ static void PDC_update(FAR struct pdc_fbstate_s *fbstate, int row, int col, rect.pt2.x = rect.pt1.x + nchars * fbstate->fwidth - 1; rect.pt2.y = rect.pt1.y + fbstate->fheight - 1; - /* Then perfom the update via IOCTL */ + /* Then perform the update via IOCTL */ ret = ioctl(fbstate->fbfd, FBIO_UPDATE, (unsigned long)((uintptr_t)&rect)); @@ -569,7 +569,7 @@ static void PDC_putc(FAR struct pdc_fbstate_s *fbstate, int row, int col, return; } - /* Get the forground and background colors of the character */ + /* Get the foreground and background colors of the character */ PDC_pair_content(PAIR_NUMBER(ch), &fg, &bg); @@ -1074,7 +1074,7 @@ void PDC_clear_screen(FAR struct pdc_fbstate_s *fbstate) rect.pt2.x = fbstate->xres - 1; rect.pt2.y = fbstate->yres - 1; - /* Then perfom the update via IOCTL */ + /* Then perform the update via IOCTL */ ret = ioctl(fbstate->fbfd, FBIO_UPDATE, (unsigned long)((uintptr_t)&rect)); if (ret < 0) diff --git a/graphics/pdcurs34/nuttx/pdcnuttx.h b/graphics/pdcurs34/nuttx/pdcnuttx.h index 4464b9882..aeb7a398d 100644 --- a/graphics/pdcurs34/nuttx/pdcnuttx.h +++ b/graphics/pdcurs34/nuttx/pdcnuttx.h @@ -233,7 +233,7 @@ typedef uint16_t pdc_color_t; typedef uint32_t pdc_color_t; #endif -/* This structure provides the overall state of the frambuffer device */ +/* This structure provides the overall state of the framebuffer device */ struct pdc_fbstate_s { diff --git a/graphics/pdcurs34/nuttx/pdcsetsc.c b/graphics/pdcurs34/nuttx/pdcsetsc.c index d96fba5b8..7cca328c2 100644 --- a/graphics/pdcurs34/nuttx/pdcsetsc.c +++ b/graphics/pdcurs34/nuttx/pdcsetsc.c @@ -130,7 +130,7 @@ int PDC_curs_set(int visibility) } #endif - /* Redraw the cursor of the visiblity has change. For our purses 1 and 2 + /* Redraw the cursor of the visibility has change. For our purses 1 and 2 * are currently treated the same. */ diff --git a/graphics/pdcurs34/nuttx/pdcutil.c b/graphics/pdcurs34/nuttx/pdcutil.c index 4de2d7a4a..db567883a 100644 --- a/graphics/pdcurs34/nuttx/pdcutil.c +++ b/graphics/pdcurs34/nuttx/pdcutil.c @@ -70,7 +70,7 @@ void PDC_beep(void) * (the X/Open spec says "at least") ms milliseconds, then returns. High * degrees of accuracy and precision are not expected (though desirable, if * you can achieve them). More important is that this function gives back - * the process' time slice to the OS, so that PDCurses idles at low CPU + * the process time slice to the OS, so that PDCurses idles at low CPU * usage. * ****************************************************************************/ diff --git a/graphics/pdcurs34/pdcurses/Kconfig b/graphics/pdcurs34/pdcurses/Kconfig index 0671d2f9a..b955f999b 100644 --- a/graphics/pdcurs34/pdcurses/Kconfig +++ b/graphics/pdcurs34/pdcurses/Kconfig @@ -32,7 +32,7 @@ config PDCURSES_MULTITHREAD The base pdcurses code uses global and function static variables, preventing multiple tasks from using pdcurses in a FLAT model. This option collects all those variables into a thread specific - dynamically allocated context, enabling mulitple tasks to use + dynamically allocated context, enabling multiple tasks to use pdcurses concurrently at the cost of a slight execution speed penalty for performing per task context lookup. diff --git a/graphics/pdcurs34/pdcurses/pdc_mouse.c b/graphics/pdcurs34/pdcurses/pdc_mouse.c index 268f4c0b7..55698b932 100644 --- a/graphics/pdcurs34/pdcurses/pdc_mouse.c +++ b/graphics/pdcurs34/pdcurses/pdc_mouse.c @@ -153,7 +153,7 @@ * avoid conflict with PDCurses' getmouse(). But if you define * NCURSES_MOUSE_VERSION (preferably as 2) before including * curses.h, it defines getmouse() to nc_getmouse(), along with a - * few other redefintions needed for compatibility with ncurses + * few other redefinitions needed for compatibility with ncurses * code. nc_getmouse() calls request_mouse_pos(), which (not * getmouse()) is the classic equivalent. * diff --git a/graphics/pdcurs34/pdcurses/pdc_scroll.c b/graphics/pdcurs34/pdcurses/pdc_scroll.c index 9fdf58ffd..a6a221906 100644 --- a/graphics/pdcurs34/pdcurses/pdc_scroll.c +++ b/graphics/pdcurs34/pdcurses/pdc_scroll.c @@ -47,7 +47,7 @@ * * Description: * scroll() causes the window to scroll up one line. This involves - * moving the lines in the window data strcture. + * moving the lines in the window data structure. * * With a positive n, scrl() and wscrl() scroll the window up n * lines (line i + n becomes i); otherwise they scroll the window diff --git a/graphics/screenshot/Kconfig b/graphics/screenshot/Kconfig index 02f3d57c4..cda1808d1 100644 --- a/graphics/screenshot/Kconfig +++ b/graphics/screenshot/Kconfig @@ -28,7 +28,7 @@ config SCREENSHOT_FORMAT int "Screenshot color format" default 9 ---help--- - See inlcude/nuttx/video/fb.h for a list of color formats. The default + See include/nuttx/video/fb.h for a list of color formats. The default value of 9 corresponds to FB_FMT_RGB16_565 endif diff --git a/graphics/tiff/tiff_utils.c b/graphics/tiff/tiff_utils.c index 47f3535fa..e34dd5314 100644 --- a/graphics/tiff/tiff_utils.c +++ b/graphics/tiff/tiff_utils.c @@ -162,7 +162,7 @@ ssize_t tiff_read(int fd, FAR void *buffer, size_t count) for (ntotal = 0; ntotal < count; ) { /* Do the read. The number of bytes left to read is the total - * requested size (count) minus the amount that we have alread read + * requested size (count) minus the amount that we have already read * (ntotal). */ diff --git a/graphics/twm4nx/COPYING b/graphics/twm4nx/COPYING index 2987e1186..7f89fb656 100644 --- a/graphics/twm4nx/COPYING +++ b/graphics/twm4nx/COPYING @@ -1,6 +1,6 @@ The following is the full text of the COPYING file for TWM 1.0.10. Twm4Nx is largely an original development, but owes acknowledge to TWM for its -design base and thanks fot TWM for many years in the open source community. +design base and thanks for TWM for many years in the open source community. This copyright notice is probably not necessary since Twm4Nx is not TWM, but this assures that things are right. See the top-level README.txt file diff --git a/graphics/twm4nx/apps/cnxterm.cxx b/graphics/twm4nx/apps/cnxterm.cxx index 74e83ddef..d895c8172 100644 --- a/graphics/twm4nx/apps/cnxterm.cxx +++ b/graphics/twm4nx/apps/cnxterm.cxx @@ -412,7 +412,7 @@ int CNxTerm::nxterm(int argc, char *argv[]) // Now re-direct stdout and stderr so that they use the NX console driver. // Notes: (1) stdin is retained (file descriptor 0, probably the the serial // console). (2) Don't bother trying to put debug instrumentation in the - // following becaue it will end up in the NxTerm window. + // following because it will end up in the NxTerm window. std::fflush(stdout); std::fflush(stderr); diff --git a/graphics/twm4nx/src/cresize.cxx b/graphics/twm4nx/src/cresize.cxx index 6ac05c67e..8a27cffd7 100644 --- a/graphics/twm4nx/src/cresize.cxx +++ b/graphics/twm4nx/src/cresize.cxx @@ -690,7 +690,7 @@ bool CResize::updateSize(FAR struct SEventMsg *eventmsg) bool CResize::pauseResize(FAR struct SEventMsg *eventmsg) { - // m_paused should have already been set asychronously + // m_paused should have already been set asynchronously bool success = false; if (m_paused) diff --git a/graphics/twm4nx/src/ctwm4nx.cxx b/graphics/twm4nx/src/ctwm4nx.cxx index 502a9b6c4..c6640f9d3 100644 --- a/graphics/twm4nx/src/ctwm4nx.cxx +++ b/graphics/twm4nx/src/ctwm4nx.cxx @@ -181,7 +181,7 @@ bool CTwm4Nx::initialize(void) if (!m_background->initialize(&CONFIG_TWM4NX_BACKGROUND_IMAGE)) { - twmerr("ERROR: Failed to set backgournd image\n"); + twmerr("ERROR: Failed to set background image\n"); cleanup(); return false; } diff --git a/graphics/twm4nx/src/cwindow.cxx b/graphics/twm4nx/src/cwindow.cxx index f12e34027..38cf7ff58 100644 --- a/graphics/twm4nx/src/cwindow.cxx +++ b/graphics/twm4nx/src/cwindow.cxx @@ -1146,7 +1146,7 @@ bool CWindow::createToolbarButtons(uint8_t flags) } // Create the title bar windows - // Set up the toolbar horizonal spacing + // Set up the toolbar horizontal spacing m_tbRightX = winsize.w; m_tbLeftX = 0; diff --git a/graphics/twm4nx/src/cwindowevent.cxx b/graphics/twm4nx/src/cwindowevent.cxx index 6a0388d6b..8cbdb07e3 100644 --- a/graphics/twm4nx/src/cwindowevent.cxx +++ b/graphics/twm4nx/src/cwindowevent.cxx @@ -60,7 +60,7 @@ // which // 11. Finally call pollEvents() to execute whatever actions the input event // should trigger. -// 12. This might call an event handler in and overrident method of +// 12. This might call an event handler in and overridden method of // CWidgetEventHandler which will again notify the Event loop running // in the Twm4Nx main thread. The event will, finally be delivered // to the recipient in its fully digested and decorated form. @@ -214,7 +214,7 @@ void CWindowEvent::handleRedrawEvent(FAR const nxgl_rect_s *nxRect, * NOTE: NX will continually forward the mouse events to the same raw * window in all cases.. even when the mouse position moves outside of * the window. It is the NxTK layer that converts the reports mouse - * event to either toolar or main window reports. + * event to either toolbar or main window reports. */ void CWindowEvent::handleMouseEvent(FAR const struct nxgl_point_s *pos, diff --git a/graphics/twm4nx/src/cwindowfactory.cxx b/graphics/twm4nx/src/cwindowfactory.cxx index 7e015dd12..534ae974a 100644 --- a/graphics/twm4nx/src/cwindowfactory.cxx +++ b/graphics/twm4nx/src/cwindowfactory.cxx @@ -563,7 +563,7 @@ bool CWindowFactory::event(FAR struct SEventMsg *eventmsg) // Forward the event to the appropriate window - default: // All other window messsages + default: // All other window messages { FAR CWindow *cwin = (FAR CWindow *)eventmsg->obj; DEBUGASSERT(cwin != (FAR CWindow *)0); diff --git a/include/canutils/canlib.h b/include/canutils/canlib.h index 59befd8b3..c3b2366f5 100644 --- a/include/canutils/canlib.h +++ b/include/canutils/canlib.h @@ -113,7 +113,7 @@ int canlib_getbaud(int fd, FAR int *bauds); * * Input Parameter: * fd - file descriptor of an opened can device - * loopback - wether to use loopback mode. + * loopback - whether to use loopback mode. * * Returned Value: * Zero (OK) is returned on success. Otherwise -1 (ERROR) @@ -152,7 +152,7 @@ int canlib_getloopback(int fd, FAR bool *loop); * * Input Parameter: * fd - file descriptor of an opened can device - * loopback - wether to use loopback mode. + * loopback - whether to use loopback mode. * * Returned Value: * Zero (OK) is returned on success. Otherwise -1 (ERROR) diff --git a/include/canutils/obd_pid.h b/include/canutils/obd_pid.h index 4ad65f579..ed229dcab 100644 --- a/include/canutils/obd_pid.h +++ b/include/canutils/obd_pid.h @@ -57,15 +57,15 @@ #define OBD_SHOW_DATA 0x01 /* Used to read current data from vehicle */ #define OBD_SHOW_FREEZED_DATA 0x02 /* Used to read freezed data from vehicle */ #define OBD_SHOW_DTC 0x03 /* Show Diagnostic Trouble Codes */ -#define OBD_CLEAR_DTC 0x04 /* Clear Diagnotic Trouble Codes stored in the vehicle */ +#define OBD_CLEAR_DTC 0x04 /* Clear Diagnostic Trouble Codes stored in the vehicle */ #define OBD_TEST_RESULT1 0x05 /* Test Results */ #define OBD_TEST_RESULT2 0x06 /* Test Results */ -#define OBD_SHOW_PEND_DTC 0x07 /* Show Pending Diagnotic Trouble Codes */ +#define OBD_SHOW_PEND_DTC 0x07 /* Show Pending Diagnostic Trouble Codes */ #define OBD_CONTROL_OPERATION 0x08 /* Control Operation of on-board component/system */ #define OBD_RQST_VEHICLE_INFO 0x09 /* Request vehicle information */ #define OBD_PERMANENT_DTC 0x0a /* Permanent Diagnostic Trouble Codes */ -/* Basic Standarized Sensor/Status */ +/* Basic Standardized Sensor/Status */ #define OBD_PID_SUPPORTED 0x00 /* PIDs supported 00-20 */ #define OBD_PID_STATUS 0x01 /* Monitor status since DTCs cleared */ @@ -100,7 +100,7 @@ #define OBD_PID_AUXILIARY_INPUT_STATUS 0x1e /* Auxiliary input status */ #define OBD_PID_RUNTIME_ENGINE_START 0x1f /* Run time since engine start */ -/* Extended Standarized Sensor_Status */ +/* Extended Standardized Sensor_Status */ #define OBD_PID_SUPPORTED_EXT 0x20 /* PIDs supported 21-40 */ #define OBD_PID_DIST_TRAVELED_MIL 0x21 /* Distance traveled with malfunction indicator lamp (MIL) on */ diff --git a/include/fsutils/passwd.h b/include/fsutils/passwd.h index add329859..3bc486682 100644 --- a/include/fsutils/passwd.h +++ b/include/fsutils/passwd.h @@ -121,7 +121,7 @@ int passwd_update(FAR const char *username, FAR const char *password); * * Description: * Return true if the username exists in the /etc/passwd file and if the - * password matches the user password in that faile. + * password matches the user password in that failed. * * Input Parameters: * username - Identifies the user whose password will be verified diff --git a/include/graphics/ft80x.h b/include/graphics/ft80x.h index c83dabb50..494c8dc07 100644 --- a/include/graphics/ft80x.h +++ b/include/graphics/ft80x.h @@ -338,12 +338,12 @@ int ft80x_ramg_write(int fd, unsigned int offset, FAR const void *data, * Name: ft80x_touch_gettransform * * Description: - * Read the touch transfrom matrix + * Read the touch transform matrix * * Input Parameters: * fd - The file descriptor of the FT80x device. Opened by the caller * with write access. - * matrix - The location to return the transfrom matrix + * matrix - The location to return the transform matrix * * Returned Value: * Zero (OK) on success. A negated errno value on failure. diff --git a/include/graphics/nxwidgets/cbuttonarray.hxx b/include/graphics/nxwidgets/cbuttonarray.hxx index acfec28f4..717198d6b 100644 --- a/include/graphics/nxwidgets/cbuttonarray.hxx +++ b/include/graphics/nxwidgets/cbuttonarray.hxx @@ -281,7 +281,7 @@ namespace NXWidgets /** * Return the current cursor position (button indices) and an indication - * if the button at the cursor is currently hightlighted. + * if the button at the cursor is currently highlighted. * * @param column The location to return the column index of the button * of interest diff --git a/include/graphics/nxwidgets/ccallback.hxx b/include/graphics/nxwidgets/ccallback.hxx index 9faa36abc..9b0b81e08 100644 --- a/include/graphics/nxwidgets/ccallback.hxx +++ b/include/graphics/nxwidgets/ccallback.hxx @@ -97,7 +97,7 @@ namespace NXWidgets #ifdef CONFIG_NXTERM_NXKBDIN NXTERM m_nxterm; /**< The NxTerm handle for redirection of keyboard input */ #endif - volatile bool m_synchronized; /**< True: Syncrhonized with NX server */ + volatile bool m_synchronized; /**< True: Synchronized with NX server */ sem_t m_semevent; /**< Event wait semaphore */ // Methods in the callback vtable @@ -257,7 +257,7 @@ namespace NXWidgets inline ~CCallback(void) {} /** - * Get the callback vtable. This is neeed only by the window + * Get the callback vtable. This is need only by the window * instance that inherits this class. The window instance needs the * C-callable vtable in order to create the NX window. Once the * window is created, this class will begin to receive callbacks via diff --git a/include/graphics/nxwidgets/cgraphicsport.hxx b/include/graphics/nxwidgets/cgraphicsport.hxx index 7f2339706..3b1fc24b8 100644 --- a/include/graphics/nxwidgets/cgraphicsport.hxx +++ b/include/graphics/nxwidgets/cgraphicsport.hxx @@ -319,7 +319,7 @@ namespace NXWidgets const CNxString &string); /** - * Draw a particular length of a string to the window in a secific color. + * Draw a particular length of a string to the window in a specific color. * @param pos The window-relative x/y coordinate of the string. * @param bound The window-relative bounds of the string. * @param font The font to draw with. diff --git a/include/graphics/nxwidgets/clabelgrid.hxx b/include/graphics/nxwidgets/clabelgrid.hxx index 8469cdae3..0a79b05e1 100644 --- a/include/graphics/nxwidgets/clabelgrid.hxx +++ b/include/graphics/nxwidgets/clabelgrid.hxx @@ -140,7 +140,7 @@ namespace NXWidgets * @param y The y coordinate of the text box, relative to its parent. * @param width The width of the textbox. * @param height The height of the textbox. - * @param cols Number of colums in the grid. + * @param cols Number of columns in the grid. * @param rows Number of rows in the grid. */ diff --git a/include/graphics/nxwidgets/cnxtoolbar.hxx b/include/graphics/nxwidgets/cnxtoolbar.hxx index 9bd0d5232..3120d3852 100644 --- a/include/graphics/nxwidgets/cnxtoolbar.hxx +++ b/include/graphics/nxwidgets/cnxtoolbar.hxx @@ -350,7 +350,7 @@ namespace NXWidgets * @param vector - Describes the line to be drawn * @param width - The width of the line * @param color - The color to use to fill the line - * @param caps - Draw a circular cap on the ends of the line to suppor + * @param caps - Draw a circular cap on the ends of the line to support * better line joins * * @return True on success; false on failure. diff --git a/include/graphics/nxwidgets/cnxwidget.hxx b/include/graphics/nxwidgets/cnxwidget.hxx index 1118caf81..4b444237e 100644 --- a/include/graphics/nxwidgets/cnxwidget.hxx +++ b/include/graphics/nxwidgets/cnxwidget.hxx @@ -1163,7 +1163,7 @@ namespace NXWidgets /** * Move the widget to the new coordinates. - * Co-ordinates are relative to the parent widget. + * Coordinates are relative to the parent widget. * * @param x The new x coordinate. * @param y The new y coordinate. diff --git a/include/graphics/nxwidgets/crect.hxx b/include/graphics/nxwidgets/crect.hxx index 4a323db21..8d16aa93c 100644 --- a/include/graphics/nxwidgets/crect.hxx +++ b/include/graphics/nxwidgets/crect.hxx @@ -361,7 +361,7 @@ namespace NXWidgets } /** - * Populates dest with a rectangle representating the intersection + * Populates dest with a rectangle representing the intersection * of this rectangle and rect. * * @param rect The rectangle to intersect with this. @@ -371,7 +371,7 @@ namespace NXWidgets void getIntersect(const CRect& rect, CRect& dest) const; /** - * Populates dest with a rectangle representating the smallest + * Populates dest with a rectangle representing the smallest * rectangle that contains this rectangle and rect. * * @param rect The rectangle to add to this. diff --git a/include/graphics/nxwidgets/cwidgetcontrol.hxx b/include/graphics/nxwidgets/cwidgetcontrol.hxx index 9c3cd674c..a51a0b98f 100644 --- a/include/graphics/nxwidgets/cwidgetcontrol.hxx +++ b/include/graphics/nxwidgets/cwidgetcontrol.hxx @@ -315,8 +315,8 @@ namespace NXWidgets } /** - * Check if geomtry data is available. If not, [re-]request the - * geomtry data and wait for it to become valid. + * Check if geometry data is available. If not, [re-]request the + * geometry data and wait for it to become valid. * CAREFUL: This assumes that if we already have geometry data, then * it is valid. This might not be true if the size position was * recently changed. diff --git a/include/graphics/nxwidgets/cwindoweventhandlerlist.hxx b/include/graphics/nxwidgets/cwindoweventhandlerlist.hxx index 51d48dc44..73a7ad576 100644 --- a/include/graphics/nxwidgets/cwindoweventhandlerlist.hxx +++ b/include/graphics/nxwidgets/cwindoweventhandlerlist.hxx @@ -159,7 +159,7 @@ namespace NXWidgets #ifdef CONFIG_NX_KBD /** - * Raise an NX keybord input event + * Raise an NX keyboard input event */ void raiseKeyboardEvent(void); diff --git a/include/graphics/nxwidgets/tnxarray.hxx b/include/graphics/nxwidgets/tnxarray.hxx index 45980e980..bd9db1160 100644 --- a/include/graphics/nxwidgets/tnxarray.hxx +++ b/include/graphics/nxwidgets/tnxarray.hxx @@ -153,7 +153,7 @@ public: * Set the initial size of the array. Normally, the array is * unallocated until the first data is pushed into the array. * That works great for stacks and lists. But if you want a - * array of unitialized elements, then this method will + * array of uninitialized elements, then this method will * preallocate the array for you. * * @return The size of the array. diff --git a/include/graphics/nxwm/ccalibration.hxx b/include/graphics/nxwm/ccalibration.hxx index f5e5a90da..7f0da4bb6 100644 --- a/include/graphics/nxwm/ccalibration.hxx +++ b/include/graphics/nxwm/ccalibration.hxx @@ -117,7 +117,7 @@ namespace NxWM /** * The CCalibration class provides the the calibration window and obtains - * callibration data. + * calibration data. */ class CCalibration : public IApplication diff --git a/include/graphics/nxwm/chexcalculator.hxx b/include/graphics/nxwm/chexcalculator.hxx index 8a63bf7a7..eb1e669cb 100644 --- a/include/graphics/nxwm/chexcalculator.hxx +++ b/include/graphics/nxwm/chexcalculator.hxx @@ -131,7 +131,7 @@ namespace NxWM int64_t m_accum; /**< The current accumulated value */ int64_t m_memory; /**< The current value saved in memory */ struct SPendingOperation m_low; /**< Low precedence pending operation */ - struct SPendingOperation m_high; /**< Hight precedence pending operation */ + struct SPendingOperation m_high; /**< High precedence pending operation */ bool m_hexMode; /**< True if in hex mode */ bool m_result ; /**< True if the accumulator holds a previoius result */ diff --git a/include/graphics/nxwm/ckeyboard.hxx b/include/graphics/nxwm/ckeyboard.hxx index 85395eb5c..125f2ea4f 100644 --- a/include/graphics/nxwm/ckeyboard.hxx +++ b/include/graphics/nxwm/ckeyboard.hxx @@ -62,7 +62,7 @@ namespace NxWM { /** * The CKeyboard class provides the the calibration window and obtains - * callibration data. + * calibration data. */ class CKeyboard diff --git a/include/graphics/nxwm/cstartwindow.hxx b/include/graphics/nxwm/cstartwindow.hxx index 24e41a8da..fbb0bc6dc 100644 --- a/include/graphics/nxwm/cstartwindow.hxx +++ b/include/graphics/nxwm/cstartwindow.hxx @@ -255,7 +255,7 @@ namespace NxWM /** * Redraw the entire window. The application has been maximized or - * otherwise moved to the top of the hiearchy. This method is call from + * otherwise moved to the top of the hierarchy. This method is call from * CTaskbar when the application window must be displayed */ diff --git a/include/graphics/nxwm/ctouchscreen.hxx b/include/graphics/nxwm/ctouchscreen.hxx index 2a6985669..4a90bf938 100644 --- a/include/graphics/nxwm/ctouchscreen.hxx +++ b/include/graphics/nxwm/ctouchscreen.hxx @@ -62,7 +62,7 @@ namespace NxWM { /** * The CTouchscreen class provides the the calibration window and obtains - * callibration data. + * calibration data. */ class CTouchscreen diff --git a/include/graphics/nxwm/iapplication.hxx b/include/graphics/nxwm/iapplication.hxx index 572a67c69..2d10b99d9 100644 --- a/include/graphics/nxwm/iapplication.hxx +++ b/include/graphics/nxwm/iapplication.hxx @@ -77,7 +77,7 @@ namespace NxWM */ bool m_minimized; /**< True if the application is minimized */ - bool m_topapp; /**< True if this application is at the top in the hiearchy */ + bool m_topapp; /**< True if this application is at the top in the hierarchy */ public: /** diff --git a/include/graphics/tiff.h b/include/graphics/tiff.h index 516bd67d8..8af63eb9a 100644 --- a/include/graphics/tiff.h +++ b/include/graphics/tiff.h @@ -79,7 +79,7 @@ /* Values for the IFD tag type */ #define IFD_TAG_NEWSUBFILETYPE 254 /* NewSubfileType, LONG */ -# define TAG_NEWSUBFILETYPE_REDUCED (1 << 0) /* Bit 0: Reduced resolution verson of image */ +# define TAG_NEWSUBFILETYPE_REDUCED (1 << 0) /* Bit 0: Reduced resolution version of image */ # define TAG_NEWSUBFILETYPE_SINGLE (1 << 1) /* Bit 1: Single page of a multi-page image */ # define TAG_NEWSUBFILETYPE_TRANSP (1 << 2) /* Bit 2: Defines a transparency mask for image */ #define IFD_TAG_SUBFILETYPE 255 /* SubfileType, SHORT */ diff --git a/include/graphics/twm4nx/apps/cclock.hxx b/include/graphics/twm4nx/apps/cclock.hxx index e7df2acc1..1d725b1d9 100644 --- a/include/graphics/twm4nx/apps/cclock.hxx +++ b/include/graphics/twm4nx/apps/cclock.hxx @@ -279,7 +279,7 @@ namespace Twm4Nx /** * CClockFactory Initializer. Performs parts of the instance - * construction that may fail. In this implemenation, it will + * construction that may fail. In this implementation, it will * initialize the NSH library and register an menu item in the * Main Menu. */ diff --git a/include/graphics/twm4nx/apps/cnxterm.hxx b/include/graphics/twm4nx/apps/cnxterm.hxx index e7b9df1b0..7122f12e4 100644 --- a/include/graphics/twm4nx/apps/cnxterm.hxx +++ b/include/graphics/twm4nx/apps/cnxterm.hxx @@ -268,7 +268,7 @@ namespace Twm4Nx /** * CNxTermFactory Initializer. Performs parts of the instance - * construction that may fail. In this implemenation, it will + * construction that may fail. In this implementation, it will * initialize the NSH library and register an menu item in the * Main Menu. */ diff --git a/include/graphics/twm4nx/ciconmgr.hxx b/include/graphics/twm4nx/ciconmgr.hxx index 9aa1c018d..4ce977a92 100644 --- a/include/graphics/twm4nx/ciconmgr.hxx +++ b/include/graphics/twm4nx/ciconmgr.hxx @@ -203,7 +203,7 @@ namespace Twm4Nx /** * There is no custom event handler. We use the common event handler. * - * @return. null is always returned in this impementation. + * @return. null is always returned in this implementation. */ inline FAR CTwm4NxEvent *getEventHandler(void) diff --git a/include/graphics/twm4nx/ctwm4nx.hxx b/include/graphics/twm4nx/ctwm4nx.hxx index ba96cb155..faf2f993d 100644 --- a/include/graphics/twm4nx/ctwm4nx.hxx +++ b/include/graphics/twm4nx/ctwm4nx.hxx @@ -219,7 +219,7 @@ namespace Twm4Nx * Return the pixel depth. * * REVISIT: Currently only the pixel depth configured for NxWidgets is - * supported. That is probably compatible ith support for multiple + * supported. That is probably compatible with support for multiple * displays of differing resolutions. * * @return The number of bits-per-pixel. diff --git a/include/graphics/twm4nx/cwindow.hxx b/include/graphics/twm4nx/cwindow.hxx index 54259eaa6..26c13b301 100644 --- a/include/graphics/twm4nx/cwindow.hxx +++ b/include/graphics/twm4nx/cwindow.hxx @@ -886,7 +886,7 @@ namespace Twm4Nx * temporarily while in certain absorbing states (such as resizing the * window). * - * @param disables The set of buttons to enable or disble See + * @param disables The set of buttons to enable or disable See * DISABLE_* definitions. */ diff --git a/include/graphics/twm4nx/cwindowevent.hxx b/include/graphics/twm4nx/cwindowevent.hxx index 2434ffab0..407e1ee1b 100644 --- a/include/graphics/twm4nx/cwindowevent.hxx +++ b/include/graphics/twm4nx/cwindowevent.hxx @@ -89,7 +89,7 @@ namespace Twm4Nx * * CAREFUL: All of these methods will run on the thread of execution * of the listener thread. The safest design for the implementation - * of these methods would be to send a messsage to main Twm4Nx thread + * of these methods would be to send a message to main Twm4Nx thread * event handler for movement processing. */ diff --git a/include/graphics/twm4nx/cwindowfactory.hxx b/include/graphics/twm4nx/cwindowfactory.hxx index e40fc71b7..4d49a6af8 100644 --- a/include/graphics/twm4nx/cwindowfactory.hxx +++ b/include/graphics/twm4nx/cwindowfactory.hxx @@ -120,7 +120,7 @@ namespace Twm4Nx /** * There is no custom event handler. We use the common event handler. * - * @return. null is always returned in this impementation. + * @return. null is always returned in this implementation. */ inline FAR CTwm4NxEvent *getEventHandler(void) diff --git a/include/graphics/twm4nx/twm4nx_events.hxx b/include/graphics/twm4nx/twm4nx_events.hxx index 28bd3343e..a4e0ebf87 100644 --- a/include/graphics/twm4nx/twm4nx_events.hxx +++ b/include/graphics/twm4nx/twm4nx_events.hxx @@ -127,7 +127,7 @@ namespace Twm4Nx EVENT_SYSTEM_EXIT = 0x0802, /**< Terminate the Twm4Nx session */ EVENT_SYSTEM_STARTUP = 0x0003, /**< Start an application */ - // Recipient == BACKGOUND + // Recipient == BACKGROUND EVENT_BACKGROUND_XYINPUT = 0x1000, /**< Poll for widget mouse/touch events */ EVENT_BACKGROUND_REDRAW = 0x1801, /**< Redraw the background */ diff --git a/include/netutils/ftpc.h b/include/netutils/ftpc.h index 5954fca31..64c16a87a 100644 --- a/include/netutils/ftpc.h +++ b/include/netutils/ftpc.h @@ -149,7 +149,7 @@ struct ftpc_login_s /* This structure describes one simple directory listing. The directory * list container as well the individual filename strings are allocated. - * The number of names in tha actual allocated array is variable, given + * The number of names in the actual allocated array is variable, given * by the nnames field. * * Since the structure and file names are allocated, they must be freed diff --git a/include/netutils/telnetc.h b/include/netutils/telnetc.h index 1e0742c66..43ec933cd 100644 --- a/include/netutils/telnetc.h +++ b/include/netutils/telnetc.h @@ -732,7 +732,7 @@ void telnet_ttype_send(struct telnet_s * telnet); * * The server may continue sending TERMINAL-TYPE IS until it receives a * terminal type is understands. To indicate to the server that it has - * reached the end of the available optoins, the client must send the last + * reached the end of the available options, the client must send the last * terminal type a second time. When the server receives the same terminal * type twice in a row, it knows it has seen all available terminal types. * diff --git a/include/netutils/xmlrpc.h b/include/netutils/xmlrpc.h index 329ed93e1..067c04373 100644 --- a/include/netutils/xmlrpc.h +++ b/include/netutils/xmlrpc.h @@ -28,7 +28,7 @@ * * 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 + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COGITO LLC * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARAY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT diff --git a/include/nshlib/nshlib.h b/include/nshlib/nshlib.h index 6a8b07612..1e7084d96 100644 --- a/include/nshlib/nshlib.h +++ b/include/nshlib/nshlib.h @@ -170,7 +170,7 @@ int nsh_telnetstart(sa_family_t family); * must provide this function in order to obtain the Message of the Day * (MOTD) * - * Input Parmeters: + * Input Parameters: * buffer - A caller allocated buffer in which to receive the MOTD * buflen - The length in bytes of the caller allocated buffer * @@ -191,7 +191,7 @@ void platform_motd(FAR char *buffer, size_t buflen); * must provide this function in order verify user credentials as part of * the login process. * - * Input Parmeters: + * Input Parameters: * username/password - User credentials to be verified. * * Returned value: diff --git a/include/system/nxplayer.h b/include/system/nxplayer.h index 3117af58d..2010eb2a9 100644 --- a/include/system/nxplayer.h +++ b/include/system/nxplayer.h @@ -74,7 +74,7 @@ struct nxplayer_s char mediadir[CONFIG_NAME_MAX]; /* Root media directory where media is located */ #endif #ifdef CONFIG_AUDIO_MULTI_SESSION - FAR void *session; /* Session assigment from device */ + FAR void *session; /* Session assignment from device */ #endif #ifndef CONFIG_AUDIO_EXCLUDE_VOLUME uint16_t volume; /* Volume as a whole percentage (0-100) */ @@ -119,7 +119,7 @@ extern "C" * nxplayer_destroy() won't actually de-allocate anything. The freeing * will occur after the playthread has completed. * - * Alternately, the caller can create the objec and hold on to it, then + * Alternately, the caller can create the object and hold on to it, then * the context will persist until the original creator destroys it. * * Input Parameters: None diff --git a/include/system/nxrecorder.h b/include/system/nxrecorder.h index 69eb1f196..3294f5e39 100644 --- a/include/system/nxrecorder.h +++ b/include/system/nxrecorder.h @@ -64,7 +64,7 @@ struct nxrecorder_s int fd; /* File descriptor of open file */ char device[CONFIG_NAME_MAX]; /* Preferred audio device */ #ifdef CONFIG_AUDIO_MULTI_SESSION - FAR void *session; /* Session assigment from device */ + FAR void *session; /* Session assignment from device */ #endif }; diff --git a/include/system/zmodem.h b/include/system/zmodem.h index 1fd0bd979..fa957ee10 100644 --- a/include/system/zmodem.h +++ b/include/system/zmodem.h @@ -169,7 +169,7 @@ * configuration value must be set to provide the path to the file storage * directory (such as a mountpoint directory). * - * Names of file send by the sz commond, on the other hand, must be absolute + * Names of file send by the sz command, on the other hand, must be absolute * paths beginning with '/'. */ diff --git a/include/wireless/wapi.h b/include/wireless/wapi.h index 6630ee081..4f6259645 100644 --- a/include/wireless/wapi.h +++ b/include/wireless/wapi.h @@ -205,7 +205,7 @@ struct wapi_route_info_s }; /* A generic linked list container. For functions taking struct wapi_list_s - * type of argument, caller is resposible for releasing allocated memory. + * type of argument, caller is responsible for releasing allocated memory. */ struct wapi_list_s diff --git a/industry/abnt_codi/README.txt b/industry/abnt_codi/README.txt index 7f924f295..e1f008f57 100644 --- a/industry/abnt_codi/README.txt +++ b/industry/abnt_codi/README.txt @@ -5,7 +5,7 @@ That output externalizes its data blinking an LED as a serial protocol at the baudrate of 110 BPS and uses 8 octects: _____________________________________________________________________________ | | | | -| OCTECT | bits | Description | +| OCTET | bits | Description | |________|______|_____________________________________________________________| | | | | | 001 | 0-7 | Number of seconds to the end of current active demand (LSB) | diff --git a/interpreters/bas/bas_fs.c b/interpreters/bas/bas_fs.c index 3f1485bd1..1ac52e4fd 100644 --- a/interpreters/bas/bas_fs.c +++ b/interpreters/bas/bas_fs.c @@ -259,7 +259,7 @@ static int refill(int dev) } } -static int edit(int chn, int onl) +static int edit(int chn, int nl) { struct FileStream *f = g_file[chn]; char *buf = f->inBuf; @@ -372,7 +372,7 @@ static int edit(int chn, int onl) * termination when talking to the host. */ - if (onl) + if (nl) { FS_putChar(chn, '\n'); } @@ -1716,7 +1716,7 @@ int FS_seek(int chn, long int record) return -1; } -int FS_appendToString(int chn, struct String *s, int onl) +int FS_appendToString(int chn, struct String *s, int nl) { size_t new; char *n; @@ -1725,7 +1725,7 @@ int FS_appendToString(int chn, struct String *s, int onl) if (f->tty && f->inSize == f->inCapacity) { - if (edit(chn, onl) == -1) + if (edit(chn, nl) == -1) { return (FS_errmsg ? -1 : 0); } @@ -1797,7 +1797,7 @@ void FS_closefiles(void) { int i; - /* Example each entry in the g_files[] arrary */ + /* Example each entry in the g_files[] array */ for (i = 0; i < g_capacity; ++i) { diff --git a/interpreters/bas/bas_fs.h b/interpreters/bas/bas_fs.h index 06324466d..d5f45207f 100644 --- a/interpreters/bas/bas_fs.h +++ b/interpreters/bas/bas_fs.h @@ -183,7 +183,7 @@ int FS_width(int dev, int width); int FS_zone(int dev, int zone); long int FS_recLength(int chn); void FS_field(int chn, struct String *s, long int position, long int length); -int FS_appendToString(int dev, struct String *s, int onl); +int FS_appendToString(int dev, struct String *s, int nl); int FS_inkeyChar(int dev, int ms); void FS_sleep(double s); int FS_seek(int chn, long int record); diff --git a/interpreters/bas/bas_main.c b/interpreters/bas/bas_main.c index 4e357f362..b7bb20a6a 100644 --- a/interpreters/bas/bas_main.c +++ b/interpreters/bas/bas_main.c @@ -155,7 +155,7 @@ int main(int argc, FAR char *argv[]) fputs("\n", stdout); fputs(_("BASIC interpreter.\n"), stdout); fputs("\n", stdout); - fputs(_("-b Convert backslashs to colons\n"), stdout); + fputs(_("-b Convert backslashes to colons\n"), stdout); fputs(_("-l Write LPRINT output to file\n"), stdout); fputs(_("-r Forbid SHELL\n"), stdout); fputs(_("-u Output all tokens in uppercase\n"), @@ -193,7 +193,7 @@ int main(int argc, FAR char *argv[]) FS_putChar(STDCHANNEL, '\n'); - /* Release resouces and close files and devices */ + /* Release resources and close files and devices */ bas_exit(); return 0; diff --git a/interpreters/minibasic/basic.c b/interpreters/minibasic/basic.c index 69cdc3a36..b9dabe6d5 100644 --- a/interpreters/minibasic/basic.c +++ b/interpreters/minibasic/basic.c @@ -222,7 +222,7 @@ struct mb_forloop_s * (3) Pass the instance of struct mb_state_s to every Mini Basic function. */ -static struct mb_forloop_s g_forstack[MAXFORS]; /* Stack for for loop conrol */ +static struct mb_forloop_s g_forstack[MAXFORS]; /* Stack for for loop control */ static int nfors; /* Number of fors on stack */ static FAR struct mb_variable_s *g_variables; /* The script's variables */ @@ -235,7 +235,7 @@ static FAR struct mb_line_s *g_lines; /* List of line starts */ static int nlines; /* Number of BASIC g_lines in program */ static FILE *g_fpin; /* Input stream */ -static FILE *g_fpout; /* Output strem */ +static FILE *g_fpout; /* Output stream */ static FILE *g_fperr; /* Error stream */ static FAR const char *g_string; /* String we are parsing */ @@ -2026,7 +2026,7 @@ static double factor(void) * Name: instr * * Description: - * Calcualte the INSTR() function. + * Calculate the INSTR() function. * ****************************************************************************/ @@ -2486,8 +2486,8 @@ static FAR void *getdimvar(FAR struct mb_dimvar_s *dv, ...) * Name: addfloat * * Description: - * Add a real varaible to our variable list - * Params: id - id of varaible to add. + * Add a real variable to our variable list + * Params: id - id of variable to add. * Returns: pointer to new entry in table * ****************************************************************************/ diff --git a/modbus/ascii/mbascii.c b/modbus/ascii/mbascii.c index 6e5695cb7..2fdc6d5a0 100644 --- a/modbus/ascii/mbascii.c +++ b/modbus/ascii/mbascii.c @@ -351,7 +351,7 @@ bool xMBASCIIReceiveFSM(void) else { /* not handled in Modbus specification but seems - * a resonable implementation. + * a reasonable implementation. */ eRcvState = STATE_RX_IDLE; diff --git a/modbus/nuttx/portevent_m.c b/modbus/nuttx/portevent_m.c index 8e9930064..cc7dd824e 100644 --- a/modbus/nuttx/portevent_m.c +++ b/modbus/nuttx/portevent_m.c @@ -171,7 +171,7 @@ void vMBMasterOsResInit(void) * Note: The resource is defined by Operating System. If you do not use OS, * this function can just return true. * - * Input Parmeters: + * Input Parameters: * ulTimeOut the waiting time * * Returned Value: @@ -220,7 +220,7 @@ void vMBMasterRunResRelease(void) /* This is Modbus Master Respond Timeout error callback function. * NOTE: This function will block modbus master poll. * - * Input Parmeters: + * Input Parameters: * ucDestAddress destination slave address * pucPDUData PDU buffer data * ucPDULength PDU buffer length @@ -236,7 +236,7 @@ void vMBMasterErrorCBRespondTimeout(uint8_t ucDestAddress, /* This is Modbus Master receive data error callback function. * NOTE: This function will block modbus master poll. * - * Input Parmeters: + * Input Parameters: * ucDestAddress destination slave address * pucPDUData PDU buffer data * usPDULength PDU buffer length @@ -252,7 +252,7 @@ void vMBMasterErrorCBReceiveData(uint8_t ucDestAddress, /* This is Modbus Master execute function error callback function. * NOTE: This function will block modbus master poll. * - * Input Parmeters: + * Input Parameters: * ucDestAddress destination slave address * pucPDUData PDU buffer data * usPDULength PDU buffer length diff --git a/modbus/rtu/mbrtu.c b/modbus/rtu/mbrtu.c index 6d875f0ee..eb0d57d62 100644 --- a/modbus/rtu/mbrtu.c +++ b/modbus/rtu/mbrtu.c @@ -124,7 +124,7 @@ eMBErrorCode eMBRTUInit(uint8_t ucSlaveAddress, uint8_t ucPort, * ChTimeValue = Ticks_per_1s / (Baudrate / 11) * = 11 * Ticks_per_1s / Baudrate * = 220000 / Baudrate - * The reload for t3.5 is 1.5 times this value and similary + * The reload for t3.5 is 1.5 times this value and similarly * for t3.5. */ diff --git a/modbus/rtu/mbrtu_m.c b/modbus/rtu/mbrtu_m.c index 507f6e7db..d835b5a7f 100644 --- a/modbus/rtu/mbrtu_m.c +++ b/modbus/rtu/mbrtu_m.c @@ -136,7 +136,7 @@ eMBErrorCode eMBMasterRTUInit(uint8_t ucPort, speed_t ulBaudRate, /* The timer reload value for a character is given by: ChTimeValue = * Ticks_per_1s / ( Baudrate / 11 ) = 11 * Ticks_per_1s / Baudrate = * 220000 / Baudrate The reload for t3.5 is 1.5 times this value and - * similary for t3.5. + * similarly for t3.5. */ usTimerT35_50us = (7UL * 220000UL) / (2UL * ulBaudRate); diff --git a/netutils/chat/chat.c b/netutils/chat/chat.c index f2b7949ba..a4c6c8809 100644 --- a/netutils/chat/chat.c +++ b/netutils/chat/chat.c @@ -98,7 +98,7 @@ static int chat_tokenise(FAR struct chat *priv, int tok_pos = 0; /* current length of the current token */ FAR struct chat_token *tok = NULL; /* the last complete token */ bool no_termin; /* line termination property: - * true iff line terminator is deasserted */ + * true if line terminator is deasserted */ int ret = 0; /* Delimiter handler */ @@ -288,7 +288,7 @@ static int chat_tokenise(FAR struct chat *priv, static int chat_internalise(FAR struct chat *priv, FAR struct chat_token *tok) { - unsigned int rhs = 0; /* 1 iff processing the right-hand side, + unsigned int rhs = 0; /* 1 if processing the right-hand side, * 0 otherwise */ FAR struct chat_line *line = NULL; int len; /* length of the destination string when variable */ diff --git a/netutils/dhcpd/dhcpd.c b/netutils/dhcpd/dhcpd.c index e9ffe5385..0bec68ba9 100644 --- a/netutils/dhcpd/dhcpd.c +++ b/netutils/dhcpd/dhcpd.c @@ -1129,7 +1129,7 @@ static inline int dhcpd_discover(void) in_addr_t ipaddr; uint32_t leasetime = CONFIG_NETUTILS_DHCPD_LEASETIME; - /* Check if the client is aleady in the lease table */ + /* Check if the client is already in the lease table */ lease = dhcpd_findbymac(g_state.ds_inpacket.chaddr); if (lease) diff --git a/netutils/esp8266/esp8266.c b/netutils/esp8266/esp8266.c index 679aa7bde..76625a0b8 100644 --- a/netutils/esp8266/esp8266.c +++ b/netutils/esp8266/esp8266.c @@ -79,7 +79,7 @@ #endif #if (CONFIG_NETUTILS_ESP8266_MAXRXLEN < CONFIG_NETUTILS_ESP8266_WORKER_BUF_LEN) -# error "CONFIG_NETUTILS_ESP8266_WORKER_BUF_LEN whould be bigger than CONFIG_NETUTILS_ESP8266_MAXRXLEN" +# error "CONFIG_NETUTILS_ESP8266_WORKER_BUF_LEN would be bigger than CONFIG_NETUTILS_ESP8266_MAXRXLEN" #endif #define BUF_CMD_LEN CONFIG_NETUTILS_ESP8266_MAXTXLEN @@ -146,7 +146,7 @@ typedef struct sem_t sem; /* Inform that something is received */ char buf[BUF_ANS_LEN]; /* Last complete line received */ - lesp_ans_t ans; /* Last ans received (OK,FAIL or ERROR) */ + lesp_ans_t and; /* Last and received (OK,FAIL or ERROR) */ pthread_mutex_t mutex; } lesp_worker_t; @@ -157,7 +157,7 @@ typedef struct int fd; lesp_worker_t worker; lesp_socket_t sockets[SOCKET_NBR]; - lesp_ans_t ans; + lesp_ans_t and; char bufans[BUF_ANS_LEN]; char bufcmd[BUF_CMD_LEN]; struct hostent hostent; @@ -187,9 +187,9 @@ lesp_state_t g_lesp_state = .is_initialized = false, .fd = -1, .worker.running = false, - .worker.ans = lesp_eNONE, + .worker.and = lesp_eNONE, .worker.mutex = PTHREAD_MUTEX_INITIALIZER, - .ans = lesp_eNONE, + .and = lesp_eNONE, }; /**************************************************************************** @@ -201,7 +201,7 @@ lesp_state_t g_lesp_state = * * Description: * - * Input Parmeters: + * Input Parameters: * * Returned Value: * None @@ -218,7 +218,7 @@ static inline void lesp_clear_read_buffer(void) * * Description: * - * Input Parmeters: + * Input Parameters: * * Returned Value: * None @@ -227,7 +227,7 @@ static inline void lesp_clear_read_buffer(void) static inline void lesp_clear_read_ans(void) { - g_lesp_state.ans = lesp_eNONE; + g_lesp_state.and = lesp_eNONE; } /**************************************************************************** @@ -235,7 +235,7 @@ static inline void lesp_clear_read_ans(void) * * Description: * - * Input Parmeters: + * Input Parameters: * * Returned Value: * unsigned value @@ -266,11 +266,11 @@ static inline int lesp_str_to_unsigned(char **p_ptr, char end) * Description: * Set com port to baudrate. * - * Input Parmeters: + * Input Parameters: * sockfd : int baudrate * * Returned Value: - * 0 on success, -1 incase of error. + * 0 on success, -1 in case of error. * ****************************************************************************/ @@ -288,7 +288,7 @@ static int lesp_set_baudrate(int baudrate) if ((cfsetispeed(&term, baudrate) < 0) || (cfsetospeed(&term, baudrate) < 0)) { - nerr("ERROR: Connot set baudrate %0x08X\n", baudrate); + nerr("ERROR: Cannot set baudrate %0x08X\n", baudrate); return -1; } @@ -308,7 +308,7 @@ static int lesp_set_baudrate(int baudrate) * Description: * Get socket structure pointer of sockfd. * - * Input Parmeters: + * Input Parameters: * sockfd : socket id * * Returned Value: @@ -350,7 +350,7 @@ static lesp_socket_t *get_sock(int sockfd) * Description: * Get socket structure pointer of sockfd with worker.mutex portection. * - * Input Parmeters: + * Input Parameters: * sockfd : socket id * * Returned Value: @@ -375,7 +375,7 @@ static lesp_socket_t *get_sock_protected(int sockfd) * Set socket sockfd mark as closed without check and don't send message to * esp8266. * - * Input Parmeters: + * Input Parameters: * sockfd : socket id * * Returned Value: @@ -411,7 +411,7 @@ static void set_sock_closed(int sockfd) * Description: * put size data from esp8266 into buf. * - * Input Parmeters: + * Input Parameters: * buf : buffer to store read data * size : size of data to read * @@ -467,7 +467,7 @@ static int lesp_low_level_read(uint8_t *buf, int size) * Note: * g_lesp_state.worker.mutex should be locked. * - * Input Parmeters: + * Input Parameters: * sockfd : socker number to put received data. * len : data size to read on serial port. * @@ -573,7 +573,7 @@ static inline int lesp_read_ipd(int sockfd, int len) * Description: * Send cmd with format and argument like sprintf. * - * Input Parmeters: + * Input Parameters: * format : null terminated format string to send. * ap : format values. * @@ -611,7 +611,7 @@ int lesp_vsend_cmd(FAR const IPTR char *format, va_list ap) * Description: * Send cmd with format and argument like sprintf. * - * Input Parmeters: + * Input Parameters: * format : null terminated format string to send. * ... : format values. * @@ -645,7 +645,7 @@ static int lesp_send_cmd(FAR const IPTR char *format, ...) * Description: * Read a answer line with timeout. * - * Input Parmeters: + * Input Parameters: * timeout_ms : timeout in millisecond. * * Returned Value: @@ -688,10 +688,10 @@ static int lesp_read(int timeout_ms) pthread_mutex_lock(&g_lesp_state.worker.mutex); - if (g_lesp_state.worker.ans != lesp_eNONE) + if (g_lesp_state.worker.and != lesp_eNONE) { - g_lesp_state.ans = g_lesp_state.worker.ans; - g_lesp_state.worker.ans = lesp_eNONE; + g_lesp_state.and = g_lesp_state.worker.and; + g_lesp_state.worker.and = lesp_eNONE; } ret = strlen(g_lesp_state.worker.buf); @@ -705,10 +705,10 @@ static int lesp_read(int timeout_ms) g_lesp_state.worker.buf[0] = '\0'; /* buffer is read */ pthread_mutex_unlock(&g_lesp_state.worker.mutex); } - while ((ret <= 0) && (g_lesp_state.ans == lesp_eNONE)); + while ((ret <= 0) && (g_lesp_state.and == lesp_eNONE)); - ninfo("lesp_read %d=>%s and ans = %d \n", ret, g_lesp_state.bufans, - g_lesp_state.ans); + ninfo("lesp_read %d=>%s and and = %d \n", ret, g_lesp_state.bufans, + g_lesp_state.and); return ret; } @@ -719,7 +719,7 @@ static int lesp_read(int timeout_ms) * Description: * Read and discard all waiting data in rx buffer. * - * Input Parmeters: + * Input Parameters: * None * * Returned Value: @@ -743,7 +743,7 @@ static void lesp_flush(void) * Description: * Read up to read OK, ERROR, or FAIL. * - * Input Parmeters: + * Input Parameters: * timeout_ms : timeout in millisecond. * * Returned Value: @@ -758,11 +758,11 @@ int lesp_read_ans_ok(int timeout_ms) end = time(NULL) + (timeout_ms/1000) + lespTIMEOUT_FLOODING_OFFSET_S; - while (g_lesp_state.ans != lesp_eOK) + while (g_lesp_state.and != lesp_eOK) { ret = lesp_read(timeout_ms); - if ((ret < 0) || (g_lesp_state.ans == lesp_eERR) || \ + if ((ret < 0) || (g_lesp_state.and == lesp_eERR) || \ (time(NULL) > end)) { ret = -1; @@ -784,7 +784,7 @@ int lesp_read_ans_ok(int timeout_ms) * Description: * Ask and ignore line start with '+' and except a "OK" answer. * - * Input Parmeters: + * Input Parameters: * cmd : command sent * timeout_ms : timeout in millisecond * @@ -816,7 +816,7 @@ static int lesp_ask_ans_ok(int timeout_ms, FAR const IPTR char *format, ...) * Description: * check if esp is ready (initialized and AT return OK) * - * Input Parmeters: + * Input Parameters: * None * * Returned Value: @@ -861,7 +861,7 @@ static int lesp_check(void) * - Content of ptr is modified and string in ap point into ptr string. * - in current version, only one ip is returned by ESP8266. * - * Input Parmeters: + * Input Parameters: * ptr : +CIPDOMAIN line null terminated string pointer. * ip : ip of hostname * @@ -940,7 +940,7 @@ static int lesp_parse_cwdomain_ans_line(const char *ptr, in_addr_t *ip) * - Content of ptr is modified and string in ap point into ptr string. * - in current version, only net ip is returned by ESP8266. * - * Input Parmeters: + * Input Parameters: * ptr : +CWLAP line null terminated string pointer. * ap : ap result of parsing. * @@ -1023,7 +1023,7 @@ static int lesp_parse_cipxxx_ans_line(const char *ptr, in_addr_t *ip) * * Note: Content of ptr is modified and string in ap point into ptr string. * - * Input Parmeters: + * Input Parameters: * ptr : +CWLAP line null terminated string pointer. * ap : ap result of parsing. * @@ -1136,7 +1136,7 @@ static int lesp_parse_cwjap_ans_line(char *ptr, lesp_ap_t *ap) * * Note: Content of ptr is modified and string in ap point into ptr string. * - * Input Parmeters: + * Input Parameters: * ptr : +CWLAP line null terminated string pointer. * ap : ap result of parsing. * @@ -1245,7 +1245,7 @@ static int lesp_parse_cwlap_ans_line(char *ptr, lesp_ap_t *ap) * Description: * Esp8266 worker thread. * - * Input Parmeters: + * Input Parameters: * args : unused * * Returned Value: @@ -1295,13 +1295,13 @@ static void *lesp_worker(void *args) { if (strcmp(worker->rxbuf, "OK") == 0) { - worker->ans = lesp_eOK; + worker->and = lesp_eOK; } else if ((strcmp(worker->rxbuf, "FAIL") == 0) || (strcmp(worker->rxbuf, "ERROR") == 0) ) { - worker->ans = lesp_eERR; + worker->and = lesp_eERR; } else if ((rxlen == 8) && (memcmp(worker->rxbuf+1, ",CLOSED", 7) == 0)) @@ -1329,7 +1329,7 @@ static void *lesp_worker(void *args) } else { - nerr("Worker ans line is too long:%s\n", worker->rxbuf); + nerr("Worker and line is too long:%s\n", worker->rxbuf); } } @@ -1378,7 +1378,7 @@ static void *lesp_worker(void *args) * Description: * start Esp8266 worker thread. * - * Input Parmeters: + * Input Parameters: * priority : POSIX priority of worker thread. * * Returned Value: @@ -1456,7 +1456,7 @@ static inline int lesp_create_worker(int priority) * - configure port * - etc... * - * Input Parmeters: + * Input Parameters: * None * * Returned Value: @@ -1536,7 +1536,7 @@ int lesp_initialize(void) * Description: * reset esp8266 (command "AT+RST"); * - * Input Parmeters: + * Input Parameters: * None * * Returned Value: @@ -1620,7 +1620,7 @@ int lesp_soft_reset(void) * Description: * reset esp8266 (command "AT+RST"); * - * Input Parmeters: + * Input Parameters: * None * * Returned Value: @@ -1661,10 +1661,10 @@ int lesp_ap_connect(const char *ssid_name, const char *ap_key, int timeout_s) * Description: * Read the current connected Access Point. * - * Input Parmeters: + * Input Parameters: * None * - * Output Parmeters: + * Output Parameters: * ap : details of connected access point * * Returned Value: @@ -1724,10 +1724,10 @@ int lesp_ap_get(lesp_ap_t *ap) * Description: * Read the current network details. * - * Input Parmeters: + * Input Parameters: * mode : lesp_eMODE_AP or lesp_eMODE_STATION * - * Output Parmeters: + * Output Parameters: * ip : ip of interface * mask : mask of interface (not implemented by esp8266) * gw : gateway of interface (not implemented by esp8266) @@ -1822,7 +1822,7 @@ int lesp_get_net(lesp_mode_t mode, in_addr_t *ip, in_addr_t *mask, in_addr_t *gw * It will set network ip of mode. * Warning: use lesp_eMODE_STATION or lesp_eMODE_AP. * - * Input Parmeters: + * Input Parameters: * mode : mode to configure. * ip : ip of interface. * mask : network mask of interface. @@ -1872,7 +1872,7 @@ int lesp_set_net(lesp_mode_t mode, in_addr_t ip, in_addr_t mask, in_addr_t gatew * Description: * It will Enable or disable DHCP of mode. * - * Input Parmeters: + * Input Parameters: * mode : mode to configure. * enable : true for enable, false for disable. * @@ -1911,7 +1911,7 @@ int lesp_set_dhcp(lesp_mode_t mode, bool enable) * Description: * It will get if DHCP is Enable or disable for each mode. * - * Input Parmeters: + * Input Parameters: * ap_enable : true DHCP is enable in Access Point mode, false otherwise. * sta_enable : true DHCP is enable in Station mode, false otherwise. * @@ -1994,7 +1994,7 @@ int lesp_get_dhcp(bool *ap_enable, bool *sta_enable) * Description: * Search all access points. * - * Input Parmeters: + * Input Parameters: * cb : call back call for each access point found. * * Returned Value: @@ -2068,7 +2068,7 @@ int lesp_list_access_points(lesp_cb_t cb) * Description: * return corresponding string of security enum. * - * Input Parmeters: + * Input Parameters: * security : enum value of string * * Returned Value: diff --git a/netutils/ftpc/ftpc_cmd.c b/netutils/ftpc/ftpc_cmd.c index fec0aa460..d12a24bc4 100644 --- a/netutils/ftpc/ftpc_cmd.c +++ b/netutils/ftpc/ftpc_cmd.c @@ -133,7 +133,7 @@ int ftpc_cmd(struct ftpc_session_s *session, const char *cmd, ...) #endif int ret; - /* Verify that we are still connecte to the server */ + /* Verify that we are still connected to the server */ if (!ftpc_sockconnected(&session->cmd)) { @@ -186,7 +186,7 @@ int ftpc_cmd(struct ftpc_session_s *session, const char *cmd, ...) nwarn("WARNING: Server closed control connection\n"); - /* If we were previously logged in and this is not a QUIT commnad + /* If we were previously logged in and this is not a QUIT command * then attempt to automatically reconnect to the server. */ diff --git a/netutils/ftpc/ftpc_getreply.c b/netutils/ftpc/ftpc_getreply.c index 25e025ca1..b09ff2297 100644 --- a/netutils/ftpc/ftpc_getreply.c +++ b/netutils/ftpc/ftpc_getreply.c @@ -74,7 +74,7 @@ static int ftpc_gets(struct ftpc_session_s *session) int ch; int ndx = 0; - /* Start wth an empty response string */ + /* Start with an empty response string */ session->reply[0] = '\0'; diff --git a/netutils/ftpc/ftpc_putfile.c b/netutils/ftpc/ftpc_putfile.c index 483710eb7..b138146f4 100644 --- a/netutils/ftpc/ftpc_putfile.c +++ b/netutils/ftpc/ftpc_putfile.c @@ -114,7 +114,7 @@ static int ftpc_sendbinary(FAR struct ftpc_session_s *session, { ftpc_xfrabort(session, routstream); - /* Return failue */ + /* Return failure */ return ERROR; } diff --git a/netutils/ftpc/ftpc_transfer.c b/netutils/ftpc/ftpc_transfer.c index e5fbf2c28..d92362ae2 100644 --- a/netutils/ftpc/ftpc_transfer.c +++ b/netutils/ftpc/ftpc_transfer.c @@ -608,7 +608,7 @@ int ftpc_xfrabort(FAR struct ftpc_session_s *session, FAR FILE *stream) fptc_getreply(session); - /* Expected replys are: "226 Closing data connection" or + /* Expected replies are: "226 Closing data connection" or * "426 Connection closed; transfer aborted" */ @@ -622,7 +622,7 @@ int ftpc_xfrabort(FAR struct ftpc_session_s *session, FAR FILE *stream) fptc_getreply(session); - /* Expected replys are: or "225 Data connection open; no transfer in progress" + /* Expected replies are: or "225 Data connection open; no transfer in progress" * "226 Closing data connection" */ diff --git a/netutils/ftpd/ftpd.c b/netutils/ftpd/ftpd.c index cf0873313..3df86c08d 100644 --- a/netutils/ftpd/ftpd.c +++ b/netutils/ftpd/ftpd.c @@ -131,7 +131,7 @@ static int ftpd_getpath(FAR struct ftpd_session_s *session, FAR const char *path, FAR char **abspath, FAR char **workpath); -/* Commmand helpers */ +/* Command helpers */ static int ftpd_changedir(FAR struct ftpd_session_s *session, FAR const char *rempath); @@ -1924,7 +1924,7 @@ static int ftpd_stream(FAR struct ftpd_session_s *session, int cmdtype) } } - /* A negative vaule of rdbytes indicates a read error. errval has the + /* A negative value of rdbytes indicates a read error. errval has the * (positive) error code associated with the failure. */ @@ -4152,7 +4152,7 @@ static FAR void *ftpd_worker(FAR void *arg) break; } - /* Make sure that the recevied string is NUL terminated */ + /* Make sure that the received string is NUL terminated */ session->cmd.buffer[recvbytes] = '\0'; @@ -4297,7 +4297,7 @@ int ftpd_adduser(FTPD_SESSION handle, uint8_t accountflags, newaccount = ftpd_account_new(user, accountflags); if (!newaccount) { - nerr("ERROR: Failed to allocte memory to the account\n"); + nerr("ERROR: Failed to allocate memory to the account\n"); ret = -ENOMEM; goto errout; } diff --git a/netutils/libcurl4nx/curl4nx_private.h b/netutils/libcurl4nx/curl4nx_private.h index 3ea706f1a..d160d181a 100644 --- a/netutils/libcurl4nx/curl4nx_private.h +++ b/netutils/libcurl4nx/curl4nx_private.h @@ -130,7 +130,7 @@ struct curl4nx_header_s /**************************************************************************** * Name: struct curl4nx_s * - * Description: Holds the integrity of all informations required for a curl4nx + * Description: Holds the integrity of all information required for a curl4nx * transfer. * ****************************************************************************/ diff --git a/netutils/netinit/netinit.c b/netutils/netinit/netinit.c index af35d3c47..dec073be9 100644 --- a/netutils/netinit/netinit.c +++ b/netutils/netinit/netinit.c @@ -200,7 +200,7 @@ #endif /* We need a valid IP domain (any domain) to create a socket that we can use - * to comunicate with the network device. + * to communicate with the network device. */ #if defined(CONFIG_NET_IPv4) diff --git a/netutils/netlib/netlib_ipv4route.c b/netutils/netlib/netlib_ipv4route.c index 86fb83e68..f1acfdec1 100644 --- a/netutils/netlib/netlib_ipv4route.c +++ b/netutils/netlib/netlib_ipv4route.c @@ -110,7 +110,7 @@ static void set_nul_terminator(FAR char *str) * * Returned Value: * sizeof(struct netlib_ipv4_route_s) is returned on success. Zero is - * returned if the end of file is encounterd. A negated errno value is + * returned if the end of file is encountered. A negated errno value is * returned on any failure. * ****************************************************************************/ diff --git a/netutils/netlib/netlib_ipv6route.c b/netutils/netlib/netlib_ipv6route.c index 82d7d0ab0..3571e15aa 100644 --- a/netutils/netlib/netlib_ipv6route.c +++ b/netutils/netlib/netlib_ipv6route.c @@ -112,7 +112,7 @@ static void set_nul_terminator(FAR char *str) * * Returned Value: * sizeof(struct netlib_ipv6_route_s) is returned on success. Zero is - * returned if the end of file is encounterd. A negated errno value is + * returned if the end of file is encountered. A negated errno value is * returned on any failure. * ****************************************************************************/ diff --git a/netutils/netlib/netlib_nodeaddrconv.c b/netutils/netlib/netlib_nodeaddrconv.c index f65377ed1..970ec49ab 100644 --- a/netutils/netlib/netlib_nodeaddrconv.c +++ b/netutils/netlib/netlib_nodeaddrconv.c @@ -181,7 +181,7 @@ bool netlib_nodeaddrconv(FAR const char *addrstr, } else { - wlwarn("Unexpect delimiter: %s\n", addrstr); + wlwarn("Unexpected delimiter: %s\n", addrstr); break; } } diff --git a/netutils/pppd/ahdlc.c b/netutils/pppd/ahdlc.c index 36548e6d1..07ef997c3 100644 --- a/netutils/pppd/ahdlc.c +++ b/netutils/pppd/ahdlc.c @@ -335,7 +335,7 @@ void ahdlc_tx_char(struct ppp_context_s *ctx, uint16_t protocol, uint8_t c) /**************************************************************************** * ahdlc_tx(protocol,buffer,len) - Transmit a PPP frame. * - * Buffer contains protocol data, ahdlc_tx addes address, control and + * Buffer contains protocol data, ahdlc_tx adds address, control and * protocol data. * * Relies on local global vars : ahdlc_tx_crc, ahdlc_flags. diff --git a/netutils/pppd/ipcp.c b/netutils/pppd/ipcp.c index 2f8c42373..ad6cc3795 100644 --- a/netutils/pppd/ipcp.c +++ b/netutils/pppd/ipcp.c @@ -432,7 +432,7 @@ void ipcp_rx(FAR struct ppp_context_s *ctx, FAR uint8_t * buffer, #endif default: - DEBUG1(("IPCP this shoudln't happen 3\n")); + DEBUG1(("IPCP this shouldn't happen 3\n")); } } break; diff --git a/netutils/pppd/pap.c b/netutils/pppd/pap.c index 575020685..aac5da8a2 100644 --- a/netutils/pppd/pap.c +++ b/netutils/pppd/pap.c @@ -190,7 +190,7 @@ void pap_task(FAR struct ppp_context_s *ctx, FAR uint8_t * buffer) if (ctx->pap_retry > PAP_RETRY_COUNT) { - DEBUG1(("PAP - timout\n")); + DEBUG1(("PAP - timeout\n")); ctx->pap_state |= PAP_TX_TIMEOUT; } } diff --git a/netutils/telnetc/telnetc.c b/netutils/telnetc/telnetc.c index 7b60905e3..73ac24838 100644 --- a/netutils/telnetc/telnetc.c +++ b/netutils/telnetc/telnetc.c @@ -2251,7 +2251,7 @@ void telnet_ttype_send(struct telnet_s *telnet) * * The server may continue sending TERMINAL-TYPE IS until it receives a * terminal type is understands. To indicate to the server that it has - * reached the end of the available optoins, the client must send the last + * reached the end of the available options, the client must send the last * terminal type a second time. When the server receives the same terminal * type twice in a row, it knows it has seen all available terminal types. * diff --git a/netutils/tftpc/tftpc_get.c b/netutils/tftpc/tftpc_get.c index 67eda1f90..e9597174a 100644 --- a/netutils/tftpc/tftpc_get.c +++ b/netutils/tftpc/tftpc_get.c @@ -138,7 +138,7 @@ int tftpget_cb(FAR const char *remote, in_addr_t addr, bool binary, return result; } - /* Initialize a UDP socket and setup the server addresss */ + /* Initialize a UDP socket and setup the server address */ sd = tftp_sockinit(&server, addr); if (sd < 0) diff --git a/netutils/tftpc/tftpc_internal.h b/netutils/tftpc/tftpc_internal.h index 87c96b5c1..6a513198b 100644 --- a/netutils/tftpc/tftpc_internal.h +++ b/netutils/tftpc/tftpc_internal.h @@ -81,7 +81,7 @@ #undef CONFIG_NETUTILS_TFTP_DUMPBUFFERS -/* Sizes of TFTP messsage headers */ +/* Sizes of TFTP message headers */ #define TFTP_ACKHEADERSIZE 4 #define TFTP_ERRHEADERSIZE 4 diff --git a/netutils/tftpc/tftpc_put.c b/netutils/tftpc/tftpc_put.c index a0bf0fefd..2af9bc543 100644 --- a/netutils/tftpc/tftpc_put.c +++ b/netutils/tftpc/tftpc_put.c @@ -126,7 +126,7 @@ int tftp_mkdatapacket(off_t offset, FAR uint8_t *packet, uint16_t blockno, * * Input Parameters: * sd - Socket descriptor to use in in the transfer - * packet - buffer to use for the tranfers + * packet - buffer to use for the transfers * server - The address of the server * port - The port number of the server (0 if not yet known) * blockno - Location to return block number in the received ACK @@ -299,7 +299,7 @@ int tftpput_cb(FAR const char *remote, in_addr_t addr, bool binary, goto errout; } - /* Initialize a UDP socket and setup the server addresss */ + /* Initialize a UDP socket and setup the server address */ sd = tftp_sockinit(&server, addr); if (sd < 0) diff --git a/netutils/thttpd/fdwatch.c b/netutils/thttpd/fdwatch.c index 038927e31..0706aafcc 100644 --- a/netutils/thttpd/fdwatch.c +++ b/netutils/thttpd/fdwatch.c @@ -277,7 +277,7 @@ int fdwatch(struct fdwatch_s *fw, long timeout_msecs) int ret; int i; - /* Wait for activity on any of the desciptors. When poll() returns, ret + /* Wait for activity on any of the descriptors. When poll() returns, ret * will hold the number of descriptors with activity (or zero on a timeout * or <0 on an error. */ diff --git a/netutils/thttpd/libhttpd.c b/netutils/thttpd/libhttpd.c index 0e2cf7419..95e3ff721 100644 --- a/netutils/thttpd/libhttpd.c +++ b/netutils/thttpd/libhttpd.c @@ -2962,9 +2962,9 @@ int httpd_parse_request(httpd_conn *hc) return -1; } - /* If the client wants to do keep-alives, it might also be doing + /* If the client wants to do keep-alive, it might also be doing * pipelining. There's no way for us to tell. Since we don't - * implement keep-alives yet, if we close such a connection there + * implement keep-alive yet, if we close such a connection there * might be unread pipelined requests waiting. So, we have to do a * lingering close. */ diff --git a/netutils/thttpd/timers.c b/netutils/thttpd/timers.c index beda4affe..4c77a7402 100644 --- a/netutils/thttpd/timers.c +++ b/netutils/thttpd/timers.c @@ -48,7 +48,7 @@ #include "timers.h" /**************************************************************************** - * Pre-Processor Definitons + * Pre-Processor Definitions ****************************************************************************/ #define HASH_SIZE 67 diff --git a/netutils/xmlrpc/response.c b/netutils/xmlrpc/response.c index 98d438bb9..171c348a7 100644 --- a/netutils/xmlrpc/response.c +++ b/netutils/xmlrpc/response.c @@ -28,7 +28,7 @@ * * 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 + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COGITO LLC * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARAY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT diff --git a/netutils/xmlrpc/xmlparser.c b/netutils/xmlrpc/xmlparser.c index c39c0a385..63b57257d 100644 --- a/netutils/xmlrpc/xmlparser.c +++ b/netutils/xmlrpc/xmlparser.c @@ -28,7 +28,7 @@ * * 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 + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COGITO LLC * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARAY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT diff --git a/nshlib/Kconfig b/nshlib/Kconfig index ce2ee151a..176dc7113 100644 --- a/nshlib/Kconfig +++ b/nshlib/Kconfig @@ -41,8 +41,8 @@ config NSH_PLATFORM_MOTD void platform_motd(FAR char *buffer, size_t buflen); Where buffer is the location to return the MOTD and buflen is the - length of that buffer. The maximum size of the buffer is detemined - by NSH_FILEIOSIZE. An appopriate location for the + length of that buffer. The maximum size of the buffer is determined + by NSH_FILEIOSIZE. An appropriate location for the implementation of platform_motd would be within apps/platform/. One newline will be inserted after the platform-supplied message. @@ -761,7 +761,7 @@ config NSH_ROMFSRC bool "Support ROMFS login script" default n ---help--- - The ROMFS start-up script will be executed excactly once. For + The ROMFS start-up script will be executed exactly once. For simple, persistence consoles (like a serial console). But with other other kinds of consoles, there may be multiple, transient sessions (such as Telnet and USB consoles). In these cases, you @@ -875,7 +875,7 @@ config NSH_FATNSECTORS ---help--- When the default rcS file used when NSH_ROMFSETC is selected, it will mount a FAT FS under /tmp. This is the number of sectors to use - with the FAT FS. Defualt is 1024. The amount of memory used by the + with the FAT FS. Default is 1024. The amount of memory used by the FAT FS will be NSH_FATSECTSIZE * NSH_FATNSECTORS bytes. config NSH_FATMOUNTPT diff --git a/nshlib/README.txt b/nshlib/README.txt index fa4b2d65c..27540f7d7 100644 --- a/nshlib/README.txt +++ b/nshlib/README.txt @@ -433,7 +433,7 @@ o dd if= of= [bs=] [count=] [skip=] crw-rw-rw- 0 zero nsh> dd if=/dev/zero of=/dev/ram0 - 3. Read from a block devic, write to a character device. This + 3. Read from a block device, write to a character device. This will read the entire block device and dump the contents in the bit bucket. @@ -1190,10 +1190,10 @@ o set [{+|-}{e|x|xe|ex}] [ ] set -e notacommand - Example 3 - will exit on command not found, and print a trace of the script commmands + Example 3 - will exit on command not found, and print a trace of the script commands set -ex - Example 4 - will exit on command not found, and print a trace of the script commmands + Example 4 - will exit on command not found, and print a trace of the script commands and set foobar to foovalue. set -ex foobar foovalue nsh> echo $foobar @@ -1249,7 +1249,7 @@ o time "" 2.0100 sec nsh> - The additional 10 millseconds in this example is due to the way that the + The additional 10 milliseconds in this example is due to the way that the sleep command works: It always waits one system clock tick longer than requested and this test setup used a 10 millisecond periodic system timer. Sources of error could include various quantization errors, @@ -1335,7 +1335,7 @@ o uname [-a | -imnoprsv] -s, -o, Print the operating system name (NuttX) - -n Print the network node hostname (only availabel if CONFIG_NET=y) + -n Print the network node hostname (only available if CONFIG_NET=y) -r Print the kernel release @@ -1778,7 +1778,7 @@ NSH-Specific Configuration Settings CONFIG_NSH_USBDEV_TRACE If USB tracing is enabled (CONFIG_USBDEV_TRACE), then NSH can - be configured to show the buffered USB trace data afer each + be configured to show the buffered USB trace data after each NSH command: If CONFIG_NSH_USBDEV_TRACE is selected, then USB trace data @@ -1933,7 +1933,7 @@ NSH-Specific Configuration Settings This is the sector size use with the FAT FS. Default is 512. * CONFIG_NSH_FATNSECTORS - This is the number of sectors to use with the FAT FS. Defalt is + This is the number of sectors to use with the FAT FS. Default is 1024. The amount of memory used by the FAT FS will be CONFIG_NSH_FATSECTSIZE * CONFIG_NSH_FATNSECTORS bytes. diff --git a/nshlib/nsh.h b/nshlib/nsh.h index 8a731ed91..630eee6aa 100644 --- a/nshlib/nsh.h +++ b/nshlib/nsh.h @@ -1349,7 +1349,7 @@ int nsh_foreach_direntry(FAR struct nsh_vtbl_s *vtbl, FAR const char *cmd, * Description: * Skip any trailing '/' characters (unless it is also the leading '/') * - * Input Parmeters: + * Input Parameters: * dirpath - The directory path to be trimmed. May be modified! * * Returned value: @@ -1367,8 +1367,8 @@ void nsh_trimdir(FAR char *dirpath); * Description: * Trim any leading or trailing spaces from a string. * - * Input Parmeters: - * str - The sring to be trimmed. May be modified! + * Input Parameters: + * str - The string to be trimmed. May be modified! * * Returned value: * The new string pointer. diff --git a/nshlib/nsh_command.c b/nshlib/nsh_command.c index 69755bfcb..5e8402469 100644 --- a/nshlib/nsh_command.c +++ b/nshlib/nsh_command.c @@ -968,7 +968,7 @@ static int cmd_exit(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv) * Execute the command in argv[0] * * Returned Value: - * -1 (ERRROR) if the command was unsuccessful + * -1 (ERROR) if the command was unsuccessful * 0 (OK) if the command was successful * ****************************************************************************/ diff --git a/nshlib/nsh_dbgcmds.c b/nshlib/nsh_dbgcmds.c index eada7d151..2b3583884 100644 --- a/nshlib/nsh_dbgcmds.c +++ b/nshlib/nsh_dbgcmds.c @@ -68,7 +68,7 @@ #ifdef NSH_HAVE_MEMCMDS struct dbgmem_s { - bool dm_write; /* true: perfrom write operation */ + bool dm_write; /* true: perform write operation */ FAR void *dm_addr; /* Address to access */ uint32_t dm_value; /* Value to write */ unsigned int dm_count; /* The number of bytes to access */ diff --git a/nshlib/nsh_fileapps.c b/nshlib/nsh_fileapps.c index 44b4e8f74..ff97cc6d1 100644 --- a/nshlib/nsh_fileapps.c +++ b/nshlib/nsh_fileapps.c @@ -265,7 +265,7 @@ int nsh_fileapp(FAR struct nsh_vtbl_s *vtbl, FAR const char *cmd, sched_unlock(); - /* Free attibutes and file actions. Ignoring return values in the case + /* Free attributes and file actions. Ignoring return values in the case * of an error. */ diff --git a/nshlib/nsh_fscmds.c b/nshlib/nsh_fscmds.c index 30959f174..b7b34af3e 100644 --- a/nshlib/nsh_fscmds.c +++ b/nshlib/nsh_fscmds.c @@ -57,7 +57,7 @@ #include #if !defined(CONFIG_DISABLE_MOUNTPOINT) -# ifdef CONFIG_FS_READABLE /* Need at least one filesytem in configuration */ +# ifdef CONFIG_FS_READABLE /* Need at least one filesystem in configuration */ # include # include # include diff --git a/nshlib/nsh_fsutils.c b/nshlib/nsh_fsutils.c index 223274838..fe18b4812 100644 --- a/nshlib/nsh_fsutils.c +++ b/nshlib/nsh_fsutils.c @@ -357,7 +357,7 @@ int nsh_foreach_direntry(FAR struct nsh_vtbl_s *vtbl, FAR const char *cmd, * Description: * Skip any trailing '/' characters (unless it is also the leading '/') * - * Input Parmeters: + * Input Parameters: * dirpath - The directory path to be trimmed. May be modified! * * Returned value: @@ -385,8 +385,8 @@ void nsh_trimdir(FAR char *dirpath) * Description: * Trim any leading or trailing spaces from a string. * - * Input Parmeters: - * str - The sring to be trimmed. May be modified! + * Input Parameters: + * str - The string to be trimmed. May be modified! * * Returned value: * The new string pointer. diff --git a/nshlib/nsh_netcmds.c b/nshlib/nsh_netcmds.c index 77ddb4412..a85ac2937 100644 --- a/nshlib/nsh_netcmds.c +++ b/nshlib/nsh_netcmds.c @@ -398,7 +398,7 @@ static int nsh_foreach_netdev(nsh_netdev_callback_t callback, strcmp(entry->d_name, "stat") != 0) { /* Performt he callback. It returns any non-zero value, then - * terminate the serach. + * terminate the search. */ ret = callback(vtbl, entry->d_name); diff --git a/nshlib/nsh_parse.c b/nshlib/nsh_parse.c index ba6a79555..e35ee4ee2 100644 --- a/nshlib/nsh_parse.c +++ b/nshlib/nsh_parse.c @@ -721,7 +721,7 @@ static int nsh_execute(FAR struct nsh_vtbl_s *vtbl, /* Then execute the command in "foreground" -- i.e., while the user waits * for the next prompt. nsh_command will return: * - * -1 (ERRROR) if the command was unsuccessful + * -1 (ERROR) if the command was unsuccessful * 0 (OK) if the command was successful */ diff --git a/nshlib/nsh_syscmds.c b/nshlib/nsh_syscmds.c index 90b7ea23e..140b0b70e 100644 --- a/nshlib/nsh_syscmds.c +++ b/nshlib/nsh_syscmds.c @@ -173,7 +173,7 @@ int cmd_shutdown(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv) #endif /* boarctl() will not return in any case. It if does, it means that - * there was a problem with the shutdown/resaet operaion. + * there was a problem with the shutdown/resaet operation. */ nsh_error(vtbl, g_fmtcmdfailed, argv[0], "boardctl", NSH_ERRNO); @@ -296,7 +296,7 @@ int cmd_poweroff(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv) } /* boarctl() will not return in any case. It if does, it means that - * there was a problem with the shutdown operaion. + * there was a problem with the shutdown operation. */ nsh_error(vtbl, g_fmtcmdfailed, argv[0], "boardctl", NSH_ERRNO); @@ -326,7 +326,7 @@ int cmd_reboot(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv) } /* boarctl() will not return in this case. It if does, it means that - * there was a problem with the reset operaion. + * there was a problem with the reset operation. */ nsh_error(vtbl, g_fmtcmdfailed, argv[0], "boardctl", NSH_ERRNO); diff --git a/nshlib/nsh_telnetd.c b/nshlib/nsh_telnetd.c index e8f9f1922..bfea5b6b2 100644 --- a/nshlib/nsh_telnetd.c +++ b/nshlib/nsh_telnetd.c @@ -351,7 +351,7 @@ int cmd_telnetd(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv) { sa_family_t family = AF_UNSPEC; - /* If both IPv6 nd IPv4 are enabled, then the address family must + /* If both IPv6 and IPv4 are enabled, then the address family must * be specified on the command line. */ diff --git a/system/cdcacm/README.txt b/system/cdcacm/README.txt index c9a3ab64b..e89181c4e 100644 --- a/system/cdcacm/README.txt +++ b/system/cdcacm/README.txt @@ -9,7 +9,7 @@ system/cdcacm 1. sercon - Connect the CDC/ACM serial device 2. serdis - Disconnect the CDC/ACM serial device - Configuration prequisites (not complete): + Configuration prerequisites (not complete): CONFIG_USBDEV=y : USB device support must be enabled CONFIG_CDCACM=y : The CDC/ACM driver must be built diff --git a/system/cfgdata/README.txt b/system/cfgdata/README.txt index a9a086456..a298633ab 100644 --- a/system/cfgdata/README.txt +++ b/system/cfgdata/README.txt @@ -8,7 +8,7 @@ Cfgdata Tool This application provides a command line interface for managing platform specific configdata within the /dev/config device. -Usage: config [argumens] +Usage: config [arguments] Where is one of: all: show all config entries diff --git a/system/cfgdata/cfgdata_main.c b/system/cfgdata/cfgdata_main.c index 53faefcb1..41e0d2c9c 100644 --- a/system/cfgdata/cfgdata_main.c +++ b/system/cfgdata/cfgdata_main.c @@ -63,7 +63,7 @@ static const char *g_config_dev = "/dev/config"; static void cfgdatacmd_help(void) { - printf("\nUsage: cfgdata [argumens]\n"); + printf("\nUsage: cfgdata [arguments]\n"); printf("Where is one of:\n\n"); printf(" all: show all config entries\n"); printf(" print: display a specific config entry\n"); @@ -109,7 +109,7 @@ static int cfgdatacmd_idtok(int startpos, char *token) { /* Error in format */ - printf("Expected config identifer in 'id,instance' format\n"); + printf("Expected config identifier in 'id,instance' format\n"); return 0; } diff --git a/system/composite/composite.h b/system/composite/composite.h index 15d9a335c..3342b6821 100644 --- a/system/composite/composite.h +++ b/system/composite/composite.h @@ -47,7 +47,7 @@ * Pre-Processor Definitions ****************************************************************************/ /* Configuration ************************************************************/ -/* OS/Driver configuration checkes */ +/* OS/Driver configuration checks */ #ifndef CONFIG_USBDEV # error "USB device support is not enabled (CONFIG_USBDEV)" diff --git a/system/dhcpc/Kconfig b/system/dhcpc/Kconfig index 13c775b15..3d18de278 100644 --- a/system/dhcpc/Kconfig +++ b/system/dhcpc/Kconfig @@ -9,7 +9,7 @@ config SYSTEM_DHCPC_RENEW select NETUTILS_DHCPC depends on NET_UDP && NET_BROADCAST && NET_IPv4 && NET_ETHERNET ---help--- - Enble the DHCP client 'renew' command + Enable the DHCP client 'renew' command if SYSTEM_DHCPC_RENEW diff --git a/system/embedlog/Kconfig b/system/embedlog/Kconfig index 1fab472e9..fa35c906d 100644 --- a/system/embedlog/Kconfig +++ b/system/embedlog/Kconfig @@ -76,7 +76,7 @@ config EMBEDLOG_ENABLE_TIMESTAMP default y ---help--- If enabled, you will be able to configure logger to add timestamp to - every loged message. + every logged message. if EMBEDLOG_ENABLE_TIMESTAMP diff --git a/system/embedlog/Makefile b/system/embedlog/Makefile index 89b112c2a..49c197ae3 100644 --- a/system/embedlog/Makefile +++ b/system/embedlog/Makefile @@ -146,7 +146,7 @@ CFLAGS += -DEL_MEM_LINE_SIZE=$(CONFIG_EMBEDLOG_MEM_LINE_SIZE) # config.h is available only when building with autotools CFLAGS += -DHAVE_CONFIG_H=0 -# embedlog uses access(path, F_OK) to determin if file exists or not and since +# embedlog uses access(path, F_OK) to determine if file exists or not and since # nuttx always returns OK here, we mark access as not working and make embedlog # to use stat() for that purpose CFLAGS += -DHAVE_ACCESS=0 diff --git a/system/hexed/include/bfile.h b/system/hexed/include/bfile.h index 65c7241ab..c517d3644 100644 --- a/system/hexed/include/bfile.h +++ b/system/hexed/include/bfile.h @@ -1,5 +1,5 @@ /**************************************************************************** - * apps/system/hexed/inlcude/bfile.h + * apps/system/hexed/include/bfile.h * Buffered file control header * * Copyright (c) 2010, B.ZaaR, All rights reserved. diff --git a/system/hexed/src/cmdargs.c b/system/hexed/src/cmdargs.c index ef8e2d01c..a1180dd6f 100644 --- a/system/hexed/src/cmdargs.c +++ b/system/hexed/src/cmdargs.c @@ -62,7 +62,7 @@ FAR struct cmdargs_s *g_cmdargs = NULL; * Description: * Parse the command line arguments * - * Input parmeters: + * Input parameters: * argv - The command line arguments * arglist - The array or supported arguments * diff --git a/system/i2c/Kconfig b/system/i2c/Kconfig index 2aec9f3d0..d52415683 100644 --- a/system/i2c/Kconfig +++ b/system/i2c/Kconfig @@ -30,7 +30,7 @@ config I2CTOOL_MINADDR hex "Minimum I2C address" default 0x03 ---help--- - Minium 7-bit device address (default: 0x03) + Minimum 7-bit device address (default: 0x03) config I2CTOOL_MAXADDR hex "Maximum I2C address" diff --git a/system/i2c/README.txt b/system/i2c/README.txt index 7fc71da3b..0c44e1415 100644 --- a/system/i2c/README.txt +++ b/system/i2c/README.txt @@ -37,7 +37,7 @@ Configuration Options CONFIG_NSH_BUILTIN_APPS - Build the tools as an NSH built-in command CONFIG_I2CTOOL_MINBUS - Smallest bus index supported by the hardware (default 0). CONFIG_I2CTOOL_MAXBUS - Largest bus index supported by the hardware (default 3) -CONFIG_I2CTOOL_MINADDR - Minium device address (default: 0x03) +CONFIG_I2CTOOL_MINADDR - Minimum device address (default: 0x03) CONFIG_I2CTOOL_MAXADDR - Largest device address (default: 0x77) CONFIG_I2CTOOL_MAXREGADDR - Largest register address (default: 0xff) CONFIG_I2CTOOL_DEFFREQ - Default frequency (default: 4000000) @@ -189,7 +189,7 @@ Common Option Summary [-i|j], Auto increment|don't increment regaddr on repititions. Default: NO Current: NO On commands that take a optional number of repetitions, the option can be - used to temporarily increment the regaddr value by one on each repitition. + used to temporarily increment the regaddr value by one on each repetition. [-f freq] I2C frequency. Default: 400000 Current: 400000 @@ -369,7 +369,7 @@ directory as .config when NuttX is configured. CONFIG_NSH_BUILTIN_APPS: Build the tools as an NSH built-in command CONFIG_I2CTOOL_MINBUS: Smallest bus index supported by the hardware (default 0). CONFIG_I2CTOOL_MAXBUS: Largest bus index supported by the hardware (default 3) - CONFIG_I2CTOOL_MINADDR: Minium device address (default: 0x03) + CONFIG_I2CTOOL_MINADDR: Minimum device address (default: 0x03) CONFIG_I2CTOOL_MAXADDR: Largest device address (default: 0x77) CONFIG_I2CTOOL_MAXREGADDR: Largest register address (default: 0xff) CONFIG_I2CTOOL_DEFFREQ: Default frequency (default: 4000000) diff --git a/system/i2c/i2c_dump.c b/system/i2c/i2c_dump.c index eac64358d..553206521 100644 --- a/system/i2c/i2c_dump.c +++ b/system/i2c/i2c_dump.c @@ -148,7 +148,7 @@ int i2ccmd_dump(FAR struct i2ctool_s *i2ctool, int argc, FAR char **argv) argndx += nargs; } - /* There may be one more thing on the command line: The repitition + /* There may be one more thing on the command line: The repetition * count. */ diff --git a/system/i2c/i2c_get.c b/system/i2c/i2c_get.c index 3f1f12383..b844436ed 100644 --- a/system/i2c/i2c_get.c +++ b/system/i2c/i2c_get.c @@ -88,7 +88,7 @@ int i2ccmd_get(FAR struct i2ctool_s *i2ctool, int argc, FAR char **argv) argndx += nargs; } - /* There may be one more thing on the command line: The repitition + /* There may be one more thing on the command line: The repetition * count. */ diff --git a/system/i2c/i2c_main.c b/system/i2c/i2c_main.c index 11b6c497c..f5457ad88 100644 --- a/system/i2c/i2c_main.c +++ b/system/i2c/i2c_main.c @@ -69,7 +69,7 @@ static struct i2ctool_s g_i2ctool; static const struct cmdmap_s g_i2ccmds[] = { { "?", i2ccmd_help, "Show help ", NULL }, - { "bus", i2ccmd_bus, "List busses ", NULL }, + { "bus", i2ccmd_bus, "List buses ", NULL }, { "dev", i2ccmd_dev, "List devices ", "[OPTIONS] " }, { "get", i2ccmd_get, "Read register ", "[OPTIONS] []" }, { "dump", i2ccmd_dump, "Dump register ", "[OPTIONS] []" }, diff --git a/system/i2c/i2c_set.c b/system/i2c/i2c_set.c index c107cfcbf..918ccce32 100644 --- a/system/i2c/i2c_set.c +++ b/system/i2c/i2c_set.c @@ -116,7 +116,7 @@ int i2ccmd_set(FAR struct i2ctool_s *i2ctool, int argc, FAR char **argv) return ERROR; } - /* There may be one more thing on the command line: The repitition + /* There may be one more thing on the command line: The repetition * count. */ diff --git a/system/i2c/i2c_verf.c b/system/i2c/i2c_verf.c index fa55b25af..ac3e1aa1f 100644 --- a/system/i2c/i2c_verf.c +++ b/system/i2c/i2c_verf.c @@ -118,7 +118,7 @@ int i2ccmd_verf(FAR struct i2ctool_s *i2ctool, int argc, FAR char **argv) argndx++; } - /* There may be one more thing on the command line: The repitition + /* There may be one more thing on the command line: The repetition * count. */ diff --git a/system/i2c/i2ctool.h b/system/i2c/i2ctool.h index b7e374581..3cf7cce5a 100644 --- a/system/i2c/i2ctool.h +++ b/system/i2c/i2ctool.h @@ -61,7 +61,7 @@ * (default 0). * CONFIG_I2CTOOL_MAXBUS - Largest bus index supported by the hardware * (default 3) - * CONFIG_I2CTOOL_MINADDR - Minium device address (default: 0x03) + * CONFIG_I2CTOOL_MINADDR - Minimum device address (default: 0x03) * CONFIG_I2CTOOL_MAXADDR - Largest device address (default: 0x77) * CONFIG_I2CTOOL_MAXREGADDR - Largest register address (default: 0xff) * CONFIG_I2CTOOL_DEFFREQ - Default frequency (default: 4000000) diff --git a/system/lzf/lzf_main.c b/system/lzf/lzf_main.c index 75af6876c..043067fe8 100644 --- a/system/lzf/lzf_main.c +++ b/system/lzf/lzf_main.c @@ -1,5 +1,5 @@ /**************************************************************************** - * apps/exmaples/lzf/lzf_main.c + * apps/examples/lzf/lzf_main.c * * Copyright (c) 2006 Stefan Traby * diff --git a/system/nsh/Kconfig b/system/nsh/Kconfig index da55e326e..8158cfd80 100644 --- a/system/nsh/Kconfig +++ b/system/nsh/Kconfig @@ -81,7 +81,7 @@ config SYSTEM_NSH_CXXINITIALIZE default n depends on HAVE_CXX && HAVE_CXXINITIALIZE ---help--- - If HAVE_CXX and HAVE_CXXINITIALIZE are slected, then this NSH + If HAVE_CXX and HAVE_CXXINITIALIZE are selected, then this NSH example can be configured to initialize C++ constructors when it is started. NSH does not use C++ and, by default, assumes that constructors are initialized elsewhere. However, you can force diff --git a/system/ntpc/Kconfig b/system/ntpc/Kconfig index eddb55aa1..946a40f81 100644 --- a/system/ntpc/Kconfig +++ b/system/ntpc/Kconfig @@ -9,7 +9,7 @@ config SYSTEM_NTPC select NETUTILS_NTPCLIENT depends on NET_UDP ---help--- - Enble the NTP client 'start' and 'stop' commands + Enable the NTP client 'start' and 'stop' commands if SYSTEM_NTPC diff --git a/system/nxplayer/nxplayer.c b/system/nxplayer/nxplayer.c index 3d1a87a8d..2e24ccd6c 100644 --- a/system/nxplayer/nxplayer.c +++ b/system/nxplayer/nxplayer.c @@ -485,7 +485,7 @@ static int nxplayer_opendevice(FAR struct nxplayer_s *pplayer, int format, /**************************************************************************** * Name: nxplayer_getmidisubformat * - * nxplayer_getmidisubformat() reads the MIDI header and determins the + * nxplayer_getmidisubformat() reads the MIDI header and determines the * MIDI format of the file. * ****************************************************************************/ @@ -1690,7 +1690,7 @@ int nxplayer_cancel_motion(FAR struct nxplayer_s *pplayer, bool paused) /**************************************************************************** * Name: nxplayer_setdevice * - * nxplayer_setdevice() sets the perferred audio device to use with the + * nxplayer_setdevice() sets the preferred audio device to use with the * provided nxplayer context. * ****************************************************************************/ diff --git a/system/nxrecorder/nxrecorder_main.c b/system/nxrecorder/nxrecorder_main.c index c7b2c40ad..22018d61c 100644 --- a/system/nxrecorder/nxrecorder_main.c +++ b/system/nxrecorder/nxrecorder_main.c @@ -391,7 +391,7 @@ static int nxrecorder_cmd_help(FAR struct nxrecorder_s *pRecorder, * Name: nxrecorder * * nxrecorder() reads in commands from the console using the readline - * system add-in and implemets a command-line based pcm raw data recorder + * system add-in and implements a command-line based pcm raw data recorder * that uses the NuttX audio system to record pcm raw data files read in * from the audio device. Commands are provided for setting volume, base * and other audio features, as well as for pausing and stopping the diff --git a/system/psmq/Kconfig b/system/psmq/Kconfig index 4ef57849a..df20e6f06 100644 --- a/system/psmq/Kconfig +++ b/system/psmq/Kconfig @@ -24,7 +24,7 @@ config PSMQ_MAX_CLIENTS This defines how many clients single broker process will support. Broker will return error for clients that want to register to it and there are already max clients connected. psmqd - will alocate client array with static storage duration that is + will allocate client array with static storage duration that is about 12 bytes (may vary depending on architecture) for each client. diff --git a/system/readline/readline.c b/system/readline/readline.c index 34b3b37a5..8852f4587 100644 --- a/system/readline/readline.c +++ b/system/readline/readline.c @@ -117,7 +117,7 @@ static int readline_getc(FAR struct rl_common_s *vtbl) else if (nread < 0) { /* EINTR is not really an error; it simply means that a signal we - * received while watiing for intput. + * received while watiing for input. */ int errcode = errno; diff --git a/system/spi/README.txt b/system/spi/README.txt index 77fb67020..c4d7be9e9 100644 --- a/system/spi/README.txt +++ b/system/spi/README.txt @@ -67,7 +67,7 @@ nsh> Usage: spi [arguments] Where is one of: Show help : ? - List busses : bus + List buses : bus SPI Exchange : exch [OPTIONS] [] Show help : help diff --git a/system/spi/spi_main.c b/system/spi/spi_main.c index d444c330e..1e5eae1a4 100644 --- a/system/spi/spi_main.c +++ b/system/spi/spi_main.c @@ -70,7 +70,7 @@ static struct spitool_s g_spitool; static const struct cmdmap_s g_spicmds[] = { { "?", spicmd_help, "Show help ", NULL }, - { "bus", spicmd_bus, "List busses ", NULL }, + { "bus", spicmd_bus, "List buses ", NULL }, { "exch", spicmd_exch, "SPI Exchange ", "[OPTIONS] []" }, { "help", spicmd_help, "Show help ", NULL }, { NULL, NULL, NULL, NULL } diff --git a/system/telnet/Kconfig b/system/telnet/Kconfig index 80746a080..5ad2dedc5 100644 --- a/system/telnet/Kconfig +++ b/system/telnet/Kconfig @@ -4,7 +4,7 @@ # menuconfig SYSTEM_TELNET_CHATD - tristate "Telnet chat deamon" + tristate "Telnet chat daemon" default n depends on NET && NET_TCP select NETUTILS_TELNETC diff --git a/system/termcurses/README.txt b/system/termcurses/README.txt index c6be33f7c..541abbf77 100644 --- a/system/termcurses/README.txt +++ b/system/termcurses/README.txt @@ -35,7 +35,7 @@ Use with telnetd When using termcurses with the telnet daemon, the telnet config option CONFIG_TELNET_SUPPORT_NAWS should be enabled. This option adds code to the -telnet library for terminal size negotiation. Wihout this option, the telnet +telnet library for terminal size negotiation. Without this option, the telnet routines have no concept of the terminal size, and therefore the termcurses routines must default to 80x24 screen mode. diff --git a/system/vi/Kconfig b/system/vi/Kconfig index f04f1d9d9..cef46288b 100644 --- a/system/vi/Kconfig +++ b/system/vi/Kconfig @@ -39,7 +39,7 @@ config SYSTEM_VI_COLS The default column width for a VT100 terminal is 80 characters. The default for this setting is smaller, 64, so that a smaller in-memory - buffer is used. You might have a better experience wth a column + buffer is used. You might have a better experience with a column width of 80 (if the terminal width is not controllable from your terminal application). @@ -54,7 +54,7 @@ config SYSTEM_VI_ROWS The default height for a VT100 terminal is 64 rows. The default for this setting is smaller, 16, so that a smaller in-memory - buffer is used. You might have a better experience wth a height + buffer is used. You might have a better experience with a height of 64 rows (if the terminal height is not controllable from your terminal application). diff --git a/system/vi/vi.c b/system/vi/vi.c index 44c7167eb..d6e292738 100644 --- a/system/vi/vi.c +++ b/system/vi/vi.c @@ -344,7 +344,7 @@ struct vi_s off_t textsize; /* The size of the text buffer */ off_t winpos; /* Offset corresponding to the start of the display */ off_t prevpos; /* Previous display position */ - off_t vscroll; /* Vertical dislay offset in rows */ + off_t vscroll; /* Vertical display offset in rows */ uint16_t hscroll; /* Horizontal display offset */ uint16_t value; /* Numeric value entered prior to a command */ uint16_t reqcolumn; /* Requested column when moving up/down */ @@ -884,7 +884,7 @@ static void vi_scrollup(FAR struct vi_s *vi, uint16_t nlines) vi_write(vi, g_index, sizeof(g_index)); } - /* Ensure bottom line is clared */ + /* Ensure bottom line is cleared */ vi_setcursor(vi, vi->display.row-1, 0); vi_clrtoeol(vi); @@ -2292,7 +2292,7 @@ static void vi_delforward(FAR struct vi_s *vi) return; } - /* Test for empy line deletion and simply return */ + /* Test for empty line deletion and simply return */ if (vi->cursor.column == 0) { @@ -4677,7 +4677,7 @@ static void vi_cmd_submode(FAR struct vi_s *vi) { vi_exitsubmode(vi, MODE_COMMAND); - /* Ensure bottom line is clared */ + /* Ensure bottom line is cleared */ vi_clearbottomline(vi); } @@ -4979,7 +4979,7 @@ static void vi_find_submode(FAR struct vi_s *vi, bool revfind) { vi_exitsubmode(vi, MODE_COMMAND); - /* Ensure bottom line is clared */ + /* Ensure bottom line is cleared */ vi_clearbottomline(vi); } @@ -5839,7 +5839,7 @@ int main(int argc, FAR char *argv[]) } } - /* Initialze termcurses */ + /* Initialize termcurses */ ret = termcurses_initterm(NULL, 0, 1, &vi->tcurs); if (ret == OK) diff --git a/system/zmodem/Kconfig b/system/zmodem/Kconfig index 16cd241b5..7b449badc 100644 --- a/system/zmodem/Kconfig +++ b/system/zmodem/Kconfig @@ -79,7 +79,7 @@ config SYSTEM_ZMODEM_MOUNTPOINT configuration value must be set to provide the path to the file storage directory (such as a mountpoint directory). - Names of file send by the sz commond, on the other hand, must be + Names of file send by the sz command, on the other hand, must be absolute paths beginning with '/'. config SYSTEM_ZMODEM_FLOWC diff --git a/system/zmodem/README.txt b/system/zmodem/README.txt index 4fa6dfceb..2b71ef0d3 100644 --- a/system/zmodem/README.txt +++ b/system/zmodem/README.txt @@ -122,7 +122,7 @@ Using NuttX ZModem with a Linux Host binary data stream. If you don't have the rz command on your Linux box, the package to - install rzsz (or possibily lrzsz). + install rzsz (or possibly lrzsz). Then on the target (using /dev/ttyS1 as an example). @@ -178,7 +178,7 @@ Using NuttX ZModem with a Linux Host sz command. If you don't have the sz command on your Linux box, the package to - install rzsz (or possibily lrzsz). + install rzsz (or possibly lrzsz). Building the ZModem Tools to Run Under Linux ============================================ @@ -238,7 +238,7 @@ Status works better with hardware flow control disabled on the LPC17xx. At this lower BAUD, RX buffer sizes could probably be reduced; Or - perhaps the BAUD coud be increased. My thought, however, is that + perhaps the BAUD could be increased. My thought, however, is that tuning in such an unhealthy situation is not the approach: The best thing to do would be to use the matching NuttX sz on the Linux host side. diff --git a/system/zmodem/zm.h b/system/zmodem/zm.h index d393b7780..d99a281dd 100644 --- a/system/zmodem/zm.h +++ b/system/zmodem/zm.h @@ -185,7 +185,7 @@ #define ZME_COMMAND ZCOMMAND /* Command, from sending program */ #define ZME_STDERR ZSTDERR /* Output this message to stderr */ -#define ZME_CANCEL 251 /* Received the cancelation sequence */ +#define ZME_CANCEL 251 /* Received the cancellation sequence */ #define ZME_OO 252 /* Received OO, terminating the receiver */ #define ZME_DATARCVD 253 /* Data received */ #define ZME_TIMEOUT 254 /* Timeout */ @@ -318,7 +318,7 @@ struct zm_state_s /* evtable[] is the state transition table that controls the state for this * current action. Different state transitions tables are used for Zmodem - * vs. XY modem and for receive and for tansmit. + * vs. XY modem and for receive and for transmit. */ FAR const struct zm_transition_s * const * evtable; diff --git a/system/zmodem/zm_receive.c b/system/zmodem/zm_receive.c index 6d7cd3a00..693b8f884 100644 --- a/system/zmodem/zm_receive.c +++ b/system/zmodem/zm_receive.c @@ -1699,7 +1699,7 @@ int zmr_release(ZMRHANDLE handle) zm_timerrelease(&pzmr->cmn); - /* Clean up any resouces that may be held from the last file transfer */ + /* Clean up any resources that may be held from the last file transfer */ zmr_filecleanup(pzmr); diff --git a/system/zmodem/zm_send.c b/system/zmodem/zm_send.c index ad69c88bd..f9382a9de 100644 --- a/system/zmodem/zm_send.c +++ b/system/zmodem/zm_send.c @@ -758,15 +758,15 @@ static int zms_sendfilename(FAR struct zm_state_s *pzm) * octal string. Programs which do not have a serial number should * omit this field, or set it to 0. * Number of Files Remaining - * Iff the number of files remaining is sent, a single space separates + * If the number of files remaining is sent, a single space separates * this field from the previous field. This field is coded as a * decimal number, and includes the current file. * Number of Bytes Remaining - * Iff the number of bytes remaining is sent, a single space + * If the number of bytes remaining is sent, a single space * separates this field from the previous field. This field is coded * as a decimal number, and includes the current file * File Type - * Iff the file type is sent, a single space separates this field from + * If the file type is sent, a single space separates this field from * the previous field. This field is coded as a decimal number. * Currently defined values are: * @@ -884,7 +884,7 @@ static int zms_sendpacket(FAR struct zm_state_s *pzm) sndsize = pzms->filesize - pzms->offset; - /* This is the nubmer of bytes that have been sent but not yet ackowledged. */ + /* This is the number of bytes that have been sent but not yet acknowledged. */ unacked = pzms->offset - pzms->lastoffs; diff --git a/system/zmodem/zm_state.c b/system/zmodem/zm_state.c index 5a71efd73..b56567bb7 100644 --- a/system/zmodem/zm_state.c +++ b/system/zmodem/zm_state.c @@ -112,7 +112,7 @@ static int zm_event(FAR struct zm_state_s *pzm, int event) zmdbg("ZM[R|S]_state: %d event: %d\n", pzm->state, event); /* Look up the entry associated with the event in the current state - * transition table. NOTE that each state table must be termined with a + * transition table. NOTE that each state table must be terminated with a * ZME_ERROR entry that provides indicates that the event was not * expected. Thus, the following search will always be successful. */ @@ -132,7 +132,7 @@ static int zm_event(FAR struct zm_state_s *pzm, int event) pzm->state = ptr->next; - /* Discard buffered data if so requrested */ + /* Discard buffered data if so requested */ if (ptr->bdiscard) { @@ -607,7 +607,7 @@ static int zm_header(FAR struct zm_state_s *pzm, uint8_t ch) * * Description: * Data has been received in state PSTATE_DATA. PSTATE_DATA is set by - * Zmodem transfer logic when it exepects to received data from the + * Zmodem transfer logic when it expects to received data from the * remote peer. * * FORMAT: @@ -670,7 +670,7 @@ static int zm_data(FAR struct zm_state_s *pzm, uint8_t ch) case ZCRCQ: /* Data packet (ZACK response expected) */ { /* Save the packet type, change substates, and set of count that - * indicates the nubmer of bytes still to be added to the packet + * indicates the number of bytes still to be added to the packet * buffer: * * ZBIN: 1+2 = 3 diff --git a/testing/README.txt b/testing/README.txt index d6e4b4af7..32ab3453c 100644 --- a/testing/README.txt +++ b/testing/README.txt @@ -128,7 +128,7 @@ testing/smart * CONFIG_TESTING_SMART_NEBLOCKS: When CONFIG_TESTING_SMART_ARCHINIT is not defined, this test will use the RAM MTD device at drivers/mtd/rammtd.c to simulate FLASH. In this case, this value must be provided to give - the nubmer of erase blocks in MTD RAM device. The size of the allocated + the number of erase blocks in MTD RAM device. The size of the allocated RAM drive will be: CONFIG_RAMMTD_ERASESIZE * CONFIG_TESTING_SMART_NEBLOCKS * CONFIG_TESTING_SMART_MAXNAME: Determines the maximum size of names used in the filesystem diff --git a/testing/nxffs/Kconfig b/testing/nxffs/Kconfig index b6928a89a..bc1c6b207 100644 --- a/testing/nxffs/Kconfig +++ b/testing/nxffs/Kconfig @@ -28,7 +28,7 @@ config TESTING_NXFFS_NEBLOCKS ---help--- When TESTING_NXFFS_ARCHINIT is not defined, this test will use the RAM MTD device at drivers/mtd/rammtd.c to simulate FLASH. In - this case, this value must be provided to give the nubmer of erase + this case, this value must be provided to give the number of erase blocks in MTD RAM device. The size of the allocated RAM drive will be: diff --git a/testing/ostest/cancel.c b/testing/ostest/cancel.c index 30817f1b3..b7494ca72 100644 --- a/testing/ostest/cancel.c +++ b/testing/ostest/cancel.c @@ -111,7 +111,7 @@ static FAR void *sem_waiter(FAR void *parameter) } } - /* Then wait -- we will never awaken from this normaly. We will wake + /* Then wait -- we will never awaken from this normally. We will wake * either by signal or cancellation. */ @@ -150,7 +150,7 @@ static FAR void *sem_waiter(FAR void *parameter) * cancellation point and printf() may or may not be a cancellation point * (OpenGroup.org allows printf to optionally be a cancellation point). * If printf() is not a cancellation point, then the thread will never - * be cancelled in the deffered cancellation mode and will instead exit + * be cancelled in the deferred cancellation mode and will instead exit * with no error. The pthread_testcancel() is needed to correctly test * that cancellation has been re-enabled. */ @@ -168,7 +168,7 @@ static void mqueue_cleaner(FAR void *arg) { FAR mqd_t *mqcancel = (FAR mqd_t *)arg; - printf("mqueue_cleaner... closeing message queue\n"); + printf("mqueue_cleaner... closing message queue\n"); if (mq_close(*mqcancel) < 0) { printf("mqueue_cleaner: ERROR mq_close failed\n"); @@ -228,7 +228,7 @@ static FAR void *sig_waiter(FAR void *parameter) sigset_t set; int ret; - /* Wait for a signal tht will never be delivered */ + /* Wait for a signal that will never be delivered */ printf("sig_waiter: Waiting to receive signal %d ...\n", SIG_WAITCANCEL); @@ -277,7 +277,7 @@ static FAR void *asynch_waiter(FAR void *parameter) } /* Then wait a bit. We should be canceled aynchronously while waiting, but the - * cancellation should pend becaue we are non-cancellable. + * cancellation should pend because we are non-cancellable. */ usleep(250*1000); @@ -532,7 +532,7 @@ void cancel_test(void) #ifdef CONFIG_CANCELLATION_POINTS /* If we are doing deferred cancellation, then we will have to wait a bit - * of the fallowing pthread_join() may succeed because it happens before + * of the following pthread_join() may succeed because it happens before * before the cancellation. */ @@ -572,10 +572,10 @@ void cancel_test(void) usleep(200*1000); /* Then cancel it. It should be in the pthread_cond_wait now. The - * behavior here is non-standard: when the thread is at a cancelation - * point, it should be cancelable, even when cancelation is disable. + * behavior here is non-standard: when the thread is at a cancellation + * point, it should be cancelable, even when cancellation is disable. * - * The cancelation should succeed, because the cancelation is pending. + * The cancellation should succeed, because the cancellation is pending. */ usleep(100*1000); diff --git a/testing/ostest/fpu.c b/testing/ostest/fpu.c index f4adcf781..fc633631c 100644 --- a/testing/ostest/fpu.c +++ b/testing/ostest/fpu.c @@ -229,7 +229,7 @@ static int fpu_task(int argc, char *argv[]) sched_lock(); /* Do some trivial floating point operations that should cause some - * changes to floating point registers. First, some single preceision + * changes to floating point registers. First, some single precision * nonsense. */ diff --git a/testing/ostest/prioinherit.c b/testing/ostest/prioinherit.c index 9e8ff13dc..860c7f5b9 100644 --- a/testing/ostest/prioinherit.c +++ b/testing/ostest/prioinherit.c @@ -299,7 +299,7 @@ static void *lowpri_thread(void *parameter) } /* Account for all of the semaphore counts. At any given time if there are 'n' - * running hight prioity tasks, then the semaphore count should be '-n' + * running high prioity tasks, then the semaphore count should be '-n' */ sched_lock(); /* Needs to be atomic */ diff --git a/testing/ostest/specific.c b/testing/ostest/specific.c index e0c7dd9d2..1c91c5e25 100644 --- a/testing/ostest/specific.c +++ b/testing/ostest/specific.c @@ -66,7 +66,7 @@ static void *thread_func(FAR void *parameter) FAR void *data; int ret; - /* Set the pthread specific data for the main thead */ + /* Set the pthread specific data for the main thread */ ret = pthread_setspecific(g_pthread_key, (FAR const void *)0xcafebabe); if (ret != 0) @@ -108,7 +108,7 @@ void specific_test(void) printf("ERROR: pthread_key_create() failed: %d\n", ret); } - /* Set the pthread specific data for the main thead */ + /* Set the pthread specific data for the main thread */ ret = pthread_setspecific(g_pthread_key, (FAR const void *)0xf00dface); if (ret != 0) diff --git a/testing/ostest/waitpid.c b/testing/ostest/waitpid.c index f197e09e4..9874b17be 100644 --- a/testing/ostest/waitpid.c +++ b/testing/ostest/waitpid.c @@ -64,7 +64,7 @@ static int g_waitpids[NCHILDREN]; /**************************************************************************** - * Priviate Functions + * Private Functions ****************************************************************************/ static int waitpid_main(int argc, char *argv[]) diff --git a/testing/smart/Kconfig b/testing/smart/Kconfig index d19f73796..ed30bdb9a 100644 --- a/testing/smart/Kconfig +++ b/testing/smart/Kconfig @@ -28,7 +28,7 @@ config TESTING_SMART_NEBLOCKS ---help--- When TESTING_SMART_ARCHINIT is not defined, this test will use the RAM MTD device at drivers/mtd/rammtd.c to simulate FLASH. In - this case, this value must be provided to give the nubmer of erase + this case, this value must be provided to give the number of erase blocks in MTD RAM device. The size of the allocated RAM drive will be: diff --git a/testing/smart/README.txt b/testing/smart/README.txt index 039abebd9..eba6736e3 100644 --- a/testing/smart/README.txt +++ b/testing/smart/README.txt @@ -13,7 +13,7 @@ README * CONFIG_TESTING_SMART_NEBLOCKS: When CONFIG_TESTING_SMART_ARCHINIT is not defined, this test will use the RAM MTD device at drivers/mtd/rammtd.c to simulate FLASH. In this case, this value must be provided to give - the nubmer of erase blocks in MTD RAM device. The size of the allocated + the number of erase blocks in MTD RAM device. The size of the allocated RAM drive will be: CONFIG_RAMMTD_ERASESIZE * CONFIG_TESTING_SMART_NEBLOCKS * CONFIG_TESTING_SMART_MAXNAME: Determines the maximum size of names used in the filesystem diff --git a/testing/smart_test/smart_test.c b/testing/smart_test/smart_test.c index f57d03b27..083624f2d 100644 --- a/testing/smart_test/smart_test.c +++ b/testing/smart_test/smart_test.c @@ -560,7 +560,7 @@ static void smart_usage(void) fprintf(stderr, " -w WRITECOUNT\n"); fprintf(stderr, " Performs a seek/write/seek/read test where to validate the SMARTFS\n"); - fprintf(stderr, " seek/write operation. Uses the -l option to specifiy the number of\n"); + fprintf(stderr, " seek/write operation. Uses the -l option to specify the number of\n"); fprintf(stderr, " test lines to write to the test file. The WRITECOUNT parameter sets\n"); fprintf(stderr, " the number of seek/write operations to perform.\n\n"); diff --git a/tools/README.txt b/tools/README.txt index cc1c1a52b..44bfe2913 100644 --- a/tools/README.txt +++ b/tools/README.txt @@ -20,7 +20,7 @@ bitmap_converter.py interpolation). When a simple graphics image does not encode well, the symptom is that - the resulting RLE data structures are quite large. The pallette structure, + the resulting RLE data structures are quite large. The palette structure, in particular, may have hundreds of colors in it. There is a way to fix the graphic image in this case. Here is what I do (in fact, I do this on all images prior to conversion just to be certain): diff --git a/tools/bitmap_converter.py b/tools/bitmap_converter.py index 425ee048b..f71a0fa1a 100755 --- a/tools/bitmap_converter.py +++ b/tools/bitmap_converter.py @@ -17,7 +17,7 @@ def get_palette(img, maxcolors = 255): return [c[1] for c in colors[:maxcolors]] def write_palette(outfile, palette): - '''Write the palette (normal and hilight) to the output file.''' + '''Write the palette (normal and highlight) to the output file.''' outfile.write('static const NXWidgets::nxwidget_pixel_t palette[BITMAP_PALETTESIZE] =\n'); outfile.write('{\n') diff --git a/tools/mkkconfig.bat b/tools/mkkconfig.bat index 9863d17a4..23968e65c 100755 --- a/tools/mkkconfig.bat +++ b/tools/mkkconfig.bat @@ -44,7 +44,7 @@ IF "%1"=="-m" GOTO :SetMenu IF "%1"=="-o" GOTO :SetKconfig IF "%1"=="-h" GOTO :ShowUsage -Echo ERROR: Unrecogized option %1 +Echo ERROR: Unrecognized option %1 GOTO :ShowUsage :SetDebug @@ -117,7 +117,7 @@ Echo Enables debug output Echo -m ^: Echo Menu description Echo -o ^: -Echo Identifies the specific configuratin for the selected ^. +Echo Identifies the specific configuration for the selected ^. Echo This must correspond to a sub-directory under the board directory at Echo under nuttx/boards/^/^/^/. Echo ^<-h^>: diff --git a/tools/mksymtab.sh b/tools/mksymtab.sh index cf8a91f59..1cc616a01 100755 --- a/tools/mksymtab.sh +++ b/tools/mksymtab.sh @@ -83,7 +83,7 @@ fi # Now output the symbol table as a structure in a C source file. All # undefined symbols are declared as void* types. If the toolchain does # any kind of checking for function vs. data objects, then this could -# faile +# failed echo "#include " >$outfile echo "#include " >>$outfile diff --git a/wireless/gs2200m/gs2200m_main.c b/wireless/gs2200m/gs2200m_main.c index 66c3541b4..a2f05e1b1 100644 --- a/wireless/gs2200m/gs2200m_main.c +++ b/wireless/gs2200m/gs2200m_main.c @@ -1500,7 +1500,7 @@ static void _show_usage(FAR char *cmd) fprintf(stderr, "Usage: %s [-a [ch]] ssid key \n\n", cmd); fprintf(stderr, - "AP mode : specify -a option (optionaly with channel) with ssid\n" + "AP mode : specify -a option (optionally with channel) with ssid\n" " and 10 hex digits for WEP key \n"); fprintf(stderr, "STA mode: specify ssid and passphrase (key) for WPA/WPA2 PSK \n"); diff --git a/wireless/ieee802154/i8sak/README.txt b/wireless/ieee802154/i8sak/README.txt index aeda78423..db025e1e4 100644 --- a/wireless/ieee802154/i8sak/README.txt +++ b/wireless/ieee802154/i8sak/README.txt @@ -17,7 +17,7 @@ than the MAC character driver. IEEE 802.15.4 MAC character drivers show up in NuttX as /dev/ieeeN by default. When you invoke the first call to i8sak with a specified interface name, it creates -an i8sak instance and launches a deamon to handle processing work. The instance +an i8sak instance and launches a daemon to handle processing work. The instance is considered sticky, so it is possible to run `i8 /dev/ieee0` or 'i8 wpan0' at the beginning of a session and then can exclude the interface name from all future calls. The number of i8sak instances supported is controllable through diff --git a/wireless/ieee802154/i8sak/i8sak_assoc.c b/wireless/ieee802154/i8sak/i8sak_assoc.c index 6c2c236a9..29dd6ebbf 100644 --- a/wireless/ieee802154/i8sak/i8sak_assoc.c +++ b/wireless/ieee802154/i8sak/i8sak_assoc.c @@ -159,7 +159,7 @@ void i8sak_assoc_cmd(FAR struct i8sak_s *i8sak, int argc, FAR char *argv[]) break; case 't': - /* Parse wait time and set the paremeter in the request */ + /* Parse wait time and set the parameter in the request */ setreq.attrval.mac.resp_waittime = i8sak_str2luint8(optarg); break; diff --git a/wireless/ieee802154/i8sak/i8sak_events.c b/wireless/ieee802154/i8sak/i8sak_events.c index 5db8d739f..43fbbfc2e 100644 --- a/wireless/ieee802154/i8sak/i8sak_events.c +++ b/wireless/ieee802154/i8sak/i8sak_events.c @@ -369,7 +369,7 @@ int i8sak_eventlistener_removereceiver(FAR struct i8sak_s *i8sak, ret = sem_wait(&i8sak->eventsem); if (ret != OK) { - fprintf(stderr, "failed to get exlusive access: %d\n", ret); + fprintf(stderr, "failed to get exclusive access: %d\n", ret); return ret; } diff --git a/wireless/ieee802154/i8sak/i8sak_tx.c b/wireless/ieee802154/i8sak/i8sak_tx.c index 9c66f267b..1fe95c4f9 100644 --- a/wireless/ieee802154/i8sak/i8sak_tx.c +++ b/wireless/ieee802154/i8sak/i8sak_tx.c @@ -188,7 +188,7 @@ void i8sak_tx_cmd(FAR struct i8sak_s *i8sak, int argc, FAR char *argv[]) { /* We cannot send a frame as direct if we are the PAN coordinator. Maybe * this should be the hook for sending payload in beacon? But for now, - * let's just thow an error. + * let's just throw an error. */ if (devmode == IEEE802154_DEVMODE_PANCOORD)