Run codespell -w against all files

and fix the wrong correction
This commit is contained in:
Xiang Xiao 2020-02-23 02:52:12 +08:00 committed by Gregory Nutt
parent f774e8ee72
commit d660492289
128 changed files with 191 additions and 191 deletions

View File

@ -53,7 +53,7 @@ derive from uIP which has a similar BSD style license:
FreeModbus
^^^^^^^^^
FreeModbus Libary: A portable Modbus implementation for Modbus ASCII/RTU.
FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
Copyright (c) 2006 Christian Walter <wolti@sil.at>
All rights reserved.

View File

@ -1914,7 +1914,7 @@
* Added support for set [{+|-}{e|x|xe|ex}] [<name> <value>]. Set the
'exit on error control' and/or 'print a trace' of commands when
parsing scripts in NSH. The settinngs are in effect from the point
of exection, until they are changed again, or in the case of the init
of execution, until they are changed again, or in the case of the init
script, the settings are returned to the default settings when it
exits. Included child scripts will run with the parents settings and
changes made in the child script will effect the parent on return.
@ -2403,7 +2403,7 @@
* examples/alarm: add options for reading alarm value and canceling it.
From Juha Niskanen (2017-10-17).
* apps/fsutils/mkfatfs: Move mkfatfs from the OS to here. Not fully
integrated on the intial commit (2017-10-20).
integrated on the initial commit (2017-10-20).
* apps/examples/adps9960: Add ADPS-9960 example. From Alan Carvalho de
Assis (2017-10-23).
* This commit eliminates the ping command from NSH and replaces it with
@ -2504,7 +2504,7 @@
* apps/example/pdcurses: Add logic to build one of the several pdcurses
demo/test programs (2017-11-18).
* apps/graphics/pdcurs34/nuttx: Completes first cut at framebuffer
rendering logic. Add NuttX framebuffer color managment and beginning of
rendering logic. Add NuttX framebuffer color management and beginning of
some rendering logic (2017-11-19).
* apps/examples/pdcurses/: Fix a few more bugs found in testing; Brings
in the remaining pdcurses demo programs (2017-11-19).
@ -2610,7 +2610,7 @@
previously existing tftpget/tftpput functions are now wrappers on the new
ones, with callbacks that read/write from files, so my modifications are
backwards compatible with existing applications, eg the associated nsh
commands dont need to be changed. From Sebastien Lorquet (2018-03-09).
commands don't need to be changed. From Sebastien Lorquet (2018-03-09).
* apps/examples/ft80x: Fix some size calculations. Add option to disable
primitive tests... just too boring to have to watch over and over again.
Fix a typo in backlight fade logic; Fix error in formatted display light
@ -3132,7 +3132,7 @@
- apps/examples/fstest: Call statfs() and show state of file system on
each loop.
- apps/examples/fstest: Fix a situation where a file system under test
could cause the fstest to get stuck in an infinit loop. From Gregory
could cause the fstest to get stuck in an infinite loop. From Gregory
Nutt (2018-09-27).
* - apps/examples/fstest: Add logic to dump logic content of SPIFFS
- apps/examples/fstest/Kconfig: SPIFFS GC and integrity check option
@ -3438,7 +3438,7 @@
3. Paste buffer from 'dd' was being free'd after the 'p'aste operation,
preventing multiple paste opportunity. Fixed.
4. The cursor was not being bound to the line end and was allowed to
'hover' over the '\n' EOL character. This caused wierd (relative to
'hover' over the '\n' EOL character. This caused weird (relative to
standard vi) insertion locations and cursor movement with 'a'ppend
and 'i'nsert. Fixed.
5. The 'vi_shrinkpos' position didn't take the end of file pointer into
@ -3446,7 +3446,7 @@
wierdness when deleting things near the end of the file. Fixed.
6. The 'yy'ank command was improperly deleting the text from the
document instead of simply yanking to the paste buffer. Fixed.
7. The 'dd'elete line funciton was not copying the deleted line to the
7. The 'dd'elete line function was not copying the deleted line to the
paste buffer as part of the delete operation. Fixed.
8. The bottom line of the screen was sometimes being used for document
text and other times for command / find entry. Fixed by reserving
@ -3482,7 +3482,7 @@
17. In command mode, backspace was deleting characters which is different
from standard vi. Backspace in command mode normally simply moves
the cursor left / to the previous line. Fixed.
18. Added code to handle boundry conditions when the file is new and
18. Added code to handle boundary conditions when the file is new and
commands are applied to an empty file.
19. Fixed vi_shrinktext so it doesn't allocate a zero-length buffer when
the last character in the file is deleted.
@ -3691,7 +3691,7 @@
* Missing semicolon at the end of function call. From Kejun ZHOU
(2019-03-11).
* graphics: nx_openwindow() and nxtk_openwindow() now accepts an
addtional 'flag' parameter. This argument is not used at present but
additional 'flag' parameter. This argument is not used at present but
will, eventually enable a RAM backed, per-window framebuffer. From
Gregory Nutt (2019-03-13).
* This commit adds a test example at apps/examples/pwfb that will be used
@ -4479,7 +4479,7 @@
ramdisk_register() directly. No only is this a violation of the interface
specification, but also prevents use of mkrd in PROTECTED or KERNEL buils.
With this change, the NSH mkrd command now used the BOARDIOC_MKRD boardctl()
command. This command is availabe in all build modes. The effect of this
command. This command is available in all build modes. The effect of this
change is to move the hear of the NSH mkrd command into to OS and provide
user-space access via boardctl(). From Gregory Nutt (2019-10-26).
* apps/examples/mount: Replace illegal call to ramdisk_register() with a call to

View File

@ -1382,7 +1382,7 @@ examples/pwfb
position. The windows are being updated from the per-winidow
framebuffers automatically.
This example is reminescent of Pong: Each window travels in straight
This example is reminiscent of Pong: Each window travels in straight
line until it hits an edge, then it bounces off. The window is also
raised when it hits the edge (gets "focus"). This tests all
combinations of overap.

View File

@ -210,7 +210,7 @@ static void test_foc_process_zeros(void)
TEST_ASSERT_EQUAL_FLOAT_ZERO(foc.v_ab_mod.b);
}
/* Proces FOC with some test data */
/* Process FOC with some test data */
static void test_foc_process(void)
{

View File

@ -73,7 +73,7 @@ static void test_openloop_init(void)
float max_speed = 100;
float per = 10e-6;
/* Initialize openlooop controler */
/* Initialize openlooop controller */
motor_openloop_init(&op, max_speed, per);
@ -99,7 +99,7 @@ static void test_openloop_one_step(void)
float speed = 10;
float per = 10e-6;
/* Initialize openlooop controler */
/* Initialize openlooop controller */
motor_openloop_init(&op, max_speed, per);
@ -149,7 +149,7 @@ static void test_openloop_many_steps(void)
int iter = 10;
int i = 0;
/* Initialize openlooop controler */
/* Initialize openlooop controller */
motor_openloop_init(&op, max_speed, per);
@ -212,7 +212,7 @@ static void test_openloop_normalize_angle(void)
int iter = 1000;
int i = 0;
/* Initialize openlooop controler */
/* Initialize openlooop controller */
motor_openloop_init(&op, max_speed, per);

View File

@ -263,7 +263,7 @@ static void el_print_file(const char *workdir)
* performance greatly. And there are situations when you are willing to
* loose some info or debug data (up to configured sync every value), but
* when critical error shows up, you want data to be synced immediately to
* minimize chance of loosing information about critical error. For that
* minimize chance of losing information about critical error. For that
* you can define which log level will be synced *every* time regardless
* of sync every value. Here we will instruct embedlog to log prints that
* have severity higher or equal to critical (so critial, alert and fatal)

View File

@ -14,7 +14,7 @@ config EXAMPLES_FLOWC
CONFIG_SERIAL_TERMIOS=y
In addtion, you will need these related serial driver settings (the
In addition, you will need these related serial driver settings (the
actual values of the watermark setting may be tuned to suit your
preferences)

View File

@ -181,7 +181,7 @@ static int ft80x_showname(int fd, FAR struct ft80x_dlbuffer_s *buffer,
int ret;
/* Mkae sure that the backlight off */
/* Make sure that the backlight off */
ft80x_backlight_set(fd, 0);

View File

@ -136,7 +136,7 @@ extern "C"
up_cxxinitialize();
#endif
// Exercise an explictly instantiated C++ object
// Exercise an explicitly instantiated C++ object
CHelloWorld *pHelloWorld = new CHelloWorld;
printf("helloxx_main: Saying hello from the dynamically constructed instance\n");

View File

@ -34,7 +34,7 @@
****************************************************************************
* Leveraged from:
*
* FreeModbus Libary: Linux Demo Application
* FreeModbus Library: Linux Demo Application
* Copyright (C) 2006 Christian Walter <wolti@sil.at>
*
* This library is free software; you can redistribute it and/or

View File

@ -208,7 +208,7 @@ int main(int argc, FAR char *argv[])
{
if (verbose)
{
printf("transmited %d octets\n", txc);
printf("transmitted %d octets\n", txc);
print_buf(buf, txc);
}
}

View File

@ -17,7 +17,7 @@ config EXAMPLES_NETTEST_SENDSIZE
int "Payload size"
default 4096
---help---
The test client sends well-known packets to ther server. The server
The test client sends well-known packets to the server. The server
will receive and verfity those packets. This setting determines
size of each packet.

View File

@ -190,13 +190,13 @@ int main(int argc, FAR char *argv[])
setenv("PATH", MOUNTPT, 1);
#endif
/* Now excercise every progrm in the ROMFS file system */
/* Now exercise every progrm in the ROMFS file system */
for (i = 0; dirlist[i]; i++)
{
FAR const char *filename;
/* Output a seperated so that we can clearly discrinmate the output of
/* Output a separated so that we can clearly discrinmate the output of
* this program from the others.
*/

View File

@ -58,7 +58,7 @@
#ifdef CONFIG_NX_ANTIALIASING
/* If anti-aliasing is enabled, then we must clear a slightly
* larger region to prevent wierd edge effects.
* larger region to prevent weird edge effects.
*/
# define CLEAR_WIDTH (CONFIG_EXAMPLES_NXLINES_LINEWIDTH + 2)
@ -330,7 +330,7 @@ void nxlines_test(NXWINDOW hwnd)
#ifdef CONFIG_NX_ANTIALIASING
/* If anti-aliasing is enabled, then we must clear a slightly
* larger region to prevent wierd edge effects.
* larger region to prevent weird edge effects.
*/
halfx = b16toi(b16muli(sinangle, radius + 1));

View File

@ -613,7 +613,7 @@ static void input_test(WINDOW *win)
mvwaddstr(win, 3, 2, "The window should have moved");
mvwaddstr(win, 4, 2,
"This text should have appeared without you pressing a key");
mvwaddstr(win, 6, 2, "Enter a number then a string seperated by space");
mvwaddstr(win, 6, 2, "Enter a number then a string separated by space");
mvwin(win, 2, 1);
wrefresh(win);
mvwscanw(win, 7, 6, "%d %s", &num, buffer);

View File

@ -58,7 +58,7 @@
#ifdef CONFIG_NX_ANTIALIASING
/* If anti-aliasing is enabled, then we must clear a slightly
* larger region to prevent wierd edge effects.
* larger region to prevent weird edge effects.
*/
# define CLEAR_WIDTH (CONFIG_EXAMPLES_PWLINES_LINEWIDTH + 2)
@ -226,7 +226,7 @@ void pwlines_update(FAR struct pwlines_state_s *st)
#ifdef CONFIG_NX_ANTIALIASING
/* If anti-aliasing is enabled, then we must clear a slightly
* larger region to prevent wierd edge effects.
* larger region to prevent weird edge effects.
*/
halfx = b16toi(b16muli(sinangle, wndo->radius + 1));

View File

@ -252,7 +252,7 @@ static int ufstest_open(FAR void *volinfo, FAR const char *relpath,
opriv->file = file;
/* Initiallly, there is one refernce count on the open data. This may
/* Initiallly, there is one reference count on the open data. This may
* be incremented in the event that the file is dup'ed.
*/

View File

@ -23,7 +23,7 @@ TCP Packets received
Data packets without ACKs
Resets
Retransmissions
No connection avaliable
No connection available
Connection attempts to closed ports
</pre></td><td><pre>%! net-stats
</pre></table>

View File

@ -26,7 +26,7 @@
* derived from this software without specific prior
* written permission.
*
* THIS SOFTWARE IS PROVIDED BY COGITO LLC AND CONTRIBUTERS 'AS IS'
* THIS SOFTWARE IS PROVIDED BY COGITO LLC AND CONTRIBUTORS 'AS IS'
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A
* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COGITO LLC

View File

@ -27,7 +27,7 @@
* derived from this software without specific prior
* written permission.
*
* THIS SOFTWARE IS PROVIDED BY COGITO LLC AND CONTRIBUTERS 'AS IS'
* THIS SOFTWARE IS PROVIDED BY COGITO LLC AND CONTRIBUTORS 'AS IS'
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A
* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COGITO LLC

View File

@ -38,7 +38,7 @@ config INIH_INITIAL_ALLOC
int "Initial allocation size"
default 128
---help---
inih will allocate this ammount of memory and will double it when
inih will allocate this amount of memory and will double it when
line is bigger than currently allocated memory.
endif # INIH_USE_MALLOC

View File

@ -538,7 +538,7 @@ mkfatfs_tryfat16(FAR struct fat_format_s *fmt, FAR struct fat_var_s *var,
/* Check if this number of clusters would overflow the maximum for
* FAT16 (remembering that two FAT cluster slots are reserved).
* Check the lower limit as well. The FAT12 is distinguished from FAT16
* by comparing the number of clusters on the device agains a known
* by comparing the number of clusters on the device against a known
* threshold. If a small FAT16 file system were created, then it would
* be confused as a FAT12 at mount time.
*/

View File

@ -88,7 +88,7 @@
* EINVAL - NULL block driver string
* ENOENT - 'pathname' does not refer to anything in the filesystem.
* ENOTBLK - 'pathname' does not refer to a block driver
* EFTYPE - the block driver hasn't been formated yet
* EFTYPE - the block driver hasn't been formatted yet
*
****************************************************************************/

View File

@ -91,7 +91,7 @@ while (fgets(line, sizeof(line), stdin) != NULL) {
struct minmea_sentence_gsv frame;
if (minmea_parse_gsv(&frame, line)) {
printf("$GSV: message %d of %d\n", frame.msg_nr, frame.total_msgs);
printf("$GSV: sattelites in view: %d\n", frame.total_sats);
printf("$GSV: satellites in view: %d\n", frame.total_sats);
for (int i = 0; i < 4; i++)
printf("$GSV: sat nr %d, elevation: %d, azimuth: %d, snr: %d dbm\n",
frame.sats[i].nr,

View File

@ -6,7 +6,7 @@
* Updated and verified the NxWidgets DOxygen documentation. Contributed
by Jose Pablo Carballo.
* IBitmap, CRlePalettBitmap: Extended class to support differnt LUTs
* IBitmap, CRlePalettBitmap: Extended class to support different LUTs
for selected and non-selected images.
* CImage: If selected, uses different LUTs based, different borders.
CImage is now basically a button type.
@ -112,7 +112,7 @@
1.2 2012-06-15 Gregory Nutt <gnutt@nuttx.org>
* NXWidgets::CCallback: callback arguement is now type CCallback and not
* NXWidgets::CCallback: callback argument is now type CCallback and not
CWidgetControl; Added a method to redirect keyboard contacts to either
the widgets in the window (via CWidgetControl) or to an NxConsole (via
nxcon_kbdin()).
@ -127,10 +127,10 @@
* NxWM:CKeyboard: Add a new class that implements a keyboard listener
thread. This thread reads from /dev/console and injects the keyboard
input into NX. NX will determine which window is at the top of the
heirarchy and re-direct the keyboard input to only that top window.
hierarchy and re-direct the keyboard input to only that top window.
This solves an important problem with, for example, running multiple
copies of the NxConsole: On the copy of the NxConsole at the top of
the heirarchy should get the keyboard input.
the hierarchy should get the keyboard input.
* UnitTests/nxwm/main.cxx: Now starts the keyboard thread if
CONFIG_NXWM_KEYBOARD is defined.
* NxWM::CTaskbar: After drawing the task bar, need to raise the
@ -226,7 +226,7 @@
* NxWM::CScrollingPanel::scrollChildren(): Avoid unnecessary redraws in
CScrollingPanel (contributed by Petteri Aimonen).
* NxWM::CCycleButton: Remove the separator from CCycleButton. It draws in
wrong place, and doesnt look very good in the correct place either.
wrong place, and doesn't look very good in the correct place either.
(from Petteri Aimonen).
* NxWidgets::CGraphicsPort: Many times we only want a constant background.
In that case the old code fills the background, reads it back, renders

View File

@ -281,7 +281,7 @@ TYPEDEF_HIDES_STRUCT = NO
# causing a significant performance penality.
# If the system has enough physical memory increasing the cache will improve the
# performance by keeping more symbols in memory. Note that the value works on
# a logarithmic scale so increasing the size by one will rougly double the
# a logarithmic scale so increasing the size by one will roughly double the
# memory usage. The cache size is given by this formula:
# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0,
# corresponding to a cache size of 2^16 = 65536 symbols

View File

@ -23,7 +23,7 @@ config NXWIDGETS_FLICKERFREE
---help---
Because of their performance an in the manner in which they are
updated, LCDs may be prone to "flicker" in the displays when Widgets
are updated. Often more complex (and slower) options are availble
are updated. Often more complex (and slower) options are available
to reduce the flicker. Enabling this option will enabled those
lower-performance flicker-reductions measures where-ever thay may
be available.

View File

@ -267,7 +267,7 @@ void CButtonTest::showButton(CButton *button)
}
// Perform a simulated mouse click on the button. This method injects
// the mouse click through the NX heirarchy just as would real mouse
// the mouse click through the NX hierarchy just as would real mouse
// hardward.
void CButtonTest::click(void)

View File

@ -127,7 +127,7 @@ public:
void showButton(CButton *button);
// Perform a simulated mouse click on the button. This method injects
// the mouse click through the NX heirarchy just as would real mouse
// the mouse click through the NX hierarchy just as would real mouse
// hardward.
void click(void);

View File

@ -229,7 +229,7 @@ void CButtonArrayTest::showButton(CButtonArray *buttonArray)
}
// Perform a simulated mouse click on a button in the array. This method injects
// the mouse click through the NX heirarchy just as would real mouse
// the mouse click through the NX hierarchy just as would real mouse
// hardward.
void CButtonArrayTest::click(CButtonArray *buttonArray, int column, int row)

View File

@ -133,7 +133,7 @@ public:
void showButton(CButtonArray *buttonArray);
// Perform a simulated mouse click on a button in the array. This method injects
// the mouse click through the NX heirarchy just as would real mouse
// the mouse click through the NX hierarchy just as would real mouse
// hardward.
void click(CButtonArray *buttonArray, int column, int row);

View File

@ -249,7 +249,7 @@ void CGlyphButtonTest::showButton(CGlyphButton *button)
}
// Perform a simulated mouse click on the button. This method injects
// the mouse click through the NX heirarchy just as would real mouse
// the mouse click through the NX hierarchy just as would real mouse
// hardward.
void CGlyphButtonTest::click(void)

View File

@ -133,7 +133,7 @@ public:
void showButton(CGlyphButton *button);
// Perform a simulated mouse click on the button. This method injects
// the mouse click through the NX heirarchy just as would real mouse
// the mouse click through the NX hierarchy just as would real mouse
// hardward.
void click(void);

View File

@ -347,7 +347,7 @@ void CKeypadTest::showKeypad(CKeypad *keypad)
}
// Perform a simulated mouse click on a button in the array. This method injects
// the mouse click through the NX heirarchy just as would real mouse
// the mouse click through the NX hierarchy just as would real mouse
// hardward.
void CKeypadTest::click(CKeypad *keypad, int column, int row)

View File

@ -144,7 +144,7 @@ public:
void showKeypad(CKeypad *keypad);
// Perform a simulated mouse click on a button in the array. This method injects
// the mouse click through the NX heirarchy just as would real mouse
// the mouse click through the NX hierarchy just as would real mouse
// hardward.
void click(CKeypad *keypad, int column, int row);

View File

@ -268,7 +268,7 @@ void CLatchButtonTest::showButton(CLatchButton *button)
}
// Perform a simulated mouse click on the button. This method injects
// the mouse click through the NX heirarchy just as would real mouse
// the mouse click through the NX hierarchy just as would real mouse
// hardward.
void CLatchButtonTest::click(void)

View File

@ -127,7 +127,7 @@ public:
void showButton(CLatchButton *button);
// Perform a simulated mouse click on the button. This method injects
// the mouse click through the NX heirarchy just as would real mouse
// the mouse click through the NX hierarchy just as would real mouse
// hardward.
void click(void);

View File

@ -229,7 +229,7 @@ void CLatchButtonArrayTest::showButton(CLatchButtonArray *buttonArray)
}
// Perform a simulated mouse click on a button in the array. This method injects
// the mouse click through the NX heirarchy just as would real mouse
// the mouse click through the NX hierarchy just as would real mouse
// hardward.
void CLatchButtonArrayTest::click(CLatchButtonArray *buttonArray, int column, int row)

View File

@ -133,7 +133,7 @@ public:
void showButton(CLatchButtonArray *buttonArray);
// Perform a simulated mouse click on a button in the array. This method injects
// the mouse click through the NX heirarchy just as would real mouse
// the mouse click through the NX hierarchy just as would real mouse
// hardward.
void click(CLatchButtonArray *buttonArray, int column, int row);

View File

@ -331,7 +331,7 @@ void CGlyphSliderHorizontal::drawContents(CGraphicsPort * port)
int width;
nxwidget_pixel_t color;
// Fill in (erase) the region to the left and right of the fuel guage
// Fill in (erase) the region to the left and right of the fuel gauge
width =
m_grip->getX() > halfGripWidth ? halfGripWidth : m_grip->getX() - getX();

View File

@ -184,7 +184,7 @@ void CKeypad::onClick(nxgl_coord_t x, nxgl_coord_t y)
}
/**
* Configure the keypad for the currenly selected display mode.
* Configure the keypad for the currently selected display mode.
*/
void CKeypad::configureKeypadMode(void)

View File

@ -1354,7 +1354,7 @@ bool CNxWidget::remove(void)
* Does not erase the widget from the display.
*
* @param widget Pointer to the widget to remove from the hierarchy.
* @return True if the widget was succesfully removed.
* @return True if the widget was successfully removed.
*/
bool CNxWidget::removeChild(CNxWidget *widget)

View File

@ -242,7 +242,7 @@ void CRlePaletteBitmap::startOfImage(void)
bool CRlePaletteBitmap::advancePosition(nxgl_coord_t npixels)
{
// Advance to the next column after consuming 'npixels' on this colum
// Advance to the next column after consuming 'npixels' on this column
int newcol = m_col + npixels;
// Have we consumed the entire row?

View File

@ -211,7 +211,7 @@ void CWidgetControl::postWindowEvent(void)
* This method normally called externally... either periodically
* or when a window event is detected. If CONFIG_NXWIDGET_EVENTWAIT
* is defined, then external logic want call waitWindow event and
* when awakened, they chould call this function. As an example:
* when awakened, they should call this function. As an example:
*
* for (;;)
* {

View File

@ -118,7 +118,7 @@ void NXWidgets::instantiateSingletons(void)
sched_lock();
// Create a global, empty string that may be used whereever a string is
// Create a global, empty string that may be used wherever a string is
// required, but not needed.
if (!g_nullString)

View File

@ -6,7 +6,7 @@
* Updated and verified the NxWidgets DOxygen documentation. Contributed
by Jose Pablo Carballo.
* IBitmap, CRlePalettBitmap: Extended class to support differnt LUTs
* IBitmap, CRlePalettBitmap: Extended class to support different LUTs
for selected and non-selected images.
* CImage: If selected, uses different LUTs based, different borders.
CImage is now basically a button type.
@ -112,7 +112,7 @@
1.2 2012-06-15 Gregory Nutt <gnutt@nuttx.org>
* NXWidgets::CCallback: callback arguement is now type CCallback and not
* NXWidgets::CCallback: callback argument is now type CCallback and not
CWidgetControl; Added a method to redirect keyboard contacts to either
the widgets in the window (via CWidgetControl) or to an NxConsole (via
nxcon_kbdin()).
@ -127,10 +127,10 @@
* NxWM:CKeyboard: Add a new class that implements a keyboard listener
thread. This thread reads from /dev/console and injects the keyboard
input into NX. NX will determine which window is at the top of the
heirarchy and re-direct the keyboard input to only that top window.
hierarchy and re-direct the keyboard input to only that top window.
This solves an important problem with, for example, running multiple
copies of the NxConsole: On the copy of the NxConsole at the top of
the heirarchy should get the keyboard input.
the hierarchy should get the keyboard input.
* UnitTests/nxwm/main.cxx: Now starts the keyboard thread if
CONFIG_NXWM_KEYBOARD is defined.
* NxWM::CTaskbar: After drawing the task bar, need to raise the
@ -226,7 +226,7 @@
* NxWM::CScrollingPanel::scrollChildren(): Avoid unnecessary redraws in
CScrollingPanel (contributed by Petteri Aimonen).
* NxWM::CCycleButton: Remove the separator from CCycleButton. It draws in
wrong place, and doesnt look very good in the correct place either.
wrong place, and doesn't look very good in the correct place either.
(from Petteri Aimonen).
* NxWidgets::CGraphicsPort: Many times we only want a constant background.
In that case the old code fills the background, reads it back, renders

View File

@ -281,7 +281,7 @@ TYPEDEF_HIDES_STRUCT = NO
# causing a significant performance penality.
# If the system has enough physical memory increasing the cache will improve the
# performance by keeping more symbols in memory. Note that the value works on
# a logarithmic scale so increasing the size by one will rougly double the
# a logarithmic scale so increasing the size by one will roughly double the
# memory usage. The cache size is given by this formula:
# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0,
# corresponding to a cache size of 2^16 = 65536 symbols

View File

@ -547,7 +547,7 @@ config NXWM_KEYBOARD_USBHOST
A USB Keyboard is a removable device. When it is inserted, then
device at NXWM_KEYBOARD_DEVPATH will appear; when it removed,
keyboard reads will fail and the device at NXWM_KEYBOARD_DEVPATH
will disappear. Selecting this option builds addtional logic into
will disappear. Selecting this option builds additional logic into
the keyboard listener thread in order to handle this case.
config NXWM_KEYBOARD_SIGNO
@ -704,7 +704,7 @@ config NXWM_CALIBRATION_ANISOTROPIC
If you have such an LCD, then you may select this option to enable
some much more complex scaling alorithms to handle this case. Not
only are these algorithms more complex, but they are (currenly)
only are these algorithms more complex, but they are (currently)
implemented using floating point. As a result, you should not select
this option if you have a lower end MCU without hardware floating
point support.

View File

@ -11,7 +11,7 @@ See also the NuttX TODO list graphics/ section for related issues.
o General NxWM Issues
-------------------
Title: DISPLAY INTIALIZATION
Title: DISPLAY INITIALIZATION
Description: During the initialization of the display, the basic frame of the
start window is drawn momentarily. This is just the empty window
frame. This is a consequence of how NX creates windows: The

View File

@ -492,7 +492,7 @@ void CHexCalculator::setGeometry(void)
}
/**
* Create the calculator widgets. Only start as part of the applicaiton
* Create the calculator widgets. Only start as part of the application
* start method.
*/

View File

@ -1034,7 +1034,7 @@ bool CMediaPlayer::createPlayer(void)
nxgl_coord_t motionH = (nxgl_coord_t)(m_font->getHeight());
// Horizontal position: aligned with the right size of volume slider
// Vertical postion: same as the motion controls
// Vertical position: same as the motion controls
m_speed = new NXWidgets::CLabel(control,
volumeControlX + volumeControlW - motionW,

View File

@ -286,7 +286,7 @@ bool CTaskbar::startWindowManager(void)
if (!app->run())
{
// Call stopApplication on a failure to start. This will call
// app->stop() (which is probably not necesary for the application
// app->stop() (which is probably not necessary for the application
// but it should be prepared/ to handle it). stopApplication()
// will also removed the icon image from the list and delete it.
@ -542,7 +542,7 @@ bool CTaskbar::startApplication(IApplication *app, bool minimized)
if (!app->run())
{
// Call stopApplication on a failure to start. This will call
// app->stop() (which is probably not necesary for the application
// app->stop() (which is probably not necessary for the application
// but it should be prepared/ to handle it). stopApplication()
// will also removed the icon image from the list and delete it.
@ -1206,7 +1206,7 @@ bool CTaskbar::redrawTaskbarWindow(void)
}
/**
* Redraw the window at the top of the heirarchy.
* Redraw the window at the top of the hierarchy.
*
* @return true on success
*/
@ -1342,7 +1342,7 @@ bool CTaskbar::redrawApplicationWindow(IApplication *app)
m_backImage->disableDrawing();
// Raise to top application to the top of the NX window heirarchy
// Raise to top application to the top of the NX window hierarchy
raiseTopApplication();

View File

@ -173,7 +173,7 @@ static FAR struct pdc_context_s *PDC_ctx_new(void)
*
* Description:
* Added pdcurses interface called from many functions to eliminate
* global and static function variable usage. This function retuns a
* global and static function variable usage. This function returns a
* task specific context / struct pointer to those variables instead,
* allowing the pdcurses routines to be used by multiple tasks in a
* FLAT build.

View File

@ -75,7 +75,7 @@
* KEY_MOUSE return from getch(). If found, it would call
* request_mouse_pos() to get the current mouse status.
*
* mouse_set(), mouse_on() and mouse_off() are analagous to
* mouse_set(), mouse_on() and mouse_off() are analogous to
* attrset(), attron() and attroff(). These functions set the
* mouse button events to trap. The button masks used in these
* functions are defined in curses.h and can be or'ed together.

View File

@ -563,7 +563,7 @@ bool CIconMgr::createIconManagerWindow(FAR const char *prefix)
}
// Get the height and width of the Icon manager window. The width is
// determined by the typical string lenght the maximum character width,
// determined by the typical string length the maximum character width,
// The height of one row is determined (mostly) by the maximum font
// height
@ -858,7 +858,7 @@ void CIconMgr::handleActionEvent(const NXWidgets::CWidgetEventArgs &e)
if (m_buttons->isButtonClicked(column, row))
{
// Now find the window assigned to this row x colum
// Now find the window assigned to this row x column
for (FAR struct SWindowEntry *swin = m_head;
swin != (FAR struct SWindowEntry *)0;
@ -887,7 +887,7 @@ void CIconMgr::handleActionEvent(const NXWidgets::CWidgetEventArgs &e)
}
else
{
// Otherwise, raise the window to the top of the heirarchy
// Otherwise, raise the window to the top of the hierarchy
msg.eventID = EVENT_WINDOW_RAISE;
}

View File

@ -208,7 +208,7 @@ void CWindowEvent::handleRedrawEvent(FAR const nxgl_rect_s *nxRect,
* toolbar, but can easily move into the main window (or even outside
* of the window!). To these case, there may be two instances of
* CWindowEvent, one for the toolbar and one for the main window. The
* IEventTap implementation (along with the user arguement) can keep a
* IEventTap implementation (along with the user argument) can keep a
* consistent movement context across both instances.
*
* NOTE: NX will continually forward the mouse events to the same raw
@ -248,11 +248,11 @@ void CWindowEvent::handleMouseEvent(FAR const struct nxgl_point_s *pos,
twminfo("Continue movemenht (%d,%d) buttons=%02x m_tapHandler=%p\n",
mousePos.x, mousePos.y, buttons, m_tapHandler);
// Yes.. generate a movment event if we have a tap event handler
// Yes.. generate a movement event if we have a tap event handler
if (m_tapHandler->moveEvent(mousePos, m_tapArg))
{
// Skip the input poll until the movment completes
// Skip the input poll until the movement completes
return;
}

View File

@ -55,12 +55,12 @@
/* Single Frame fields */
#define OBD_SF_DATA_LEN(x) (x & 0xf) /* Data Lenght of Single Frame */
#define OBD_SF_DATA_LEN(x) (x & 0xf) /* Data Length of Single Frame */
/* First Frame fields */
#define OBD_FF_DATA_LEN_D0(x) ((x & 0xf) << 8) /* Data Lenght of First Frame D0 */
#define OBD_FF_DATA_LEN_D1(x) (x & 0xff) /* Data Lenght of First Frame D1 */
#define OBD_FF_DATA_LEN_D0(x) ((x & 0xf) << 8) /* Data Length of First Frame D0 */
#define OBD_FF_DATA_LEN_D1(x) (x & 0xff) /* Data Length of First Frame D1 */
/* Consecutive Frame fields */

View File

@ -72,7 +72,7 @@ extern "C"
* EINVAL - NULL block driver string
* ENOENT - 'pathname' does not refer to anything in the filesystem.
* ENOTBLK - 'pathname' does not refer to a block driver
* EFTYPE - the block driver hasn't been formated yet
* EFTYPE - the block driver hasn't been formatted yet
*
****************************************************************************/

View File

@ -79,7 +79,7 @@ namespace NXWidgets
bool m_numeric; /**< True: Numeric keypad, False: Alpha */
/**
* Configure the keypad for the currenly selected display mode.
* Configure the keypad for the currently selected display mode.
*/
void configureKeypadMode(void);

View File

@ -1310,7 +1310,7 @@ namespace NXWidgets
* Does not erase the widget from the display.
*
* @param widget Pointer to the widget to remove from the hierarchy.
* @return True if the widget was succesfully removed.
* @return True if the widget was successfully removed.
*/
bool removeChild(CNxWidget *widget);

View File

@ -411,7 +411,7 @@ namespace NXWidgets
* This method normally called externally... either periodically
* or when a window event is detected. If CONFIG_NXWIDGET_EVENTWAIT
* is defined, then external logic want call waitWindow event and
* when awakened, they chould call this function. As an example:
* when awakened, they should call this function. As an example:
*
* for (;;)
* {

View File

@ -233,7 +233,7 @@ namespace NxWM
*
* Both of those states will cause isRunning() to return false.
*
* @return True if the calibration thread is runnning normally.
* @return True if the calibration thread is running normally.
*/
inline bool isRunning(void) const

View File

@ -143,7 +143,7 @@ namespace NxWM
inline void setGeometry(void);
/**
* Create the calculator keypad. Only start as part of the applicaiton
* Create the calculator keypad. Only start as part of the application
* start method.
*/

View File

@ -179,7 +179,7 @@ namespace NxWM
virtual bool redrawTaskbarWindow(void);
/**
* Redraw the window at the top of the heirarchy.
* Redraw the window at the top of the hierarchy.
*
* @return true on success
*/

View File

@ -212,7 +212,7 @@ namespace NxWM
* This function is not re-entrant: There may be only one thread waiting for
* raw touchscreen data.
*
* @return True if the raw touchscreen data was sucessfully obtained
* @return True if the raw touchscreen data was successfully obtained
*/
bool waitRawTouchData(struct touch_sample_s *touch);

View File

@ -58,7 +58,7 @@
namespace NxWM
{
/**
* Foward references
* Forward references
*/
class IApplicationWindow;

View File

@ -61,7 +61,7 @@
namespace NxWM
{
/**
* Foward references
* Forward references
*/
class IApplication;

View File

@ -78,7 +78,7 @@ namespace Twm4Nx
struct SWindow
{
FAR struct SWindow *flink; /**< Foward link tonext window */
FAR struct SWindow *flink; /**< Forward link tonext window */
FAR struct SWindow *blink; /**< Backward link to previous window */
FAR struct SWindowEntry *wentry; /**< Icon manager list entry (for list removal) */
FAR CWindow *cwin; /**< Window object payload */

View File

@ -54,7 +54,7 @@ struct discover_info_s
* Description:
* Start the discover daemon.
*
* Input Paramters:
* Input Parameters:
*
* info Discover information, if NULL mconf defaults will be used.
*

View File

@ -235,8 +235,8 @@ enum telnet_event_type_e
TELNET_EV_TTYPE, /* TTYPE command has been received */
TELNET_EV_ENVIRON, /* ENVIRON command has been received */
TELNET_EV_MSSP, /* MSSP command has been received */
TELNET_EV_WARNING, /* Recoverable error has occured */
TELNET_EV_ERROR /* Non-recoverable error has occured */
TELNET_EV_WARNING, /* Recoverable error has occurred */
TELNET_EV_ERROR /* Non-recoverable error has occurred */
};
/* Environ/MSSP command information */
@ -280,10 +280,10 @@ union telnet_event_u
struct
{
enum telnet_event_type_e _type; /* Alias for type */
const char *file; /* File the error occured in */
const char *func; /* Function the error occured in */
const char *file; /* File the error occurred in */
const char *func; /* Function the error occurred in */
const char *msg; /* Error message string */
int line; /* Line of file error occured on */
int line; /* Line of file error occurred on */
enum telnet_error_e errcode; /* Error code */
} error;

View File

@ -26,7 +26,7 @@
* derived from this software without specific prior
* written permission.
*
* THIS SOFTWARE IS PROVIDED BY COGITO LLC AND CONTRIBUTERS 'AS IS'
* THIS SOFTWARE IS PROVIDED BY COGITO LLC AND CONTRIBUTORS 'AS IS'
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A
* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COGITO LLC

View File

@ -76,7 +76,7 @@
#endif
/* Data may be received in gulps of varying size and alignment. Received
* packets data is properly unescaped, aligned and packed nto a packet
* packets data is properly unescaped, aligned and packed into a packet
* buffer of this size.
*/
@ -92,7 +92,7 @@
# define CONFIG_SYSTEM_ZMODEM_SNDBUFSIZE 512
#endif
/* Absolute pathes are not accepted. This configuration value must be
/* Absolute paths are not accepted. This configuration value must be
* set to provide the path to the file storage directory (such as a
* mountpoint directory).
*/
@ -165,7 +165,7 @@
# define CONFIG_SYSTEM_ZMODEM_WRITESIZE 0
#endif
/* Absolute pathes in received file names are not accepted. This
/* Absolute paths in received file names are not accepted. This
* configuration value must be set to provide the path to the file storage
* directory (such as a mountpoint directory).
*

View File

@ -346,7 +346,7 @@ int wapi_get_ip(int sock, FAR const char *ifname, struct in_addr *addr);
* Name: wapi_set_ip
*
* Description:
* Sets IP adress of the given network interface.
* Sets IP address of the given network interface.
*
****************************************************************************/

View File

@ -219,7 +219,7 @@ static struct Value *hex(struct Value *v, long int value, long int digits)
}
static struct Value *find(struct Value *v, struct String *pattern,
long int occurence)
long int occurrence)
{
struct String dirname, basename;
char *slash;
@ -258,7 +258,7 @@ static struct Value *find(struct Value *v, struct String *pattern,
{
if (wildcardmatch(ent->d_name, basename.character))
{
if (found == occurence)
if (found == occurrence)
{
if (currentdir)
{

View File

@ -3804,7 +3804,7 @@ static int isstring(int tokenid)
* Get a numerical value from the parse string
* Params: str - the string to search
* len - return pinter for no chars read
* Retuns: the value of the string.
* Returns: the value of the string.
*
****************************************************************************/

View File

@ -68,7 +68,7 @@
typedef enum
{
STATE_RX_IDLE, /* Receiver is in idle state. */
STATE_RX_RCV, /* Frame is beeing received. */
STATE_RX_RCV, /* Frame is being received. */
STATE_RX_WAIT_EOF /* Wait for End of Frame. */
} eMBRcvState;
@ -231,7 +231,7 @@ eMBErrorCode eMBASCIIReceive(uint8_t *pucRcvAddress, uint8_t **pucFrame,
if ((usRcvBufferPos >= MB_SER_PDU_SIZE_MIN) &&
(prvucMBLRC((uint8_t *) ucASCIIBuf, usRcvBufferPos) == 0))
{
/* Save the address field. All frames are passed to the upper layed
/* Save the address field. All frames are passed to the upper laid
* and the decision if a frame is used is done there.
*/

View File

@ -131,7 +131,7 @@ eMBException eMBFuncReadCoils(uint8_t *pucFrame, uint16_t *usLen)
eRegStatus = eMBRegCoilsCB(pucFrameCur, usRegAddress, usCoilCount,
MB_REG_READ);
/* If an error occured convert it into a Modbus exception. */
/* If an error occurred convert it into a Modbus exception. */
if (eRegStatus != MB_ENOERR)
{
@ -196,7 +196,7 @@ eMBException eMBFuncWriteCoil(uint8_t *pucFrame, uint16_t *usLen)
eRegStatus = eMBRegCoilsCB(&ucBuf[0], usRegAddress, 1,
MB_REG_WRITE);
/* If an error occured convert it into a Modbus exception. */
/* If an error occurred convert it into a Modbus exception. */
if (eRegStatus != MB_ENOERR)
{
@ -263,7 +263,7 @@ eMBException eMBFuncWriteMultipleCoils(uint8_t *pucFrame, uint16_t *usLen)
eMBRegCoilsCB(&pucFrame[MB_PDU_FUNC_WRITE_MUL_VALUES_OFF],
usRegAddress, usCoilCnt, MB_REG_WRITE);
/* If an error occured convert it into a Modbus exception. */
/* If an error occurred convert it into a Modbus exception. */
if (eRegStatus != MB_ENOERR)
{

View File

@ -299,7 +299,7 @@ eMBException eMBMasterFuncWriteCoil(uint8_t *pucFrame, uint16_t *usLen)
eRegStatus = eMBMasterRegCoilsCB(&ucBuf[0], usRegAddress, 1,
MB_REG_WRITE);
/* If an error occured convert it into a Modbus exception. */
/* If an error occurred convert it into a Modbus exception. */
if (eRegStatus != MB_ENOERR)
{

View File

@ -99,7 +99,7 @@ eMBException eMBFuncWriteHoldingRegister(uint8_t *pucFrame, uint16_t *usLen)
eRegStatus = eMBRegHoldingCB(&pucFrame[MB_PDU_FUNC_WRITE_VALUE_OFF],
usRegAddress, 1, MB_REG_WRITE);
/* If an error occured convert it into a Modbus exception. */
/* If an error occurred convert it into a Modbus exception. */
if (eRegStatus != MB_ENOERR)
{
@ -224,7 +224,7 @@ eMBException eMBFuncReadHoldingRegister(uint8_t * pucFrame, uint16_t * usLen)
eRegStatus = eMBRegHoldingCB(pucFrameCur, usRegAddress, usRegCount, MB_REG_READ);
/* If an error occured convert it into a Modbus exception. */
/* If an error occurred convert it into a Modbus exception. */
if (eRegStatus != MB_ENOERR)
{

View File

@ -163,7 +163,7 @@ eMBException eMBMasterFuncWriteHoldingRegister(uint8_t *pucFrame,
eRegStatus = eMBMasterRegHoldingCB(&pucFrame[MB_PDU_FUNC_WRITE_VALUE_OFF],
usRegAddress, 1, MB_REG_WRITE);
/* If an error occured convert it into a Modbus exception. */
/* If an error occurred convert it into a Modbus exception. */
if (eRegStatus != MB_ENOERR)
{
@ -276,7 +276,7 @@ eMBException eMBMasterFuncWriteMultipleHoldingRegister(uint8_t *pucFrame,
eMBMasterRegHoldingCB(&ucMBFrame[MB_PDU_REQ_WRITE_MUL_VALUES_OFF],
usRegAddress, usRegCount, MB_REG_WRITE);
/* If an error occured convert it into a Modbus exception. */
/* If an error occurred convert it into a Modbus exception. */
if (eRegStatus != MB_ENOERR)
{

View File

@ -107,7 +107,7 @@ eMBException eMBFuncReadInputRegister(uint8_t *pucFrame, uint16_t *usLen)
eRegStatus = eMBRegInputCB(pucFrameCur, usRegAddress, usRegCount);
/* If an error occured convert it into a Modbus exception. */
/* If an error occurred convert it into a Modbus exception. */
if (eRegStatus != MB_ENOERR)
{

View File

@ -1,7 +1,7 @@
/****************************************************************************
* apps/modbus/functions/mbfuncinput_m.c
*
* FreeModbus Libary: A portable Modbus implementation for Modbus ASCII/RTU.
* FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
* Copyright (C) 2013 Armink <armink.ztl@gmail.com>
* All rights reserved.
*

View File

@ -418,7 +418,7 @@ eMBErrorCode eMBPoll(void)
{
if (eException != MB_EX_NONE)
{
/* An exception occured. Build an error frame. */
/* An exception occurred. Build an error frame. */
usLength = 0;
ucMBFrame[usLength++] = (uint8_t)(ucFunctionCode | MB_FUNC_ERROR);

View File

@ -1,5 +1,5 @@
/****************************************************************************
* FreeModbus Libary: A portable Modbus implementation for Modbus ASCII/RTU.
* FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
*
* Copyright (C) 2013 Armink <armink.ztl@gmail.com>
* All rights reserved.
@ -93,7 +93,7 @@ static peMBFrameReceive peMBMasterFrameReceiveCur;
static pvMBFrameClose pvMBMasterFrameCloseCur;
/* Callback functions required by the porting layer. They are called when
* an external event has happend which includes a timeout or the reception
* an external event has happened which includes a timeout or the reception
* or transmission of a character.
* Using for Modbus Master,Add by Armink 20130813
*/
@ -194,7 +194,7 @@ eMBErrorCode eMBMasterInit(eMBMode eMode, uint8_t ucPort,
{
if (!xMBMasterPortEventInit())
{
/* Port dependent event module initalization failed. */
/* Port dependent event module initialization failed. */
eStatus = MB_EPORTERR;
}

View File

@ -179,7 +179,7 @@ eMBErrorCode eMBRTUReceive(uint8_t *pucRcvAddress, uint8_t **pucFrame,
if ((usRcvBufferPos >= MB_SER_PDU_SIZE_MIN) &&
(usMBCRC16((uint8_t *) ucRTUBuf, usRcvBufferPos) == 0))
{
/* Save the address field. All frames are passed to the upper layed
/* Save the address field. All frames are passed to the upper laid
* and the decision if a frame is used is done there.
*/

View File

@ -1,7 +1,7 @@
/****************************************************************************
* apps/modbus/rtu/mbrtu_m.c
*
* FreeModbus Libary: A portable Modbus implementation for Modbus ASCII/RTU.
* FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
* Copyright (c) 2013 China Beijing Armink <armink.ztl@gmail.com>
* All rights reserved.
*
@ -190,7 +190,7 @@ eMBErrorCode eMBMasterRTUReceive(uint8_t *pucRcvAddress, uint8_t **pucFrame,
if ((usMasterRcvBufferPos >= MB_SER_PDU_SIZE_MIN)
&& (usMBCRC16((uint8_t *) ucMasterRTURcvBuf, usMasterRcvBufferPos) == 0))
{
/* Save the address field. All frames are passed to the upper layed and
/* Save the address field. All frames are passed to the upper laid and
* the decision if a frame is used is done there.
*/
@ -422,7 +422,7 @@ bool xMBMasterRTUTimerExpired(void)
xNeedPoll = xMBMasterPortEventPost(EV_MASTER_FRAME_RECEIVED);
break;
/* An error occured while receiving the frame. */
/* An error occurred while receiving the frame. */
case STATE_M_RX_ERROR:
vMBMasterSetErrorType(EV_ERROR_RECEIVE_DATA);

View File

@ -986,7 +986,7 @@ static int dhcpd_sendpacket(int bbroadcast)
sockfd = dhcpd_openresponder();
if (sockfd >= 0)
{
/* Then send the reponse to the DHCP client port at that address */
/* Then send the response to the DHCP client port at that address */
memset(&addr, 0, sizeof(struct sockaddr_in));
addr.sin_family = AF_INET;

View File

@ -92,7 +92,7 @@
/* Internal Definitions *****************************************************/
/* Discover request packet format:
* Byte Description
* 0 Protocol indentifier (0x99)
* 0 Protocol identifier (0x99)
* 1 Request command 0x01
* 2 Destination device class (For querying subsets of available devices)
* 0xff for all devices
@ -101,8 +101,8 @@
/* Discover response packet format:
* Byte Description
* 0 Protocol indentifier (0x99)
* 1 Reponse command (0x02)
* 0 Protocol identifier (0x99)
* 1 Response command (0x02)
* 2-33 Device description string with 0 bytes filled
* 34 Checksum (Byte 0 - Byte 1 - Byte n) & 0xff
*/
@ -280,7 +280,7 @@ static inline int discover_respond(in_addr_t *ipaddr)
return ERROR;
}
/* Then send the reponse to the DHCP client port at that address */
/* Then send the response to the DHCP client port at that address */
memset(&addr, 0, sizeof(struct sockaddr_in));
addr.sin_family = AF_INET;

View File

@ -1665,7 +1665,7 @@ int lesp_ap_connect(const char *ssid_name, const char *ap_key, int timeout_s)
* None
*
* Output Parmeters:
* ap : details of connected acces point
* ap : details of connected access point
*
* Returned Value:
* 0 on success, -1 in case of error.

View File

@ -73,7 +73,7 @@
/****************************************************************************
* Name: ftpc_filetime
*
* Descripton:
* Description:
* Return the timestamp on the remote file. Returned time is UTC
* (Universal Coordinated Time).
*

View File

@ -93,7 +93,7 @@ static int ftpc_recvinit(struct ftpc_session_s *session, FAR const char *path,
return ERROR;
}
/* Configure the transfer: Initial file offset and tranfer mode */
/* Configure the transfer: Initial file offset and transfer mode */
session->offset = 0;
ftpc_xfrmode(session, xfrmode);

View File

@ -262,9 +262,9 @@ static int ftpc_recvdir(FAR struct ftpc_session_s *session,
* but the parsing is a bitch. See http://cr.yp.to/ftpparse.html
*
* NOTE: We expect to receive only well structured directory paths. Tilde
* expansion "~/xyz" and relative pathes (abc/def) because we do have
* expansion "~/xyz" and relative paths (abc/def) because we do have
* special knowledge about the home and current directories. But otherwise
* the pathes are expected to be pre-sanitized: No . or .. in paths,
* the paths are expected to be pre-sanitized: No . or .. in paths,
* no '//' in paths, etc.
*
****************************************************************************/

View File

@ -74,7 +74,7 @@
/****************************************************************************
* Name: ftpc_rpwd
*
* Descripton:
* Description:
* Returns the current working directory on the remote server.
*
****************************************************************************/

View File

@ -70,7 +70,7 @@
/****************************************************************************
* Name: ftpc_unlink
*
* Descripton:
* Description:
* Delete the given file from the remote server.
*
****************************************************************************/

View File

@ -101,7 +101,7 @@
/****************************************************************************
* Name: curl4nx_resolve
* Description:
* Translate a host name to an IP addres (V4 only for the moment)
* Translate a host name to an IP address (V4 only for the moment)
* - either the host is a string with an IP
* - either the known hosts were defined by CURL4NXOPT_
****************************************************************************/

View File

@ -369,7 +369,7 @@ uint16_t scan_packet(FAR struct ppp_context_s *ctx, uint16_t protocol,
while (bptr < options + len)
{
/* Get code and see if it matches somwhere in the list, if not we don't
/* Get code and see if it matches somewhere in the list, if not we don't
* support it.
*/

View File

@ -9,7 +9,7 @@
* Heavily leveraged from uIP 1.0 which also has a BSD-like license:
*
* The Simple Mail Transfer Protocol (SMTP) as defined by RFC821 is
* the standard way of sending and transfering e-mail on the
* the standard way of sending and transferring e-mail on the
* Internet. This simple example implementation is intended as an
* example of how to implement protocols in uIP, and is able to send
* out e-mail but has not been extensively tested.

View File

@ -475,7 +475,7 @@ static void _negotiate(struct telnet_s *telnet, unsigned char telopt)
union telnet_event_u ev;
struct telnet_rfc1143_s q;
/* In PROXY mode, just pass it thru and do nothing */
/* In PROXY mode, just pass it through and do nothing */
if (telnet->flags & TELNET_FLAG_PROXY)
{

View File

@ -103,7 +103,7 @@
# define CONFIG_THTTPD_CGI_PATH "/mnt/www/cgi-bin"
# endif
/* Only CGI programs whose fully expanded pathes match this pattern will be executed. In fact,
/* Only CGI programs whose fully expanded paths match this pattern will be executed. In fact,
* if this value is not defined then no CGI logic will be built.
*/

View File

@ -1146,7 +1146,7 @@ static char *expand_filename(char *path, char **restP, bool tildemapped)
}
#endif /* 0 */
/* Handle leading / or . and relative pathes by copying the default directory into checked */
/* Handle leading / or . and relative paths by copying the default directory into checked */
if ((path[0] == '/' && strncmp(path, httpd_root, strlen(httpd_root)) != 0) || path[0] != '/')
{
@ -1165,7 +1165,7 @@ static char *expand_filename(char *path, char **restP, bool tildemapped)
path++;
}
/* Add '/' to separate relative pathes */
/* Add '/' to separate relative paths */
else if (path[0] != '/')
{

Some files were not shown because too many files have changed in this diff Show More