Skip to content

Commit f2cb20c

Browse files
nashifMaureenHelm
authored andcommitted
docs: fix misspelling across the tree
Found a few annoying typos and figured I better run script and fix anything it can find, here are the results... Signed-off-by: Anas Nashif <[email protected]>
1 parent b023fbf commit f2cb20c

File tree

133 files changed

+191
-191
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+191
-191
lines changed

CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# expect to learn how to build the kernel reading this file.
1313

1414
if(NOT DEFINED ZEPHYR_BINARY_DIR)
15-
message(FATAL_ERROR "A user error has occured.
15+
message(FATAL_ERROR "A user error has occurred.
1616
cmake was invoked with '${CMAKE_CURRENT_LIST_DIR}' specified as the source directory,
1717
but it must be invoked with an application source directory,
1818
such as '${CMAKE_CURRENT_LIST_DIR}/samples/hello_world'.
@@ -39,7 +39,7 @@ project(Zephyr-Kernel VERSION ${PROJECT_VERSION})
3939
enable_language(C CXX ASM)
4040

4141
# Verify that the toolchain can compile a dummy file, if it is not we
42-
# won't be able to test for compatiblity with certain C flags.
42+
# won't be able to test for compatibility with certain C flags.
4343
check_c_compiler_flag("" toolchain_is_ok)
4444
assert(toolchain_is_ok "The toolchain is unable to build a dummy C file. See CMakeError.log.")
4545

Kconfig.zephyr

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ source "modules/Kconfig"
1515
endmenu
1616

1717
# Include these first so that any properties (e.g. defaults) below can be
18-
# overriden in *.defconfig files (by defining symbols in multiple locations).
18+
# overridden in *.defconfig files (by defining symbols in multiple locations).
1919
# After merging all the symbol definitions, Kconfig picks the first property
2020
# (e.g. the first default) with a satisfied condition.
2121
#
@@ -63,7 +63,7 @@ config LINKER_ORPHAN_SECTION_PLACE
6363
config LINKER_ORPHAN_SECTION_WARN
6464
bool "Warn"
6565
help
66-
Linker places the orphan sections in ouput and issues
66+
Linker places the orphan sections in output and issues
6767
warning about those sections.
6868

6969
config LINKER_ORPHAN_SECTION_ERROR

arch/Kconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#
1010

1111
# Include these first so that any properties (e.g. defaults) below can be
12-
# overriden (by defining symbols in multiple locations)
12+
# overridden (by defining symbols in multiple locations)
1313

1414
# Note: $ARCH might be a glob pattern
1515
source "$(ARCH_DIR)/$(ARCH)/Kconfig"

arch/arm/core/cortex_m/prep_c.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
/*
2828
* GCC can detect if memcpy is passed a NULL argument, however one of
2929
* the cases of relocate_vector_table() it is valid to pass NULL, so we
30-
* supress the warning for this case. We need to do this before
30+
* suppress the warning for this case. We need to do this before
3131
* string.h is included to get the declaration of memcpy.
3232
*/
3333
#pragma GCC diagnostic push

arch/nios2/core/crt0.S

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ SECTION_FUNC(TEXT, __start)
134134
#endif
135135

136136
/* TODO if shadow register sets enabled, interate through them to set
137-
* up. Need to clear r0, write gp, set the execption stack pointer
137+
* up. Need to clear r0, write gp, set the exception stack pointer
138138
* GH-1821
139139
*/
140140

arch/nios2/core/swap.S

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ no_unlock:
175175
SECTION_FUNC(TEXT, z_thread_entry_wrapper)
176176
/* This all corresponds to struct init_stack_frame defined in
177177
* thread.c. We need to take this stuff off the stack and put
178-
* it in the apporpriate registers
178+
* it in the appropriate registers
179179
*/
180180

181181
/* Can't return from here, just put NULL in ra */

arch/x86/core/ia32/irq_manage.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ static void *get_dynamic_stub(int stub_idx)
228228
u32_t offset;
229229

230230
/*
231-
* Because we want the sizes of the stubs to be consisent and minimized,
231+
* Because we want the sizes of the stubs to be consistent and minimized,
232232
* stubs are grouped into blocks, each containing a push and subsequent
233233
* 2-byte jump instruction to the end of the block, which then contains
234234
* a larger jump instruction to common dynamic IRQ handling code

arch/x86/core/ia32/userspace.S

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ SECTION_FUNC(TEXT, z_x86_trampoline_to_kernel)
5858

5959
/* %esp = _kernel->current->stack_info.start
6060
*
61-
* This is the lowest address of the user mode stack, and higest
61+
* This is the lowest address of the user mode stack, and highest
6262
* address of the kernel stack, they are adjacent.
6363
* We want to transplant context here.
6464
*/
@@ -166,7 +166,7 @@ SECTION_FUNC(TEXT, z_x86_syscall_entry_stub)
166166

167167
/* %esp = _kernel->current->stack_info.start
168168
*
169-
* This is the lowest address of the user mode stack, and higest
169+
* This is the lowest address of the user mode stack, and highest
170170
* address of the kernel stack, they are adjacent.
171171
* We want to transplant context here.
172172
*/

arch/x86/core/ia32/x86_mmu.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ int z_arch_buffer_validate(void *addr, size_t size, int write)
133133
MMU_PAGE_NUM((char *)addr + size - 1);
134134
}
135135

136-
/* For all the pde's appart from the starting pde,
136+
/* For all the pde's apart from the starting pde,
137137
* will have the start pte number as zero.
138138
*/
139139
if (pde != start_pde_num) {

arch/x86/gen_mmu_x86.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def populate_required_structs(self):
245245

246246
# In-case the start address aligns with a page table entry other
247247
# than zero and the mem_size is greater than (1024*4096) i.e 4MB
248-
# in case where it overflows the currenty PDE's range then limit the
248+
# in case where it overflows the current PDE's range then limit the
249249
# PTE to 1024 and so make the mem_size reflect the actual size
250250
# taken up in the current PDE
251251
if (size + (pte_valid_addr_start * 4096)) >= \
@@ -277,7 +277,7 @@ def populate_required_structs(self):
277277

278278
# create all the extra PDEs needed to fit the requested size
279279
# this loop starts from the current pde till the last pde that is
280-
# needed the last pde is calcualted as the (start_addr + size) >>
280+
# needed the last pde is calculated as the (start_addr + size) >>
281281
# 22
282282
if overflow_size != 0:
283283
for extra_pdpte in range(pdpte_index,
@@ -488,7 +488,7 @@ def read_mmu_list(mmu_list_data):
488488
other_addr, other_end_addr))
489489
sys.exit(2)
490490

491-
# add the retrived info another list
491+
# add the retrieved info another list
492492
regions.append((addr, size, flags))
493493

494494
return (pd_start_addr, regions)

arch/x86/include/kernel_arch_thread.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ typedef struct s_preempFloatReg {
190190
} tPreempFloatReg;
191191

192192
/*
193-
* The thread control stucture definition. It contains the
193+
* The thread control structure definition. It contains the
194194
* various fields to manage a _single_ thread. The TCS will be aligned
195195
* to the appropriate architecture specific boundary via the
196196
* z_new_thread() call.

arch/x86_64/core/x86_64-hw.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ struct apic_regs {
183183

184184
#define _apic (*((volatile struct apic_regs *)0xfee00000ll))
185185

186-
/* Crazy encoding for this, but susceptable to a formula. Returns the
186+
/* Crazy encoding for this, but susceptible to a formula. Returns the
187187
* DIVIDE_CONF register value that divides the input clock by 2^n (n
188188
* in the range 0-7).
189189
*/

arch/x86_64/core/xuk.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ static inline void *xuk_get_g_ptr()
5858
*
5959
* + Values from 0x100 to 0x1ff are mapped to raw vectors 0x00-0xff
6060
* and can be used for handling exceptions, for INT instructions, or
61-
* for MSI- or IPI-directed interrupts that specifiy specific
61+
* for MSI- or IPI-directed interrupts that specify specific
6262
* vectors.
6363
*
6464
* + Values outside this range may be exposed symbolically for other

arch/xtensa/core/xt_zephyr.S

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ _zxt_int_exit:
227227
* every timer interrupt. Manages the tick timer and calls
228228
* xPortSysTickHandler() every tick. See the detailed description of the
229229
* XT_RTOS_ENTER macro in xtensa_rtos.h. Callable from C. Implemented in
230-
* assmebly code for performance.
230+
* assembly code for performance.
231231
*
232232
*/
233233
.globl _zxt_timer_int

arch/xtensa/include/kernel_arch_thread.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ typedef struct s_preempCoprocReg {
7373
} tPreempCoprocReg;
7474

7575
/*
76-
* The thread control stucture definition. It contains the
76+
* The thread control structure definition. It contains the
7777
* various fields to manage a _single_ thread.
7878
*/
7979
struct _thread_arch {

arch/xtensa/include/xtensa_context.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ STRUCT_END(XtSolFrame)
178178
* otherwise a thread retains ownership of the co-processor even when it loses
179179
* control of the processor. An Xtensa co-processor exception is triggered when
180180
* any co-processor instruction is executed by a thread that is not the owner,
181-
* and the context switch of that co-processor is then peformed by the handler.
181+
* and the context switch of that co-processor is then performed by the handler.
182182
* Ownership represents which thread's state is currently in the co-processor.
183183
*
184184
* Co-processors may not be used by interrupt or exception handlers. If a

boards/arm/nrf52_pca20020/board.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ static int pwr_ctrl_init(struct device *dev)
4040
* from the VDD power rail. Both of these power rails need to be enabled before
4141
* the sensor driver init can be performed. The VDD rail also has to be powered up
4242
* before the CCS_VDD rail. These checks are to enforce the power up sequence
43-
* constraits.
43+
* constraints.
4444
*/
4545

4646
#if CONFIG_BOARD_VDD_PWR_CTRL_INIT_PRIORITY <= CONFIG_GPIO_NRF_INIT_PRIORITY

boards/arm/v2m_beetle/pinmux.c

+10-10
Original file line numberDiff line numberDiff line change
@@ -99,21 +99,21 @@ static void arm_v2m_beetle_pinmux_defaults(void)
9999

100100
/* Set GPIO Alternate Functions */
101101

102-
gpio_0 = (1<<0); /* Sheild 0 UART 0 RXD */
103-
gpio_0 |= (1<<1); /* Sheild 0 UART 0 TXD */
104-
gpio_0 |= (1<<14); /* Sheild 0 I2C SDA SBCON2 */
105-
gpio_0 |= (1<<15); /* Sheild 0 I2C SCL SBCON2 */
106-
gpio_0 |= (1<<10); /* Sheild 0 SPI_3 nCS */
107-
gpio_0 |= (1<<11); /* Sheild 0 SPI_3 MOSI */
108-
gpio_0 |= (1<<12); /* Sheild 0 SPI_3 MISO */
109-
gpio_0 |= (1<<13); /* Sheild 0 SPI_3 SCK */
102+
gpio_0 = (1<<0); /* Shield 0 UART 0 RXD */
103+
gpio_0 |= (1<<1); /* Shield 0 UART 0 TXD */
104+
gpio_0 |= (1<<14); /* Shield 0 I2C SDA SBCON2 */
105+
gpio_0 |= (1<<15); /* Shield 0 I2C SCL SBCON2 */
106+
gpio_0 |= (1<<10); /* Shield 0 SPI_3 nCS */
107+
gpio_0 |= (1<<11); /* Shield 0 SPI_3 MOSI */
108+
gpio_0 |= (1<<12); /* Shield 0 SPI_3 MISO */
109+
gpio_0 |= (1<<13); /* Shield 0 SPI_3 SCK */
110110

111111
CMSDK_AHB_GPIO0_DEV->altfuncset = gpio_0;
112112

113113
gpio_1 = (1<<0); /* UART 1 RXD */
114114
gpio_1 |= (1<<1); /* UART 1 TXD */
115-
gpio_1 |= (1<<6); /* Sheild 1 I2C SDA */
116-
gpio_1 |= (1<<7); /* Sheild 1 I2C SCL */
115+
gpio_1 |= (1<<6); /* Shield 1 I2C SDA */
116+
gpio_1 |= (1<<7); /* Shield 1 I2C SCL */
117117
gpio_1 |= (1<<2); /* ADC SPI_1 nCS */
118118
gpio_1 |= (1<<3); /* ADC SPI_1 MOSI */
119119
gpio_1 |= (1<<4); /* ADC SPI_1 MISO */

boards/posix/nrf52_bsim/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
if (NOT DEFINED ENV{BSIM_COMPONENTS_PATH})
44
message(FATAL_ERROR "This board requires the BabbleSim simulator. Please set\
5-
the enviroment variable BSIM_COMPONENTS_PATH to point to its components \
5+
the environment variable BSIM_COMPONENTS_PATH to point to its components \
66
folder. More information can be found in\
77
https://babblesim.github.io/folder_structure_and_env.html")
88
endif()
99
if (NOT DEFINED ENV{BSIM_OUT_PATH})
1010
message(FATAL_ERROR "This board requires the BabbleSim simulator. Please set\
11-
the enviroment variable BSIM_OUT_PATH to point to the folder where the\
11+
the environment variable BSIM_OUT_PATH to point to the folder where the\
1212
simulator is compiled to. More information can be found in\
1313
https://babblesim.github.io/folder_structure_and_env.html")
1414
endif()

boards/xtensa/intel_s1000_crb/support/messenger.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def create_memread_cmd(self, tuple):
160160

161161
def create_loadfw_cmd(self, size, sha):
162162
"""
163-
Creates a command to load firmware with associated paramters
163+
Creates a command to load firmware with associated parameters
164164
"""
165165
cmd = 'Load Firmware'
166166
print('CMD >>> %s.' % cmd)

cmake/extensions.cmake

+3-3
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ endmacro()
332332
# or zephyr_library_named. The constructors create a CMake library
333333
# with a name accessible through the variable ZEPHYR_CURRENT_LIBRARY.
334334
#
335-
# The variable ZEPHYR_CURRENT_LIBRARY should seldomly be needed since
335+
# The variable ZEPHYR_CURRENT_LIBRARY should seldom be needed since
336336
# the zephyr libraries have methods that modify the libraries. These
337337
# methods have the signature: zephyr_library_<target-function>
338338
#
@@ -830,7 +830,7 @@ endfunction()
830830
# _mysection_size = ABSOLUTE(_mysection_end - _mysection_start);
831831
#
832832
# When placing into SECTIONS or RAM_SECTIONS, the files must instead define
833-
# their own output sections to acheive the same thing:
833+
# their own output sections to achieve the same thing:
834834
# SECTION_PROLOGUE(.mysection,,)
835835
# {
836836
# _mysection_start = .;
@@ -1336,7 +1336,7 @@ endmacro()
13361336
# assert_not(OBSOLETE_VAR "OBSOLETE_VAR has been removed; use NEW_VAR instead")
13371337
#
13381338
# will cause a FATAL_ERROR and print an error message if the first
1339-
# espression is true
1339+
# expression is true
13401340
macro(assert_not test comment)
13411341
if(${test})
13421342
message(FATAL_ERROR "Assertion failed: ${comment}")

cmake/linker/ld/target_baremetal.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ macro(toolchain_ld_baremetal)
2626
#
2727
# CONFIG_LINKER_ORPHAN_SECTION_PLACE is to place the orphan sections
2828
# without any warnings or errors, which is the default behavior.
29-
# So there is no need to explicity set a linker flag.
29+
# So there is no need to explicitly set a linker flag.
3030
if(CONFIG_LINKER_ORPHAN_SECTION_WARN)
3131
zephyr_ld_options(
3232
${LINKERFLAGPREFIX},--orphan-handling=warn

cmake/toolchain/cross-compile/generic.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#
1010
# New users should set the env var 'ZEPHYR_TOOLCHAIN_VARIANT' to
1111
# 'cross-compile' and the 'CROSS_COMPILE' env var to the toolchain
12-
# prefix. This interface is consisent with the other non-"Zephyr SDK"
12+
# prefix. This interface is consistent with the other non-"Zephyr SDK"
1313
# toolchains.
1414
#
1515
# It can be set from either the environment or from a CMake variable

cmake/toolchain/xtools/generic.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ set(LINKER ld)
1111

1212
# Choose one of the toolchains in 'TOOLCHAIN_HOME' at random to use as
1313
# a 'generic' toolchain until we know for sure which toolchain we
14-
# should use. Note that we can't use ARCH to distingush between
14+
# should use. Note that we can't use ARCH to distinguish between
1515
# toolchains because choosing between iamcu and non-iamcu is dependent
1616
# on Kconfig, not ARCH.
1717
file(GLOB toolchain_paths ${TOOLCHAIN_HOME}/*)

doc/guides/bluetooth/bluetooth-arch.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ stack.
1313
Zephyr supports mainly Bluetooth Low Energy (BLE), the low-power
1414
version of the Bluetooth specification. Zephyr also has limited support
1515
for portions of the BR/EDR Host. Throughout this architecture document we
16-
use BLE interchangably for Bluetooth except when noted.
16+
use BLE interchangeably for Bluetooth except when noted.
1717

1818
.. _bluetooth-layers:
1919

doc/guides/porting/board_porting.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ works like ``if y`` (is always satisfied).
247247
.. note::
248248

249249
``range`` properties on ``int`` and ``hex`` symbols work the same way, and
250-
can also be added or overriden in :file:`Kconfig.defconfig` files.
250+
can also be added or overridden in :file:`Kconfig.defconfig` files.
251251

252252
If you want a symbol to only be user-configurable on some boards, make its base
253253
definition have no prompt, and then add a prompt to it in the

doc/reference/bluetooth/gatt.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Client procedures can be enabled with the configuration option:
6262

6363
Discover procedures can be initiated with the use of
6464
:cpp:func:`bt_gatt_discover` API which takes the
65-
:cpp:class:`bt_gatt_dicover_params` struct which describes the type of
65+
:cpp:class:`bt_gatt_discover_params` struct which describes the type of
6666
discovery. The parameters also serves as a filter when setting the ``uuid``
6767
field only attributes which matches will be discovered, in contrast setting it
6868
to NULL allows all attributes to be discovered.

doc/reference/networking/coap.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ An application reads data from the socket and passes the buffer to the CoAP libr
6767
to parse the message. If the CoAP message is proper, the library uses the buffer
6868
along with resources defined above to call the correct callback function
6969
to handle the CoAP request from the client. It's the callback function's
70-
responsibilty to either reply or act according to CoAP request.
70+
responsibility to either reply or act according to CoAP request.
7171

7272
.. code-block:: c
7373

doc/releases/release-notes-1.11.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ release:
346346
* :github:`5370` - [Coverity CID: 180699] Error handling issues in /tests/bluetooth/tester/src/gatt.c
347347
* :github:`5374` - merge_config.sh can behave differently from merge_config.py
348348
* :github:`5379` - sample: net/socket/http_get: no printf output
349-
* :github:`5382` - P2P Device Firwmare Update (FOTA) over BLE and Serial
349+
* :github:`5382` - P2P Device Firmware Update (FOTA) over BLE and Serial
350350
* :github:`5391` - drivers: stm32 clock control: F0 Series with PREDIV1 Support uses wrong PLLSOURCE define for HSI clock
351351
* :github:`5401` - delta_ticks_from_prev become negative and waiting tasks never scheduled
352352
* :github:`5406` - UART1 on STM32F0 Series not working: errors in makro to enable clock
@@ -382,7 +382,7 @@ release:
382382
* :github:`5576` - None of the :github:'XYZ' links work in the 1.10 release notes
383383
* :github:`5589` - Issue with using generic gcc cross compile with cmake
384384
* :github:`5601` - docs for cc3220sf_launchxl are out of date/incorrect
385-
* :github:`5608` - Bluetooth LE continous scan weird behaviour
385+
* :github:`5608` - Bluetooth LE continuous scan weird behaviour
386386
* :github:`5619` - zephyr.git/tests/misc/test_build/testcase.yaml#test_newlib @ esp32:xtensa BUILD failed
387387
* :github:`5626` - Building samples failed
388388
* :github:`5640` - MacOS compile error with -std=gnu89

doc/releases/release-notes-1.12.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ Documentation
264264
* Added description for kernel test cases through extensive doxygen comments
265265
* Discovered some API docs were missing, and fixed
266266
* Documentation added covering system calls and userspace, kernel, and
267-
threading APIs, POSIX compability, VLANs, network traffic
267+
threading APIs, POSIX compatibility, VLANs, network traffic
268268
classification, and the sanitycheck script used by CI.
269269
* Documented writing guidelines and local doc generation process
270270
* Improved Sphinx search results output (removed markup)
@@ -649,7 +649,7 @@ These GitHub issues were closed since the previous 1.11.0 tagged release:
649649
* :github:`7480` - pthread_attr_init( ) does not conform to POSIX specification
650650
* :github:`7482` - [Coverity CID :185523] Out-of-bounds read in lsm6dsl driver
651651
* :github:`7495` - cmake: extensions: ToolchainCapabilityDatabase.cmake parse error in shippable
652-
* :github:`7500` - DHCP: when CONFIG_NET_APP_MY_IPV4_ADDR is IP stack needs to rebind on DHCP aquire
652+
* :github:`7500` - DHCP: when CONFIG_NET_APP_MY_IPV4_ADDR is IP stack needs to rebind on DHCP acquire
653653
* :github:`7508` - [Coverity CID :185523] Memory - illegal accesses in /drivers/sensor/lsm6dsl/lsm6dsl.c
654654
* :github:`7511` - [Coverity CID :185391] Incorrect expression in /tests/lib/rbtree/src/main.c
655655
* :github:`7519` - Verify CODEOWNERS (not) including subfolders is intended

0 commit comments

Comments
 (0)