From f2cb20c772b3700896cf0f67b7e307677866058e Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Tue, 18 Jun 2019 14:45:40 -0400 Subject: [PATCH] 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 --- CMakeLists.txt | 4 ++-- Kconfig.zephyr | 4 ++-- arch/Kconfig | 2 +- arch/arm/core/cortex_m/prep_c.c | 2 +- arch/nios2/core/crt0.S | 2 +- arch/nios2/core/swap.S | 2 +- arch/x86/core/ia32/irq_manage.c | 2 +- arch/x86/core/ia32/userspace.S | 4 ++-- arch/x86/core/ia32/x86_mmu.c | 2 +- arch/x86/gen_mmu_x86.py | 6 +++--- arch/x86/include/kernel_arch_thread.h | 2 +- arch/x86_64/core/x86_64-hw.h | 2 +- arch/x86_64/core/xuk.h | 2 +- arch/xtensa/core/xt_zephyr.S | 2 +- arch/xtensa/include/kernel_arch_thread.h | 2 +- arch/xtensa/include/xtensa_context.h | 2 +- boards/arm/nrf52_pca20020/board.c | 2 +- boards/arm/v2m_beetle/pinmux.c | 20 +++++++++---------- boards/posix/nrf52_bsim/CMakeLists.txt | 4 ++-- .../intel_s1000_crb/support/messenger.py | 2 +- cmake/extensions.cmake | 6 +++--- cmake/linker/ld/target_baremetal.cmake | 2 +- cmake/toolchain/cross-compile/generic.cmake | 2 +- cmake/toolchain/xtools/generic.cmake | 2 +- doc/guides/bluetooth/bluetooth-arch.rst | 2 +- doc/guides/porting/board_porting.rst | 2 +- doc/reference/bluetooth/gatt.rst | 2 +- doc/reference/networking/coap.rst | 2 +- doc/releases/release-notes-1.11.rst | 4 ++-- doc/releases/release-notes-1.12.rst | 4 ++-- doc/releases/release-notes-1.14.rst | 10 +++++----- drivers/audio/intel_dmic.c | 4 ++-- drivers/bluetooth/hci/spi.c | 2 +- drivers/crypto/crypto_tc_shim.c | 2 +- drivers/display/display_ili9340.h | 2 +- .../display/display_ili9340_adafruit_1480.c | 2 +- drivers/display/display_ili9340_seeed_tftv2.c | 2 +- drivers/ethernet/eth_sam_gmac_priv.h | 2 +- drivers/flash/spi_flash_w25qxxdv_defs.h | 2 +- drivers/gpio/gpio_pcal9535a.h | 2 +- drivers/gpio/gpio_sam.c | 2 +- drivers/i2c/Kconfig | 2 +- drivers/i2c/i2c_cc13xx_cc26xx.c | 2 +- drivers/i2c/i2c_mcux.c | 2 +- drivers/i2c/i2c_mcux_lpi2c.c | 2 +- drivers/i2c/i2c_nios2.c | 2 +- drivers/ieee802154/ieee802154_uart_pipe.c | 4 ++-- drivers/rtc/rtc_ll_stm32.c | 2 +- drivers/sensor/bmg160/bmg160.h | 2 +- drivers/sensor/grove/temperature_sensor.c | 2 +- drivers/sensor/hp206c/hp206c.c | 4 ++-- drivers/sensor/lis2dh/lis2dh_trigger.c | 2 +- drivers/sensor/sx9500/sx9500.c | 2 +- drivers/serial/uart_msp432p4xx.c | 2 +- drivers/serial/uart_sifive.c | 2 +- drivers/spi/spi_cc13xx_cc26xx.c | 4 ++-- drivers/spi/spi_sam.c | 2 +- drivers/spi/spi_sam0.c | 2 +- drivers/timer/loapic_timer.c | 2 +- drivers/watchdog/wdt_iwdg_stm32.c | 2 +- include/arch/nios2/linker.ld | 2 +- include/arch/posix/arch.h | 2 +- include/bluetooth/conn.h | 2 +- include/json.h | 4 ++-- include/kernel.h | 2 +- include/net/coap.h | 2 +- include/net/http_parser.h | 2 +- include/net/net_stats.h | 4 ++-- include/sched_priq.h | 2 +- include/toolchain/common.h | 2 +- kernel/pipes.c | 2 +- lib/updatehub/Kconfig | 2 +- lib/updatehub/updatehub.c | 8 ++++---- .../intel_s1000_crb/audio/src/audio_driver.c | 6 +++--- .../boards/reel_board/mesh_badge/src/mesh.c | 14 ++++++------- samples/drivers/counter/alarm/src/main.c | 2 +- samples/drivers/current_sensing/src/main.c | 2 +- .../timer_synchronization/sample.yaml | 4 ++-- .../timer_synchronization/sample.yaml | 4 ++-- samples/userspace/shared_mem/src/main.c | 2 +- scripts/ci/get_modified_boards.py | 2 +- scripts/ci/get_modified_tests.py | 2 +- scripts/ci/run_ci.sh | 2 +- scripts/coccicheck | 4 ++-- scripts/dts/extract_dts_includes.py | 2 +- scripts/filter-known-issues.py | 8 ++++---- scripts/gen_relocate_app.py | 2 +- scripts/kconfig/kconfig.py | 4 ++-- scripts/sanitycheck | 2 +- soc/posix/inf_clock/soc.c | 2 +- soc/riscv32/riscv-privilege/common/soc_irq.S | 2 +- soc/xtensa/esp32/soc.c | 2 +- subsys/bluetooth/controller/ll_sw/ctrl.c | 4 ++-- .../controller/ll_sw/nordic/hal/nrf5/ticker.h | 4 ++-- subsys/bluetooth/controller/ll_sw/ull_conn.c | 2 +- subsys/bluetooth/controller/util/mfifo.h | 4 ++-- subsys/bluetooth/host/att.c | 10 +++++----- subsys/bluetooth/host/l2cap_br.c | 2 +- subsys/bluetooth/host/mesh/net.c | 2 +- subsys/bluetooth/host/mesh/prov.c | 2 +- subsys/bluetooth/host/mesh/settings.c | 2 +- subsys/bluetooth/host/mesh/transport.c | 2 +- subsys/bluetooth/services/dis.c | 2 +- subsys/console/tty.c | 2 +- subsys/logging/log_core.c | 2 +- subsys/net/ip/6lo.c | 4 ++-- subsys/net/ip/tcp.c | 2 +- subsys/net/l2/ethernet/ethernet.c | 2 +- subsys/net/lib/coap/coap.c | 2 +- subsys/net/lib/http/README_http_parser | 2 +- subsys/net/lib/http/http_parser.c | 2 +- subsys/net/lib/lwm2m/lwm2m_engine.c | 2 +- subsys/net/lib/utils/addr_utils.c | 2 +- subsys/settings/src/settings_line.c | 4 ++-- .../testsuite/include/test_asm_inline_gcc.h | 2 +- subsys/usb/class/netusb/function_ecm.c | 2 +- .../latency_measure/src/test_asm_inline_gcc.h | 2 +- .../timing_info/src/userspace_bench.c | 2 +- tests/bluetooth/tester/src/gatt.c | 2 +- tests/kernel/critical/src/main.c | 2 +- tests/kernel/device/CMakeLists.txt | 2 +- .../mem_protect/mem_protect/src/kobject.c | 2 +- tests/kernel/sched/preempt/src/main.c | 2 +- tests/kernel/semaphore/semaphore/src/main.c | 2 +- .../src/test_threads_cancel_abort.c | 2 +- tests/kernel/timer/timer_api/src/main.c | 2 +- tests/lib/json/src/main.c | 2 +- tests/net/lib/coap/src/main.c | 2 +- tests/net/lib/http_header_fields/src/main.c | 2 +- tests/net/net_pkt/src/main.c | 2 +- .../fs/nffs_fs_api/common/test_rename.c | 2 +- .../fs/nffs_fs_api/performance/src/main.c | 4 ++-- tests/subsys/settings/src/settings_enc.c | 4 ++-- 133 files changed, 191 insertions(+), 191 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9d787ba2e50..347dab9a89a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,7 +12,7 @@ # expect to learn how to build the kernel reading this file. if(NOT DEFINED ZEPHYR_BINARY_DIR) - message(FATAL_ERROR "A user error has occured. + message(FATAL_ERROR "A user error has occurred. cmake was invoked with '${CMAKE_CURRENT_LIST_DIR}' specified as the source directory, but it must be invoked with an application source directory, such as '${CMAKE_CURRENT_LIST_DIR}/samples/hello_world'. @@ -39,7 +39,7 @@ project(Zephyr-Kernel VERSION ${PROJECT_VERSION}) enable_language(C CXX ASM) # Verify that the toolchain can compile a dummy file, if it is not we -# won't be able to test for compatiblity with certain C flags. +# won't be able to test for compatibility with certain C flags. check_c_compiler_flag("" toolchain_is_ok) assert(toolchain_is_ok "The toolchain is unable to build a dummy C file. See CMakeError.log.") diff --git a/Kconfig.zephyr b/Kconfig.zephyr index 6771bb1cb8c..e1003fcaca7 100644 --- a/Kconfig.zephyr +++ b/Kconfig.zephyr @@ -15,7 +15,7 @@ source "modules/Kconfig" endmenu # Include these first so that any properties (e.g. defaults) below can be -# overriden in *.defconfig files (by defining symbols in multiple locations). +# overridden in *.defconfig files (by defining symbols in multiple locations). # After merging all the symbol definitions, Kconfig picks the first property # (e.g. the first default) with a satisfied condition. # @@ -63,7 +63,7 @@ config LINKER_ORPHAN_SECTION_PLACE config LINKER_ORPHAN_SECTION_WARN bool "Warn" help - Linker places the orphan sections in ouput and issues + Linker places the orphan sections in output and issues warning about those sections. config LINKER_ORPHAN_SECTION_ERROR diff --git a/arch/Kconfig b/arch/Kconfig index 0f2e7d04a55..168a6f475a1 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -9,7 +9,7 @@ # # Include these first so that any properties (e.g. defaults) below can be -# overriden (by defining symbols in multiple locations) +# overridden (by defining symbols in multiple locations) # Note: $ARCH might be a glob pattern source "$(ARCH_DIR)/$(ARCH)/Kconfig" diff --git a/arch/arm/core/cortex_m/prep_c.c b/arch/arm/core/cortex_m/prep_c.c index 57c1f8eaa93..83e97d0817c 100644 --- a/arch/arm/core/cortex_m/prep_c.c +++ b/arch/arm/core/cortex_m/prep_c.c @@ -27,7 +27,7 @@ /* * GCC can detect if memcpy is passed a NULL argument, however one of * the cases of relocate_vector_table() it is valid to pass NULL, so we - * supress the warning for this case. We need to do this before + * suppress the warning for this case. We need to do this before * string.h is included to get the declaration of memcpy. */ #pragma GCC diagnostic push diff --git a/arch/nios2/core/crt0.S b/arch/nios2/core/crt0.S index 70ea1c00c10..b9c483659fd 100644 --- a/arch/nios2/core/crt0.S +++ b/arch/nios2/core/crt0.S @@ -134,7 +134,7 @@ SECTION_FUNC(TEXT, __start) #endif /* TODO if shadow register sets enabled, interate through them to set - * up. Need to clear r0, write gp, set the execption stack pointer + * up. Need to clear r0, write gp, set the exception stack pointer * GH-1821 */ diff --git a/arch/nios2/core/swap.S b/arch/nios2/core/swap.S index 637e472b010..c467a54098b 100644 --- a/arch/nios2/core/swap.S +++ b/arch/nios2/core/swap.S @@ -175,7 +175,7 @@ no_unlock: SECTION_FUNC(TEXT, z_thread_entry_wrapper) /* This all corresponds to struct init_stack_frame defined in * thread.c. We need to take this stuff off the stack and put - * it in the apporpriate registers + * it in the appropriate registers */ /* Can't return from here, just put NULL in ra */ diff --git a/arch/x86/core/ia32/irq_manage.c b/arch/x86/core/ia32/irq_manage.c index a7d4786840d..ff9acd14587 100644 --- a/arch/x86/core/ia32/irq_manage.c +++ b/arch/x86/core/ia32/irq_manage.c @@ -228,7 +228,7 @@ static void *get_dynamic_stub(int stub_idx) u32_t offset; /* - * Because we want the sizes of the stubs to be consisent and minimized, + * Because we want the sizes of the stubs to be consistent and minimized, * stubs are grouped into blocks, each containing a push and subsequent * 2-byte jump instruction to the end of the block, which then contains * a larger jump instruction to common dynamic IRQ handling code diff --git a/arch/x86/core/ia32/userspace.S b/arch/x86/core/ia32/userspace.S index 1f6120cca6e..d596f062502 100644 --- a/arch/x86/core/ia32/userspace.S +++ b/arch/x86/core/ia32/userspace.S @@ -58,7 +58,7 @@ SECTION_FUNC(TEXT, z_x86_trampoline_to_kernel) /* %esp = _kernel->current->stack_info.start * - * This is the lowest address of the user mode stack, and higest + * This is the lowest address of the user mode stack, and highest * address of the kernel stack, they are adjacent. * We want to transplant context here. */ @@ -166,7 +166,7 @@ SECTION_FUNC(TEXT, z_x86_syscall_entry_stub) /* %esp = _kernel->current->stack_info.start * - * This is the lowest address of the user mode stack, and higest + * This is the lowest address of the user mode stack, and highest * address of the kernel stack, they are adjacent. * We want to transplant context here. */ diff --git a/arch/x86/core/ia32/x86_mmu.c b/arch/x86/core/ia32/x86_mmu.c index fec1e9d9233..6dca8d3e358 100644 --- a/arch/x86/core/ia32/x86_mmu.c +++ b/arch/x86/core/ia32/x86_mmu.c @@ -133,7 +133,7 @@ int z_arch_buffer_validate(void *addr, size_t size, int write) MMU_PAGE_NUM((char *)addr + size - 1); } - /* For all the pde's appart from the starting pde, + /* For all the pde's apart from the starting pde, * will have the start pte number as zero. */ if (pde != start_pde_num) { diff --git a/arch/x86/gen_mmu_x86.py b/arch/x86/gen_mmu_x86.py index a574587add0..60e21abedbf 100755 --- a/arch/x86/gen_mmu_x86.py +++ b/arch/x86/gen_mmu_x86.py @@ -245,7 +245,7 @@ class PageMode_PAE: # In-case the start address aligns with a page table entry other # than zero and the mem_size is greater than (1024*4096) i.e 4MB - # in case where it overflows the currenty PDE's range then limit the + # in case where it overflows the current PDE's range then limit the # PTE to 1024 and so make the mem_size reflect the actual size # taken up in the current PDE if (size + (pte_valid_addr_start * 4096)) >= \ @@ -277,7 +277,7 @@ class PageMode_PAE: # create all the extra PDEs needed to fit the requested size # this loop starts from the current pde till the last pde that is - # needed the last pde is calcualted as the (start_addr + size) >> + # needed the last pde is calculated as the (start_addr + size) >> # 22 if overflow_size != 0: for extra_pdpte in range(pdpte_index, @@ -488,7 +488,7 @@ def read_mmu_list(mmu_list_data): other_addr, other_end_addr)) sys.exit(2) - # add the retrived info another list + # add the retrieved info another list regions.append((addr, size, flags)) return (pd_start_addr, regions) diff --git a/arch/x86/include/kernel_arch_thread.h b/arch/x86/include/kernel_arch_thread.h index ec98df36181..182e8a3fe7e 100644 --- a/arch/x86/include/kernel_arch_thread.h +++ b/arch/x86/include/kernel_arch_thread.h @@ -190,7 +190,7 @@ typedef struct s_preempFloatReg { } tPreempFloatReg; /* - * The thread control stucture definition. It contains the + * The thread control structure definition. It contains the * various fields to manage a _single_ thread. The TCS will be aligned * to the appropriate architecture specific boundary via the * z_new_thread() call. diff --git a/arch/x86_64/core/x86_64-hw.h b/arch/x86_64/core/x86_64-hw.h index 229cb9a0552..d377e753fe4 100644 --- a/arch/x86_64/core/x86_64-hw.h +++ b/arch/x86_64/core/x86_64-hw.h @@ -183,7 +183,7 @@ struct apic_regs { #define _apic (*((volatile struct apic_regs *)0xfee00000ll)) -/* Crazy encoding for this, but susceptable to a formula. Returns the +/* Crazy encoding for this, but susceptible to a formula. Returns the * DIVIDE_CONF register value that divides the input clock by 2^n (n * in the range 0-7). */ diff --git a/arch/x86_64/core/xuk.h b/arch/x86_64/core/xuk.h index d1add57afce..b8788db709f 100644 --- a/arch/x86_64/core/xuk.h +++ b/arch/x86_64/core/xuk.h @@ -58,7 +58,7 @@ static inline void *xuk_get_g_ptr() * * + Values from 0x100 to 0x1ff are mapped to raw vectors 0x00-0xff * and can be used for handling exceptions, for INT instructions, or - * for MSI- or IPI-directed interrupts that specifiy specific + * for MSI- or IPI-directed interrupts that specify specific * vectors. * * + Values outside this range may be exposed symbolically for other diff --git a/arch/xtensa/core/xt_zephyr.S b/arch/xtensa/core/xt_zephyr.S index 990e6645c0a..0bd59451a52 100644 --- a/arch/xtensa/core/xt_zephyr.S +++ b/arch/xtensa/core/xt_zephyr.S @@ -227,7 +227,7 @@ _zxt_int_exit: * every timer interrupt. Manages the tick timer and calls * xPortSysTickHandler() every tick. See the detailed description of the * XT_RTOS_ENTER macro in xtensa_rtos.h. Callable from C. Implemented in - * assmebly code for performance. + * assembly code for performance. * */ .globl _zxt_timer_int diff --git a/arch/xtensa/include/kernel_arch_thread.h b/arch/xtensa/include/kernel_arch_thread.h index 0d2731d3fa3..dc2bb692e58 100644 --- a/arch/xtensa/include/kernel_arch_thread.h +++ b/arch/xtensa/include/kernel_arch_thread.h @@ -73,7 +73,7 @@ typedef struct s_preempCoprocReg { } tPreempCoprocReg; /* - * The thread control stucture definition. It contains the + * The thread control structure definition. It contains the * various fields to manage a _single_ thread. */ struct _thread_arch { diff --git a/arch/xtensa/include/xtensa_context.h b/arch/xtensa/include/xtensa_context.h index 2750180fc53..7351bdd58a9 100644 --- a/arch/xtensa/include/xtensa_context.h +++ b/arch/xtensa/include/xtensa_context.h @@ -178,7 +178,7 @@ STRUCT_END(XtSolFrame) * otherwise a thread retains ownership of the co-processor even when it loses * control of the processor. An Xtensa co-processor exception is triggered when * any co-processor instruction is executed by a thread that is not the owner, - * and the context switch of that co-processor is then peformed by the handler. + * and the context switch of that co-processor is then performed by the handler. * Ownership represents which thread's state is currently in the co-processor. * * Co-processors may not be used by interrupt or exception handlers. If a diff --git a/boards/arm/nrf52_pca20020/board.c b/boards/arm/nrf52_pca20020/board.c index 34ecdd06b92..35504cb63c7 100644 --- a/boards/arm/nrf52_pca20020/board.c +++ b/boards/arm/nrf52_pca20020/board.c @@ -40,7 +40,7 @@ static int pwr_ctrl_init(struct device *dev) * from the VDD power rail. Both of these power rails need to be enabled before * the sensor driver init can be performed. The VDD rail also has to be powered up * before the CCS_VDD rail. These checks are to enforce the power up sequence - * constraits. + * constraints. */ #if CONFIG_BOARD_VDD_PWR_CTRL_INIT_PRIORITY <= CONFIG_GPIO_NRF_INIT_PRIORITY diff --git a/boards/arm/v2m_beetle/pinmux.c b/boards/arm/v2m_beetle/pinmux.c index 2ceaf95e95f..de3bfaa7505 100644 --- a/boards/arm/v2m_beetle/pinmux.c +++ b/boards/arm/v2m_beetle/pinmux.c @@ -99,21 +99,21 @@ static void arm_v2m_beetle_pinmux_defaults(void) /* Set GPIO Alternate Functions */ - gpio_0 = (1<<0); /* Sheild 0 UART 0 RXD */ - gpio_0 |= (1<<1); /* Sheild 0 UART 0 TXD */ - gpio_0 |= (1<<14); /* Sheild 0 I2C SDA SBCON2 */ - gpio_0 |= (1<<15); /* Sheild 0 I2C SCL SBCON2 */ - gpio_0 |= (1<<10); /* Sheild 0 SPI_3 nCS */ - gpio_0 |= (1<<11); /* Sheild 0 SPI_3 MOSI */ - gpio_0 |= (1<<12); /* Sheild 0 SPI_3 MISO */ - gpio_0 |= (1<<13); /* Sheild 0 SPI_3 SCK */ + gpio_0 = (1<<0); /* Shield 0 UART 0 RXD */ + gpio_0 |= (1<<1); /* Shield 0 UART 0 TXD */ + gpio_0 |= (1<<14); /* Shield 0 I2C SDA SBCON2 */ + gpio_0 |= (1<<15); /* Shield 0 I2C SCL SBCON2 */ + gpio_0 |= (1<<10); /* Shield 0 SPI_3 nCS */ + gpio_0 |= (1<<11); /* Shield 0 SPI_3 MOSI */ + gpio_0 |= (1<<12); /* Shield 0 SPI_3 MISO */ + gpio_0 |= (1<<13); /* Shield 0 SPI_3 SCK */ CMSDK_AHB_GPIO0_DEV->altfuncset = gpio_0; gpio_1 = (1<<0); /* UART 1 RXD */ gpio_1 |= (1<<1); /* UART 1 TXD */ - gpio_1 |= (1<<6); /* Sheild 1 I2C SDA */ - gpio_1 |= (1<<7); /* Sheild 1 I2C SCL */ + gpio_1 |= (1<<6); /* Shield 1 I2C SDA */ + gpio_1 |= (1<<7); /* Shield 1 I2C SCL */ gpio_1 |= (1<<2); /* ADC SPI_1 nCS */ gpio_1 |= (1<<3); /* ADC SPI_1 MOSI */ gpio_1 |= (1<<4); /* ADC SPI_1 MISO */ diff --git a/boards/posix/nrf52_bsim/CMakeLists.txt b/boards/posix/nrf52_bsim/CMakeLists.txt index 0697436a574..e5d8ce0e294 100644 --- a/boards/posix/nrf52_bsim/CMakeLists.txt +++ b/boards/posix/nrf52_bsim/CMakeLists.txt @@ -2,13 +2,13 @@ if (NOT DEFINED ENV{BSIM_COMPONENTS_PATH}) message(FATAL_ERROR "This board requires the BabbleSim simulator. Please set\ - the enviroment variable BSIM_COMPONENTS_PATH to point to its components \ + the environment variable BSIM_COMPONENTS_PATH to point to its components \ folder. More information can be found in\ https://babblesim.github.io/folder_structure_and_env.html") endif() if (NOT DEFINED ENV{BSIM_OUT_PATH}) message(FATAL_ERROR "This board requires the BabbleSim simulator. Please set\ - the enviroment variable BSIM_OUT_PATH to point to the folder where the\ + the environment variable BSIM_OUT_PATH to point to the folder where the\ simulator is compiled to. More information can be found in\ https://babblesim.github.io/folder_structure_and_env.html") endif() diff --git a/boards/xtensa/intel_s1000_crb/support/messenger.py b/boards/xtensa/intel_s1000_crb/support/messenger.py index 4c9fffcbe37..781ede98509 100644 --- a/boards/xtensa/intel_s1000_crb/support/messenger.py +++ b/boards/xtensa/intel_s1000_crb/support/messenger.py @@ -160,7 +160,7 @@ class Message: def create_loadfw_cmd(self, size, sha): """ - Creates a command to load firmware with associated paramters + Creates a command to load firmware with associated parameters """ cmd = 'Load Firmware' print('CMD >>> %s.' % cmd) diff --git a/cmake/extensions.cmake b/cmake/extensions.cmake index 0140c6d81a3..6b6a29f5d8e 100644 --- a/cmake/extensions.cmake +++ b/cmake/extensions.cmake @@ -332,7 +332,7 @@ endmacro() # or zephyr_library_named. The constructors create a CMake library # with a name accessible through the variable ZEPHYR_CURRENT_LIBRARY. # -# The variable ZEPHYR_CURRENT_LIBRARY should seldomly be needed since +# The variable ZEPHYR_CURRENT_LIBRARY should seldom be needed since # the zephyr libraries have methods that modify the libraries. These # methods have the signature: zephyr_library_ # @@ -830,7 +830,7 @@ endfunction() # _mysection_size = ABSOLUTE(_mysection_end - _mysection_start); # # When placing into SECTIONS or RAM_SECTIONS, the files must instead define -# their own output sections to acheive the same thing: +# their own output sections to achieve the same thing: # SECTION_PROLOGUE(.mysection,,) # { # _mysection_start = .; @@ -1336,7 +1336,7 @@ endmacro() # assert_not(OBSOLETE_VAR "OBSOLETE_VAR has been removed; use NEW_VAR instead") # # will cause a FATAL_ERROR and print an error message if the first -# espression is true +# expression is true macro(assert_not test comment) if(${test}) message(FATAL_ERROR "Assertion failed: ${comment}") diff --git a/cmake/linker/ld/target_baremetal.cmake b/cmake/linker/ld/target_baremetal.cmake index 35f51e66c83..36ec3c14d80 100644 --- a/cmake/linker/ld/target_baremetal.cmake +++ b/cmake/linker/ld/target_baremetal.cmake @@ -26,7 +26,7 @@ macro(toolchain_ld_baremetal) # # CONFIG_LINKER_ORPHAN_SECTION_PLACE is to place the orphan sections # without any warnings or errors, which is the default behavior. - # So there is no need to explicity set a linker flag. + # So there is no need to explicitly set a linker flag. if(CONFIG_LINKER_ORPHAN_SECTION_WARN) zephyr_ld_options( ${LINKERFLAGPREFIX},--orphan-handling=warn diff --git a/cmake/toolchain/cross-compile/generic.cmake b/cmake/toolchain/cross-compile/generic.cmake index 83c06998d3b..ebf9d04001d 100644 --- a/cmake/toolchain/cross-compile/generic.cmake +++ b/cmake/toolchain/cross-compile/generic.cmake @@ -9,7 +9,7 @@ # # New users should set the env var 'ZEPHYR_TOOLCHAIN_VARIANT' to # 'cross-compile' and the 'CROSS_COMPILE' env var to the toolchain -# prefix. This interface is consisent with the other non-"Zephyr SDK" +# prefix. This interface is consistent with the other non-"Zephyr SDK" # toolchains. # # It can be set from either the environment or from a CMake variable diff --git a/cmake/toolchain/xtools/generic.cmake b/cmake/toolchain/xtools/generic.cmake index 7091c1ebabc..0f00ba2c389 100644 --- a/cmake/toolchain/xtools/generic.cmake +++ b/cmake/toolchain/xtools/generic.cmake @@ -11,7 +11,7 @@ set(LINKER ld) # Choose one of the toolchains in 'TOOLCHAIN_HOME' at random to use as # a 'generic' toolchain until we know for sure which toolchain we -# should use. Note that we can't use ARCH to distingush between +# should use. Note that we can't use ARCH to distinguish between # toolchains because choosing between iamcu and non-iamcu is dependent # on Kconfig, not ARCH. file(GLOB toolchain_paths ${TOOLCHAIN_HOME}/*) diff --git a/doc/guides/bluetooth/bluetooth-arch.rst b/doc/guides/bluetooth/bluetooth-arch.rst index bd44043aa70..c3ad8fed186 100644 --- a/doc/guides/bluetooth/bluetooth-arch.rst +++ b/doc/guides/bluetooth/bluetooth-arch.rst @@ -13,7 +13,7 @@ stack. Zephyr supports mainly Bluetooth Low Energy (BLE), the low-power version of the Bluetooth specification. Zephyr also has limited support for portions of the BR/EDR Host. Throughout this architecture document we - use BLE interchangably for Bluetooth except when noted. + use BLE interchangeably for Bluetooth except when noted. .. _bluetooth-layers: diff --git a/doc/guides/porting/board_porting.rst b/doc/guides/porting/board_porting.rst index b53b28879a1..3efc7b0a7d5 100644 --- a/doc/guides/porting/board_porting.rst +++ b/doc/guides/porting/board_porting.rst @@ -247,7 +247,7 @@ works like ``if y`` (is always satisfied). .. note:: ``range`` properties on ``int`` and ``hex`` symbols work the same way, and - can also be added or overriden in :file:`Kconfig.defconfig` files. + can also be added or overridden in :file:`Kconfig.defconfig` files. If you want a symbol to only be user-configurable on some boards, make its base definition have no prompt, and then add a prompt to it in the diff --git a/doc/reference/bluetooth/gatt.rst b/doc/reference/bluetooth/gatt.rst index 286f5ea5c69..3505c5e5e67 100644 --- a/doc/reference/bluetooth/gatt.rst +++ b/doc/reference/bluetooth/gatt.rst @@ -62,7 +62,7 @@ Client procedures can be enabled with the configuration option: Discover procedures can be initiated with the use of :cpp:func:`bt_gatt_discover` API which takes the -:cpp:class:`bt_gatt_dicover_params` struct which describes the type of +:cpp:class:`bt_gatt_discover_params` struct which describes the type of discovery. The parameters also serves as a filter when setting the ``uuid`` field only attributes which matches will be discovered, in contrast setting it to NULL allows all attributes to be discovered. diff --git a/doc/reference/networking/coap.rst b/doc/reference/networking/coap.rst index c8106b1c618..8fb6fa02d9b 100644 --- a/doc/reference/networking/coap.rst +++ b/doc/reference/networking/coap.rst @@ -67,7 +67,7 @@ An application reads data from the socket and passes the buffer to the CoAP libr to parse the message. If the CoAP message is proper, the library uses the buffer along with resources defined above to call the correct callback function to handle the CoAP request from the client. It's the callback function's -responsibilty to either reply or act according to CoAP request. +responsibility to either reply or act according to CoAP request. .. code-block:: c diff --git a/doc/releases/release-notes-1.11.rst b/doc/releases/release-notes-1.11.rst index 128a79821b1..28d1c433a8f 100644 --- a/doc/releases/release-notes-1.11.rst +++ b/doc/releases/release-notes-1.11.rst @@ -346,7 +346,7 @@ release: * :github:`5370` - [Coverity CID: 180699] Error handling issues in /tests/bluetooth/tester/src/gatt.c * :github:`5374` - merge_config.sh can behave differently from merge_config.py * :github:`5379` - sample: net/socket/http_get: no printf output -* :github:`5382` - P2P Device Firwmare Update (FOTA) over BLE and Serial +* :github:`5382` - P2P Device Firmware Update (FOTA) over BLE and Serial * :github:`5391` - drivers: stm32 clock control: F0 Series with PREDIV1 Support uses wrong PLLSOURCE define for HSI clock * :github:`5401` - delta_ticks_from_prev become negative and waiting tasks never scheduled * :github:`5406` - UART1 on STM32F0 Series not working: errors in makro to enable clock @@ -382,7 +382,7 @@ release: * :github:`5576` - None of the :github:'XYZ' links work in the 1.10 release notes * :github:`5589` - Issue with using generic gcc cross compile with cmake * :github:`5601` - docs for cc3220sf_launchxl are out of date/incorrect -* :github:`5608` - Bluetooth LE continous scan weird behaviour +* :github:`5608` - Bluetooth LE continuous scan weird behaviour * :github:`5619` - zephyr.git/tests/misc/test_build/testcase.yaml#test_newlib @ esp32:xtensa BUILD failed * :github:`5626` - Building samples failed * :github:`5640` - MacOS compile error with -std=gnu89 diff --git a/doc/releases/release-notes-1.12.rst b/doc/releases/release-notes-1.12.rst index 29034277e8c..676977ff353 100644 --- a/doc/releases/release-notes-1.12.rst +++ b/doc/releases/release-notes-1.12.rst @@ -264,7 +264,7 @@ Documentation * Added description for kernel test cases through extensive doxygen comments * Discovered some API docs were missing, and fixed * Documentation added covering system calls and userspace, kernel, and - threading APIs, POSIX compability, VLANs, network traffic + threading APIs, POSIX compatibility, VLANs, network traffic classification, and the sanitycheck script used by CI. * Documented writing guidelines and local doc generation process * Improved Sphinx search results output (removed markup) @@ -649,7 +649,7 @@ These GitHub issues were closed since the previous 1.11.0 tagged release: * :github:`7480` - pthread_attr_init( ) does not conform to POSIX specification * :github:`7482` - [Coverity CID :185523] Out-of-bounds read in lsm6dsl driver * :github:`7495` - cmake: extensions: ToolchainCapabilityDatabase.cmake parse error in shippable -* :github:`7500` - DHCP: when CONFIG_NET_APP_MY_IPV4_ADDR is IP stack needs to rebind on DHCP aquire +* :github:`7500` - DHCP: when CONFIG_NET_APP_MY_IPV4_ADDR is IP stack needs to rebind on DHCP acquire * :github:`7508` - [Coverity CID :185523] Memory - illegal accesses in /drivers/sensor/lsm6dsl/lsm6dsl.c * :github:`7511` - [Coverity CID :185391] Incorrect expression in /tests/lib/rbtree/src/main.c * :github:`7519` - Verify CODEOWNERS (not) including subfolders is intended diff --git a/doc/releases/release-notes-1.14.rst b/doc/releases/release-notes-1.14.rst index 2d5e57ac8f6..0f06fb56ad0 100644 --- a/doc/releases/release-notes-1.14.rst +++ b/doc/releases/release-notes-1.14.rst @@ -833,7 +833,7 @@ release: * :github:`14753` - nrf52840_pca10056: Get rid of leading spurious 0x00 byte in UART output * :github:`14743` - Directed advertising to Android does not work * :github:`14741` - Bluetooth scanning frequent resetting -* :github:`14714` - Mesh network traffic overflow ungraceful stop. (MMFAR Adress: 0x0) +* :github:`14714` - Mesh network traffic overflow ungraceful stop. (MMFAR Address: 0x0) * :github:`14698` - USB: usb/console sample does not work for most of the boards * :github:`14697` - USB: cdc_acm_composite sample might lose characters * :github:`14693` - ARC: need test coverage for MPU stack guards @@ -1132,7 +1132,7 @@ release: * :github:`13378` - Missing Documentation for Networking subsystem * :github:`13361` - nucleo_f103rb blinky example cannot run * :github:`13357` - Tracing hooks problem on POSIX -* :github:`13353` - z_timeout_remaining should substract z_clock_elapsed +* :github:`13353` - z_timeout_remaining should subtract z_clock_elapsed * :github:`13342` - arm: user thread stack overflows do not report _NANO_ERR_STACK_CHK_FAIL * :github:`13341` - arc: user thread stack overflows do not report _NANO_ERR_STACK_CHK_FAIL * :github:`13340` - NRF52 pca10040 boards open the "Flash hardware support" option, the BT Mesh example does not work properly @@ -1373,7 +1373,7 @@ release: * :github:`11998` - intermittent failures in tests/kernel/common: test_timeout_order: (poll_events[ii].state not equal to K_POLL_STATE_SEM_AVAILABLE) * :github:`11989` - Reel Board mesh_badge sample | Light sensor bug * :github:`11980` - cmake: Build fails in an environment without 'python' binary -* :github:`11967` - nrfx SPI driver blocks indefinitly when transfering +* :github:`11967` - nrfx SPI driver blocks indefinitely when transferring * :github:`11961` - Python warning in process_gperf.py * :github:`11935` - Invalid usage of k_busy_wait() * :github:`11916` - ISR table (_sw_isr_table) generation is fragile and can result in corrupted binaries @@ -1656,7 +1656,7 @@ release: * :github:`10186` - GPIO callback disable has no effect due to _gpio_fire_callbacks * :github:`10164` - logger sample fails on qemu_xtensa due to lack of backend * :github:`10152` - gitlint complains of apostrophe in user name -* :github:`10146` - [bluetooth][PTS] Getting Connection failed to be established ocasionally +* :github:`10146` - [bluetooth][PTS] Getting Connection failed to be established occasionally * :github:`10143` - Why does BT_SETTINGS require PRINTK? * :github:`10137` - sample/basic/button should configure expected pin configuration * :github:`10134` - sensor: vl53l0x: Warning message when building in ext/hal/st/lib/sensor/vl53l0x @@ -1787,7 +1787,7 @@ release: * :github:`7986` - The scripts (debug, debugserver and flash) are not working for Intel S1000 board * :github:`7818` - big_http_download stuck during download on qemu_x86 * :github:`7817` - Confusing macros: SECONDS vs K_SECONDS, MSEC vs K_MSEC -* :github:`7760` - cmake failure using ExternalProject and dependancies w/ninja +* :github:`7760` - cmake failure using ExternalProject and dependencies w/ninja * :github:`7706` - ARM NXP hardware stack overflows do not report _NANO_ERR_STACK_CHK_FAIL or provide MPU fault information * :github:`7638` - get FAULT when fuzzing sys_ring_buf\_ put and sys_ring_bug_get APIs * :github:`7510` - [Coverity CID :185395] Memory - corruptions in /samples/net/mbedtls_sslclient/src/mini_client.c diff --git a/drivers/audio/intel_dmic.c b/drivers/audio/intel_dmic.c index 5f7faeeff5f..5fb3bc94d2d 100644 --- a/drivers/audio/intel_dmic.c +++ b/drivers/audio/intel_dmic.c @@ -505,7 +505,7 @@ static int fir_coef_scale(s32_t *fir_scale, int *fir_shift, int add_shift, * decimator. For the settings chosen for FIFOs A and B output a lookup * is done for FIR coefficients from the included coefficients tables. * For some decimation factors there may be several length coefficient sets. - * It is due to possible restruction of decimation engine cycles per given + * It is due to possible restriction of decimation engine cycles per given * sample rate. If the coefficients length is exceeded the lookup continues. * Therefore the list of coefficient set must present the filters for a * decimation factor in decreasing length order. @@ -1218,7 +1218,7 @@ static void dmic_start(struct device *dev) /* Clear soft reset for all/used PDM controllers. This should * start capture in sync. */ - LOG_DBG("Releasing soft reset for all PDM controlers"); + LOG_DBG("Releasing soft reset for all PDM controllers"); for (i = 0; i < DMIC_HW_CONTROLLERS; i++) { DMIC_REG_UPD(CIC_CONTROL(i), CIC_CONTROL_SOFT_RESET_BIT, 0); } diff --git a/drivers/bluetooth/hci/spi.c b/drivers/bluetooth/hci/spi.c index 0694b7af4b0..ec21118b946 100644 --- a/drivers/bluetooth/hci/spi.c +++ b/drivers/bluetooth/hci/spi.c @@ -465,7 +465,7 @@ static int bt_spi_send(struct net_buf *buf) * Since a RESET has been requested, the chip will now restart. * Unfortunately the BlueNRG will reply with "reset received" but * since it does not send back a NOP, we have no way to tell when the - * RESET has actually taken palce. Instead, we use the vendor command + * RESET has actually taken place. Instead, we use the vendor command * EVT_BLUE_INITIALIZED as an indication that it is safe to proceed. */ if (bt_spi_get_cmd(buf->data) == BT_HCI_OP_RESET) { diff --git a/drivers/crypto/crypto_tc_shim.c b/drivers/crypto/crypto_tc_shim.c index 37b8657440a..c563417f02a 100644 --- a/drivers/crypto/crypto_tc_shim.c +++ b/drivers/crypto/crypto_tc_shim.c @@ -51,7 +51,7 @@ static int do_cbc_decrypt(struct cipher_ctx *ctx, struct cipher_pkt *op, struct tc_shim_drv_state *data = ctx->drv_sessn_state; /* TinyCrypt expects the IV and cipher text to be in a contiguous - * buffer for efficieny + * buffer for efficiency */ if (iv != op->in_buf) { LOG_ERR("TC needs contiguous iv and ciphertext"); diff --git a/drivers/display/display_ili9340.h b/drivers/display/display_ili9340.h index 6f328150e0a..2ea4e605378 100644 --- a/drivers/display/display_ili9340.h +++ b/drivers/display/display_ili9340.h @@ -26,7 +26,7 @@ #define ILI9340_CMD_POWER_CTRL_2 0xC1 #define ILI9340_CMD_VCOM_CTRL_1 0xC5 #define ILI9340_CMD_VCOM_CTRL_2 0xC7 -#define ILI9340_CMD_POSITVE_GAMMA_CORRECTION 0xE0 +#define ILI9340_CMD_POSITIVE_GAMMA_CORRECTION 0xE0 #define ILI9340_CMD_NEGATIVE_GAMMA_CORRECTION 0xE1 #define ILI9341_CMD_POWER_CTRL_A 0xCB diff --git a/drivers/display/display_ili9340_adafruit_1480.c b/drivers/display/display_ili9340_adafruit_1480.c index 826e253659f..c1cf8803065 100644 --- a/drivers/display/display_ili9340_adafruit_1480.c +++ b/drivers/display/display_ili9340_adafruit_1480.c @@ -63,7 +63,7 @@ void ili9340_lcd_init(struct ili9340_data *data) tx_data[12] = 0x0E; tx_data[13] = 0x09; tx_data[14] = 0x00; - ili9340_transmit(data, ILI9340_CMD_POSITVE_GAMMA_CORRECTION, tx_data, + ili9340_transmit(data, ILI9340_CMD_POSITIVE_GAMMA_CORRECTION, tx_data, 15); tx_data[0] = 0x00; diff --git a/drivers/display/display_ili9340_seeed_tftv2.c b/drivers/display/display_ili9340_seeed_tftv2.c index e066c5b217b..5f983944cc7 100644 --- a/drivers/display/display_ili9340_seeed_tftv2.c +++ b/drivers/display/display_ili9340_seeed_tftv2.c @@ -125,7 +125,7 @@ void ili9340_lcd_init(struct ili9340_data *p_ili9340) ili9340_transmit(p_ili9340, cmd, data, 1); /* Positive Gamma Correction */ - cmd = ILI9340_CMD_POSITVE_GAMMA_CORRECTION; + cmd = ILI9340_CMD_POSITIVE_GAMMA_CORRECTION; data[0] = 0x0FU; data[1] = 0x2AU; data[2] = 0x28U; diff --git a/drivers/ethernet/eth_sam_gmac_priv.h b/drivers/ethernet/eth_sam_gmac_priv.h index be70be50368..fba43675443 100644 --- a/drivers/ethernet/eth_sam_gmac_priv.h +++ b/drivers/ethernet/eth_sam_gmac_priv.h @@ -15,7 +15,7 @@ /* This option enables support to push multiple packets to the DMA engine. * This currently doesn't work given the current version of net_pkt or * net_buf does not allowed access from multiple threads. This option is - * therefore currenlty disabled. + * therefore currently disabled. */ #define GMAC_MULTIPLE_TX_PACKETS 0 diff --git a/drivers/flash/spi_flash_w25qxxdv_defs.h b/drivers/flash/spi_flash_w25qxxdv_defs.h index 3c25e474df1..a74b508d43a 100644 --- a/drivers/flash/spi_flash_w25qxxdv_defs.h +++ b/drivers/flash/spi_flash_w25qxxdv_defs.h @@ -20,7 +20,7 @@ * +-------------------------------------------------------+ * * BUSY - Erase/Write In Progress - 1 device is executing a command, 0 ready for command - * WEL - Write Enable Latch - 1 write enable is received, 0 completeion of + * WEL - Write Enable Latch - 1 write enable is received, 0 completion of * a Write Disable, Page Program, Erase, Write Status Register * * S15 S14 S13 S12 S11 S10 S9 S8 diff --git a/drivers/gpio/gpio_pcal9535a.h b/drivers/gpio/gpio_pcal9535a.h index 7c37e737f13..ef416f3da93 100644 --- a/drivers/gpio/gpio_pcal9535a.h +++ b/drivers/gpio/gpio_pcal9535a.h @@ -44,7 +44,7 @@ struct gpio_pcal9535a_drv_data { struct device *i2c_master; /** - * Specify polarity inversion of pin. This is used for ouput as + * Specify polarity inversion of pin. This is used for output as * the polarity inversion registers on chip affects inputs only. */ u32_t out_pol_inv; diff --git a/drivers/gpio/gpio_sam.c b/drivers/gpio/gpio_sam.c index 518be93192d..e8c07b367a3 100644 --- a/drivers/gpio/gpio_sam.c +++ b/drivers/gpio/gpio_sam.c @@ -66,7 +66,7 @@ static int gpio_sam_config_pin(Pio * const pio, u32_t mask, int flags) /* Disable the interrupt. */ pio->PIO_IDR = mask; - /* Disable ther additional interrupt modes. */ + /* Disable their additional interrupt modes. */ pio->PIO_AIMDR = mask; } diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig index 234b7feba97..aaed7e5f9e0 100644 --- a/drivers/i2c/Kconfig +++ b/drivers/i2c/Kconfig @@ -17,7 +17,7 @@ menuconfig I2C if I2C # Include these first so that any properties (e.g. defaults) below can be -# overriden (by defining symbols in multiple locations) +# overridden (by defining symbols in multiple locations) source "drivers/i2c/Kconfig.cc13xx_cc26xx" source "drivers/i2c/Kconfig.dw" source "drivers/i2c/Kconfig.esp32" diff --git a/drivers/i2c/i2c_cc13xx_cc26xx.c b/drivers/i2c/i2c_cc13xx_cc26xx.c index a39d8f839b9..88c54ad3470 100644 --- a/drivers/i2c/i2c_cc13xx_cc26xx.c +++ b/drivers/i2c/i2c_cc13xx_cc26xx.c @@ -277,7 +277,7 @@ static int i2c_cc13xx_cc26xx_init(struct device *dev) /* Enable I2C peripheral clock */ PRCMPeripheralRunEnable(PRCM_PERIPH_I2C0); - /* Enable in sleep mode until proper power managment is added */ + /* Enable in sleep mode until proper power management is added */ PRCMPeripheralSleepEnable(PRCM_PERIPH_I2C0); PRCMPeripheralDeepSleepEnable(PRCM_PERIPH_I2C0); diff --git a/drivers/i2c/i2c_mcux.c b/drivers/i2c/i2c_mcux.c index f8f568e0e83..c6ee5a7a013 100644 --- a/drivers/i2c/i2c_mcux.c +++ b/drivers/i2c/i2c_mcux.c @@ -121,7 +121,7 @@ static int i2c_mcux_transfer(struct device *dev, struct i2c_msg *msgs, transfer.dataSize = msgs->len; /* Prevent the controller to send a start condition between - * messages, except if explicitely requested. + * messages, except if explicitly requested. */ if (i != 0 && !(msgs->flags & I2C_MSG_RESTART)) { transfer.flags |= kI2C_TransferNoStartFlag; diff --git a/drivers/i2c/i2c_mcux_lpi2c.c b/drivers/i2c/i2c_mcux_lpi2c.c index 18e52f4b735..4dd93572e5e 100644 --- a/drivers/i2c/i2c_mcux_lpi2c.c +++ b/drivers/i2c/i2c_mcux_lpi2c.c @@ -118,7 +118,7 @@ static int mcux_lpi2c_transfer(struct device *dev, struct i2c_msg *msgs, transfer.flags = mcux_lpi2c_convert_flags(msgs->flags); /* Prevent the controller to send a start condition between - * messages, except if explicitely requested. + * messages, except if explicitly requested. */ if (i != 0 && !(msgs->flags & I2C_MSG_RESTART)) { transfer.flags |= kLPI2C_TransferNoStartFlag; diff --git a/drivers/i2c/i2c_nios2.c b/drivers/i2c/i2c_nios2.c index dc8d0cc53ac..1536cb7a371 100644 --- a/drivers/i2c/i2c_nios2.c +++ b/drivers/i2c/i2c_nios2.c @@ -39,7 +39,7 @@ static int i2c_nios2_configure(struct device *dev, u32_t dev_config) } if (I2C_ADDR_10_BITS & dev_config) { - LOG_ERR("i2c config addresing error\n"); + LOG_ERR("i2c config addressing error\n"); rc = -EINVAL; goto i2c_cfg_err; } diff --git a/drivers/ieee802154/ieee802154_uart_pipe.c b/drivers/ieee802154/ieee802154_uart_pipe.c index 4a48aca0969..19d17d905e7 100644 --- a/drivers/ieee802154/ieee802154_uart_pipe.c +++ b/drivers/ieee802154/ieee802154_uart_pipe.c @@ -66,7 +66,7 @@ static bool received_dest_addr_matched(u8_t *rx_buffer) switch (rx_buffer[DEST_ADDR_TYPE_OFFSET] & DEST_ADDR_TYPE_MASK) { case DEST_ADDR_TYPE_SHORT: /* First check if the destination is broadcast */ - /* If not broadcast, check if lenght and address matches */ + /* If not broadcast, check if length and address matches */ if (memcmp(&rx_buffer[DEST_ADDR_OFFSET], BROADCAST_ADDRESS, SHORT_ADDRESS_SIZE) != 0 && @@ -80,7 +80,7 @@ static bool received_dest_addr_matched(u8_t *rx_buffer) break; case DEST_ADDR_TYPE_EXTENDED: - /* If not broadcast, check if lenght and address matches */ + /* If not broadcast, check if length and address matches */ if (net_if_get_link_addr(upipe->iface)->len != EXTENDED_ADDRESS_SIZE || memcmp(&rx_buffer[DEST_ADDR_OFFSET], diff --git a/drivers/rtc/rtc_ll_stm32.c b/drivers/rtc/rtc_ll_stm32.c index b842bc0437d..e4adc32e7f5 100644 --- a/drivers/rtc/rtc_ll_stm32.c +++ b/drivers/rtc/rtc_ll_stm32.c @@ -238,7 +238,7 @@ static int rtc_stm32_init(struct device *dev) LL_RCC_LSE_SetDriveCapability(CONFIG_RTC_STM32_LSE_DRIVE_STRENGTH); LL_RCC_LSE_Enable(); - /* Wait untill LSE is ready */ + /* Wait until LSE is ready */ while (LL_RCC_LSE_IsReady() != 1) { } diff --git a/drivers/sensor/bmg160/bmg160.h b/drivers/sensor/bmg160/bmg160.h index ca3dc38a07e..9bc538907c6 100644 --- a/drivers/sensor/bmg160/bmg160.h +++ b/drivers/sensor/bmg160/bmg160.h @@ -175,7 +175,7 @@ #define BMG160_BUS_SPEED I2C_SPEED_FAST #endif -/* end of default settigns */ +/* end of default settings */ struct bmg160_device_config { const char *i2c_port; diff --git a/drivers/sensor/grove/temperature_sensor.c b/drivers/sensor/grove/temperature_sensor.c index 314b818403b..ca108805297 100644 --- a/drivers/sensor/grove/temperature_sensor.c +++ b/drivers/sensor/grove/temperature_sensor.c @@ -59,7 +59,7 @@ static int gts_channel_get(struct device *dev, analog_val = analog_val >> 2; /* - * The formula for converting the analog value to degrees Celisus + * The formula for converting the analog value to degrees Celsius * is taken from the sensor reference page: * http://www.seeedstudio.com/wiki/Grove_-_Temperature_Sensor */ diff --git a/drivers/sensor/hp206c/hp206c.c b/drivers/sensor/hp206c/hp206c.c index 6a160153dd5..b2efbc2c502 100644 --- a/drivers/sensor/hp206c/hp206c.c +++ b/drivers/sensor/hp206c/hp206c.c @@ -182,7 +182,7 @@ static int hp206c_wait_dev_ready(struct device *dev, u32_t timeout_ms) return -EBUSY; } -static int hp206c_adc_aquire(struct device *dev, enum sensor_channel chan) +static int hp206c_adc_acquire(struct device *dev, enum sensor_channel chan) { struct hp206c_device_data *hp206c = dev->driver_data; @@ -278,7 +278,7 @@ static int hp206c_channel_get(struct device *dev, static const struct sensor_driver_api hp206c_api = { .attr_set = hp206c_attr_set, - .sample_fetch = hp206c_adc_aquire, + .sample_fetch = hp206c_adc_acquire, .channel_get = hp206c_channel_get, }; diff --git a/drivers/sensor/lis2dh/lis2dh_trigger.c b/drivers/sensor/lis2dh/lis2dh_trigger.c index 229d634284a..2e0657553b4 100644 --- a/drivers/sensor/lis2dh/lis2dh_trigger.c +++ b/drivers/sensor/lis2dh/lis2dh_trigger.c @@ -59,7 +59,7 @@ static int lis2dh_start_trigger_int1(struct device *dev) u8_t raw[LIS2DH_BUF_SZ]; u8_t ctrl1 = 0U; - /* power down temporarly to align interrupt & data output sampling */ + /* power down temporarily to align interrupt & data output sampling */ status = lis2dh_reg_read_byte(dev, LIS2DH_REG_CTRL1, &ctrl1); if (unlikely(status < 0)) { return status; diff --git a/drivers/sensor/sx9500/sx9500.c b/drivers/sensor/sx9500/sx9500.c index 702b1bcc909..58d81050983 100644 --- a/drivers/sensor/sx9500/sx9500.c +++ b/drivers/sensor/sx9500/sx9500.c @@ -34,7 +34,7 @@ static u8_t sx9500_reg_defaults[] = { 0x40, /* Doze enabled, 2x scan period doze, no raw filter. */ 0x30, /* Average threshold. */ 0x0f, /* Debouncer off, lowest average negative filter, - * highest average postive filter. + * highest average positive filter. */ 0x0e, /* Proximity detection threshold: 280 */ 0x00, /* No automatic compensation, compensate each pin diff --git a/drivers/serial/uart_msp432p4xx.c b/drivers/serial/uart_msp432p4xx.c index 9d53db579f1..1b19b9138c5 100644 --- a/drivers/serial/uart_msp432p4xx.c +++ b/drivers/serial/uart_msp432p4xx.c @@ -7,7 +7,7 @@ /* See www.ti.com/lit/pdf/slau356f, Chapter 22, for MSP432P4XX UART info. */ /* include driverlib/gpio.h (from the msp432p4xx SDK) before Z's uart.h so - * that the definition of BIT is not overriden */ + * that the definition of BIT is not overridden */ #include #include diff --git a/drivers/serial/uart_sifive.c b/drivers/serial/uart_sifive.c index 81abf9a3d40..3c6279ad46b 100644 --- a/drivers/serial/uart_sifive.c +++ b/drivers/serial/uart_sifive.c @@ -219,7 +219,7 @@ static int uart_sifive_irq_tx_complete(struct device *dev) volatile struct uart_sifive_regs_t *uart = DEV_UART(dev); /* - * No TX EMTPY flag for this controller, + * No TX EMPTY flag for this controller, * just check if TX FIFO is not full */ return !(uart->tx & TXDATA_FULL); diff --git a/drivers/spi/spi_cc13xx_cc26xx.c b/drivers/spi/spi_cc13xx_cc26xx.c index 5f6f4d3e72b..46c257a568b 100644 --- a/drivers/spi/spi_cc13xx_cc26xx.c +++ b/drivers/spi/spi_cc13xx_cc26xx.c @@ -209,7 +209,7 @@ static int spi_cc13xx_cc26xx_init_0(struct device *dev) /* Enable SSI0 peripherals */ PRCMPeripheralRunEnable(PRCM_PERIPH_SSI0); - /* Enable in sleep mode until proper power managment is added */ + /* Enable in sleep mode until proper power management is added */ PRCMPeripheralSleepEnable(PRCM_PERIPH_SSI0); PRCMPeripheralDeepSleepEnable(PRCM_PERIPH_SSI0); @@ -261,7 +261,7 @@ static int spi_cc13xx_cc26xx_init_1(struct device *dev) /* Enable SSI1 peripherals */ PRCMPeripheralRunEnable(PRCM_PERIPH_SSI1); - /* Enable in sleep mode until proper power managment is added */ + /* Enable in sleep mode until proper power management is added */ PRCMPeripheralSleepEnable(PRCM_PERIPH_SSI1); PRCMPeripheralDeepSleepEnable(PRCM_PERIPH_SSI1); diff --git a/drivers/spi/spi_sam.c b/drivers/spi/spi_sam.c index 763b1f2c4f2..5de188fbaff 100644 --- a/drivers/spi/spi_sam.c +++ b/drivers/spi/spi_sam.c @@ -90,7 +90,7 @@ static int spi_sam_configure(struct device *dev, spi_csr |= SPI_CSR_BITS(SPI_CSR_BITS_8_BIT); } - /* Use the requested or next higest possible frequency */ + /* Use the requested or next highest possible frequency */ div = SOC_ATMEL_SAM_MCK_FREQ_HZ / config->frequency; div = MAX(1, MIN(UINT8_MAX, div)); spi_csr |= SPI_CSR_SCBR(div); diff --git a/drivers/spi/spi_sam0.c b/drivers/spi/spi_sam0.c index 97dde4e5619..e5060c8ac51 100644 --- a/drivers/spi/spi_sam0.c +++ b/drivers/spi/spi_sam0.c @@ -104,7 +104,7 @@ static int spi_sam0_configure(struct device *dev, /* 8 bits per transfer */ ctrlb.bit.CHSIZE = 0; - /* Use the requested or next higest possible frequency */ + /* Use the requested or next highest possible frequency */ div = (SOC_ATMEL_SAM0_GCLK0_FREQ_HZ / config->frequency) / 2U - 1; div = MAX(0, MIN(UINT8_MAX, div)); diff --git a/drivers/timer/loapic_timer.c b/drivers/timer/loapic_timer.c index a0bdade3bdb..e3ce19a9b40 100644 --- a/drivers/timer/loapic_timer.c +++ b/drivers/timer/loapic_timer.c @@ -669,7 +669,7 @@ static int sys_clock_resume(struct device *dev) * source like TSC * 2) Expire all timers anyway * 3) Expire only the timer at the top - * 4) Contine from where the timer left + * 4) Continue from where the timer left * * 1 and 2 require change to how timers are handled. 4 may not * give a good user experience. After waiting for a long period diff --git a/drivers/watchdog/wdt_iwdg_stm32.c b/drivers/watchdog/wdt_iwdg_stm32.c index a21d89c9b7d..dbf9ca09fa4 100644 --- a/drivers/watchdog/wdt_iwdg_stm32.c +++ b/drivers/watchdog/wdt_iwdg_stm32.c @@ -115,7 +115,7 @@ static int iwdg_stm32_install_timeout(struct device *dev, tickstart = k_uptime_get_32(); while (LL_IWDG_IsReady(iwdg) == 0) { - /* Wait untill WVU, RVU, PVU are reset before updating */ + /* Wait until WVU, RVU, PVU are reset before updating */ if ((k_uptime_get_32() - tickstart) > IWDG_DEFAULT_TIMEOUT) { return -ENODEV; } diff --git a/include/arch/nios2/linker.ld b/include/arch/nios2/linker.ld index f4e07bb1738..3b4b70899f8 100644 --- a/include/arch/nios2/linker.ld +++ b/include/arch/nios2/linker.ld @@ -25,7 +25,7 @@ #define _RESET_SECTION_NAME reset /* This linker script requires the following macros to be defined in the - * SOC-specfic linker script. All of these values can be found defined + * SOC-specific linker script. All of these values can be found defined * in system.h for CPU configurations that can generate a HAL. * * _RESET_VECTOR CPU entry point at boot diff --git a/include/arch/posix/arch.h b/include/arch/posix/arch.h index 82969d78a8d..f68f22e104d 100644 --- a/include/arch/posix/arch.h +++ b/include/arch/posix/arch.h @@ -42,7 +42,7 @@ extern "C" { #define _NANO_ERR_KERNEL_PANIC (6) /* Kernel panic (fatal to system) */ struct __esf { - u32_t dummy; /*maybe we will want to add somethign someday*/ + u32_t dummy; /*maybe we will want to add something someday*/ }; typedef struct __esf NANO_ESF; diff --git a/include/bluetooth/conn.h b/include/bluetooth/conn.h index 418203ca5af..5d847788085 100644 --- a/include/bluetooth/conn.h +++ b/include/bluetooth/conn.h @@ -661,7 +661,7 @@ struct bt_conn_auth_cb { /** @brief notify that pairing process was complete. * - * This callback notifies the applicaiton that the pairing process + * This callback notifies the application that the pairing process * has been completed. * * @param conn Connection object. diff --git a/include/json.h b/include/json.h index c5a37115c23..40045724dd6 100644 --- a/include/json.h +++ b/include/json.h @@ -299,7 +299,7 @@ typedef int (*json_append_bytes_t)(const char *bytes, size_t len, * int height; * }; * - * struct person_heigths_array { + * struct person_heights_array { * struct person_height heights; * } * @@ -314,7 +314,7 @@ typedef int (*json_append_bytes_t)(const char *bytes, size_t len, * }; * * struct json_obj_descr person_height_array_descr[] = { - * JSON_OBJ_DESCR_OBJECT(struct person_heigths_array, + * JSON_OBJ_DESCR_OBJECT(struct person_heights_array, * heights, person_heigth_descr), * }; * diff --git a/include/kernel.h b/include/kernel.h index ac6860ca121..3cd937963eb 100644 --- a/include/kernel.h +++ b/include/kernel.h @@ -346,7 +346,7 @@ static inline void k_obj_free(void *obj) * The purpose of this data type is to clearly distinguish between the * declared symbol for a stack (of type k_thread_stack_t) and the underlying * buffer which composes the stack data actually used by the underlying - * thread; they cannot be used interchangably as some arches precede the + * thread; they cannot be used interchangeably as some arches precede the * stack buffer region with guard areas that trigger a MPU or MMU fault * if written to. * diff --git a/include/net/coap.h b/include/net/coap.h index 98f954f01b7..d733d1aba56 100644 --- a/include/net/coap.h +++ b/include/net/coap.h @@ -109,7 +109,7 @@ enum coap_msgtype { COAP_TYPE_RESET = 3 }; -#define coap_make_response_code(clas, det) ((clas << 5) | (det)) +#define coap_make_response_code(class, det) ((class << 5) | (det)) /** * @brief Set of response codes available for a response packet. diff --git a/include/net/http_parser.h b/include/net/http_parser.h index d069e4bf7c3..ae80a398afe 100644 --- a/include/net/http_parser.h +++ b/include/net/http_parser.h @@ -74,7 +74,7 @@ struct http_parser_settings; * chunked' headers that indicate the presence of a body. * * Returning `2` from on_headers_complete will tell parser that it should not - * expect neither a body nor any futher responses on this connection. This is + * expect neither a body nor any further responses on this connection. This is * useful for handling responses to a CONNECT request which may not contain * `Upgrade` or `Connection: upgrade` headers. * diff --git a/include/net/net_stats.h b/include/net/net_stats.h index 2007b75bd7f..c0d5bbd057c 100644 --- a/include/net/net_stats.h +++ b/include/net/net_stats.h @@ -128,7 +128,7 @@ struct net_stats_tcp { /** Amount of retransmitted data. */ net_stats_t resent; - /** Number of recived TCP segments. */ + /** Number of received TCP segments. */ net_stats_t recv; /** Number of sent TCP segments. */ @@ -168,7 +168,7 @@ struct net_stats_udp { /** Number of dropped UDP segments. */ net_stats_t drop; - /** Number of recived UDP segments. */ + /** Number of received UDP segments. */ net_stats_t recv; /** Number of sent UDP segments. */ diff --git a/include/sched_priq.h b/include/sched_priq.h index c3d7ab7ee24..a8b3922864b 100644 --- a/include/sched_priq.h +++ b/include/sched_priq.h @@ -49,7 +49,7 @@ struct k_thread *z_priq_rb_best(struct _priq_rb *pq); * to the original Zephyr scheduler. RAM requirements are * comparatively high, but performance is very fast. Won't work with * features like deadline scheduling which need large priority spaces - * to represet their requirements. + * to represent their requirements. */ struct _priq_mq { sys_dlist_t queues[32]; diff --git a/include/toolchain/common.h b/include/toolchain/common.h index b8ca11dd1bc..f9b4a43bdb4 100644 --- a/include/toolchain/common.h +++ b/include/toolchain/common.h @@ -145,7 +145,7 @@ #endif /* - * This is meant to be used in conjonction with __in_section() and similar + * This is meant to be used in conjunction with __in_section() and similar * where scattered structure instances are concatened together by the linker * and walked by the code at run time just like a contiguous array of such * structures. diff --git a/kernel/pipes.c b/kernel/pipes.c index 84f95d5273a..80f5146fe48 100644 --- a/kernel/pipes.c +++ b/kernel/pipes.c @@ -662,7 +662,7 @@ int z_impl_k_pipe_get(struct k_pipe *pipe, void *data, size_t bytes_to_read, desc->buffer += bytes_copied; desc->bytes_to_xfer -= bytes_copied; - /* Write request has been satsified */ + /* Write request has been satisfied */ pipe_thread_ready(thread); thread = (struct k_thread *)sys_dlist_get(&xfer_list); diff --git a/lib/updatehub/Kconfig b/lib/updatehub/Kconfig index 2e4588b0d40..208295b7a78 100644 --- a/lib/updatehub/Kconfig +++ b/lib/updatehub/Kconfig @@ -79,7 +79,7 @@ config UPDATEHUB_SHELL Activate shell module that provides UpdateHub commands like config UPDATEHUB_DTLS - bool"Activite communication CoAPS/DTLS" + bool"Activate communication CoAPS/DTLS" depends on UPDATEHUB select MBEDTLS select MBEDTLS_ENABLE_HEAP diff --git a/lib/updatehub/updatehub.c b/lib/updatehub/updatehub.c index 7df14ae7cc5..a2dd461c658 100644 --- a/lib/updatehub/updatehub.c +++ b/lib/updatehub/updatehub.c @@ -191,7 +191,7 @@ static bool start_coap_client(void) return true; } -static void cleanup_conection(void) +static void cleanup_connection(void) { if (close(ctx.sock) < 0) { LOG_ERR("Could not close the socket"); @@ -466,7 +466,7 @@ static enum updatehub_response install_update(void) } cleanup: - cleanup_conection(); + cleanup_connection(); error: ctx.downloaded_size = 0; @@ -550,7 +550,7 @@ static int report(enum updatehub_state state) wait_fds(); cleanup: - cleanup_conection(); + cleanup_connection(); error: k_free(firmware_version); @@ -709,7 +709,7 @@ enum updatehub_response updatehub_probe(void) ctx.code_status = UPDATEHUB_HAS_UPDATE; cleanup: - cleanup_conection(); + cleanup_connection(); error: k_free(metadata); diff --git a/samples/boards/intel_s1000_crb/audio/src/audio_driver.c b/samples/boards/intel_s1000_crb/audio/src/audio_driver.c index a7f9957f7ac..585e6c05da1 100644 --- a/samples/boards/intel_s1000_crb/audio/src/audio_driver.c +++ b/samples/boards/intel_s1000_crb/audio/src/audio_driver.c @@ -170,7 +170,7 @@ static int audio_driver_start_host_streams(void) { int ret = 0; - /* trigger transmision */ + /* trigger transmission */ ret = i2s_trigger(i2s_host_dev, I2S_DIR_TX, I2S_TRIGGER_START); if (ret) { LOG_ERR("I2S TX failed with code %d", ret); @@ -189,7 +189,7 @@ static int audio_driver_stop_host_streams(void) { int ret; - /* stop transmision */ + /* stop transmission */ ret = i2s_trigger(i2s_host_dev, I2S_DIR_TX, I2S_TRIGGER_STOP); if (ret) { LOG_ERR("I2S TX failed with code %d", ret); @@ -358,7 +358,7 @@ static void audio_driver_stop_periph_streams(void) LOG_ERR("I2S TX failed with code %d", ret); } - /* trigger transmision */ + /* trigger transmission */ ret = dmic_trigger(dmic_device, DMIC_TRIGGER_STOP); if (ret) { LOG_ERR("dmic_trigger failed with code %d", ret); diff --git a/samples/boards/reel_board/mesh_badge/src/mesh.c b/samples/boards/reel_board/mesh_badge/src/mesh.c index 633183df1fa..e7e2b9128e0 100644 --- a/samples/boards/reel_board/mesh_badge/src/mesh.c +++ b/samples/boards/reel_board/mesh_badge/src/mesh.c @@ -37,9 +37,9 @@ #define MAX_SENS_STATUS_LEN 8 -#define SENS_PROP_ID_TEMP_CELCIUS 0x2A1F -#define SENS_PROP_ID_UNIT_TEMP_CELCIUS 0x272F -#define SENS_PROP_ID_TEMP_CELCIUS_SIZE 2 +#define SENS_PROP_ID_TEMP_CELSIUS 0x2A1F +#define SENS_PROP_ID_UNIT_TEMP_CELSIUS 0x272F +#define SENS_PROP_ID_TEMP_CELSIUS_SIZE 2 enum { SENSOR_HDR_A = 0, @@ -203,7 +203,7 @@ static void sensor_desc_get(struct bt_mesh_model *model, /* TODO */ } -static void sens_temperature_celcius_fill(struct net_buf_simple *msg) +static void sens_temperature_celsius_fill(struct net_buf_simple *msg) { struct sensor_hdr_b hdr; /* TODO Get only temperature from sensor */ @@ -212,7 +212,7 @@ static void sens_temperature_celcius_fill(struct net_buf_simple *msg) hdr.format = SENSOR_HDR_B; hdr.length = sizeof(temp_degrees); - hdr.prop_id = SENS_PROP_ID_UNIT_TEMP_CELCIUS; + hdr.prop_id = SENS_PROP_ID_UNIT_TEMP_CELSIUS; get_hdc1010_val(val); temp_degrees = sensor_value_to_double(&val[0]); @@ -243,8 +243,8 @@ static void sensor_create_status(u16_t id, struct net_buf_simple *msg) bt_mesh_model_msg_init(msg, BT_MESH_MODEL_OP_SENS_STATUS); switch (id) { - case SENS_PROP_ID_TEMP_CELCIUS: - sens_temperature_celcius_fill(msg); + case SENS_PROP_ID_TEMP_CELSIUS: + sens_temperature_celsius_fill(msg); break; default: sens_unknown_fill(id, msg); diff --git a/samples/drivers/counter/alarm/src/main.c b/samples/drivers/counter/alarm/src/main.c index 062bf6ee74e..bea29b57baa 100644 --- a/samples/drivers/counter/alarm/src/main.c +++ b/samples/drivers/counter/alarm/src/main.c @@ -26,7 +26,7 @@ static void test_counter_interrupt_fn(struct device *counter_dev, printk("!!! Alarm !!!\n"); printk("Now: %u\n", now_sec); - /* Set a new alarm with a double lenght duration */ + /* Set a new alarm with a double length duration */ config->ticks = config->ticks * 2U; printk("Set alarm in %u sec\n", config->ticks); diff --git a/samples/drivers/current_sensing/src/main.c b/samples/drivers/current_sensing/src/main.c index 1925e51cf0c..01db320d170 100644 --- a/samples/drivers/current_sensing/src/main.c +++ b/samples/drivers/current_sensing/src/main.c @@ -92,7 +92,7 @@ void main(void) return; } - /* Configurate the chip using default values */ + /* Configure the chip using default values */ data[0] = 0x03; data[1] = 0x99; write_reg16(i2c_dev, 0x00, data); diff --git a/samples/portability/cmsis_rtos_v1/timer_synchronization/sample.yaml b/samples/portability/cmsis_rtos_v1/timer_synchronization/sample.yaml index 5d6d68b0d13..e4029030027 100644 --- a/samples/portability/cmsis_rtos_v1/timer_synchronization/sample.yaml +++ b/samples/portability/cmsis_rtos_v1/timer_synchronization/sample.yaml @@ -1,8 +1,8 @@ sample: - name: CMSIS_RTOS_V1 Syncronization + name: CMSIS_RTOS_V1 Synchronization tests: sample.portability.cmsis_rtos_v1.timer_synchronization: - tags: cmsis_rtos_v1_syncronization + tags: cmsis_rtos_v1_synchronization min_ram: 32 min_flash: 34 harness: console diff --git a/samples/portability/cmsis_rtos_v2/timer_synchronization/sample.yaml b/samples/portability/cmsis_rtos_v2/timer_synchronization/sample.yaml index 48232f40748..b92074e729b 100644 --- a/samples/portability/cmsis_rtos_v2/timer_synchronization/sample.yaml +++ b/samples/portability/cmsis_rtos_v2/timer_synchronization/sample.yaml @@ -1,8 +1,8 @@ sample: - name: CMSIS_RTOS_V2 Syncronization + name: CMSIS_RTOS_V2 Synchronization tests: sample.portability.cmsis_rtos_v2.timer_synchronization: - tags: cmsis_rtos_v2_syncronization + tags: cmsis_rtos_v2_synchronization min_ram: 32 min_flash: 34 harness: console diff --git a/samples/userspace/shared_mem/src/main.c b/samples/userspace/shared_mem/src/main.c index 8687e1ee0c1..0c19f353548 100644 --- a/samples/userspace/shared_mem/src/main.c +++ b/samples/userspace/shared_mem/src/main.c @@ -8,7 +8,7 @@ * * Basic example of userspace thread protected memory * - * NOTE: The encryption algorithim is unverified and + * NOTE: The encryption algorithm is unverified and * based on a 1930's erra piece of hardware. * DO NOT USE THIS CODE FOR SECURITY * diff --git a/scripts/ci/get_modified_boards.py b/scripts/ci/get_modified_boards.py index 6409f39d5d5..e07fd9ace51 100755 --- a/scripts/ci/get_modified_boards.py +++ b/scripts/ci/get_modified_boards.py @@ -2,7 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 # A script to generate a list of boards that have changed or added and create an -# arguemnts file for sanitycheck to allow running more tests for those boards. +# arguments file for sanitycheck to allow running more tests for those boards. import re, os import sh diff --git a/scripts/ci/get_modified_tests.py b/scripts/ci/get_modified_tests.py index dcf250d68a2..93cc395debd 100755 --- a/scripts/ci/get_modified_tests.py +++ b/scripts/ci/get_modified_tests.py @@ -2,7 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 # A script to generate a list of tests that have changed or added and create an -# arguemnts file for sanitycheck to allow running those tests with --all +# arguments file for sanitycheck to allow running those tests with --all import os import sh diff --git a/scripts/ci/run_ci.sh b/scripts/ci/run_ci.sh index 1225de311f5..9a548187a31 100755 --- a/scripts/ci/run_ci.sh +++ b/scripts/ci/run_ci.sh @@ -15,7 +15,7 @@ # -b base branch # -r the remote to rebase on # -# The script can be run locally using for exmaple: +# The script can be run locally using for example: # ./scripts/ci/run_ci.sh -b master -r origin -l -R set -xe diff --git a/scripts/coccicheck b/scripts/coccicheck index c95c9de0544..5d0a96fbc1d 100755 --- a/scripts/coccicheck +++ b/scripts/coccicheck @@ -146,7 +146,7 @@ coccinelle () { if [[ $VIRTUAL = "" ]]; then echo "No available modes found in \"$COCCI\" script." - echo "Consider adding vitrual rules to the script." + echo "Consider adding virtual rules to the script." exit 1 elif [[ $VIRTUAL != *"$MODE"* ]]; then echo "Invalid mode \"$MODE\" supplied!" @@ -161,7 +161,7 @@ coccinelle () { else MODE=org fi - echo "Using random availble mode: \"$MODE\"" + echo "Using random available mode: \"$MODE\"" echo '' fi diff --git a/scripts/dts/extract_dts_includes.py b/scripts/dts/extract_dts_includes.py index 3b6e5977eb7..fc15a620f7c 100755 --- a/scripts/dts/extract_dts_includes.py +++ b/scripts/dts/extract_dts_includes.py @@ -193,7 +193,7 @@ def merge_properties(parent, fname, to_dict, from_dict): # Warn when overriding a property and changing its value... if (k in to_dict and to_dict[k] != from_dict[k] and # ...unless it's the 'title', 'description', or 'version' - # property. These are overriden deliberately. + # property. These are overridden deliberately. not k in {'title', 'version', 'description'} and # Also allow the category to be changed from 'optional' to # 'required' without a warning diff --git a/scripts/filter-known-issues.py b/scripts/filter-known-issues.py index e4fa41b4fab..1aeb9cf2f5e 100755 --- a/scripts/filter-known-issues.py +++ b/scripts/filter-known-issues.py @@ -3,7 +3,7 @@ Filters a file, classifying output in errors, warnings and discarding the rest. -Given a set of regular expresions read from files named *.conf in the +Given a set of regular expressions read from files named *.conf in the given configuration path(s), of the format: # @@ -49,7 +49,7 @@ config_regex = \ def config_import_file(filename): """ - Imports regular expresions from any file *.conf in the given path, + Imports regular expression from any file *.conf in the given path, format as given in the main doc """ try: @@ -85,7 +85,7 @@ def config_import_file(filename): def config_import_path(path): """ - Imports regular expresions from any file *.conf in the given path + Imports regular expression from any file *.conf in the given path """ file_regex = re.compile(r".*\.conf$") try: @@ -104,7 +104,7 @@ def config_import_path(path): def config_import(paths): """ - Imports regular expresions from any file *.conf in the list of paths. + Imports regular expression from any file *.conf in the list of paths. If a path is "" or None, the list of paths until then is flushed and only the new ones are considered. diff --git a/scripts/gen_relocate_app.py b/scripts/gen_relocate_app.py index b8e66789732..03be8b1dd56 100644 --- a/scripts/gen_relocate_app.py +++ b/scripts/gen_relocate_app.py @@ -256,7 +256,7 @@ def generate_linker_script(linker_file, sram_data_linker_file, gen_string += string_create_helper("bss", memory_type, full_list_of_sections, 0) - #finally writting to the linker file + #finally writing to the linker file with open(linker_file, "a+") as file_desc: file_desc.write(gen_string) diff --git a/scripts/kconfig/kconfig.py b/scripts/kconfig/kconfig.py index 3236823988c..407f45ca077 100755 --- a/scripts/kconfig/kconfig.py +++ b/scripts/kconfig/kconfig.py @@ -71,7 +71,7 @@ def main(): for warning in kconf.warnings: print("\n" + warning, file=sys.stderr) - # Turn all warnings except for explicity whitelisted ones into errors. In + # Turn all warnings except for explicitly whitelisted ones into errors. In # particular, this will turn assignments to undefined Kconfig variables # into errors. # @@ -148,7 +148,7 @@ def verify_assigned_choice_value(choice): # # We check choice symbols separately to avoid warnings when two different # choice symbols within the same choice are set to y. This might happen if - # a choice selection from a board defconfig is overriden in a prj.conf, for + # a choice selection from a board defconfig is overridden in a prj.conf, for # example. The last choice symbol set to y becomes the selection (and all # other choice symbols get the value n). # diff --git a/scripts/sanitycheck b/scripts/sanitycheck index 20b4b02d0c0..0f10a4ff6e9 100755 --- a/scripts/sanitycheck +++ b/scripts/sanitycheck @@ -1385,7 +1385,7 @@ class MakeGenerator: cmd = ["make", "-k", "-j", str(JOBS), "-f", tf.name, "all"] - # assure language neutral environemnt + # assure language neutral environment make_env = os.environ.copy() make_env['LC_MESSAGES'] = 'C.UTF-8' p = subprocess.Popen(cmd, stderr=subprocess.PIPE, diff --git a/soc/posix/inf_clock/soc.c b/soc/posix/inf_clock/soc.c index 35659336047..eda15ff3a9c 100644 --- a/soc/posix/inf_clock/soc.c +++ b/soc/posix/inf_clock/soc.c @@ -5,7 +5,7 @@ */ /** - * For all purposes, Zephyr threads see a CPU running at an infinitly high + * For all purposes, Zephyr threads see a CPU running at an infinitely high * clock. * * Therefore, the code will always run until completion after each interrupt, diff --git a/soc/riscv32/riscv-privilege/common/soc_irq.S b/soc/riscv32/riscv-privilege/common/soc_irq.S index 8e0fa3f1981..3a8904d0437 100644 --- a/soc/riscv32/riscv-privilege/common/soc_irq.S +++ b/soc/riscv32/riscv-privilege/common/soc_irq.S @@ -32,7 +32,7 @@ SECTION_FUNC(exception.other, __soc_handle_irq) /* * __soc_is_irq is defined as .weak to allow re-implementation by - * SOCs that does not truely follow the riscv privilege specification. + * SOCs that does not truly follow the riscv privilege specification. */ WTEXT(__soc_is_irq) diff --git a/soc/xtensa/esp32/soc.c b/soc/xtensa/esp32/soc.c index bb0b37023b0..daf3975cd94 100644 --- a/soc/xtensa/esp32/soc.c +++ b/soc/xtensa/esp32/soc.c @@ -75,7 +75,7 @@ void __attribute__((section(".iram1"))) __start(void) CODE_UNREACHABLE; } -/* Boot-time static default printk handler, possibly to be overriden later. */ +/* Boot-time static default printk handler, possibly to be overridden later. */ int z_arch_printk_char_out(int c) { if (c == '\n') { diff --git a/subsys/bluetooth/controller/ll_sw/ctrl.c b/subsys/bluetooth/controller/ll_sw/ctrl.c index daa1f8fe98e..53dc552b0de 100644 --- a/subsys/bluetooth/controller/ll_sw/ctrl.c +++ b/subsys/bluetooth/controller/ll_sw/ctrl.c @@ -1498,7 +1498,7 @@ static inline u32_t isr_rx_scan(u8_t devmatch_ok, u8_t devmatch_id, * +/- half the 32KHz clock resolution. In order to achieve * a microsecond resolution, in the case of negative remainder, * the radio packet timer is started one 32KHz tick early, - * hence substract one tick unit from the measurement of the + * hence subtract one tick unit from the measurement of the * packet end. */ if (!_radio.remainder_anchor || @@ -9496,7 +9496,7 @@ static void ctrl_tx_enqueue(struct connection *conn, * by peer, hence place this new ctrl after head */ - /* if data transmited once, keep it at head of the tx list, + /* if data transmitted once, keep it at head of the tx list, * as we will insert a ctrl after it, hence advance the * data pointer */ diff --git a/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/ticker.h b/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/ticker.h index b5e8c0f4f4b..8785ee1f778 100644 --- a/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/ticker.h +++ b/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/ticker.h @@ -7,10 +7,10 @@ #define HAL_TICKER_CNTR_CLK_FREQ_HZ 32768U -/* Macro definining the minimum counter compare offset */ +/* Macro defining the minimum counter compare offset */ #define HAL_TICKER_CNTR_CMP_OFFSET_MIN 3 -/* Macro definining the max. counter update latency in ticks */ +/* Macro defining the max. counter update latency in ticks */ #define HAL_TICKER_CNTR_SET_LATENCY 0 /* Macro to translate microseconds to tick units. diff --git a/subsys/bluetooth/controller/ll_sw/ull_conn.c b/subsys/bluetooth/controller/ll_sw/ull_conn.c index dabae0181c1..562da1f4efd 100644 --- a/subsys/bluetooth/controller/ll_sw/ull_conn.c +++ b/subsys/bluetooth/controller/ll_sw/ull_conn.c @@ -1537,7 +1537,7 @@ static void ctrl_tx_enqueue(struct ll_conn *conn, struct node_tx *tx) * by peer, hence place this new ctrl after head */ - /* if data transmited once, keep it at head of the tx list, + /* if data transmitted once, keep it at head of the tx list, * as we will insert a ctrl after it, hence advance the * data pointer */ diff --git a/subsys/bluetooth/controller/util/mfifo.h b/subsys/bluetooth/controller/util/mfifo.h index ff627dce4a6..308b539d617 100644 --- a/subsys/bluetooth/controller/util/mfifo.h +++ b/subsys/bluetooth/controller/util/mfifo.h @@ -11,14 +11,14 @@ * the backing storage. * * Enqueuing is a 2 step procedure: Alloc and commit. We say an allocated - * buffer yet to be committed, exists in a limbo state - until comitted. + * buffer yet to be committed, exists in a limbo state - until committed. * It is only safe to write to a buffer while it is in limbo. * * Invariant: last-index refers to the buffer that is safe to write while in * limbo-state. Outside limbo state, last-index refers one buffer ahead of what * has been enqueued. * - * There are essentialy two APIs, distinguished by the buffer-type: + * There are essentially two APIs, distinguished by the buffer-type: * API 1 Value-type : MFIFO_DEFINE(name1, sizeof(struct foo), cnt1); * API 2 Pointer-type : MFIFO_DEFINE(name2, sizeof(void *), cnt2); * diff --git a/subsys/bluetooth/host/att.c b/subsys/bluetooth/host/att.c index 7d9511ec912..7d4f339e89d 100644 --- a/subsys/bluetooth/host/att.c +++ b/subsys/bluetooth/host/att.c @@ -471,7 +471,7 @@ static u8_t find_info_cb(const struct bt_gatt_attr *attr, void *user_data) return BT_GATT_ITER_STOP; } - /* Fast foward to next item position */ + /* Fast forward to next item position */ data->info16 = net_buf_add(data->buf, sizeof(*data->info16)); data->info16->handle = sys_cpu_to_le16(attr->handle); data->info16->uuid = sys_cpu_to_le16(BT_UUID_16(attr->uuid)->val); @@ -487,7 +487,7 @@ static u8_t find_info_cb(const struct bt_gatt_attr *attr, void *user_data) return BT_GATT_ITER_STOP; } - /* Fast foward to next item position */ + /* Fast forward to next item position */ data->info128 = net_buf_add(data->buf, sizeof(*data->info128)); data->info128->handle = sys_cpu_to_le16(attr->handle); memcpy(data->info128->uuid, BT_UUID_128(attr->uuid)->val, @@ -613,7 +613,7 @@ static u8_t find_type_cb(const struct bt_gatt_attr *attr, void *user_data) /* If service has been found, error should be cleared */ data->err = 0x00; - /* Fast foward to next item position */ + /* Fast forward to next item position */ data->group = net_buf_add(data->buf, sizeof(*data->group)); data->group->start_handle = sys_cpu_to_le16(attr->handle); data->group->end_handle = sys_cpu_to_le16(attr->handle); @@ -809,7 +809,7 @@ static u8_t read_type_cb(const struct bt_gatt_attr *attr, void *user_data) */ data->err = 0x00; - /* Fast foward to next item position */ + /* Fast forward to next item position */ data->item = net_buf_add(data->buf, sizeof(*data->item)); data->item->handle = sys_cpu_to_le16(attr->handle); @@ -1115,7 +1115,7 @@ static u8_t read_group_cb(const struct bt_gatt_attr *attr, void *user_data) return BT_GATT_ITER_STOP; } - /* Fast foward to next group position */ + /* Fast forward to next group position */ data->group = net_buf_add(data->buf, sizeof(*data->group)); /* Initialize group handle range */ diff --git a/subsys/bluetooth/host/l2cap_br.c b/subsys/bluetooth/host/l2cap_br.c index 2ce5c1c418a..582c6cd04f7 100644 --- a/subsys/bluetooth/host/l2cap_br.c +++ b/subsys/bluetooth/host/l2cap_br.c @@ -530,7 +530,7 @@ static void l2cap_br_conf(struct bt_l2cap_chan *chan) conf->dcid = sys_cpu_to_le16(BR_CHAN(chan)->tx.cid); /* * Add MTU option if app set non default BR/EDR L2CAP MTU, - * otherwise sent emtpy configuration data meaning default MTU + * otherwise sent empty configuration data meaning default MTU * to be used. */ if (BR_CHAN(chan)->rx.mtu != L2CAP_BR_DEFAULT_MTU) { diff --git a/subsys/bluetooth/host/mesh/net.c b/subsys/bluetooth/host/mesh/net.c index 7869020a998..638d594d226 100644 --- a/subsys/bluetooth/host/mesh/net.c +++ b/subsys/bluetooth/host/mesh/net.c @@ -38,7 +38,7 @@ #include "prov.h" /* Minimum valid Mesh Network PDU length. The Network headers - * themselves take up 9 bytes. After that there is a minumum of 1 byte + * themselves take up 9 bytes. After that there is a minimum of 1 byte * payload for both CTL=1 and CTL=0 PDUs (smallest OpCode is 1 byte). CTL=1 * PDUs must use a 64-bit (8 byte) NetMIC, whereas CTL=0 PDUs have at least * a 32-bit (4 byte) NetMIC and AppMIC giving again a total of 8 bytes. diff --git a/subsys/bluetooth/host/mesh/prov.c b/subsys/bluetooth/host/mesh/prov.c index 3b768f46209..8ebd6bbe691 100644 --- a/subsys/bluetooth/host/mesh/prov.c +++ b/subsys/bluetooth/host/mesh/prov.c @@ -105,7 +105,7 @@ enum { REMOTE_PUB_KEY, /* Remote key has been received */ LINK_ACTIVE, /* Link has been opened */ - HAVE_DHKEY, /* DHKey has been calcualted */ + HAVE_DHKEY, /* DHKey has been calculated */ SEND_CONFIRM, /* Waiting to send Confirm value */ WAIT_NUMBER, /* Waiting for number input from user */ WAIT_STRING, /* Waiting for string input from user */ diff --git a/subsys/bluetooth/host/mesh/settings.c b/subsys/bluetooth/host/mesh/settings.c index 49521af8034..e7c6f3bed7f 100644 --- a/subsys/bluetooth/host/mesh/settings.c +++ b/subsys/bluetooth/host/mesh/settings.c @@ -69,7 +69,7 @@ struct hb_pub_val { indefinite:1; }; -/* Miscelaneous configuration server model states */ +/* Miscellaneous configuration server model states */ struct cfg_val { u8_t net_transmit; u8_t relay; diff --git a/subsys/bluetooth/host/mesh/transport.c b/subsys/bluetooth/host/mesh/transport.c index 3b08f31301b..fad60a0678d 100644 --- a/subsys/bluetooth/host/mesh/transport.c +++ b/subsys/bluetooth/host/mesh/transport.c @@ -195,7 +195,7 @@ static void seg_tx_reset(struct seg_tx *tx) tx->nack_count = 0U; if (atomic_test_and_clear_bit(bt_mesh.flags, BT_MESH_IVU_PENDING)) { - BT_DBG("Proceding with pending IV Update"); + BT_DBG("Proceeding with pending IV Update"); /* bt_mesh_net_iv_update() will re-enable the flag if this * wasn't the only transfer. */ diff --git a/subsys/bluetooth/services/dis.c b/subsys/bluetooth/services/dis.c index 3383504893b..65df95070ba 100644 --- a/subsys/bluetooth/services/dis.c +++ b/subsys/bluetooth/services/dis.c @@ -1,5 +1,5 @@ /** @file - * @brief GATT Device Infromation Service + * @brief GATT Device Information Service */ /* diff --git a/subsys/console/tty.c b/subsys/console/tty.c index c3ab0a75d0c..5f1767c76f7 100644 --- a/subsys/console/tty.c +++ b/subsys/console/tty.c @@ -169,7 +169,7 @@ static ssize_t tty_read_unbuf(struct tty_serial *tty, void *buf, size_t size) u8_t c; res = uart_poll_in(tty->uart_dev, &c); if (res <= -2) { - /* Error occured, best we can do is to return + /* Error occurred, best we can do is to return * accumulated data w/o error, or return error * directly if none. */ diff --git a/subsys/logging/log_core.c b/subsys/logging/log_core.c index 65a1756705e..d864852f92d 100644 --- a/subsys/logging/log_core.c +++ b/subsys/logging/log_core.c @@ -516,7 +516,7 @@ void log_panic(void) return; } - /* If panic happend early logger might not be initialized. + /* If panic happened early logger might not be initialized. * Forcing initialization of the logger and auto-starting backends. */ log_init(); diff --git a/subsys/net/ip/6lo.c b/subsys/net/ip/6lo.c index c524f500497..219f540109d 100644 --- a/subsys/net/ip/6lo.c +++ b/subsys/net/ip/6lo.c @@ -205,9 +205,9 @@ static inline u8_t compress_tfl(struct net_ipv6_hdr *ipv6, if (((ipv6->tcflow & 0x0F) == 0U) && (ipv6->flow == 0U)) { if (((ipv6->vtc & 0x0F) == 0U) && ((ipv6->tcflow & 0xF0) == 0U)) { - NET_DBG("Trafic class and Flow label elided"); + NET_DBG("Traffic class and Flow label elided"); - /* Trafic class and Flow label elided */ + /* Traffic class and Flow label elided */ IPHC[0] |= NET_6LO_IPHC_TF_11; } else { NET_DBG("Flow label elided"); diff --git a/subsys/net/ip/tcp.c b/subsys/net/ip/tcp.c index d60c749bcd0..0afb697892a 100644 --- a/subsys/net/ip/tcp.c +++ b/subsys/net/ip/tcp.c @@ -1101,7 +1101,7 @@ bool net_tcp_ack_received(struct net_context *ctx, u32_t ack) /* Last sequence number in this packet. */ last_seq = sys_get_be32(tcp_hdr->seq) + seq_len - 1; - /* Ack number should be strictly greater to acknowleged numbers + /* Ack number should be strictly greater to acknowledged numbers * below it. For example, ack no. 10 acknowledges all numbers up * to and including 9. */ diff --git a/subsys/net/l2/ethernet/ethernet.c b/subsys/net/l2/ethernet/ethernet.c index 0af2ef08c9a..f2c895f5cb6 100644 --- a/subsys/net/l2/ethernet/ethernet.c +++ b/subsys/net/l2/ethernet/ethernet.c @@ -598,7 +598,7 @@ static int ethernet_send(struct net_if *iface, struct net_pkt *pkt) } /* If the ll dst addr has not been set before, let's assume - * temporarly it's a broadcast one. When filling the header, + * temporarily it's a broadcast one. When filling the header, * it might detect this should be multicast and act accordingly. */ if (!net_pkt_lladdr_dst(pkt)->addr) { diff --git a/subsys/net/lib/coap/coap.c b/subsys/net/lib/coap/coap.c index 74004aa436d..d5e21c45ea5 100644 --- a/subsys/net/lib/coap/coap.c +++ b/subsys/net/lib/coap/coap.c @@ -550,7 +550,7 @@ int coap_packet_parse(struct coap_packet *cpkt, u8_t *data, u16_t len, cpkt->hdr_len = 0U; cpkt->delta = 0U; - /* Token lenghts 9-15 are reserved. */ + /* Token lengths 9-15 are reserved. */ tkl = cpkt->data[0] & 0x0f; if (tkl > 8) { return -EINVAL; diff --git a/subsys/net/lib/http/README_http_parser b/subsys/net/lib/http/README_http_parser index adc51dbb679..c2b214f1d25 100644 --- a/subsys/net/lib/http/README_http_parser +++ b/subsys/net/lib/http/README_http_parser @@ -9,6 +9,6 @@ https://github.com/nodejs/http-parser/releases/tag/v2.7.1 https://github.com/nodejs/http-parser/archive/v2.7.1.tar.gz NOTE: The portions which relate to URL parsing have been split out into -http_parser_url.c (orignially located in http_parser.c). +http_parser_url.c (originally located in http_parser.c). * "http-parser" is the project's name, "http_parser" is used in filenames. diff --git a/subsys/net/lib/http/http_parser.c b/subsys/net/lib/http/http_parser.c index 228ffb810b3..f9ddda549ef 100644 --- a/subsys/net/lib/http/http_parser.c +++ b/subsys/net/lib/http/http_parser.c @@ -1842,7 +1842,7 @@ reexecute: * returns 1, we * will interpret that as saying that this message has * no body. This - * is needed for the annoying case of recieving a + * is needed for the annoying case of receiving a * response to a HEAD * request. * diff --git a/subsys/net/lib/lwm2m/lwm2m_engine.c b/subsys/net/lib/lwm2m/lwm2m_engine.c index 37bd95a68a3..3eab945b2fc 100644 --- a/subsys/net/lib/lwm2m/lwm2m_engine.c +++ b/subsys/net/lib/lwm2m/lwm2m_engine.c @@ -301,7 +301,7 @@ get_block_ctx(const u8_t *token, u8_t tkl, struct block_context **ctx) if (block1_contexts[i].tkl == tkl && memcmp(token, block1_contexts[i].token, tkl) == 0) { *ctx = &block1_contexts[i]; - /* refresh timestmap */ + /* refresh timestamp */ (*ctx)->timestamp = k_uptime_get(); break; } diff --git a/subsys/net/lib/utils/addr_utils.c b/subsys/net/lib/utils/addr_utils.c index 8080c9dd902..51dce3783ea 100644 --- a/subsys/net/lib/utils/addr_utils.c +++ b/subsys/net/lib/utils/addr_utils.c @@ -24,7 +24,7 @@ const char *net_addr_str_find_port(const char *addr_str) return p + 1; } - /* IPv6 numeric address, and ':' preceeded by ']' */ + /* IPv6 numeric address, and ':' preceded by ']' */ if (p[-1] == ']') { return p + 1; } diff --git a/subsys/settings/src/settings_line.c b/subsys/settings/src/settings_line.c index 34d560459d9..95d3c68be51 100644 --- a/subsys/settings/src/settings_line.c +++ b/subsys/settings/src/settings_line.c @@ -312,7 +312,7 @@ int settings_line_val_read(off_t val_off, off_t off, char *out, size_t len_req, return rc; } - enc_buf[read_size] = 0; /* breaking guaranted */ + enc_buf[read_size] = 0; /* breaking guaranteed */ read_size = strlen(enc_buf); if (read_size == 0 || read_size % 4) { @@ -396,7 +396,7 @@ size_t settings_line_val_get_len(off_t val_off, void *read_cb_ctx) /** * @param line_loc offset of the settings line, expect that it is aligned to rbs physically. - * @param seek offset form the line begining. + * @param seek offset form the line beginning. * @retval 0 : read proper name * 1 : when read unproper name * -ERCODE for storage errors diff --git a/subsys/testsuite/include/test_asm_inline_gcc.h b/subsys/testsuite/include/test_asm_inline_gcc.h index 521b58e4a67..fdc1ca15007 100644 --- a/subsys/testsuite/include/test_asm_inline_gcc.h +++ b/subsys/testsuite/include/test_asm_inline_gcc.h @@ -33,7 +33,7 @@ static inline void timestamp_serialize(void) #include static inline void timestamp_serialize(void) { - /* isb is avaialble in all Cortex-M */ + /* isb is available in all Cortex-M */ __ISB(); } #elif defined(CONFIG_CPU_ARCV2) diff --git a/subsys/usb/class/netusb/function_ecm.c b/subsys/usb/class/netusb/function_ecm.c index 53f85e18675..99acf69fed5 100644 --- a/subsys/usb/class/netusb/function_ecm.c +++ b/subsys/usb/class/netusb/function_ecm.c @@ -286,7 +286,7 @@ static void ecm_read_cb(u8_t ep, int size, void *priv) } /* Linux considers by default that network usb device controllers are - * not able to handle Zero Lenght Packet (ZLP) and then generates + * not able to handle Zero Length Packet (ZLP) and then generates * a short packet containing a null byte. Handle by checking the IP * header length and dropping the extra byte. */ diff --git a/tests/benchmarks/latency_measure/src/test_asm_inline_gcc.h b/tests/benchmarks/latency_measure/src/test_asm_inline_gcc.h index 258a1324686..970790ea078 100644 --- a/tests/benchmarks/latency_measure/src/test_asm_inline_gcc.h +++ b/tests/benchmarks/latency_measure/src/test_asm_inline_gcc.h @@ -26,7 +26,7 @@ static inline void timestamp_serialize(void) #elif defined(CONFIG_CPU_CORTEX_M) static inline void timestamp_serialize(void) { - /* isb is avaialble in all Cortex-M */ + /* isb is available in all Cortex-M */ __asm__ __volatile__ ( "isb;\n\t" : diff --git a/tests/benchmarks/timing_info/src/userspace_bench.c b/tests/benchmarks/timing_info/src/userspace_bench.c index 35d15ec3589..425b7d7c852 100644 --- a/tests/benchmarks/timing_info/src/userspace_bench.c +++ b/tests/benchmarks/timing_info/src/userspace_bench.c @@ -88,7 +88,7 @@ void drop_to_user_mode_thread(void *p1, void *p2, void *p3) void drop_to_user_mode(void) { #ifdef SysTick - /* Reset the counter so that a interrupt doesn't happen inbetween + /* Reset the counter so that a interrupt doesn't happen between * the benchmark test */ SysTick->VAL = 0; diff --git a/tests/bluetooth/tester/src/gatt.c b/tests/bluetooth/tester/src/gatt.c index a4d4b2c8e9b..67af56cecd0 100644 --- a/tests/bluetooth/tester/src/gatt.c +++ b/tests/bluetooth/tester/src/gatt.c @@ -441,7 +441,7 @@ static void add_characteristic(u8_t *data, u16_t len) goto fail; } - /* characterisic must be added only sequential */ + /* characteristic must be added only sequential */ if (cmd->svc_id) { goto fail; } diff --git a/tests/kernel/critical/src/main.c b/tests/kernel/critical/src/main.c index 372f931fa1a..c14a6d3d681 100644 --- a/tests/kernel/critical/src/main.c +++ b/tests/kernel/critical/src/main.c @@ -154,7 +154,7 @@ void regression_thread(void *arg1, void *arg2, void *arg3) ARG_UNUSED(arg2); ARG_UNUSED(arg3); - k_sem_give(&ALT_SEM); /* Activate alternate_tast() */ + k_sem_give(&ALT_SEM); /* Activate alternate_thread() */ ncalls = critical_loop(ncalls); diff --git a/tests/kernel/device/CMakeLists.txt b/tests/kernel/device/CMakeLists.txt index 5bd513fbfd4..3ce85d04dc3 100644 --- a/tests/kernel/device/CMakeLists.txt +++ b/tests/kernel/device/CMakeLists.txt @@ -10,7 +10,7 @@ target_sources(app PRIVATE ${app_sources}) # device_get_binding() compares pointers first before doing strcmp(). # However, enabling coverage forces -O0 to disable any compiler # optimizations. There would be multiple copies of the same string, -# and the code pathing doing pointer comparsion would not be tested +# and the code pathing doing pointer comparison would not be tested # at all. So add this flag to merge string constants such that # the pointer comparison would be exercised. zephyr_cc_option_ifdef(CONFIG_COVERAGE -fmerge-constants) diff --git a/tests/kernel/mem_protect/mem_protect/src/kobject.c b/tests/kernel/mem_protect/mem_protect/src/kobject.c index c06a0b09970..e34e15dd278 100644 --- a/tests/kernel/mem_protect/mem_protect/src/kobject.c +++ b/tests/kernel/mem_protect/mem_protect/src/kobject.c @@ -377,7 +377,7 @@ void kobject_user_2_test9(void *p1, void *p2, void *p3) USERSPACE_BARRIER; k_sem_take(&kobject_sem, K_FOREVER); - zassert_unreachable("Failed to clear premission on a deleted thread"); + zassert_unreachable("Failed to clear permission on a deleted thread"); } /** diff --git a/tests/kernel/sched/preempt/src/main.c b/tests/kernel/sched/preempt/src/main.c index f6fee466901..df65df964d6 100644 --- a/tests/kernel/sched/preempt/src/main.c +++ b/tests/kernel/sched/preempt/src/main.c @@ -38,7 +38,7 @@ /* Two threads at each priority (to test the case of waking up a * thread of equal priority). But only one metairq, as it isn't - * technically legal to have more than one at the smae priority. + * technically legal to have more than one at the same priority. */ const enum { METAIRQ, COOP, PREEMPTIBLE } worker_priorities[] = { METAIRQ, diff --git a/tests/kernel/semaphore/semaphore/src/main.c b/tests/kernel/semaphore/semaphore/src/main.c index ba0f25a5222..d670f1e3534 100644 --- a/tests/kernel/semaphore/semaphore/src/main.c +++ b/tests/kernel/semaphore/semaphore/src/main.c @@ -593,7 +593,7 @@ void test_sem_measure_timeout_from_thread(void) k_sem_reset(&simple_sem); k_sem_reset(&multiple_thread_sem); - /* Give a semaphore from a thread and calcualte the time taken.*/ + /* Give a semaphore from a thread and calculate the time taken.*/ k_thread_create(&sem_tid, stack_1, STACK_SIZE, test_sem_measure_timeout_from_thread_helper, NULL, NULL, NULL, diff --git a/tests/kernel/threads/thread_apis/src/test_threads_cancel_abort.c b/tests/kernel/threads/thread_apis/src/test_threads_cancel_abort.c index ff20a02b060..0eaf5c1fbb9 100644 --- a/tests/kernel/threads/thread_apis/src/test_threads_cancel_abort.c +++ b/tests/kernel/threads/thread_apis/src/test_threads_cancel_abort.c @@ -102,7 +102,7 @@ void test_threads_abort_repeat(void) k_thread_abort(tid); k_sleep(100); k_thread_abort(tid); - /* If no fault occured till now. The test case passed. */ + /* If no fault occurred till now. The test case passed. */ ztest_test_pass(); } diff --git a/tests/kernel/timer/timer_api/src/main.c b/tests/kernel/timer/timer_api/src/main.c index 633a853136f..e6ded0170f1 100644 --- a/tests/kernel/timer/timer_api/src/main.c +++ b/tests/kernel/timer/timer_api/src/main.c @@ -244,7 +244,7 @@ void test_timer_periodicity(void) /** TESTPOINT: set duration 0 */ k_timer_start(&periodicity_timer, 0, PERIOD); - /* clear the expiration that would have happenned due to + /* clear the expiration that would have happened due to * whatever duration that was set. Since timer is likely * to fire before call to k_timer_status_sync(), we have * to synchronize twice to ensure that the timestamp will diff --git a/tests/lib/json/src/main.c b/tests/lib/json/src/main.c index 98c3b2cf4f2..e35026623bb 100644 --- a/tests/lib/json/src/main.c +++ b/tests/lib/json/src/main.c @@ -450,7 +450,7 @@ static void test_json_escape_one(void) ret = json_escape(buf, &len, sizeof(buf)); zassert_equal(ret, 0, - "Escaping one character succeded"); + "Escaping one character succeeded"); zassert_equal(len, sizeof(buf) - 1, "Escaping one character length is correct"); zassert_true(!strcmp(buf, expected), diff --git a/tests/net/lib/coap/src/main.c b/tests/net/lib/coap/src/main.c index d05d4ab8e8c..52184ad8fc1 100644 --- a/tests/net/lib/coap/src/main.c +++ b/tests/net/lib/coap/src/main.c @@ -1462,7 +1462,7 @@ static const struct { } tests[] = { { "Build empty PDU test", test_build_empty_pdu, }, { "Build simple PDU test", test_build_simple_pdu, }, - { "Parse emtpy PDU test", test_parse_empty_pdu, }, + { "Parse empty PDU test", test_parse_empty_pdu, }, { "Parse empty PDU test no marker", test_parse_empty_pdu_1, }, { "Parse simple PDU test", test_parse_simple_pdu, }, { "Parse malformed option", test_parse_malformed_opt }, diff --git a/tests/net/lib/http_header_fields/src/main.c b/tests/net/lib/http_header_fields/src/main.c index 49117b093b4..2bbf4ab19a7 100644 --- a/tests/net/lib/http_header_fields/src/main.c +++ b/tests/net/lib/http_header_fields/src/main.c @@ -462,7 +462,7 @@ const struct url_test url_tests[] = { }, { - .name = "proxy emtpy hostname", + .name = "proxy empty hostname", .url = "http:///fo", .rv = 1 /* s_dead */ }, diff --git a/tests/net/net_pkt/src/main.c b/tests/net/net_pkt/src/main.c index 09cdb845e32..e459844ab97 100644 --- a/tests/net/net_pkt/src/main.c +++ b/tests/net/net_pkt/src/main.c @@ -294,7 +294,7 @@ static void test_net_pkt_basics_of_rw(void) /* Sometimes you might want to advance in the buffer without caring * what's written there since you'll eventually come back for that. * net_pkt_skip() is used for it. - * Note: usally you will not have to use that function a lot yourself. + * Note: usually you will not have to use that function a lot yourself. */ ret = net_pkt_skip(pkt, 20); zassert_true(ret == 0, "Pkt skip failed"); diff --git a/tests/subsys/fs/nffs_fs_api/common/test_rename.c b/tests/subsys/fs/nffs_fs_api/common/test_rename.c index 5e0ffb3006b..cef597a049d 100644 --- a/tests/subsys/fs/nffs_fs_api/common/test_rename.c +++ b/tests/subsys/fs/nffs_fs_api/common/test_rename.c @@ -73,7 +73,7 @@ void test_rename(void) /* Don't allow a directory to be moved into a descendent directory. */ rc = nffs_path_rename("/mydir", "/mydir/leafdir/a"); - zassert_equal(rc, FS_EINVAL, "directory moved to decendent dir"); + zassert_equal(rc, FS_EINVAL, "directory moved to descendant dir"); rc = nffs_path_rename("/mydir", "/mydir2"); zassert_equal(rc, 0, "cannot rename directory"); diff --git a/tests/subsys/fs/nffs_fs_api/performance/src/main.c b/tests/subsys/fs/nffs_fs_api/performance/src/main.c index d3f3528619b..85bed12875b 100644 --- a/tests/subsys/fs/nffs_fs_api/performance/src/main.c +++ b/tests/subsys/fs/nffs_fs_api/performance/src/main.c @@ -9,10 +9,10 @@ void test_main(void) { - ztest_test_suite(nffs_fs_performace_test, + ztest_test_suite(nffs_fs_performance_test, ztest_unit_test_setup_teardown(test_fs_mount, test_setup, test_teardown), ztest_unit_test_setup_teardown(test_performance, test_setup, test_teardown)); - ztest_run_test_suite(nffs_fs_performace_test); + ztest_run_test_suite(nffs_fs_performance_test); } diff --git a/tests/subsys/settings/src/settings_enc.c b/tests/subsys/settings/src/settings_enc.c index 9f85d49e083..016be78fec7 100644 --- a/tests/subsys/settings/src/settings_enc.c +++ b/tests/subsys/settings/src/settings_enc.c @@ -14,7 +14,7 @@ static u8_t test_rwbs = 1U; static int write_handler(void *ctx, off_t off, char const *buf, size_t len) { - zassert_equal(ctx, (void *)ENC_CTX_VAL, "bad write calback context\n"); + zassert_equal(ctx, (void *)ENC_CTX_VAL, "bad write callback context\n"); if (off % test_rwbs || len % test_rwbs) { return -EIO; @@ -74,7 +74,7 @@ static int read_handle(void *ctx, off_t off, char *buf, size_t *len) { int r_len; - zassert_equal(ctx, (void *)ENC_CTX_VAL, "bad write calback context\n"); + zassert_equal(ctx, (void *)ENC_CTX_VAL, "bad write callback context\n"); if (off % test_rwbs || *len % test_rwbs) { return -EIO;