diff --git a/.github/labeler.yml b/.github/labeler.yml index 9092d1a07cd..d6c63aeb9b4 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -70,7 +70,7 @@ - "arch/xtensa/**/*" - "include/arch/xtensa/**/*" "area: RISCV": - - "arch/risv/**/*" + - "arch/riscv/**/*" - "include/arch/riscv/**/*" "area: ARC": - "arch/arc/**/*" diff --git a/CMakeLists.txt b/CMakeLists.txt index 881b52dba96..d754ff98eac 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -271,7 +271,7 @@ zephyr_compile_options( # ToDo: Remember to get feedback from Oticon on this, as they might use the `ASM_BASE_FLAG` since this is done this way. zephyr_compile_options($<$:$>) -# @Intent: Enforce standard integer type correspondance to match Zephyr usage. +# @Intent: Enforce standard integer type correspondence to match Zephyr usage. # (must be after compiler specific flags) if(NOT CONFIG_ARCH_POSIX) # `zephyr_stdint.h` is not included for the POSIX (native) arch because it diff --git a/arch/Kconfig b/arch/Kconfig index ea5a7bf6ec2..6a5dcdc989d 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -799,7 +799,7 @@ choice CACHE_TYPE config HAS_ARCH_CACHE bool "Integrated cache controller" help - "Integrade on-core cache controller" + "Integrated on-core cache controller" config HAS_EXTERNAL_CACHE bool "External cache controller" diff --git a/arch/arc/core/irq_manage.c b/arch/arc/core/irq_manage.c index 6d8d81a99df..4924f24fe70 100644 --- a/arch/arc/core/irq_manage.c +++ b/arch/arc/core/irq_manage.c @@ -135,7 +135,7 @@ void z_irq_priority_set(unsigned int irq, unsigned int prio, uint32_t flags) __ASSERT(prio < CONFIG_NUM_IRQ_PRIO_LEVELS, "invalid priority %d for irq %d", prio, irq); -/* 0 -> CONFIG_NUM_IRQ_PRIO_LEVELS allocted to secure world +/* 0 -> CONFIG_NUM_IRQ_PRIO_LEVELS allocated to secure world * left prio levels allocated to normal world */ #if defined(CONFIG_ARC_SECURE_FIRMWARE) diff --git a/arch/arm/core/aarch32/userspace.S b/arch/arm/core/aarch32/userspace.S index eea1db9ee8e..e1556a93eaf 100644 --- a/arch/arm/core/aarch32/userspace.S +++ b/arch/arm/core/aarch32/userspace.S @@ -245,7 +245,7 @@ SECTION_FUNC(TEXT,z_arm_userspace_enter) mov r0, lr #if defined(CONFIG_ARMV7_R) - /* change processor mode to unprivileged, with all interrrupts enabled. */ + /* change processor mode to unprivileged, with all interrupts enabled. */ msr CPSR_c, #MODE_USR #else /* change processor mode to unprivileged */ diff --git a/arch/posix/core/swap.c b/arch/posix/core/swap.c index fd85f69c647..37655a8ce65 100644 --- a/arch/posix/core/swap.c +++ b/arch/posix/core/swap.c @@ -23,7 +23,7 @@ int arch_swap(unsigned int key) { /* - * struct k_thread * _current is the currently runnig thread + * struct k_thread * _current is the currently running thread * struct k_thread * _kernel.ready_q.cache contains the next thread to * run (cannot be NULL) * diff --git a/arch/riscv/core/pmp/core_pmp.c b/arch/riscv/core/pmp/core_pmp.c index f1879991880..22d9fe7d499 100644 --- a/arch/riscv/core/pmp/core_pmp.c +++ b/arch/riscv/core/pmp/core_pmp.c @@ -271,7 +271,7 @@ static void csr_write_enum(int pmp_csr_enum, ulong_t value) * * Configure a memory region to be secured by one of the 16 PMP entries. * - * @param index Number of the targeted PMP entrie (0 to 15 only). + * @param index Number of the targeted PMP entry (0 to 15 only). * @param cfg_val Configuration value (cf datasheet or defined flags) * @param addr_val Address register value * diff --git a/arch/riscv/core/thread.c b/arch/riscv/core/thread.c index cf01780f5dc..2529211df6b 100644 --- a/arch/riscv/core/thread.c +++ b/arch/riscv/core/thread.c @@ -55,7 +55,7 @@ void arch_new_thread(struct k_thread *thread, k_thread_stack_t *stack, * Following the RISC-V architecture, * the MSTATUS register (used to globally enable/disable interrupt), * as well as the MEPC register (used to by the core to save the - * value of the program counter at which an interrupt/exception occcurs) + * value of the program counter at which an interrupt/exception occurs) * need to be saved on the stack, upon an interrupt/exception * and restored prior to returning from the interrupt/exception. * This shall allow to handle nested interrupts. diff --git a/arch/sparc/core/fatal.c b/arch/sparc/core/fatal.c index fb2b24a6204..ae1e3204373 100644 --- a/arch/sparc/core/fatal.c +++ b/arch/sparc/core/fatal.c @@ -53,7 +53,7 @@ LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL); * * HOW TO USE * - * When invesetigating a crashed program, the first things to look + * When investigating a crashed program, the first things to look * at is typically the tt, pc and sp (o6). You can lookup the pc * in the assembly list file or use addr2line. In the listing, the * register values in the table above can be used. The linker map @@ -68,7 +68,7 @@ LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL); * g7 is the TLS pointer if enabled. A SAVE instruction decreases * the current window pointer (psr bits 4..0) which results in %o * registers becoming %i registers and a new set of %l registers - * appear. RESTORE does the oppposite. + * appear. RESTORE does the opposite. */ @@ -85,7 +85,7 @@ LOG_MODULE_DECLARE(os, CONFIG_KERNEL_LOG_LEVEL); * * When printing the registers, we get the "local" and "in" * registers from the ABI stack save area, while the "out" and - * "global" registares are taken from the exception stack frame + * "global" registers are taken from the exception stack frame * generated in the fault trap entry. */ struct savearea { diff --git a/arch/x86/core/userspace.c b/arch/x86/core/userspace.c index 9064e691d28..1b950ed295b 100644 --- a/arch/x86/core/userspace.c +++ b/arch/x86/core/userspace.c @@ -23,7 +23,7 @@ * we go through z_x86_trampoline_to_user. * * We don't need to update the privilege mode initial stack pointer either, - * privilege elevation always lands on the trampoline stack and the irq/sycall + * privilege elevation always lands on the trampoline stack and the irq/syscall * code has to manually transition off of it to the appropriate stack after * switching page tables. */ diff --git a/arch/x86/core/x86_mmu.c b/arch/x86/core/x86_mmu.c index 27dddd5ee8e..4b9e570fea5 100644 --- a/arch/x86/core/x86_mmu.c +++ b/arch/x86/core/x86_mmu.c @@ -977,7 +977,7 @@ static inline pentry_t pte_atomic_update(pentry_t *pte, pentry_t update_val, * bits and return the previous PTE value. * * Common mask values: - * MASK_ALL - Update all PTE bits. Exitsing state totally discarded. + * MASK_ALL - Update all PTE bits. Existing state totally discarded. * MASK_PERM - Only update permission bits. All other bits and physical * mapping preserved. * @@ -1147,7 +1147,7 @@ out: * @param size Size of the physical region to map * @param entry_flags Desired state of non-address PTE bits covered by mask, * ignored if OPTION_RESET - * @param mask What bits in the PTE to actually modifiy; unset bits will + * @param mask What bits in the PTE to actually modify; unset bits will * be preserved. Ignored if OPTION_RESET. * @param options Control options. Do not set OPTION_USER here. OPTION_FLUSH * will trigger a TLB shootdown after all tables are updated. @@ -1334,7 +1334,7 @@ static void identity_map_remove(uint32_t level) #endif /* Invoked to remove the identity mappings in the page tables, - * they were only needed to tranisition the instruction pointer at early boot + * they were only needed to transition the instruction pointer at early boot */ __boot_func void z_x86_mmu_init(void) diff --git a/arch/xtensa/core/gdbstub.c b/arch/xtensa/core/gdbstub.c index 4031af726a2..aa925f7407f 100644 --- a/arch/xtensa/core/gdbstub.c +++ b/arch/xtensa/core/gdbstub.c @@ -981,7 +981,7 @@ void arch_gdb_init(void) * converting BREAK.N into BREAK which is bigger. * This is needed as the GDB stub will need to change * the program counter past this instruction to - * continue working. Or else SoC would repeartedly + * continue working. Or else SoC would repeatedly * raise debug exception on this instruction and * won't go forward. */ diff --git a/boards/arc/emsdp/support/openocd.cfg b/boards/arc/emsdp/support/openocd.cfg index a895fe8776c..eefd6dfbf03 100644 --- a/boards/arc/emsdp/support/openocd.cfg +++ b/boards/arc/emsdp/support/openocd.cfg @@ -7,7 +7,7 @@ # # Configure JTAG cable -# EM SDP has built-in FT2232 chip, which is similiar to Digilent HS-1. +# EM SDP has built-in FT2232 chip, which is similar to Digilent HS-1. adapter driver ftdi # Only specify FTDI serial number if it is specified via diff --git a/boards/arc/hsdk/support/openocd-2-cores.cfg b/boards/arc/hsdk/support/openocd-2-cores.cfg index 7e1c6a6ba54..133fb511fe0 100644 --- a/boards/arc/hsdk/support/openocd-2-cores.cfg +++ b/boards/arc/hsdk/support/openocd-2-cores.cfg @@ -4,7 +4,7 @@ # Configure JTAG cable # SDP has built-in FT2232 chip, which is similar to Digilent HS-1, except that -# it uses channgel B for JTAG, instead of channel A. +# it uses channel B for JTAG, instead of channel A. adapter driver ftdi # Only specify FTDI serial number if it is specified via diff --git a/boards/arc/hsdk/support/openocd.cfg b/boards/arc/hsdk/support/openocd.cfg index 3c9f8862bb5..9f11b89d8fa 100644 --- a/boards/arc/hsdk/support/openocd.cfg +++ b/boards/arc/hsdk/support/openocd.cfg @@ -4,7 +4,7 @@ # Configure JTAG cable # SDP has built-in FT2232 chip, which is similar to Digilent HS-1, except that -# it uses channgel B for JTAG, instead of channel A. +# it uses channel B for JTAG, instead of channel A. adapter driver ftdi # Only specify FTDI serial number if it is specified via diff --git a/boards/arc/qemu_arc/doc/index.rst b/boards/arc/qemu_arc/doc/index.rst index 673ef8125d2..683332bdd59 100644 --- a/boards/arc/qemu_arc/doc/index.rst +++ b/boards/arc/qemu_arc/doc/index.rst @@ -80,7 +80,7 @@ QEMU, and display the following console output: *** Booting Zephyr OS build zephyr-v2.2.0-2486-g7dbfcf4bab57 *** threadA: Hello World from qemu_arc! - threudB: Hello World from qemu_arc! + threadB: Hello World from qemu_arc! threadA: Hello World from qemu_arc! threadB: Hello World from qemu_arc! diff --git a/boards/arm/96b_argonkey/doc/index.rst b/boards/arm/96b_argonkey/doc/index.rst index 4ad71ef4188..98a67b5b674 100644 --- a/boards/arm/96b_argonkey/doc/index.rst +++ b/boards/arm/96b_argonkey/doc/index.rst @@ -37,7 +37,7 @@ Hardware - Temperature/Pressure: STMicro LPS22HB - ALS: Intersil ISL29034 - Proximity: STMicro VL53L0X - - Acclerometer/Gyroscope: STMicro LSM6DSL + - Accelerometer/Gyroscope: STMicro LSM6DSL - Geomagnetic: STMicro LIS2MDL - AMR Hall sensor: MRMS501A - Microphone: STMicro MP34DT05 diff --git a/boards/arm/96b_meerkat96/doc/index.rst b/boards/arm/96b_meerkat96/doc/index.rst index e77f55ce75d..d060076842c 100644 --- a/boards/arm/96b_meerkat96/doc/index.rst +++ b/boards/arm/96b_meerkat96/doc/index.rst @@ -149,7 +149,7 @@ the remaining are not used/tested. Programming and Debugging ************************* -The 96Boards Meerakat96 board doesn't have QSPI flash for the M4 and it needs +The 96Boards Meerkat96 board doesn't have QSPI flash for the M4 and it needs to be started by the A7 core. The A7 core is responsible to load the M4 binary application into the RAM, put the M4 in reset, set the M4 Program Counter and Stack Pointer, and get the M4 out of reset. The A7 can perform these steps at diff --git a/boards/arm/96b_neonkey/doc/index.rst b/boards/arm/96b_neonkey/doc/index.rst index 46ad82c0981..d530f6916eb 100644 --- a/boards/arm/96b_neonkey/doc/index.rst +++ b/boards/arm/96b_neonkey/doc/index.rst @@ -37,7 +37,7 @@ Hardware - Pressure: BMP280 - ALS/Proximity: RPR-0521RS - Geomagnetic: BMM150 - - Acclerometer/Gyroscope: BMI160 + - Accelerometer/Gyroscope: BMI160 - AMR Hall sensor: MRMS501A - Microphone: SPK0415HM4H-B diff --git a/boards/arm/96b_stm32_sensor_mez/doc/index.rst b/boards/arm/96b_stm32_sensor_mez/doc/index.rst index 5d8002e71de..5702cbd5134 100644 --- a/boards/arm/96b_stm32_sensor_mez/doc/index.rst +++ b/boards/arm/96b_stm32_sensor_mez/doc/index.rst @@ -32,7 +32,7 @@ Hardware - On board sensors: - Temperature/Pressure: STMicro LPS22HB - - Acclerometer/Gyroscope: STMicro LSM6DS3H + - Accelerometer/Gyroscope: STMicro LSM6DS3H - Magnetometer: STMicro LIS3MDL - Microphone: STMicro MP34DT01 diff --git a/boards/arm/arduino_nano_33_ble/doc/index.rst b/boards/arm/arduino_nano_33_ble/doc/index.rst index 919b8d0e590..9aad1cac976 100644 --- a/boards/arm/arduino_nano_33_ble/doc/index.rst +++ b/boards/arm/arduino_nano_33_ble/doc/index.rst @@ -71,11 +71,11 @@ Connections and IOs The `schematic`_ will tell you everything you need to know about the pins. -A convinience header mapping the Arduino pin names to their +A convenience header mapping the Arduino pin names to their Zephyr pin numbers can be found in :code:`arduino_nano_33_ble_pins.h`, if you link against the :code:`arduino_nano_33_ble_pins` CMake library. -For your convience, two Kconfig options are added: +For your convenience, two Kconfig options are added: #. :code:`BOARD_ARDUINO_NANO_33_BLE_INIT_SENSORS`: This configuration option enables the internal I2C sensors. diff --git a/boards/arm/arty/doc/index.rst b/boards/arm/arty/doc/index.rst index dc735f272e8..57ca26e03d4 100644 --- a/boards/arm/arty/doc/index.rst +++ b/boards/arm/arty/doc/index.rst @@ -33,7 +33,7 @@ DesignStart FPGA`_ Xilinx edition reference designs from ARM. Zephyr supports both the Cortex-M1 and the Cortex-M3 reference designs. The Cortex-M1 design targets either the Spartan-7 or Artix-7 based Arty boards, whereas the Cortex-M3 design only targets the Artix-7 based boards. Zephyr only supports the Artix-7 -targetted designs for now. +targeted designs for now. For more information about the ARM Cortex-M1/M3 DesignStart FPGA, see the following websites: diff --git a/boards/arm/cc3220sf_launchxl/pinmux.c b/boards/arm/cc3220sf_launchxl/pinmux.c index 80ffb514204..f6e9c94b599 100644 --- a/boards/arm/cc3220sf_launchxl/pinmux.c +++ b/boards/arm/cc3220sf_launchxl/pinmux.c @@ -78,7 +78,7 @@ * driverlib pin defines. For example, I2C_CC32XX_PIN_01_I2C_SCL & 0xff = 0, * which equals PIN_01 in driverlib pin.h. By matching the PIN_xx defines in * driverlib pin.h, we can pass the pin directly to the driverlib functions. - * The upper 8 bits of the macro correspond to the pin mux confg mode + * The upper 8 bits of the macro correspond to the pin mux config mode * value for the pin to operate in the I2C mode. For example, pin 1 is * configured with mode 1 to operate as I2C_SCL. */ diff --git a/boards/arm/cc3235sf_launchxl/pinmux.c b/boards/arm/cc3235sf_launchxl/pinmux.c index 032a42fb01f..7cbb307603b 100644 --- a/boards/arm/cc3235sf_launchxl/pinmux.c +++ b/boards/arm/cc3235sf_launchxl/pinmux.c @@ -53,7 +53,7 @@ * driverlib pin defines. For example, I2C_CC32XX_PIN_01_I2C_SCL & 0xff = 0, * which equals PIN_01 in driverlib pin.h. By matching the PIN_xx defines in * driverlib pin.h, we can pass the pin directly to the driverlib functions. - * The upper 8 bits of the macro correspond to the pin mux confg mode + * The upper 8 bits of the macro correspond to the pin mux config mode * value for the pin to operate in the I2C mode. For example, pin 1 is * configured with mode 1 to operate as I2C_SCL. */ diff --git a/boards/arm/contextualelectronics_abc/doc/index.rst b/boards/arm/contextualelectronics_abc/doc/index.rst index cc2c588d59e..b4abcb68632 100644 --- a/boards/arm/contextualelectronics_abc/doc/index.rst +++ b/boards/arm/contextualelectronics_abc/doc/index.rst @@ -1,12 +1,12 @@ .. _contextualelectronics_abc: -Contextual Eletronics Advanced BLE Cell -####################################### +Contextual Electronics Advanced BLE Cell +######################################## Overview ******** -The Contextual Eletronics ABC (PCA10056) hardware provides support for the +The Contextual Electronics ABC (PCA10056) hardware provides support for the Nordic Semiconductor nRF52840 ARM Cortex-M4F CPU and the following devices: * CLOCK diff --git a/boards/arm/cy8ckit_062_ble/doc/index.rst b/boards/arm/cy8ckit_062_ble/doc/index.rst index 3e07a8780ee..ecf49b4e26d 100644 --- a/boards/arm/cy8ckit_062_ble/doc/index.rst +++ b/boards/arm/cy8ckit_062_ble/doc/index.rst @@ -246,10 +246,10 @@ are only possible after rework the board and using the revision 1.0.0. :goals: build :compact: -#. The diferences from version 0.0.0 to 1.0.0: +#. The differences from version 0.0.0 to 1.0.0: +-------------+------------+------------+ -| Connecion | 0.0.0 | 1.0.0 | +| Connection | 0.0.0 | 1.0.0 | +=============+============+============+ | CDC-COM RX | P5_0 | P9_0 | +-------------+------------+------------+ diff --git a/boards/arm/efm32wg_stk3800/doc/index.rst b/boards/arm/efm32wg_stk3800/doc/index.rst index 19f4b73f83f..b947c92f656 100644 --- a/boards/arm/efm32wg_stk3800/doc/index.rst +++ b/boards/arm/efm32wg_stk3800/doc/index.rst @@ -41,7 +41,7 @@ For more information about the EFM32WG SoC and EFM32WG-STK3800 board: Supported Features ================== -The efm32wg_stk3800oard configuration supports the following hardware features: +The efm32wg_stk3800 board configuration supports the following hardware features: +-----------+------------+-------------------------------------+ | Interface | Controller | Driver/Component | diff --git a/boards/arm/frdm_k64f/doc/index.rst b/boards/arm/frdm_k64f/doc/index.rst index 5e6372ba0cc..52904337c14 100644 --- a/boards/arm/frdm_k64f/doc/index.rst +++ b/boards/arm/frdm_k64f/doc/index.rst @@ -215,7 +215,7 @@ CAN === The FRDM-K64F board does not come with an onboard CAN transceiver. In order to -use the CAN bus, an external CAN bus tranceiver must be connected to ``PTB18`` +use the CAN bus, an external CAN bus transceiver must be connected to ``PTB18`` (``CAN0_TX``) and ``PTB19`` (``CAN0_RX``). Programming and Debugging diff --git a/boards/arm/mec15xxevb_assy6853/doc/index.rst b/boards/arm/mec15xxevb_assy6853/doc/index.rst index a78325f9c4e..cc15fc92151 100644 --- a/boards/arm/mec15xxevb_assy6853/doc/index.rst +++ b/boards/arm/mec15xxevb_assy6853/doc/index.rst @@ -9,7 +9,7 @@ Overview The MEC15xxEVB_ASSY6853 kit is a future development platform to evaluate the Microchip MEC15XX series microcontrollers. This board needs to be mated with part number MEC1501 144WFBA SOLDER DC ASSY 6860(cpu board) in order to operate. -The MEC152x has superceded the MEC1501 in production. MEC152x is identical to +The MEC152x has superseded the MEC1501 in production. MEC152x is identical to MEC150x except for an enhanced Boot-ROM SPI loader. The SPI image format has been updated requiring a new SPI image tool. MEC1501 and MEC152x SPI image formats are not compatible with each other. Evaluation and cpu boards are diff --git a/boards/arm/mikroe_clicker_2/doc/mikroe_clicker_2.rst b/boards/arm/mikroe_clicker_2/doc/mikroe_clicker_2.rst index bb3bf5aebd0..76ee5d81867 100644 --- a/boards/arm/mikroe_clicker_2/doc/mikroe_clicker_2.rst +++ b/boards/arm/mikroe_clicker_2/doc/mikroe_clicker_2.rst @@ -56,7 +56,7 @@ Other hardware features have not been enabled yet for this board. The default configuration can be found in the defconfig file: - ``boards/arm/mikroe_clicker_2/mikroe_cliker_2_defconfig`` + ``boards/arm/mikroe_clicker_2/mikroe_clicker_2_defconfig`` Connections and IOs =================== diff --git a/boards/arm/mm_feather/doc/index.rst b/boards/arm/mm_feather/doc/index.rst index ef70ee0a22c..ba1d2854321 100644 --- a/boards/arm/mm_feather/doc/index.rst +++ b/boards/arm/mm_feather/doc/index.rst @@ -198,7 +198,7 @@ Flashing Here is an example for the :ref:`hello_world` application. -Connect a DAPLink debuger from your PC to corresponding SWD pins of SwiftIO Feather. +Connect a DAPLink debugger from your PC to corresponding SWD pins of SwiftIO Feather. .. zephyr-app-commands:: :zephyr-app: samples/hello_world diff --git a/boards/arm/nrf51_ble400/doc/index.rst b/boards/arm/nrf51_ble400/doc/index.rst index a6d44aac36d..6f4e24401cd 100644 --- a/boards/arm/nrf51_ble400/doc/index.rst +++ b/boards/arm/nrf51_ble400/doc/index.rst @@ -72,7 +72,7 @@ Motherboard 3. I2C interface 4. SPI interface 5. 5V/3.3V power input/output: usually used as power output, also common-grounding with other user board -6. USB connector: USB TO UART via onboard convertor CP2102 +6. USB connector: USB TO UART via onboard converter CP2102 7. Debugging interface 8. UART interface 9. Battery holder diff --git a/boards/arm/nrf52840_mdk_usb_dongle/Kconfig.defconfig b/boards/arm/nrf52840_mdk_usb_dongle/Kconfig.defconfig index 519f2237aee..7fb8a5fde94 100644 --- a/boards/arm/nrf52840_mdk_usb_dongle/Kconfig.defconfig +++ b/boards/arm/nrf52840_mdk_usb_dongle/Kconfig.defconfig @@ -14,8 +14,8 @@ config BOARD # To let the nRF5 bootloader load an application, the application # must be linked after Nordic MBR, that is factory-programmed on the board. -# Nordic nRF5 booatloader exists outside of the partitions specified in the -# DTS file, so we manually override FLASH_LOAD_OFFEST to link the application +# Nordic nRF5 bootloader exists outside of the partitions specified in the +# DTS file, so we manually override FLASH_LOAD_OFFSET to link the application # correctly, after Nordic MBR. # When building MCUBoot, MCUBoot itself will select USE_DT_CODE_PARTITION diff --git a/boards/arm/nucleo_g0b1re/doc/index.rst b/boards/arm/nucleo_g0b1re/doc/index.rst index fd54c72e548..f8b801e70fb 100644 --- a/boards/arm/nucleo_g0b1re/doc/index.rst +++ b/boards/arm/nucleo_g0b1re/doc/index.rst @@ -63,7 +63,7 @@ Nucleo G0B1RE provides the following hardware components: - Tamper Pins(3) - 12-bit ADC with 16 channels - 12-bit DAC with 2 channels(2) -- Analog Comperator(3) +- Analog Comparator(3) - 12-channel DMA diff --git a/boards/arm/nucleo_h723zg/support/openocd.cfg b/boards/arm/nucleo_h723zg/support/openocd.cfg index fa8097598db..0764910b73f 100644 --- a/boards/arm/nucleo_h723zg/support/openocd.cfg +++ b/boards/arm/nucleo_h723zg/support/openocd.cfg @@ -1,4 +1,4 @@ -# STM32H745ZI Nucleo board OpenOCD ST-LLINK V3 configuration +# STM32H745ZI Nucleo board OpenOCD ST-LINK V3 configuration # # Copyright (c) 2020 Alexander Kozhinov # SPDX-License-Identifier: Apache-2.0 @@ -13,7 +13,7 @@ set BOARDNAME NUCLEO-H723ZG source [find target/stm32h7x.cfg] -# Use connect_assert_srst here to be able to programm +# Use connect_assert_srst here to be able to program # even when core is in sleep mode reset_config srst_only srst_nogate connect_assert_srst diff --git a/boards/arm/nucleo_h745zi_q/support/openocd.cfg b/boards/arm/nucleo_h745zi_q/support/openocd.cfg index 391d0d917a1..ce4836e9c82 100644 --- a/boards/arm/nucleo_h745zi_q/support/openocd.cfg +++ b/boards/arm/nucleo_h745zi_q/support/openocd.cfg @@ -6,7 +6,7 @@ source [find board/st_nucleo_h745zi.cfg] -# Use connect_assert_srst here to be able to programm +# Use connect_assert_srst here to be able to program # even when core is in sleep mode reset_config srst_only srst_nogate connect_assert_srst diff --git a/boards/arm/nucleo_l152re/support/openocd.cfg b/boards/arm/nucleo_l152re/support/openocd.cfg index 64b57ff0e2c..7e76ff5be9c 100644 --- a/boards/arm/nucleo_l152re/support/openocd.cfg +++ b/boards/arm/nucleo_l152re/support/openocd.cfg @@ -1,4 +1,4 @@ -# TODO: Once official oepnOCD fix merged and available in zephyr: +# TODO: Once official openOCD fix merged and available in zephyr: # http://openocd.zylin.com/#/c/5829/ # revert to board/st_nucleo_l1.cfg # source [find board/st_nucleo_l1.cfg] diff --git a/boards/arm/olimex_stm32_h103/doc/index.rst b/boards/arm/olimex_stm32_h103/doc/index.rst index d27e06efb16..35e6506e9d2 100644 --- a/boards/arm/olimex_stm32_h103/doc/index.rst +++ b/boards/arm/olimex_stm32_h103/doc/index.rst @@ -211,7 +211,7 @@ Programming and Debugging This board does not include any embedded debug tool interface, instead you will have to use an external probe connected to the available 20-pin JTAG -connector to progran and debug the board. Both JTAG and SWD are supported. +connector to program and debug the board. Both JTAG and SWD are supported. By default when using ``west debug`` ST-Link will be used with OpenOCD's SWD transport, but it is also possible to use JTAG with the Olimex ARM-USB-OCD-H diff --git a/boards/arm/pinetime_devkit0/doc/index.rst b/boards/arm/pinetime_devkit0/doc/index.rst index a9c9d99a17f..93f5d1f9bfa 100644 --- a/boards/arm/pinetime_devkit0/doc/index.rst +++ b/boards/arm/pinetime_devkit0/doc/index.rst @@ -185,7 +185,7 @@ Debugging Using Segger Ozone debugger, debugging and flashing is made easy. Simply load the .elf file containing the final firmware and -setup the debbuger to use SWD over USB for the chip nRF52832_xxAA. +setup the debugger to use SWD over USB for the chip nRF52832_xxAA. This setup can be done using the menu Tools/J-Link Settings. or by directly typing the following in the debugger console: diff --git a/boards/arm/qemu_cortex_m0/nrf_timer_timer.c b/boards/arm/qemu_cortex_m0/nrf_timer_timer.c index 725eb182ecc..994085e031b 100644 --- a/boards/arm/qemu_cortex_m0/nrf_timer_timer.c +++ b/boards/arm/qemu_cortex_m0/nrf_timer_timer.c @@ -71,7 +71,7 @@ static void prevent_false_prev_evt(void) uint32_t prev_val; /* First take care of a risk of an event coming from CC being set to - * next tick. Reconfigure CC to future (now tick is the furtherest + * next tick. Reconfigure CC to future (now tick is the furthest * future). If CC was set to next tick we need to wait for up to 0.5us * (half of 1M tick) and clean potential event. After that time there * is no risk of unwanted event. diff --git a/boards/arm/quick_feather/quick_feather_defconfig b/boards/arm/quick_feather/quick_feather_defconfig index ca740d8d137..919757f2751 100644 --- a/boards/arm/quick_feather/quick_feather_defconfig +++ b/boards/arm/quick_feather/quick_feather_defconfig @@ -14,7 +14,7 @@ CONFIG_SERIAL=y CONFIG_CONSOLE=y CONFIG_UART_CONSOLE=y -# EOS S3 Configuartion Manager copies software from external flash to MCU +# EOS S3 Configuration Manager copies software from external flash to MCU # memory using preconfigured DMA and execute it there. # Thus we do not use flash directly. diff --git a/boards/arm/rcar_h3ulcb/doc/rcar_h3ulcb.rst b/boards/arm/rcar_h3ulcb/doc/rcar_h3ulcb.rst index 95114c79916..f196e8e7cd9 100644 --- a/boards/arm/rcar_h3ulcb/doc/rcar_h3ulcb.rst +++ b/boards/arm/rcar_h3ulcb/doc/rcar_h3ulcb.rst @@ -93,7 +93,7 @@ Here are official IOs figures from eLinux for Kingfisher Infotainment board: GPIO ---- -By running Zephyr on H3ULCB, the software readable push button 'SW3' can be used as input, and the software contollable LED 'LED5' can be used as output. +By running Zephyr on H3ULCB, the software readable push button 'SW3' can be used as input, and the software controllable LED 'LED5' can be used as output. UART ---- diff --git a/boards/arm/ruuvi_ruuvitag/doc/index.rst b/boards/arm/ruuvi_ruuvitag/doc/index.rst index 7db00096ca1..85f41df79b0 100644 --- a/boards/arm/ruuvi_ruuvitag/doc/index.rst +++ b/boards/arm/ruuvi_ruuvitag/doc/index.rst @@ -149,7 +149,7 @@ Build and flash applications as usual (see :ref:`build_an_application` and The easiest way to flash Zephyr onto a RuuviTag requires an external Ruuvi DEVKIT. More information about the board can be found at the `ruuvitag devkit`_. -Once your tag is conencted to the DEVKIT and conencted to your PC, build and flash the application in the usual way. +Once your tag is connected to the DEVKIT and connected to your PC, build and flash the application in the usual way. .. zephyr-app-commands:: :zephyr-app: samples/basic/blinky diff --git a/boards/arm/sam_v71_xult/sam_v71_xult-common.dtsi b/boards/arm/sam_v71_xult/sam_v71_xult-common.dtsi index 77ecdf69cc9..dba7e86e07c 100644 --- a/boards/arm/sam_v71_xult/sam_v71_xult-common.dtsi +++ b/boards/arm/sam_v71_xult/sam_v71_xult-common.dtsi @@ -52,7 +52,7 @@ compatible = "gpio-keys"; /* The switch is labeled SW300/301 in the schematic, and - * labeled SW0 on the board, and labeld ERASE User Button + * labeled SW0 on the board, and labeled ERASE User Button * on docs */ sw0_user_button: button_1 { diff --git a/boards/arm/scobc_module1/Kconfig.defconfig b/boards/arm/scobc_module1/Kconfig.defconfig index 8a3ab971c6b..7fc2ef79a9a 100644 --- a/boards/arm/scobc_module1/Kconfig.defconfig +++ b/boards/arm/scobc_module1/Kconfig.defconfig @@ -21,4 +21,4 @@ config UART_XLNX_UARTLITE depends on SERIAL default y -endif # BOARD_SCOBC_SPEQ +endif # BOARD_SCOBC_MODULE1 diff --git a/boards/arm/serpente/doc/index.rst b/boards/arm/serpente/doc/index.rst index 3c4a3a746c1..29a9475055c 100644 --- a/boards/arm/serpente/doc/index.rst +++ b/boards/arm/serpente/doc/index.rst @@ -14,7 +14,7 @@ USB Type-C socket and USB Type-A plug. .. image:: img/serpente.jpg :width: 640px :align: center - :alt: Serpente Baords + :alt: Serpente Boards Hardware ******** diff --git a/boards/arm/stm32f3_disco/doc/index.rst b/boards/arm/stm32f3_disco/doc/index.rst index 827a715528d..4f016ce248a 100644 --- a/boards/arm/stm32f3_disco/doc/index.rst +++ b/boards/arm/stm32f3_disco/doc/index.rst @@ -33,7 +33,7 @@ started quickly. Here are some highlights of the STM32F3DISCOVERY board: acceleration sensor and a 3D digital magnetic sensor; .. HINT:: - Recent PCB revisions (E and newer) are shiped with I3G4250D and LSM303AGR. + Recent PCB revisions (E and newer) are shipped with I3G4250D and LSM303AGR. .. image:: img/stm32f3_disco.jpg :width: 350px @@ -194,7 +194,7 @@ CAN === The STM32F3DISCOVERY does not have an onboard CAN transceiver. In order to use the CAN bus on the this board, an external CAN bus -tranceiver must be connected to ``PD0`` (``CAN1_RX``) and ``PD1`` +transceiver must be connected to ``PD0`` (``CAN1_RX``) and ``PD1`` (``CAN1_TX``). Programming and Debugging diff --git a/boards/arm/stm32f411e_disco/doc/index.rst b/boards/arm/stm32f411e_disco/doc/index.rst index 405e57e19a6..a6884fe330f 100644 --- a/boards/arm/stm32f411e_disco/doc/index.rst +++ b/boards/arm/stm32f411e_disco/doc/index.rst @@ -150,7 +150,7 @@ Here is an example for the :ref:`blinky-sample` application. :board: stm32f411e_disco :goals: build flash -Incase you are using PCB revision B, you have to use an +In case you are using PCB revision B, you have to use an adapted board definition as the default PCB rev here is D: .. zephyr-app-commands:: diff --git a/boards/arm/stm32g071b_disco/stm32g071b_disco.dts b/boards/arm/stm32g071b_disco/stm32g071b_disco.dts index 3131d9d1222..67490cd7274 100644 --- a/boards/arm/stm32g071b_disco/stm32g071b_disco.dts +++ b/boards/arm/stm32g071b_disco/stm32g071b_disco.dts @@ -145,7 +145,7 @@ INA230_AVG_MODE_1)>; /* Set current LSB to 1mA */ current-lsb = <1>; - /* Set shunt resistror value to 15 milliohms */ + /* Set shunt resistor value to 15 milliohms */ rshunt = <15>; }; }; diff --git a/boards/arm/stm32h747i_disco/support/openocd_stm32h747i_disco_m7.cfg b/boards/arm/stm32h747i_disco/support/openocd_stm32h747i_disco_m7.cfg index 040feadc02e..75d441d1809 100644 --- a/boards/arm/stm32h747i_disco/support/openocd_stm32h747i_disco_m7.cfg +++ b/boards/arm/stm32h747i_disco/support/openocd_stm32h747i_disco_m7.cfg @@ -5,7 +5,7 @@ transport select hla_swd source [find target/stm32h7x.cfg] -# Use connect_assert_srst here to be able to programm +# Use connect_assert_srst here to be able to program # even when core is in sleep mode reset_config srst_only srst_nogate connect_assert_srst diff --git a/boards/arm/ubx_bmd340eval_nrf52840/doc/index.rst b/boards/arm/ubx_bmd340eval_nrf52840/doc/index.rst index 550210a472e..0bf8e486ae2 100644 --- a/boards/arm/ubx_bmd340eval_nrf52840/doc/index.rst +++ b/boards/arm/ubx_bmd340eval_nrf52840/doc/index.rst @@ -42,7 +42,7 @@ All of the Nordic Semiconductor examples for the nRF52840 DK (nrf52840dk_nrf52840) may be used without modification. ..note:: - The BMD-340 and BMD-341 are identical except for the antennna. + The BMD-340 and BMD-341 are identical except for the antenna. Throughout this board support package, the filenames utilize the ubx_bmd340eval_nrf52840. diff --git a/boards/arm/v2m_beetle/pinmux.c b/boards/arm/v2m_beetle/pinmux.c index 9011d27d59a..72a3b508c26 100644 --- a/boards/arm/v2m_beetle/pinmux.c +++ b/boards/arm/v2m_beetle/pinmux.c @@ -129,7 +129,7 @@ static void arm_v2m_beetle_pinmux_defaults(void) /* Set the ARD_PWR_EN GPIO1[15] as an output */ CMSDK_AHB_GPIO1_DEV->outenableset |= (0x1 << 15); - /* Set on 3v3 (for ARDUINO HDR compliancy) */ + /* Set on 3v3 (for ARDUINO HDR compliance) */ CMSDK_AHB_GPIO1_DEV->data |= (0x1 << 15); } diff --git a/boards/arm/v2m_musca_b1/doc/index.rst b/boards/arm/v2m_musca_b1/doc/index.rst index fd01fe606e1..cb9761de7fd 100644 --- a/boards/arm/v2m_musca_b1/doc/index.rst +++ b/boards/arm/v2m_musca_b1/doc/index.rst @@ -365,10 +365,10 @@ For more information refer to the `Srecord Manual`_. .. code-block:: bash - srec_cat $BIN_BOOLOADER -Binary -offset $FLASH_OFFSET $BIN_SNS -Binary -offset $IMAGE_OFFSET -o $HEX_FLASHABLE -Intel + srec_cat $BIN_BOOTLOADER -Binary -offset $FLASH_OFFSET $BIN_SNS -Binary -offset $IMAGE_OFFSET -o $HEX_FLASHABLE -Intel # For a 128K bootloader IMAGE_OFFSET = $FLASH_OFFSET + 0x20000 - srec_cat $BIN_BOOLOADER -Binary -offset 0xA000000 $BIN_SNS -Binary -offset 0xA020000 -o $HEX_FLASHABLE -Intel + srec_cat $BIN_BOOTLOADER -Binary -offset 0xA000000 $BIN_SNS -Binary -offset 0xA020000 -o $HEX_FLASHABLE -Intel Connect the V2M Musca B1 to your host computer using the USB port. You should see a USB connection exposing a Mass Storage (MUSCA_B) and a USB Serial Port. diff --git a/boards/arm/v2m_musca_s1/doc/index.rst b/boards/arm/v2m_musca_s1/doc/index.rst index 5f06b3eaa91..f7c771ad974 100644 --- a/boards/arm/v2m_musca_s1/doc/index.rst +++ b/boards/arm/v2m_musca_s1/doc/index.rst @@ -339,10 +339,10 @@ For more information refer to the `Srecord Manual`_. .. code-block:: bash - srec_cat $BIN_BOOLOADER -Binary -offset $FLASH_OFFSET $BIN_APP -Binary -offset $IMAGE_OFFSET -o zephyr.hex -Intel + srec_cat $BIN_BOOTLOADER -Binary -offset $FLASH_OFFSET $BIN_APP -Binary -offset $IMAGE_OFFSET -o zephyr.hex -Intel # For a 128K bootloader IMAGE_OFFSET = $FLASH_OFFSET + 0x20000 - srec_cat $BIN_BOOLOADER -Binary -offset 0xA000000 $BIN_APP -Binary -offset 0xA020000 -o zephyr.hex -Intel + srec_cat $BIN_BOOTLOADER -Binary -offset 0xA000000 $BIN_APP -Binary -offset 0xA020000 -o zephyr.hex -Intel .. image:: img/v2m_musca_s1_powered.png :width: 600px diff --git a/boards/posix/native_posix/doc/Port_vs_QEMU_vs.svg b/boards/posix/native_posix/doc/Port_vs_QEMU_vs.svg index 8298856d4ad..923b0df3f99 100644 --- a/boards/posix/native_posix/doc/Port_vs_QEMU_vs.svg +++ b/boards/posix/native_posix/doc/Port_vs_QEMU_vs.svg @@ -184,12 +184,12 @@ <1/1000x Sheet.54 - ISS: Instruction Set Simulator Dev. boad: Development board H... + ISS: Instruction Set Simulator Dev. board: Development board H... ISS: Instruction Set SimulatorDev. boad: Development boardDev. board: Development boardHW emu. : Hardware emulator, e.g. Cadence PalladiumRTL sim. : HW RTL simulations diff --git a/boards/posix/native_posix/native_rtc.c b/boards/posix/native_posix/native_rtc.c index f8a3c152ca7..d8aa9a59564 100644 --- a/boards/posix/native_posix/native_rtc.c +++ b/boards/posix/native_posix/native_rtc.c @@ -37,7 +37,7 @@ uint64_t native_rtc_gettime_us(int clock_type) } /** - * Similar to POSIX clock_getitme() + * Similar to POSIX clock_gettime() * get the simulation time split in nsec and seconds * where clock_type is one of RTC_CLOCK_* */ diff --git a/boards/posix/nrf52_bsim/board_soc.h b/boards/posix/nrf52_bsim/board_soc.h index e5c904eb7cc..df1d4a4ddbf 100644 --- a/boards/posix/nrf52_bsim/board_soc.h +++ b/boards/posix/nrf52_bsim/board_soc.h @@ -7,7 +7,7 @@ * @file Extra definitions provided by the board to soc.h * * Background: - * The POSIC ARCH/SOC/board layering is different than in normal archs + * The POSIX ARCH/SOC/board layering is different than in normal archs * The "SOC" does not provide almost any of the typical SOC functionality * but that is left for the "board" to define it * Device code may rely on the soc.h defining some things (like the interrupts diff --git a/boards/riscv/it8xxx2_evb/doc/index.rst b/boards/riscv/it8xxx2_evb/doc/index.rst index 3e2b233a0b7..81004940e49 100644 --- a/boards/riscv/it8xxx2_evb/doc/index.rst +++ b/boards/riscv/it8xxx2_evb/doc/index.rst @@ -30,7 +30,7 @@ Listing the IT81302 hardware features as following: - 60KB SDRAM in total - Built-in 32.768 kHz clock generator - PWM, eSPI, LPC, FLASH, UART, GPIO, Timer, Watchdog, ADC, JTAG -- 6 SMBus channels, with 3 DMA controllers, compatiable with I2C +- 6 SMBus channels, with 3 DMA controllers, compatible with I2C - SPI master/slave - USB Type-c CC Logic - USB Power Delivery diff --git a/boards/riscv/qemu_riscv64/doc/index.rst b/boards/riscv/qemu_riscv64/doc/index.rst index 37db943c262..2675a7e977c 100644 --- a/boards/riscv/qemu_riscv64/doc/index.rst +++ b/boards/riscv/qemu_riscv64/doc/index.rst @@ -20,7 +20,7 @@ Get the Toolchain and QEMU The minimum version of the `Zephyr SDK tools `_ -with toolchain and QEMU support for the RISV64 architecture is v0.10.2. +with toolchain and QEMU support for the RISCV64 architecture is v0.10.2. Please see the :ref:`installation instructions ` for more details. diff --git a/boards/riscv/rv32m1_vega/support/openocd_rv32m1_vega_zero_riscy.cfg b/boards/riscv/rv32m1_vega/support/openocd_rv32m1_vega_zero_riscy.cfg index 130cdbce0b0..491dc56a54d 100644 --- a/boards/riscv/rv32m1_vega/support/openocd_rv32m1_vega_zero_riscy.cfg +++ b/boards/riscv/rv32m1_vega/support/openocd_rv32m1_vega_zero_riscy.cfg @@ -48,7 +48,7 @@ flash bank $_CHIPNAME.flash1 rv32m1 0x01000000 0 0 0 $_TARGETNAME # For core 1 proc ri5cy_boot { } { - # Erase all blok unsecure + # Erase all block unsecure mwb 0x40023000 0x70 mww 0x40023004 0x49000000 mwb 0x40023000 0x80 diff --git a/boards/riscv/tlsr9518adk80d/doc/index.rst b/boards/riscv/tlsr9518adk80d/doc/index.rst index 368a26d1b04..5ef13cc46b7 100644 --- a/boards/riscv/tlsr9518adk80d/doc/index.rst +++ b/boards/riscv/tlsr9518adk80d/doc/index.rst @@ -65,7 +65,7 @@ The Zephyr TLSR9518ADK80D board configuration supports the following hardware fe +----------------+------------+------------------------------+ | PWM | on-chip | pwm | +----------------+------------+------------------------------+ -| TRNG | on-chip | entopy | +| TRNG | on-chip | entropy | +----------------+------------+------------------------------+ | FLASH (MSPI) | on-chip | flash | +----------------+------------+------------------------------+ diff --git a/boards/shields/atmel_rf2xx/doc/index.rst b/boards/shields/atmel_rf2xx/doc/index.rst index 9d7f01bb35d..e5c270c412a 100644 --- a/boards/shields/atmel_rf2xx/doc/index.rst +++ b/boards/shields/atmel_rf2xx/doc/index.rst @@ -131,7 +131,7 @@ Arduino Shields =============== Arduino Uno R3 header is available without advanced features. It is enabled -selecting `atmel_rf2xx_arduino`_ variante option. +selecting `atmel_rf2xx_arduino`_ variant option. Pins Assignment of the Arduino Shield Modules ============================================= @@ -182,7 +182,7 @@ MikroBus Shields ================ MikroBus header is available available without advanced features. It is -enabled selecting `atmel_rf2xx_mikrobus`_ variante option. +enabled selecting `atmel_rf2xx_mikrobus`_ variant option. Pins Assignment of the MikroBus Shield Modules ============================================== diff --git a/boards/shields/inventek_eswifi/doc/index.rst b/boards/shields/inventek_eswifi/doc/index.rst index 8ac391ceb4a..c7cbc5038a1 100644 --- a/boards/shields/inventek_eswifi/doc/index.rst +++ b/boards/shields/inventek_eswifi/doc/index.rst @@ -7,7 +7,7 @@ Overview ******** The es-WIFI (embedded Serial-to-WiFi) modules are devices developed by Inventek -Systems. It integrates WIFI and optionaly Bluetooth Low Energy. The es-WIFI +Systems. It integrates WIFI and optionally Bluetooth Low Energy. The es-WIFI devices can run Cypress WICED or Inventek's IWIN (Inventek Systems Wireless Interoperability Network) AT commands set. The current es-WIFI driver is able to use one of two serial interfaces: SPI or UART. @@ -48,7 +48,7 @@ The signals from D3 up to D7 are not connected by default on the Inventek's shield. These signals marked as optional can help on development. The current driver do not handle that signals and are simple suggestions and can be left as is. Some arduino boards don't have NRST pin connected to a GPIO pin. The -recomendation is bend the NRST pin and make a wire to D6. WAKE-UP signal is +recommendation is bend the NRST pin and make a wire to D6. WAKE-UP signal is available at header J26 pin 1 and shield configuration uses D7 to control that signal, user need do a wire connecting these two terminals. On the below image is possible see suggested wiring connections. diff --git a/boards/shields/ls0xx_generic/doc/index.rst b/boards/shields/ls0xx_generic/doc/index.rst index 6c411ccb18f..aec3c35e5dd 100644 --- a/boards/shields/ls0xx_generic/doc/index.rst +++ b/boards/shields/ls0xx_generic/doc/index.rst @@ -18,7 +18,7 @@ high during driver initialization. Display blanking apis can be used to control it. Sharp memory displays require toggling the VCOM signal periodically -to prevent a DC bias ocurring in the panel as mentioned in the `appnote`_ +to prevent a DC bias occurring in the panel as mentioned in the `appnote`_ and `datasheet`_. The DC bias can damage the LCD and reduce the life. This signal must be supplied from either serial input (sw) or an external signal on the EXTCOMIN pin. diff --git a/boards/shields/mcp2515/doc/index.rst b/boards/shields/mcp2515/doc/index.rst index 3928d80245b..ee6a0115e01 100644 --- a/boards/shields/mcp2515/doc/index.rst +++ b/boards/shields/mcp2515/doc/index.rst @@ -12,7 +12,7 @@ DFRobot CAN BUS Shield V2.0 Overview -------- -The DFRobot CAN BUS shield supports the Microship MCP2515 stand-alone CAN +The DFRobot CAN BUS shield supports the Microchip MCP2515 stand-alone CAN controller and JTA1050 high speed CAN transceiver. The shield has an Arduino Uno R3 compatible hardware interface. @@ -122,7 +122,7 @@ Keyestudio CAN-BUS Shield (KS0411) Overview -------- -The Keyestudio CAN BUS shield supports the Microship MCP2515 stand-alone CAN +The Keyestudio CAN BUS shield supports the Microchip MCP2515 stand-alone CAN controller and MCP2551 high speed CAN transceiver. The shield has an Arduino Uno R3 compatible hardware interface. diff --git a/boards/shields/x_nucleo_eeprma2/doc/index.rst b/boards/shields/x_nucleo_eeprma2/doc/index.rst index 5c8a9c7ab66..e22b69bbbd8 100644 --- a/boards/shields/x_nucleo_eeprma2/doc/index.rst +++ b/boards/shields/x_nucleo_eeprma2/doc/index.rst @@ -54,7 +54,7 @@ Samples The :ref:`samples_eeprom` can be used to demonstrate the expansion boards functionality. Per default the shield sets an ``eeprom-0`` alias for the M24C02-FMC6TG EEPROM, -which can be overwritten to use the other EEPROM deivces instead. +which can be overwritten to use the other EEPROM devices instead. Programming *********** diff --git a/boards/shields/x_nucleo_idb05a1/doc/index.rst b/boards/shields/x_nucleo_idb05a1/doc/index.rst index b93eb12ffd6..22956670120 100644 --- a/boards/shields/x_nucleo_idb05a1/doc/index.rst +++ b/boards/shields/x_nucleo_idb05a1/doc/index.rst @@ -38,7 +38,7 @@ This is not a problem if SPI SCK from nucleo board is available on D3, otherwise shield configuration can be changed (see below). Also shield expects SPI CS to be available on Arduino pin A1 instead of usual Arduino UNO R3 SPI CS D10. -This is not a problem as CS signal is software driven gpio on Arnunio A1 +This is not a problem as CS signal is software driven gpio on Arduino A1 see cs-gpios in x_nucleo_idb05a1.overlay Shield configuration could be modified by moving resistors as diff --git a/boards/x86/acrn/doc/index.rst b/boards/x86/acrn/doc/index.rst index dfdc9ab6911..8b25ad30d2c 100644 --- a/boards/x86/acrn/doc/index.rst +++ b/boards/x86/acrn/doc/index.rst @@ -66,7 +66,7 @@ configuration files instead of small easily-merged configuration elements like kconfig defconfig files or devicetree includes. You have to edit a big XML file to match your Zephyr configuration. Choose an ACRN host config that matches your hardware ("ehl-crb-b" in -this case). Then find the relavent file in +this case). Then find the relevant file in ``misc/config_tools/data//hybrid.xml``. First, find the list of ```` declarations. Each has an ``id=`` diff --git a/boards/x86/qemu_x86/doc/index.rst b/boards/x86/qemu_x86/doc/index.rst index 99a55cded95..38c26624d68 100644 --- a/boards/x86/qemu_x86/doc/index.rst +++ b/boards/x86/qemu_x86/doc/index.rst @@ -115,7 +115,7 @@ Exit QEMU by pressing :kbd:`CTRL+A` :kbd:`x`. For qemu_x86_64 platform, it also supports to use UEFI bootable method to run Zephyr applications and kernel tests, but you need to set up -some environemnt configurations as follows: +some environment configurations as follows: * Please install uefi-run in your system environment according to this reference link https://github.com/Richard-W/uefi-run. diff --git a/boards/xtensa/intel_adsp_cavs25/doc/index.rst b/boards/xtensa/intel_adsp_cavs25/doc/index.rst index 39b11d1456d..80d50aaa680 100644 --- a/boards/xtensa/intel_adsp_cavs25/doc/index.rst +++ b/boards/xtensa/intel_adsp_cavs25/doc/index.rst @@ -95,7 +95,7 @@ Next you disable the validation step: **THIS COMMAND WILL FAIL**, give you an error that you are changing the setting for the entire running system, and suggest an alternative -"--paritions X" argument to use that modifies only the currently used +"--partitions X" argument to use that modifies only the currently used partition. Run that modified command, then reboot. After rebooting, you will notice that your chromebook boots with the @@ -110,7 +110,7 @@ verity configuration in place though, it just doesn't try to mount the resulting (now-invalid!) partition. Metanote: The astute will note that we're probably going to throw this -kernel out, and that we could probably have just editted the command +kernel out, and that we could probably have just edited the command line of the new kernel instead of flashing and rebooting into this modified one. But that's too many balls to juggle at once for me. diff --git a/boards/xtensa/intel_s1000_crb/support/download.py b/boards/xtensa/intel_s1000_crb/support/download.py index 22509f2a5f9..71599b19198 100644 --- a/boards/xtensa/intel_s1000_crb/support/download.py +++ b/boards/xtensa/intel_s1000_crb/support/download.py @@ -33,7 +33,7 @@ def calc_firmware_sha(file): """ Open firmware image file and calculate file size Pad file size to a multiple of 64 bytes - Caculate SHA256 hash of the padded contents + Calculate SHA256 hash of the padded contents """ with open(file, 'rb') as firmware: firmware.seek(0, 2) diff --git a/boards/xtensa/intel_s1000_crb/support/messenger.py b/boards/xtensa/intel_s1000_crb/support/messenger.py index 2eaee3ff55b..9a7033a850f 100644 --- a/boards/xtensa/intel_s1000_crb/support/messenger.py +++ b/boards/xtensa/intel_s1000_crb/support/messenger.py @@ -33,15 +33,15 @@ class Message: def __init__(self): """ - Intialize a byte array of 64 bytes for command messages - Intialize another byte array of 4096 bytes for bulk messages + Initialize a byte array of 64 bytes for command messages + Initialize another byte array of 4096 bytes for bulk messages """ self.tx_data = bytearray(64) self.tx_bulk_data = bytearray(4096) def init_tx_data(self): """ - Intialize transmit message buffers to zeros + Initialize transmit message buffers to zeros """ for index in range(len(self.tx_data)): self.tx_data[index] = 0 @@ -194,7 +194,7 @@ class Message: def create_execfw_cmd(self): """ - Creates a command to excute firmware + Creates a command to execute firmware """ cmd = 'Execute' print('CMD >>> %s.' % cmd) diff --git a/cmake/bintools/arcmwdt/target.cmake b/cmake/bintools/arcmwdt/target.cmake index f40e9b64f37..14d070cbfc9 100644 --- a/cmake/bintools/arcmwdt/target.cmake +++ b/cmake/bintools/arcmwdt/target.cmake @@ -20,7 +20,7 @@ SET(CMAKE_C_ARCHIVE_FINISH " -sq ") find_program(CMAKE_GDB ${CROSS_COMPILE}mdb PATH ${TOOLCHAIN_HOME} NO_DEFAULT_PATH) -# MWDT binutils don't support required features like section renameing, so we +# MWDT binutils don't support required features like section renaming, so we # temporarily had to use GNU objcopy instead find_program(CMAKE_OBJCOPY arc-elf32-objcopy) if (NOT CMAKE_OBJCOPY) diff --git a/cmake/bintools/arcmwdt/target_bintools.cmake b/cmake/bintools/arcmwdt/target_bintools.cmake index 7c3fbadb060..9320bb1fc5d 100644 --- a/cmake/bintools/arcmwdt/target_bintools.cmake +++ b/cmake/bintools/arcmwdt/target_bintools.cmake @@ -6,7 +6,7 @@ set_property(TARGET bintools PROPERTY memusage_infile "") # List of format the tool supports for converting, for example, -# GNU tools uses objectcopyy, which supports the following: ihex, srec, binary +# GNU tools uses objectcopy, which supports the following: ihex, srec, binary set_property(TARGET bintools PROPERTY elfconvert_formats ihex srec binary) # MWDT toolchain does not support all options in a single command diff --git a/cmake/bintools/armclang/target_bintools.cmake b/cmake/bintools/armclang/target_bintools.cmake index 677d702c636..b31a66c1049 100644 --- a/cmake/bintools/armclang/target_bintools.cmake +++ b/cmake/bintools/armclang/target_bintools.cmake @@ -1,5 +1,5 @@ # List of format the tool supports for converting, for example, -# GNU tools uses objectcopyy, which supports the following: ihex, srec, binary +# GNU tools uses objectcopy, which supports the following: ihex, srec, binary set_property(TARGET bintools PROPERTY elfconvert_formats ihex binary) # armclang toolchain does not support all options in a single command diff --git a/cmake/bintools/gnu/target_bintools.cmake b/cmake/bintools/gnu/target_bintools.cmake index 5db7eae8269..a35f6ed6ac5 100644 --- a/cmake/bintools/gnu/target_bintools.cmake +++ b/cmake/bintools/gnu/target_bintools.cmake @@ -25,7 +25,7 @@ set_property(TARGET bintools PROPERTY elfconvert_command ${CMAKE_OBJCOPY}) # List of format the tool supports for converting, for example, -# GNU tools uses objectcopyy, which supports the following: ihex, srec, binary +# GNU tools uses objectcopy, which supports the following: ihex, srec, binary set_property(TARGET bintools PROPERTY elfconvert_formats ihex srec binary) set_property(TARGET bintools PROPERTY elfconvert_flag "") diff --git a/cmake/bintools/llvm/target_bintools.cmake b/cmake/bintools/llvm/target_bintools.cmake index f4ac86af640..7828e07ea84 100644 --- a/cmake/bintools/llvm/target_bintools.cmake +++ b/cmake/bintools/llvm/target_bintools.cmake @@ -25,7 +25,7 @@ set_property(TARGET bintools PROPERTY elfconvert_command ${CMAKE_OBJCOPY}) # List of format the tool supports for converting, for example, -# GNU tools uses objectcopyy, which supports the following: ihex, srec, binary +# GNU tools uses objectcopy, which supports the following: ihex, srec, binary set_property(TARGET bintools PROPERTY elfconvert_formats ihex srec binary) set_property(TARGET bintools PROPERTY elfconvert_flag "") diff --git a/cmake/compiler/arcmwdt/target.cmake b/cmake/compiler/arcmwdt/target.cmake index 9bed7a51194..cd53a4e7f3d 100644 --- a/cmake/compiler/arcmwdt/target.cmake +++ b/cmake/compiler/arcmwdt/target.cmake @@ -35,7 +35,7 @@ endif() # link a dummy C file. # # CMake checks compiler flags with check_c_compiler_flag() (Which we -# wrap with target_cc_option() in extentions.cmake) +# wrap with target_cc_option() in extensions.cmake) foreach(isystem_include_dir ${NOSTDINC}) list(APPEND isystem_include_flags -isystem "\"${isystem_include_dir}\"") endforeach() diff --git a/cmake/compiler/xcc/target.cmake b/cmake/compiler/xcc/target.cmake index b325028e2b3..6775de2d0f4 100644 --- a/cmake/compiler/xcc/target.cmake +++ b/cmake/compiler/xcc/target.cmake @@ -51,7 +51,7 @@ list(APPEND TOOLCHAIN_LIBS # link a dummy C file. # # CMake checks compiler flags with check_c_compiler_flag() (Which we -# wrap with target_cc_option() in extentions.cmake) +# wrap with target_cc_option() in extensions.cmake) foreach(isystem_include_dir ${NOSTDINC}) list(APPEND isystem_include_flags -isystem "\"${isystem_include_dir}\"") endforeach() diff --git a/cmake/linker/arcmwdt/target.cmake b/cmake/linker/arcmwdt/target.cmake index dbce0922a20..fdb89705dbb 100644 --- a/cmake/linker/arcmwdt/target.cmake +++ b/cmake/linker/arcmwdt/target.cmake @@ -172,7 +172,7 @@ macro(toolchain_ld_base) ) endmacro() -# generate linker script snippts from configure files +# generate linker script snippets from configure files macro(toolchain_ld_configure_files) configure_file( $ENV{ZEPHYR_BASE}/include/arch/common/app_data_alignment.ld diff --git a/cmake/linker/armlink/scatter_script.cmake b/cmake/linker/armlink/scatter_script.cmake index 071ae1ef980..b7a5399f227 100644 --- a/cmake/linker/armlink/scatter_script.cmake +++ b/cmake/linker/armlink/scatter_script.cmake @@ -333,7 +333,7 @@ function(section_to_string) # endif() #if(SETTINGS_KEEP) - # armlink has --keep=, but is there an scatter equivalant ? + # armlink has --keep=, but is there an scatter equivalent ? #endif() if(first) diff --git a/cmake/linker/armlink/target.cmake b/cmake/linker/armlink/target.cmake index 912a72353b9..a185be8cabb 100644 --- a/cmake/linker/armlink/target.cmake +++ b/cmake/linker/armlink/target.cmake @@ -94,8 +94,8 @@ function(toolchain_ld_link_elf) # The scatter file is generated, and thus sometimes input sections are specified # even though there will be no such sections found in the libraries linked. --diag_suppress=6314 - # We use empty excution sections in order to define custom symbols, such as - # __kernel_ram_x symbols, but nothing will go in those section, so silnence + # We use empty execution sections in order to define custom symbols, such as + # __kernel_ram_x symbols, but nothing will go in those section, so silence # the warning. Note, marking the section EMPTY causes armlink to reserve the # address which in some cases leads to overlapping section errors. --diag_suppress=6312 diff --git a/cmake/modules/configuration_files.cmake b/cmake/modules/configuration_files.cmake index bafd1123440..df569d981d9 100644 --- a/cmake/modules/configuration_files.cmake +++ b/cmake/modules/configuration_files.cmake @@ -81,7 +81,7 @@ set(APPLICATION_CONFIG_DIR ${APPLICATION_CONFIG_DIR} CACHE INTERNAL "The applica set(CACHED_CONF_FILE ${CONF_FILE} CACHE STRING "If desired, you can build the application using\ the configuration settings specified in an alternate .conf file using this parameter. \ These settings will override the settings in the application’s .config file or its default .conf file.\ -Multiple files may be listed, e.g. CONF_FILE=\"prj1.confi;prj2.conf\" \ +Multiple files may be listed, e.g. CONF_FILE=\"prj1.conf;prj2.conf\" \ The CACHED_CONF_FILE is internal Zephyr variable used between CMake runs. \ To change CONF_FILE, use the CONF_FILE variable.") unset(CONF_FILE CACHE) diff --git a/cmake/modules/extensions.cmake b/cmake/modules/extensions.cmake index dfd8c5c13a6..0b1ee6bb765 100644 --- a/cmake/modules/extensions.cmake +++ b/cmake/modules/extensions.cmake @@ -2618,7 +2618,7 @@ function(dt_node_exists var) cmake_parse_arguments(DT_NODE "" "${req_single_args}" "" ${ARGN}) if(${ARGV0} IN_LIST req_single_args) - message(FATAL_ERROR "dt_node_existsl(${ARGV0} ...) missing return parameter.") + message(FATAL_ERROR "dt_node_exists(${ARGV0} ...) missing return parameter.") endif() foreach(arg ${req_single_args}) diff --git a/cmake/modules/kernel.cmake b/cmake/modules/kernel.cmake index 0e272b9ede3..7b3bcba679b 100644 --- a/cmake/modules/kernel.cmake +++ b/cmake/modules/kernel.cmake @@ -4,8 +4,8 @@ # Zephyr Kernel CMake module. # -# This is the main Zephyr Kernel CMake module which is resposible for creation -# of Zephyr libraries and the Zephyr executeable. +# This is the main Zephyr Kernel CMake module which is responsible for creation +# of Zephyr libraries and the Zephyr executable. # # This CMake module creates 'project(Zephyr-Kernel)' # @@ -125,7 +125,7 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS TRUE CACHE BOOL project(Zephyr-Kernel VERSION ${PROJECT_VERSION}) # Add .S file extension suffix into CMAKE_ASM_SOURCE_FILE_EXTENSIONS, -# because clang from OneApi can't recongnize them as asm files on +# because clang from OneApi can't recognize them as asm files on # windows now. list(APPEND CMAKE_ASM_SOURCE_FILE_EXTENSIONS "S") enable_language(C CXX ASM) diff --git a/cmake/modules/shields.cmake b/cmake/modules/shields.cmake index 6dc5483ee68..4c5de4dc02b 100644 --- a/cmake/modules/shields.cmake +++ b/cmake/modules/shields.cmake @@ -112,7 +112,7 @@ foreach(root ${BOARD_ROOT}) endforeach() # Prepare shield usage command printing. -# This command prints all ishield in the system in the following cases: +# This command prints all shields in the system in the following cases: # - User specifies an invalid SHIELD # - User invokes ' shields' target list(SORT SHIELD_LIST) diff --git a/doc/_doxygen/doxygen-awesome-sidebar-only.css b/doc/_doxygen/doxygen-awesome-sidebar-only.css index 655a90cde65..526761db69a 100644 --- a/doc/_doxygen/doxygen-awesome-sidebar-only.css +++ b/doc/_doxygen/doxygen-awesome-sidebar-only.css @@ -29,7 +29,7 @@ SOFTWARE. html { /* side nav width. MUST be = `TREEVIEW_WIDTH`. - * Make sure it is wide enought to contain the page title (logo + title + version) + * Make sure it is wide enough to contain the page title (logo + title + version) */ --side-nav-fixed-width: 340px; --menu-display: none; diff --git a/doc/_doxygen/doxygen-awesome.css b/doc/_doxygen/doxygen-awesome.css index 8b35f2f62a9..8414dcbf651 100644 --- a/doc/_doxygen/doxygen-awesome.css +++ b/doc/_doxygen/doxygen-awesome.css @@ -48,7 +48,7 @@ html { --border-radius-small: 4px; --border-radius-medium: 6px; - /* default spacings. Most compontest reference these values for spacing, to provide uniform spacing on the page. */ + /* default spacings. Most components reference these values for spacing, to provide uniform spacing on the page. */ --spacing-small: 5px; --spacing-medium: 10px; --spacing-large: 16px; diff --git a/doc/_extensions/zephyr/external_content.py b/doc/_extensions/zephyr/external_content.py index 8f4acfd3d70..7e739a5e244 100644 --- a/doc/_extensions/zephyr/external_content.py +++ b/doc/_extensions/zephyr/external_content.py @@ -14,7 +14,7 @@ build. Note that the copy is *smart*, that is, only updated files are actually copied. Therefore, incremental builds detect changes correctly and behave as expected. -Paths for external content ingluded via e.g. figure, literalinclude, etc. +Paths for external content included via e.g. figure, literalinclude, etc. are adjusted as needed. Configuration options @@ -93,7 +93,7 @@ def adjust_includes( def sync_contents(app: Sphinx) -> None: - """Synhronize external contents. + """Synchronize external contents. Args: app: Sphinx application instance. diff --git a/doc/_scripts/gen_devicetree_rest.py b/doc/_scripts/gen_devicetree_rest.py index 70d73535a03..294dec2abf8 100644 --- a/doc/_scripts/gen_devicetree_rest.py +++ b/doc/_scripts/gen_devicetree_rest.py @@ -395,7 +395,7 @@ def write_orphans(bindings, base_binding, vnd_lookup, out_dir): # Next, write the per-binding pages. These contain the # per-compatible targets for compatibles not in 'dup_compats'. # We'll finish up by writing per-compatible "disambiguation" pages - # for copmatibles in 'dup_compats'. + # for compatibles in 'dup_compats'. # Names of properties in base.yaml. base_names = set(base_binding.prop2specs.keys()) @@ -677,7 +677,7 @@ def print_property_table(prop_specs, string_io, deprecated=False): def setup_compatibles_dir(compatibles, compatibles_dir): # Make a set of all the Path objects we will be creating for - # out_dir / copmatibles / {compatible_path}.rst. Delete all the ones that + # out_dir / compatibles / {compatible_path}.rst. Delete all the ones that # shouldn't be there. Make sure the compatibles output directory # exists. diff --git a/doc/application/index.rst b/doc/application/index.rst index 7c8eb84d727..d7b2ea58b7f 100644 --- a/doc/application/index.rst +++ b/doc/application/index.rst @@ -227,7 +227,7 @@ Zephyr.) target_sources(app PRIVATE src/main.c) ``cmake_minimum_required()`` is required to be in your - :file:`CMakeListst.txt` by CMake. It is also invoked by the Zephyr + :file:`CMakeLists.txt` by CMake. It is also invoked by the Zephyr package. The most recent of the two versions will be enforced by CMake. ``find_package(Zephyr)`` pulls in the Zephyr build system, which creates a @@ -534,7 +534,7 @@ at CMake configure time if any experimental feature is enabled. CONFIG_WARN_EXPERIMENTAL=y For example, if option ``CONFIG_FOO`` is experimental, then enabling it and -:kconfig:option:`CONIG_WARN_EXPERIMENTAL` will print the following warning at +:kconfig:option:`CONFIG_WARN_EXPERIMENTAL` will print the following warning at CMake configure time when you build an application: .. code-block:: none diff --git a/doc/contribute/coding_guidelines/index.rst b/doc/contribute/coding_guidelines/index.rst index b26bcf5efd7..fb56e142741 100644 --- a/doc/contribute/coding_guidelines/index.rst +++ b/doc/contribute/coding_guidelines/index.rst @@ -38,7 +38,7 @@ Main rules The coding guideline rules are based on MISRA-C 2012 and are a subset of MISRA-C. The subset is listed in the table below with a summary of the rules, its -severity and the equivlent rules from other standards for reference. +severity and the equivalent rules from other standards for reference. .. note:: @@ -368,7 +368,7 @@ severity and the equivlent rules from other standards for reference. - `Rule 10.2 `_ * - Rule 10.3 - Required - - The value of an expression shall not be assigned to an object with a narrower essential type or of a dierent essential type category + - The value of an expression shall not be assigned to an object with a narrower essential type or of a different essential type category - `STR04-C `_ - `Rule 10.3 `_ * - Rule 10.4 diff --git a/doc/development_process/dev_env_and_tools.rst b/doc/development_process/dev_env_and_tools.rst index b1c4b0123d6..7c3abaaa1b4 100644 --- a/doc/development_process/dev_env_and_tools.rst +++ b/doc/development_process/dev_env_and_tools.rst @@ -230,7 +230,7 @@ The CI infrastructure currently runs the following tests: IOPCTL_Type *base = config->base; Both lines produce a diagnostic regarding spaces around the ``*`` - operator: the first is misidentifed as a pointer type declaration + operator: the first is misidentified as a pointer type declaration that would be correct as ``PAGE_SIZE *POOL_PAGES`` while the second is misidentified as a multiplication expression that would be correct as ``IOPCTL_Type * base``. diff --git a/doc/development_process/issues.rst b/doc/development_process/issues.rst index 39a77757659..e47b3869480 100644 --- a/doc/development_process/issues.rst +++ b/doc/development_process/issues.rst @@ -30,7 +30,7 @@ For this, `git bisect`_ is the recommended tool. Recommendations on the process: * Run ``west update`` on each bisection step. -* Once the bisection is over and a culprit identifed, verify manually the result. +* Once the bisection is over and a culprit identified, verify manually the result. .. _git bisect: https://git-scm.com/docs/git-bisect diff --git a/doc/development_process/release_process.rst b/doc/development_process/release_process.rst index 80be2876cbf..293f52146e2 100644 --- a/doc/development_process/release_process.rst +++ b/doc/development_process/release_process.rst @@ -116,7 +116,7 @@ gate the final release. The following counts shall be used: .. note:: - The "low" bug count target of <50 will be a phased appoach starting with 150 + The "low" bug count target of <50 will be a phased approach starting with 150 for release 2.4.0, 100 for release 2.5.0, and 50 for release 2.6.0 @@ -174,7 +174,7 @@ security fixes. An LTS includes both mature and new features. API and feature maturity is documented and tracked. The footprint and scope of mature and stable APIs expands -as we move from one LTS to the next giving users access to bleading edge features +as we move from one LTS to the next giving users access to bleeding edge features and new hardware while keeping a stable foundation that evolves over time. Extended Stabilisation Period @@ -228,7 +228,7 @@ providing a quality oriented releases. This is achieved by providing the following products to track progress, integrity and quality of the software components provided by the project: -- Compliance with pubished coding guidelines, style guides and naming +- Compliance with published coding guidelines, style guides and naming conventions and documentation of deviations. - Regular static analysis on the complete tree using available commercial and open-source tools and documentation of deviations and false positives. diff --git a/doc/guides/arch/arm_cortex_m.rst b/doc/guides/arch/arm_cortex_m.rst index 15524cbe3b5..62bc96e0666 100644 --- a/doc/guides/arch/arm_cortex_m.rst +++ b/doc/guides/arch/arm_cortex_m.rst @@ -113,7 +113,7 @@ stack pointer manipulation* during thread context switching, without affecting t handler mode. In Arm Cortex-M builds a single interrupt stack memory is shared among exceptions and interrupts. The size of the interrupt stack needs -to be selected taking into consideration nested interrupts, each pushing an additional stack frame. Deverlopers can modify the interrupt +to be selected taking into consideration nested interrupts, each pushing an additional stack frame. Developers can modify the interrupt stack size using :kconfig:option:`CONFIG_ISR_STACK_SIZE`. The interrupt stack is also used during early boot so the kernel can initialize the main thread's stack before switching to the main thread. @@ -141,7 +141,7 @@ Typically a thread context-switch will perform the following operations * the thread's current operation *mode* * user or privileged execution mode - * presense of an active floating point context + * presence of an active floating point context * the EXC_RETURN value of the current handler context (PendSV) * the floating point callee-saved registers (S16 - S31) in the thread's container for FP @@ -233,7 +233,7 @@ this rule is described below). As a result, processor faults occurring in regula ISRs will be handled by the corresponding fault handler and will not escalate to a HardFault, *similar to processor faults occurring in thread mode*. -SVC exception is normally configured with the highest conigurable priority level +SVC exception is normally configured with the highest configurable priority level (an exception to this rule will be described below). SVCs are used by the Zephyr kernel to dispatch system calls, trigger runtime system errors (e.g. Kernel oops or panic), or implement IRQ offloading. @@ -469,7 +469,7 @@ Certain thread-specific MPU regions may be re-programmed dynamically, at each th * an unprivileged RW region for the current thread's stack area (for user threads) * a read-only region for the MPU stack guard -* unprivileged RW regions for the partitions of the currentl thread's application memory +* unprivileged RW regions for the partitions of the current thread's application memory domain. @@ -489,7 +489,7 @@ overlap. :kconfig:option:`CONFIG_MPU_GAP_FILLING` controls whether the fixed MPU covering the entire SRAM is programmed. When it does, a full SRAM area partitioning is required, in order to program the static and the dynamic MPU regions. This increases the total number of required MPU regions. When :kconfig:option:`CONFIG_MPU_GAP_FILLING` is not -enabled the fixed MPU region convering the entire SRAM is not programmed, thus, the static +enabled the fixed MPU region covering the entire SRAM is not programmed, thus, the static and dynamic regions are simply programmed on top of the always-existing background region (full-SRAM partitioning is not required). Note, however, that the background SRAM region allows execution from SRAM, so when @@ -562,7 +562,7 @@ of the image vector table. Baseline Cortex-M platforms without VTOR register might not be able to relocate their vector table which remains at a fixed location. Therefore, a chain-loadable image will -require an alternative way to route HW interrupts and system exeptions to its own vector +require an alternative way to route HW interrupts and system exceptions to its own vector table; this is achieved with software vector relaying. When a bootloader image enables :kconfig:option:`CONFIG_SW_VECTOR_RELAY` diff --git a/doc/guides/arch/x86.rst b/doc/guides/arch/x86.rst index 6a4eabc8948..1587efa38c3 100644 --- a/doc/guides/arch/x86.rst +++ b/doc/guides/arch/x86.rst @@ -26,7 +26,7 @@ is being placed in the memory, and its counterpart Separate Virtual Address Space from Physical Address Space ========================================================== -On 32-bit x86, it is possible to have separate phyiscal and virtual +On 32-bit x86, it is possible to have separate physical and virtual address space. Code and data are linked in virtual address space, but are still loaded in physical memory. However, during boot, code and data must be available and also addressable in physical address @@ -92,7 +92,7 @@ in the board configuration file. Here is an example: --map 0x80000000,0x400000,LWUX,0xB0000000) The argument ``--map`` takes the following value: -``,[,[,]]``, where: +``,[,[,]]``, where: - ```` is the physical address of the mapping. (Required) diff --git a/doc/guides/bluetooth/autopts/autopts-win10.rst b/doc/guides/bluetooth/autopts/autopts-win10.rst index 7b7fbd54db1..2ea859232c0 100644 --- a/doc/guides/bluetooth/autopts/autopts-win10.rst +++ b/doc/guides/bluetooth/autopts/autopts-win10.rst @@ -321,7 +321,7 @@ then build and flash tester elf again. - Check if board sends ready event after restart (hex 00 00 80 ff 00 00). Open serial connection to board with e.g. PuTTy with proper COM and baud rate. After board reset you should see some strings in console. -- Check if socat.exe creates tunel to board. Run in console +- Check if socat.exe creates tunnel to board. Run in console .. code-block:: diff --git a/doc/guides/bluetooth/l2cap-pics.rst b/doc/guides/bluetooth/l2cap-pics.rst index 821aacd1bb2..1cfa13034a3 100644 --- a/doc/guides/bluetooth/l2cap-pics.rst +++ b/doc/guides/bluetooth/l2cap-pics.rst @@ -108,7 +108,7 @@ TSPC_L2CAP_3_7 False Support of bi-directional quality of service (QoS) opti TSPC_L2CAP_3_8 False Negotiate QoS service type (C.5) TSPC_L2CAP_3_9 False Negotiate and support service type 'No Traffic' (C.2) TSPC_L2CAP_3_10 False Negotiate and support service type 'Best effort' (C.3) -TSPC_L2CAP_3_11 False Negotiate and support service type 'Gauranteed' (C.2) +TSPC_L2CAP_3_11 False Negotiate and support service type 'Guaranteed' (C.2) TSPC_L2CAP_3_12 True Support minimum MTU size 23 octets (C.6) TSPC_L2CAP_3_13 False Negotiate and support service type ‘No traffic’ for Extended Flow Specification (C.7) TSPC_L2CAP_3_14 False Negotiate and support service type ‘Best Effort’ for Extended Flow Specification (C.8) diff --git a/doc/guides/build/index.rst b/doc/guides/build/index.rst index 4c3adbbc12d..98a191a2144 100644 --- a/doc/guides/build/index.rst +++ b/doc/guides/build/index.rst @@ -452,5 +452,5 @@ tips and best practices for writing :file:`Kconfig` files. kconfig/preprocessor-functions.rst kconfig/extensions.rst -Users interested in optimizing their configuraion for security should refer +Users interested in optimizing their configuration for security should refer to the Zephyr Security Guide's section on the :ref:`hardening`. diff --git a/doc/guides/debug_tools/coredump.rst b/doc/guides/debug_tools/coredump.rst index f07803f4c5d..32f123c3eaa 100644 --- a/doc/guides/debug_tools/coredump.rst +++ b/doc/guides/debug_tools/coredump.rst @@ -257,7 +257,7 @@ to the target architecture (e.g. CPU registers) - Description * - ID - ``char`` - - ``A`` to indiciate this is a architecture-specific block. + - ``A`` to indicate this is a architecture-specific block. * - Header version - ``uint16_t`` - Identify the version of this block. To be interpreted by the target @@ -286,7 +286,7 @@ the memory region. - Description * - ID - ``char`` - - ``M`` to indiciate this is a memory block. + - ``M`` to indicate this is a memory block. * - Header version - ``uint16_t`` - Identify the version of the header. This needs to be incremented @@ -313,7 +313,7 @@ the following needs to be done: #. Add a new target code to the ``enum coredump_tgt_code`` in :zephyr_file:`include/debug/coredump.h`. #. Implement :c:func:`arch_coredump_tgt_code_get` simply to return - the newly introducted target code. + the newly introduced target code. #. Implement :c:func:`arch_coredump_info_dump` to construct a target architecture block and call :c:func:`coredump_buffer_output` to output the block to core dump backend. diff --git a/doc/guides/debug_tools/gdbstub.rst b/doc/guides/debug_tools/gdbstub.rst index 9a0dcc82a1b..314f2057e19 100644 --- a/doc/guides/debug_tools/gdbstub.rst +++ b/doc/guides/debug_tools/gdbstub.rst @@ -279,8 +279,8 @@ how GDB stub works. #. Examine ``ret`` again which should have the return value from :c:func:`test`. Sometimes, the assignment is not done until another - ``step`` is issued, as in this case. This is due to the assginment - code is done after retruning from function. The assignment code is + ``step`` is issued, as in this case. This is due to the assignment + code is done after returning from function. The assignment code is generated by the toolchain as machine instructions which are not visible when viewing the corresponding C source file. @@ -294,6 +294,6 @@ how GDB stub works. $4 = 0x1e #. If ``continue`` is issued here, code execution will continue indefinitely - as there are no breakpoints to further stop exection. Breaking execution + as there are no breakpoints to further stop execution. Breaking execution in GDB via Ctrl-C does not currently work as the GDB stub does not support this functionality (yet). diff --git a/doc/guides/debug_tools/tracing/index.rst b/doc/guides/debug_tools/tracing/index.rst index 73dd0ec041b..66d3728ead8 100644 --- a/doc/guides/debug_tools/tracing/index.rst +++ b/doc/guides/debug_tools/tracing/index.rst @@ -23,7 +23,7 @@ that has implied: An application can use one of the existing formats or define a custom format by overriding the macros declared in :zephyr_file:`include/tracing/tracing.h`. -Different formats, transports and host tools are avialable and supported in +Different formats, transports and host tools are available and supported in Zephyr. In fact, I/O varies greatly from system to system. Therefore, it is diff --git a/doc/guides/device_mgmt/mcumgr.rst b/doc/guides/device_mgmt/mcumgr.rst index 62d17d6402c..7e3f4d4eb2c 100644 --- a/doc/guides/device_mgmt/mcumgr.rst +++ b/doc/guides/device_mgmt/mcumgr.rst @@ -358,7 +358,7 @@ After a reset the output with change to:: was enabled. The ``confirmed`` flag in the secondary slot tells that after the next reset a -revert upgrade will be perfomed to switch back to the original layout. +revert upgrade will be performed to switch back to the original layout. The command used to confirm that an image is OK and no revert should happen (no ``hash`` required) is:: @@ -380,7 +380,7 @@ directly upgraded to. The maximum size of a chunk communicated between the client and server is set with :kconfig:option:`CONFIG_IMG_MGMT_UL_CHUNK_SIZE`. The default is 512 but can be - decreased for systems with low amount of RAM downto 128. When this value is + decreased for systems with low amount of RAM down to 128. When this value is changed, the ``mtu`` of the port must be smaller than or equal to this value. .. tip:: @@ -494,7 +494,7 @@ be set (``y``). Once enabled the following sub-commands can be used:: Using the ``fs`` command, requires :kconfig:option:`CONFIG_FILE_SYSTEM` to be enabled, and that some particular filesystem is enabled and properly mounted by the running -application, eg for littefs this would mean enabling +application, eg for littlefs this would mean enabling :kconfig:option:`CONFIG_FILE_SYSTEM_LITTLEFS`, defining a storage partition :ref:`flash_map_api` and mounting the filesystem in the startup (:c:func:`fs_mount`). @@ -532,7 +532,7 @@ Where ``0`` is the return code, and ``9`` is the size of the file. enough, so increasing :kconfig:option:`CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE` might be required for correct behavior. -The size of the stack allocated buffer used to store the blocks, while transffering +The size of the stack allocated buffer used to store the blocks, while transferring a file can be adjusted with :kconfig:option:`CONFIG_FS_MGMT_DL_CHUNK_SIZE`; this allows saving RAM resources. diff --git a/doc/guides/device_mgmt/smp_groups/smp_group_8.rst b/doc/guides/device_mgmt/smp_groups/smp_group_8.rst index 1192beaf5f9..cb0b21e97a7 100644 --- a/doc/guides/device_mgmt/smp_groups/smp_group_8.rst +++ b/doc/guides/device_mgmt/smp_groups/smp_group_8.rst @@ -109,7 +109,7 @@ where: | "off" | offset the response is for | +-----------------------+---------------------------------------------------+ | "data" | chunk of data read from file; it is CBOR encoded | - | | stream of bytes with embeeded size; | + | | stream of bytes with embedded size; | | | "data" appears only in responses where "rc" is 0 | +-----------------------+---------------------------------------------------+ | "len" | length of file, this field is only mandatory | @@ -171,10 +171,10 @@ where: :align: center +-----------------------+---------------------------------------------------+ - | "off" | offset to start/continue uplad at | + | "off" | offset to start/continue upload at | +-----------------------+---------------------------------------------------+ | "data" | chunk of data to write to the file; | - | | it is CBOR encoded with length embeeded | + | | it is CBOR encoded with length embedded | +-----------------------+---------------------------------------------------+ | "name" | absolute path to a file | +-----------------------+---------------------------------------------------+ diff --git a/doc/guides/device_mgmt/smp_protocol.rst b/doc/guides/device_mgmt/smp_protocol.rst index 44a00fff708..62b97607942 100644 --- a/doc/guides/device_mgmt/smp_protocol.rst +++ b/doc/guides/device_mgmt/smp_protocol.rst @@ -67,7 +67,7 @@ Where meaning of fields is: +-------------------+---------------------------------------------------+ | ``Group ID`` | :ref:`mcumgr_smp_protocol_group_ids` | +-------------------+---------------------------------------------------+ - | ``Seqence Num`` | This is a frame sequence number. | + | ``Sequence Num`` | This is a frame sequence number. | | | The number is increased by one with each request | | | frame. | | | The Sequence Num of a response should match | diff --git a/doc/guides/docs/index.rst b/doc/guides/docs/index.rst index fbb19a4149d..a00d9f4e16e 100644 --- a/doc/guides/docs/index.rst +++ b/doc/guides/docs/index.rst @@ -141,7 +141,7 @@ as described below: .. note:: On Windows, the Sphinx executable ``sphinx-build.exe`` is placed in the ``Scripts`` folder of your Python installation path. - Dependending on how you have installed Python, you might need to + Depending on how you have installed Python, you might need to add this folder to your ``PATH`` environment variable. Follow the instructions in `Windows Python Path`_ to add those if needed. diff --git a/doc/guides/dts/api-usage.rst b/doc/guides/dts/api-usage.rst index e6e794f4ed2..5bb83900338 100644 --- a/doc/guides/dts/api-usage.rst +++ b/doc/guides/dts/api-usage.rst @@ -46,7 +46,7 @@ By node label By alias Use :c:func:`DT_ALIAS()` to get a node identifier for a property of the - special ``/aliases`` node. This is sometmes done by applications (like + special ``/aliases`` node. This is sometimes done by applications (like :ref:`blinky `, which uses the ``led0`` alias) that need to refer to *some* device of a particular type ("the board's user LED") but don't care which one is used. diff --git a/doc/guides/dts/bindings.rst b/doc/guides/dts/bindings.rst index 01d303b1ac9..6393728a04a 100644 --- a/doc/guides/dts/bindings.rst +++ b/doc/guides/dts/bindings.rst @@ -1007,7 +1007,7 @@ General rules This ``|`` style prevents YAML parsers from removing the newlines in multi-line descriptions. This in turn makes these long strings - display propertly in the :ref:`devicetree_binding_index`. + display properly in the :ref:`devicetree_binding_index`. Do not use any other style for long or multi-line strings. diff --git a/doc/guides/emulator/index.rst b/doc/guides/emulator/index.rst index d96a8cdf5d5..0bfb6245a54 100644 --- a/doc/guides/emulator/index.rst +++ b/doc/guides/emulator/index.rst @@ -97,7 +97,7 @@ Samples Here are some examples present in Zephyr: -#. Bosche BMI160 sensor driver connected via both I2C and SPI to an emulator: +#. Bosch BMI160 sensor driver connected via both I2C and SPI to an emulator: .. zephyr-app-commands:: :app: tests/drivers/sensor/accel/ diff --git a/doc/guides/flash_debug/probes.rst b/doc/guides/flash_debug/probes.rst index ecb349df246..3adcb9b0b94 100644 --- a/doc/guides/flash_debug/probes.rst +++ b/doc/guides/flash_debug/probes.rst @@ -198,7 +198,7 @@ the ST-LINK/V2-1 compatible with J-LinkOB, allowing users to take advantage of most J-Link features like the ultra fast flash download and debugging speed or the free-to-use GDBServer. -More informations about upgrading ST-LINK/V2-1 to JLink or restore ST-Link/V2-1 +More information about upgrading ST-LINK/V2-1 to JLink or restore ST-Link/V2-1 firmware please visit: `Segger over ST-Link`_ Flash and debug with ST-Link @@ -266,7 +266,7 @@ Flash and debug with ST-Link If you get no RTT output you might need to disable other consoles which conflict with the RTT one if they are enabled by default in the particular sample or - application you are running, such as disable UART_CONSOLE in menucon + application you are running, such as disable UART_CONSOLE in menuconfig Updating or restoring ST-Link firmware ====================================== diff --git a/doc/guides/modules.rst b/doc/guides/modules.rst index 3182963091a..fa283304d8a 100644 --- a/doc/guides/modules.rst +++ b/doc/guides/modules.rst @@ -13,7 +13,7 @@ this page. To be classified as a candidate for being included in the default list of modules, an external project is required to have its own life-cycle outside the Zephyr Project, that is, reside in its own repository, and have its own -contribution and maintenance workfow and release process. Zephyr modules +contribution and maintenance workflow and release process. Zephyr modules should not contain code that is written exclusively for Zephyr. Instead, such code should be contributed to the main zephyr tree. @@ -74,7 +74,7 @@ Module Repositories Synchronizing with upstream =========================== -It is preferred to synchronize a module respository with the latest stable +It is preferred to synchronize a module repository with the latest stable release of the corresponding external project. It is permitted, however, to update a Zephyr module repository with the latest development branch tip, if this is required to get important updates in the module codebase. When @@ -111,7 +111,7 @@ module repository. Upstream changes brought as a single *snapshot* commit (manual diff) in a pull request against the module's main branch, which may be merged using the *Rebase & merge* operation. This approach is simple and -should be applicable to all modules with the downside of supressing the +should be applicable to all modules with the downside of suppressing the upstream history in the module repository. .. note:: diff --git a/doc/guides/networking/network_monitoring.rst b/doc/guides/networking/network_monitoring.rst index ac46b42daba..0dbe00fa4fa 100644 --- a/doc/guides/networking/network_monitoring.rst +++ b/doc/guides/networking/network_monitoring.rst @@ -78,7 +78,7 @@ The ``net-capture.py`` has following command line options: Listen captured network data from Zephyr and save it optionally to pcap file. ./net-capture.py \ -i | --interface - Listen this inferface for the data + Listen this interface for the data [-p | --port ] UDP port (default is 4242) where the capture data is received [-q | --quiet] diff --git a/doc/guides/networking/zephyr_netstack_overview-tx_sequence.svg b/doc/guides/networking/zephyr_netstack_overview-tx_sequence.svg index 8774248bb34..43443cf3c05 100644 --- a/doc/guides/networking/zephyr_netstack_overview-tx_sequence.svg +++ b/doc/guides/networking/zephyr_netstack_overview-tx_sequence.svg @@ -521,11 +521,11 @@ Other drivers Sheet.105 - Device driver retreives packet from the FIFO and sends it to ... + Device driver retrieves packet from the FIFO and sends it to ... - Device driver retreives packet Device driver retrieves packet from the FIFO and sends it to the network. @@ -559,11 +559,11 @@ Sheet.116 - Net_packet structue created, user data copied to it. Packet m... + Net_packet structure created, user data copied to it. Packet m... - Net_packet structue created, Net_packet structure created, user data copied to it. Packet marshalled to kernel space diff --git a/doc/guides/pm/device.rst b/doc/guides/pm/device.rst index 758cbc2c249..7ffda9252cf 100644 --- a/doc/guides/pm/device.rst +++ b/doc/guides/pm/device.rst @@ -132,7 +132,7 @@ later calling :c:func:`pm_device_wakeup_enable`. This property is **only** used by the system power management to identify devices that should not be suspended. - It is responsability of driver or the application to do any additional + It is responsibility of driver or the application to do any additional configuration required by the device to support it. Power Domain diff --git a/doc/guides/pm/device_runtime.rst b/doc/guides/pm/device_runtime.rst index 58a628cb517..678b115ec8e 100644 --- a/doc/guides/pm/device_runtime.rst +++ b/doc/guides/pm/device_runtime.rst @@ -5,7 +5,7 @@ Introduction ************ The device runtime power management (PM) framework is an active power management -mechanism which reduces the overall system power consumtion by suspending the +mechanism which reduces the overall system power consumption by suspending the devices which are idle or not used independently of the system state. It can be enabled by setting :kconfig:option:`CONFIG_PM_DEVICE_RUNTIME`. In this model the device driver is responsible to indicate when it needs the device and when it does not. @@ -20,7 +20,7 @@ state until it is no longer used. At this point, the device will be suspended until the next device request. If the suspension is performed synchronously the device will be immediately put into the :c:enumerator:`PM_DEVICE_STATE_SUSPENDED` state, whereas if it is performed -asynchonously, it will be put into the +asynchronously, it will be put into the :c:enumerator:`PM_DEVICE_STATE_SUSPENDING` state first and then into the :c:enumerator:`PM_DEVICE_STATE_SUSPENDED` state when the action is run. diff --git a/doc/guides/pm/power_domain.rst b/doc/guides/pm/power_domain.rst index 55557c900c3..8af99cc3268 100644 --- a/doc/guides/pm/power_domain.rst +++ b/doc/guides/pm/power_domain.rst @@ -13,7 +13,7 @@ low power state. Power domains are optional on Zephyr, to enable this feature the option :kconfig:option:`CONFIG_PM_DEVICE_POWER_DOMAIN` has to be set. -When a power domain turns itself on or off, it is the responsibilty of the +When a power domain turns itself on or off, it is the responsibility of the power domain to notify all devices using it through their power management callback called with :c:enumerator:`PM_DEVICE_ACTION_TURN_ON` or diff --git a/doc/guides/porting/arch.rst b/doc/guides/porting/arch.rst index 78a268f0d30..9cb23240da0 100644 --- a/doc/guides/porting/arch.rst +++ b/doc/guides/porting/arch.rst @@ -489,7 +489,7 @@ Two types of thread stacks exist: APIs, which can host kernel threads running in supervisor mode or used as the stack for interrupt/exception handling. These have significantly relaxed alignment requirements and use less reserved data. No memory is - reserved for prvilege elevation stacks. + reserved for privilege elevation stacks. - "thread" stacks which typically use more memory, but are capable of hosting thread running in user mode, as well as any use-cases for kernel stacks. @@ -593,7 +593,7 @@ possible. Stack overflows in user mode are recoverable (from the kernel's perspective) and require no special configuration; :kconfig:option:`CONFIG_HW_STACK_PROTECTION` -only applies to catching overflows when the CPU is in sueprvisor mode. +only applies to catching overflows when the CPU is in supervisor mode. CPU-based stack overflow detection ---------------------------------- @@ -871,7 +871,7 @@ To enable GDB stub for remote debugging on a new architecture: * Before calling :c:func:`z_gdb_main_loop`, :c:member:`gdb_ctx.exception` must be set to specify the exception reason. -#. Implementat necessary functions to support GDB stub functionality: +#. Implement necessary functions to support GDB stub functionality: * :c:func:`arch_gdb_init` @@ -959,7 +959,7 @@ To enable GDB stub for remote debugging on a new architecture: * :c:member:`gdb_mem_region.end` specifies the end of a memory region. - * :c:member:`gdb_mem_region.attribites` specifies the permission + * :c:member:`gdb_mem_region.attributes` specifies the permission of a memory region. * :c:macro:`GDB_MEM_REGION_RO`: region is read-only. diff --git a/doc/guides/porting/board_porting.rst b/doc/guides/porting/board_porting.rst index cd6418764dd..7dfca8d4bb1 100644 --- a/doc/guides/porting/board_porting.rst +++ b/doc/guides/porting/board_porting.rst @@ -502,7 +502,7 @@ Verbose mode prints any host tool commands the runner uses. The order of the ``include()`` calls in your :file:`board.cmake` matters. The first ``include`` sets the default runner if it's not already set. For example, -including ``nrfjprog.board.cmake`` first means that ``nrjfprog`` is the default +including ``nrfjprog.board.cmake`` first means that ``nrfjprog`` is the default flash runner for this board. Since ``nrfjprog`` does not support debugging, ``jlink`` is the default debug runner. diff --git a/doc/guides/smf/index.rst b/doc/guides/smf/index.rst index 0b974f92c3d..8f01bb2cb46 100644 --- a/doc/guides/smf/index.rst +++ b/doc/guides/smf/index.rst @@ -33,7 +33,7 @@ type with the following macro: ``SMF_CTX(o)`` For example instead of doing this ``(struct smf_ctx *)&user_obj``, you could use ``SMF_CTX(&user_obj)``. -By default, a state can have no anscestor states, resulting in a flat state +By default, a state can have no ancestor states, resulting in a flat state machine. But to enable the creation of a hierarchical state machine, the :kconfig:option:`CONFIG_SMF_ANCESTOR_SUPPORT` option must be enabled. @@ -208,7 +208,7 @@ S0 and S1 share a parent state and S0 is the initial state. .. graphviz:: - :caption: Hierarchial state machine diagram + :caption: Hierarchical state machine diagram digraph smf_hierarchical { node [style = rounded]; @@ -315,4 +315,4 @@ When designing hierarchical state machines, the following should be considered: example, the s1_exit function is called before the parent_exit function is called. - The parent_run function only executes if the child_run function returns - whithout transitioning to another state, ie. calling smf_set_state. + without transitioning to another state, ie. calling smf_set_state. diff --git a/doc/guides/test/twister.rst b/doc/guides/test/twister.rst index f0d88895126..d88a7e6efea 100644 --- a/doc/guides/test/twister.rst +++ b/doc/guides/test/twister.rst @@ -168,18 +168,18 @@ The name of each testcase needs to be unique in the context of the overall testsuite and has to follow basic rules: #. The format of the test identifier shall be a string without any spaces or - special characters (allowed characters: alphanumric and [\_=]) consisting of - multiple sections delimited with a dot (.). + special characters (allowed characters: alphanumeric and [\_=]) consisting + of multiple sections delimited with a dot (.). #. Each test identifier shall start with a section followed by a subsection separated by a dot. For example, a test that covers semaphores in the kernel - shall start with ``kernel.sempahore``. + shall start with ``kernel.semaphore``. #. All test identifiers within a testcase.yaml file need to be unique. For example a testcase.yaml file covering semaphores in the kernel can have: * ``kernel.semaphore``: For general semaphore tests - * ``kernel.semaphore.stress``: Stress testng semaphores in the kernel. + * ``kernel.semaphore.stress``: Stress testing semaphores in the kernel. #. Depending on the nature of the test, an identifier can consist of at least two sections: @@ -370,7 +370,7 @@ harness_config: Only one fixture can be defined per testcase. pytest_root: (default pytest) - Specify a pytest directory which need to excute when test case begin to running, + Specify a pytest directory which need to execute when test case begin to running, default pytest directory name is pytest, after pytest finished, twister will check if this case pass or fail according the pytest report. diff --git a/doc/guides/tfm/overview.rst b/doc/guides/tfm/overview.rst index fc9d3dae9c7..e80a62191ec 100644 --- a/doc/guides/tfm/overview.rst +++ b/doc/guides/tfm/overview.rst @@ -150,11 +150,11 @@ the secure MCU, etc.). All images in TF-M are hashed and signed, with the hash and signature verified by MCUBoot during the firmware update process. -Some key features of MCUBooot as used in TF-M are: +Some key features of MCUBoot as used in TF-M are: * Public signing key(s) are baked into the bootloader * S and NS images can be signed using different keys -* Firmware images can optionally be encyrpted +* Firmware images can optionally be encrypted * Client software is responsible for writing a new image to the secondary slot * By default, uses static flash layout of two identically-sized memory regions * Optional security counter for rollback protection diff --git a/doc/guides/tfm/testsuites.rst b/doc/guides/tfm/testsuites.rst index 33db52f17dd..35824adabd8 100644 --- a/doc/guides/tfm/testsuites.rst +++ b/doc/guides/tfm/testsuites.rst @@ -25,7 +25,7 @@ PSA Arch Tests The PSA Arch Test suite, available via :ref:`tfm_psa_test`, contains a number of test suites that can be used to validate that PSA API specifications are being followed by the secure application, TF-M being an implementation of -the Platform Securtity Architecture (PSA). +the Platform Security Architecture (PSA). Only one of these suites can be run at a time, with the available test suites described via ``CONFIG_TFM_PSA_TEST_*`` KConfig flags: diff --git a/doc/guides/west/extensions.rst b/doc/guides/west/extensions.rst index fe4fc8f8a32..520e0ec4a4a 100644 --- a/doc/guides/west/extensions.rst +++ b/doc/guides/west/extensions.rst @@ -202,7 +202,7 @@ Above: #. ``a-third-command`` with class ``ThirdCommand`` See the file :file:`west-commands-schema.yml` in the `west repository`_ for a -schema describing the contents of a :file:`west-comands.yml`. +schema describing the contents of a :file:`west-commands.yml`. Step 3: Update Your Manifest ============================ diff --git a/doc/guides/west/install.rst b/doc/guides/west/install.rst index 5734ee83809..e9f877cbe3f 100644 --- a/doc/guides/west/install.rst +++ b/doc/guides/west/install.rst @@ -36,7 +36,7 @@ This distribution includes a launcher executable, which is also named When west is installed, the launcher is placed by :file:`pip3` somewhere in the user's filesystem (exactly where depends on the operating system, but should be on the ``PATH`` :ref:`environment variable `). This -launcher is the command-line entry point to running both built-in commmands +launcher is the command-line entry point to running both built-in commands like ``west init``, ``west update``, along with any extensions discovered in the workspace. diff --git a/doc/guides/west/workspaces.rst b/doc/guides/west/workspaces.rst index f581d5e4153..a46d46d8053 100644 --- a/doc/guides/west/workspaces.rst +++ b/doc/guides/west/workspaces.rst @@ -93,7 +93,7 @@ To use this helper by default on your computer, run: On GitHub, you can set up a `personal access token`_ to use in place of your account password. (This may be required if your account has two-factor authentication enabled, and may be preferable to storing your account password -in plain text even if two-factor authentication is disabed.) +in plain text even if two-factor authentication is disabled.) If you don't want to store any credentials on the file system, you can store them in memory temporarily using `git-credential-cache`_ instead. diff --git a/doc/reference/api/api_lifecycle.rst b/doc/reference/api/api_lifecycle.rst index e58f6eef9d6..38434ffdd57 100644 --- a/doc/reference/api/api_lifecycle.rst +++ b/doc/reference/api/api_lifecycle.rst @@ -168,7 +168,7 @@ The Pull Request must include the following: Once the steps above have been completed, the outcome of the proposal will depend on the approval of the actual Pull Request by the maintainer of the -corresponding subystem. As with any other Pull Request, the author can request +corresponding subsystem. As with any other Pull Request, the author can request for it to be discussed and ultimately even voted on in the `Zephyr TSC meeting`_. If the Pull Request is merged then an email must be sent to the ``devel`` and diff --git a/doc/reference/bluetooth/mesh/core.rst b/doc/reference/bluetooth/mesh/core.rst index bea30a218aa..b40c1e5544f 100644 --- a/doc/reference/bluetooth/mesh/core.rst +++ b/doc/reference/bluetooth/mesh/core.rst @@ -50,7 +50,7 @@ is called until all RPL entries are written to the flash. Finding the right balance between @ref CONFIG_BT_MESH_RPL_STORE_TIMEOUT and calling @ref bt_mesh_rpl_pending_store may reduce a risk of security -volnurability and flash wear out. +vulnerability and flash wear out. API reference ************** diff --git a/doc/reference/bluetooth/mesh/shell.rst b/doc/reference/bluetooth/mesh/shell.rst index d5992ba2091..f4388a3ef6a 100644 --- a/doc/reference/bluetooth/mesh/shell.rst +++ b/doc/reference/bluetooth/mesh/shell.rst @@ -312,7 +312,7 @@ The Proxy Client model is an optional mesh subsystem that can be enabled through Auto-Connect a nearby proxy server into the mesh. - * ``NetKeyIndex``: Index of the network key to conenct. + * ``NetKeyIndex``: Index of the network key to connect. ``mesh proxy-disconnect `` @@ -602,14 +602,14 @@ The Configuration Client uses the general messages parameters set by ``mesh dst` Unsubscribe a model from a virtual address. * ``elem addr``: Address of the element the model is on. - * ``Label UUID``: 128-bit label UUID of the virtual address to remove the subscribtion of. Any omitted bytes will be zero. + * ``Label UUID``: 128-bit label UUID of the virtual address to remove the subscription of. Any omitted bytes will be zero. * ``Model ID``: The model ID of the model to add the subscription to. * ``Company ID``: If present, determines the Company ID of the model. If omitted, the model is a Bluetooth SIG defined model. ``mesh mod-sub-ow [Company ID]`` ------------------------------------------------------------------- - Overwrite all model subscriptios with a single new group address. + Overwrite all model subscriptions with a single new group address. * ``elem addr``: Address of the element the model is on. * ``sub addr``: 16-bit group address the model should added to the subscription list (``0xc000`` to ``0xFEFF``). diff --git a/doc/reference/canbus/controller.rst b/doc/reference/canbus/controller.rst index 83320ea423c..687a2c71e07 100644 --- a/doc/reference/canbus/controller.rst +++ b/doc/reference/canbus/controller.rst @@ -132,7 +132,7 @@ You can read more about CAN bus in this Zephyr supports following CAN features: -* Standard and Extended Identifers +* Standard and Extended Identifiers * Filters with Masking * Loopback and Silent mode * Remote Request @@ -180,7 +180,7 @@ occurred. It does not block until the message is sent like the example above. char *sender = (char *)arg; if (error != 0) { - LOG_ERR("Sendig failed [%d]\nSender: %s\n", error, sender); + LOG_ERR("Sending failed [%d]\nSender: %s\n", error, sender); } } diff --git a/doc/reference/data_structures/dlist.rst b/doc/reference/data_structures/dlist.rst index 179a1035855..f045c939193 100644 --- a/doc/reference/data_structures/dlist.rst +++ b/doc/reference/data_structures/dlist.rst @@ -14,7 +14,7 @@ memory space needs. A :c:struct:`sys_dlist_t` struct may be instantiated by the user in any accessible memory. It must be initialized with :c:func:`sys_dlist_init` or :c:macro:`SYS_DLIST_STATIC_INIT` before use. The :c:struct:`sys_dnode_t` struct -is expected to be provided by the user for any nodes addded to the +is expected to be provided by the user for any nodes added to the list (typically embedded within the struct to be tracked, as described above). It must be initialized in zeroed/bss memory or with :c:func:`sys_dnode_init` before use. diff --git a/doc/reference/data_structures/mpsc_pbuf.rst b/doc/reference/data_structures/mpsc_pbuf.rst index f99d3a8624d..faf10b6de08 100644 --- a/doc/reference/data_structures/mpsc_pbuf.rst +++ b/doc/reference/data_structures/mpsc_pbuf.rst @@ -61,7 +61,7 @@ Allocation Using pairs for read and write indexes, available space is determined. If space can be allocated, temporary write index is moved and pointer to a space -witing buffer is returned. Packet header is reset. If allocation required +within buffer is returned. Packet header is reset. If allocation required wrapping of the write index, a skip packet is added to the end of buffer. If space cannot be allocated and overwrite is disabled then ``NULL`` pointer is returned or context blocks if allocation was with timeout. diff --git a/doc/reference/data_structures/rbtree.rst b/doc/reference/data_structures/rbtree.rst index d644da308ec..1cd598bbe18 100644 --- a/doc/reference/data_structures/rbtree.rst +++ b/doc/reference/data_structures/rbtree.rst @@ -106,7 +106,7 @@ modification, however, routinely requires the ability to iterate "upwards" from a node as well. It is very common for red/black trees in the industry to store a third "parent" pointer for this purpose. Zephyr avoids this requirement by building a "stack" of node pointers -locally as it traverses downward thorugh the tree and updating it +locally as it traverses downward through the tree and updating it appropriately as modifications are made. So a Zephyr rbtree can be implemented with no more runtime storage overhead than a dlist. diff --git a/doc/reference/kernel/other/polling.rst b/doc/reference/kernel/other/polling.rst index eea06a7eff5..3cb0d1e0262 100644 --- a/doc/reference/kernel/other/polling.rst +++ b/doc/reference/kernel/other/polling.rst @@ -264,7 +264,7 @@ no longer be equal to :c:macro:`K_POLL_STATE_SIGNALED`, and a (naive) application will miss events. Best practice is always to reset the signal only from within the thread invoking the k_poll() loop, or else to use some other event type which tracks event counts: semaphores and -FIFOs more more error-proof in thise sense because they can't "miss" +FIFOs more more error-proof in this sense because they can't "miss" events, architecturally. Suggested Uses diff --git a/doc/reference/kernel/synchronization/condvar.rst b/doc/reference/kernel/synchronization/condvar.rst index 77bcb1ace0f..c298d486352 100644 --- a/doc/reference/kernel/synchronization/condvar.rst +++ b/doc/reference/kernel/synchronization/condvar.rst @@ -105,7 +105,7 @@ The following code builds on the example above. k_mutex_lock(&mutex, K_FOREVER); /* - * Do some work and fullfill the condition + * Do some work and fulfill the condition */ ... ... diff --git a/doc/reference/kernel/timing/clocks.rst b/doc/reference/kernel/timing/clocks.rst index 88a6b27458a..901fe88477d 100644 --- a/doc/reference/kernel/timing/clocks.rst +++ b/doc/reference/kernel/timing/clocks.rst @@ -267,7 +267,7 @@ acceptable. One complexity is :c:macro:`K_FOREVER`. Subsystems that might have been able to accept this value to their millisecond API in the past no -longer can, because it is no longer an intergral type. Such code +longer can, because it is no longer an integral type. Such code will need to use a different, integer-valued token to represent "forever". :c:macro:`K_NO_WAIT` has the same typesafety concern too, of course, but as it is (and has always been) simply a numerical zero, diff --git a/doc/reference/logging/index.rst b/doc/reference/logging/index.rst index 2498fe76d44..f3ed6ebcdbe 100644 --- a/doc/reference/logging/index.rst +++ b/doc/reference/logging/index.rst @@ -48,7 +48,7 @@ Logging v2 introduces following changes: allocation from ring buffer is more complex than from memslab. - No change in logging API - Logging to frontend can be used together with backends. -- Logging backend API exteded with function for processing v2 messages. +- Logging backend API extended with function for processing v2 messages. .. note:: Logging v1 is deprecated! Version 2 supports same set of features with extensions @@ -557,7 +557,7 @@ increased. Buffers are freed together with the log message. When :kconfig:option:`CONFIG_LOG_DETECT_MISSED_STRDUP` is enabled logger will scan each log message and report if string format specifier is found and string address is not in read only memory section or does not belong to memory pool -dedicated to string duplicates. It indictes that :c:func:`log_strdup` is +dedicated to string duplicates. It indicates that :c:func:`log_strdup` is missing in a call to log a message, such as ``LOG_INF``. Logging v2 @@ -578,7 +578,7 @@ identified by source ID and domain ID. Source ID can be retrieved if source name is known by iterating through all registered sources. Logging supports up to 9 concurrent backends. Log message is passed to the -each backend in processing phase. Additionally, backend is notfied when logging +each backend in processing phase. Additionally, backend is notified when logging enter panic mode with :c:func:`log_backend_panic`. On that call backend should switch to synchronous, interrupt-less operation or shut down itself if that is not supported. Occasionally, logging may inform backend about number of dropped @@ -796,7 +796,7 @@ from userspace. It is at the cost of larger memory footprint for a log message. .. [#f3] Logging subsystem memory footprint in :zephyr_file:`samples/subsys/logging/logger`. -.. [#f4] Avarage size of a log message (excluding string) with 2 arguments on ``Cortex M3`` +.. [#f4] Average size of a log message (excluding string) with 2 arguments on ``Cortex M3`` Stack usage *********** @@ -812,7 +812,7 @@ are used. :zephyr_file:`tests/subsys/logging/log_stack` test is used to characterize stack usage depending on mode, optimization and platform used. Test is using only the default backend. -Some of the platorms characterization for log message with two ``integer`` arguments listed below: +Some of the platforms characterization for log message with two ``integer`` arguments listed below: +---------------+----------+----------------------------+-----------+-----------------------------+ | Platform | Deferred | Deferred (no optimization) | Immediate | Immediate (no optimization) | diff --git a/doc/reference/memory_management/sys_mem_blocks.rst b/doc/reference/memory_management/sys_mem_blocks.rst index 9d1689a2a3a..abc1edd1a80 100644 --- a/doc/reference/memory_management/sys_mem_blocks.rst +++ b/doc/reference/memory_management/sys_mem_blocks.rst @@ -105,7 +105,7 @@ A memory blocks allocator is defined using a variable of type at compile time by calling :c:macro:`SYS_MEM_BLOCKS_DEFINE`. The following code defines and initializes a memory blocks allocator -which has 4 blocks that are 64 bytes long, each of which is aliged +which has 4 blocks that are 64 bytes long, each of which is aligned to a 4-byte boundary: .. code-block:: c @@ -162,7 +162,7 @@ then releases them once they are no longer needed. Using Multi Memory Blocks Allocator Group ========================================= -The following code demostrates how to initialize an allocator group: +The following code demonstrates how to initialize an allocator group: .. code-block:: c diff --git a/doc/reference/misc/timeutil.rst b/doc/reference/misc/timeutil.rst index db116a608ba..d41c5b48b89 100644 --- a/doc/reference/misc/timeutil.rst +++ b/doc/reference/misc/timeutil.rst @@ -132,7 +132,7 @@ Relevant Time Scales `International Atomic Time `__ (TAI) is a time -scale based on averaging clocks that count in SI seconds. TAI is a montonic +scale based on averaging clocks that count in SI seconds. TAI is a monotonic and continuous time scale. `Universal Time `__ (UT) is a diff --git a/doc/reference/networking/net_if.rst b/doc/reference/networking/net_if.rst index 1af09132690..0115b0f0964 100644 --- a/doc/reference/networking/net_if.rst +++ b/doc/reference/networking/net_if.rst @@ -50,7 +50,7 @@ packet priority. This is typically done in Ethernet networks when virtual LANs lower priority packets. The traffic class setup can be configured by :kconfig:option:`CONFIG_NET_TC_TX_COUNT` and :kconfig:option:`CONFIG_NET_TC_RX_COUNT` options. -If the :kconfig:option:`CONFIG_NET_PROMISCUOUS_MODE` is enabled and if the underlaying +If the :kconfig:option:`CONFIG_NET_PROMISCUOUS_MODE` is enabled and if the underlying network technology supports promiscuous mode, then it is possible to receive all the network packets that the network device driver is able to receive. See :ref:`promiscuous_interface` API for more details. diff --git a/doc/reference/networking/socks5.rst b/doc/reference/networking/socks5.rst index 6422f5bc05e..a935fd9e439 100644 --- a/doc/reference/networking/socks5.rst +++ b/doc/reference/networking/socks5.rst @@ -24,7 +24,7 @@ SOCKS5 API ********** The SOCKS5 support is enabled by :kconfig:option:`CONFIG_SOCKS` Kconfig variable. -Application wanting to use the SOCKS5 must set the SOCKS5 proxy host adddress +Application wanting to use the SOCKS5 must set the SOCKS5 proxy host address by calling :c:func:`setsockopt()` like this: .. code-block:: c diff --git a/doc/reference/peripherals/led.rst b/doc/reference/peripherals/led.rst index 9611d20bcfd..e4e640aaadb 100644 --- a/doc/reference/peripherals/led.rst +++ b/doc/reference/peripherals/led.rst @@ -7,7 +7,7 @@ Overview ******** The LED API provides access to Light Emitting Diodes, both in individual and -stip form. +strip form. Configuration Options ********************* diff --git a/doc/reference/shell/index.rst b/doc/reference/shell/index.rst index 903dce15a6f..6306268433c 100644 --- a/doc/reference/shell/index.rst +++ b/doc/reference/shell/index.rst @@ -486,7 +486,7 @@ Getopt Feature Some shell users apart from subcommands might need to use options as well. the arguments string, looking for supported options. Typically, this task -is accomplished by the ``getopt`` familly functions. +is accomplished by the ``getopt`` family functions. For this purpose shell supports the getopt and getopt_long libraries available in the FreeBSD project. This feature is activated by: diff --git a/doc/reference/storage/stream/stream_flash.rst b/doc/reference/storage/stream/stream_flash.rst index d49ab8bbb0b..76c404157d2 100644 --- a/doc/reference/storage/stream/stream_flash.rst +++ b/doc/reference/storage/stream/stream_flash.rst @@ -13,7 +13,7 @@ image to be used in a DFU operation. There are several reasons why one might want to use buffered writes instead of writing the data directly as it is made available. Some devices have hardware -limitations which does not allow flash writes to be performed in parallell with +limitations which does not allow flash writes to be performed in parallel with other operations, such as radio RX and TX. Also, fewer write operations result in faster response times seen from the application. diff --git a/doc/security/reporting.rst b/doc/security/reporting.rst index 19146aee690..c3c39677175 100644 --- a/doc/security/reporting.rst +++ b/doc/security/reporting.rst @@ -115,7 +115,7 @@ should merely describe what has been fixed. The security subcommittee will maintain information mapping embargoed CVEs to these PRs (this information is within the Github security -adivisories), and produce regular reports of the state of security +advisories), and produce regular reports of the state of security issues. Each issue that is considered a security vulnerability shall be @@ -139,7 +139,7 @@ This list will be seeded initially with a contact from each project member. Additional parties can request to join this list by filling out the form at the `Vulnerability Registry`_. These parties will be vetted by the project director to determine that they have a -legimitate interest in knowing about security vulnerabilities during +legitimate interest in knowing about security vulnerabilities during the embargo period. .. _Vulnerability Registry: https://www.zephyrproject.org/vulnerability-registry/  diff --git a/doc/security/security-citations.rst b/doc/security/security-citations.rst index 0c580eae040..989c142f8e4 100644 --- a/doc/security/security-citations.rst +++ b/doc/security/security-citations.rst @@ -6,7 +6,7 @@ Security Document Citations ########################### .. [SALT75] J. H. Saltzer and M. D. Schroeder, "The protection of - information in computer systems," Proceedings ofthe IEEE, vol. 63, no. + information in computer systems," Proceedings of the IEEE, vol. 63, no. 9, pp. 1278-1308, Sep 1975. [Online]. Available: http://web.mit.edu/Saltzer/www/publications/protection/. diff --git a/doc/security/sensor-threat.rst b/doc/security/sensor-threat.rst index 5f1a0ca4b47..aea2e97772d 100644 --- a/doc/security/sensor-threat.rst +++ b/doc/security/sensor-threat.rst @@ -270,7 +270,7 @@ where data or assets are communicated between entities of the system. being reused if they are intercepted. The token shall not be sent until the device has verified the identity of the server. - d. **Random/Entropy source**. Cryptograph communication requires the + d. **Random/Entropy source**. Cryptographic communication requires the generation of secure pseudorandom numbers. The device shall use a modern, accepted cryptographic random-bit generator to generate these random numbers. It shall use either a Non-Deterministic diff --git a/doc/security/vulnerabilities.rst b/doc/security/vulnerabilities.rst index f49dfc0cb82..ddae2e7d916 100644 --- a/doc/security/vulnerabilities.rst +++ b/doc/security/vulnerabilities.rst @@ -345,7 +345,7 @@ UpdateHub Might Dereference An Uninitialized Pointer In updatehub_probe, right after JSON parsing is complete, objects\[1] is accessed from the output structure in two different places. If the JSON contained less than two elements, this access would reference -unitialized stack memory. This could result in a crash, denial of +uninitialized stack memory. This could result in a crash, denial of service, or possibly an information leak. Recommend disabling updatehub until such a time as a fix can be made diff --git a/drivers/adc/Kconfig.adc_emul b/drivers/adc/Kconfig.adc_emul index 8f3bc5b7765..7f621a70fd7 100644 --- a/drivers/adc/Kconfig.adc_emul +++ b/drivers/adc/Kconfig.adc_emul @@ -5,7 +5,7 @@ config ADC_EMUL bool "ADC emulator" help Enable the ADC emulator driver. This is a fake driver in that it - does not talk to real hardware. It prenteds to be actual ADC. It + does not talk to real hardware. It pretends to be actual ADC. It is used for testing higher-level API for ADC devices. if ADC_EMUL diff --git a/drivers/adc/adc_ads1x1x.c b/drivers/adc/adc_ads1x1x.c index f08bbee08f4..fd77b65986f 100644 --- a/drivers/adc/adc_ads1x1x.c +++ b/drivers/adc/adc_ads1x1x.c @@ -387,7 +387,7 @@ static int ads1x1x_channel_setup(const struct device *dev, config |= ADS1X1X_CONFIG(DR, dr); if (ads_config->pga) { - /* programable gain amplifier support */ + /* programmable gain amplifier support */ switch (channel_cfg->gain) { case ADC_GAIN_2_3: config |= ADS1X1X_CONFIG(PGA, ADS1X1X_CONFIG_PGA_6144); @@ -412,7 +412,7 @@ static int ads1x1x_channel_setup(const struct device *dev, return -ENOTSUP; } } else { - /* no programable gain ampilier, so only allow ADC_GAIN_1 */ + /* no programmable gain amplifier, so only allow ADC_GAIN_1 */ if (channel_cfg->gain != ADC_GAIN_1) { LOG_ERR("unsupported channel gain '%d'", channel_cfg->gain); return -ENOTSUP; @@ -625,7 +625,7 @@ static const struct adc_driver_api ads1x1x_api = { &ads##t##_config_##n, POST_KERNEL, CONFIG_ADC_ADS1X1X_INIT_PRIORITY, \ &ads1x1x_api); -/* The ADS111X provides 16 bits of data in binary two's complment format +/* The ADS111X provides 16 bits of data in binary two's complement format * A positive full-scale (+FS) input produces an output code of 7FFFh and a * negative full-scale (–FS) input produces an output code of 8000h. Single * ended signal measurements only only use the positive code range from @@ -644,7 +644,7 @@ static const struct adc_driver_api ads1x1x_api = { } /* - * ADS1115: 16 bit, multiplexer, programmable gain ampilier + * ADS1115: 16 bit, multiplexer, programmable gain amplifier */ #define ADS1115_INIT(n) ADS1X1X_INIT(1115, n, ADS111X_ODR_DELAY_US, ADS111X_RESOLUTION, true, true) #undef DT_DRV_COMPAT @@ -652,7 +652,7 @@ static const struct adc_driver_api ads1x1x_api = { DT_INST_FOREACH_STATUS_OKAY(ADS1115_INIT) /* - * ADS1114: 16 bit, no multiplexer, programmable gain ampilier + * ADS1114: 16 bit, no multiplexer, programmable gain amplifier */ #define ADS1114_INIT(n) ADS1X1X_INIT(1114, n, ADS111X_ODR_DELAY_US, ADS111X_RESOLUTION, false, true) #undef DT_DRV_COMPAT @@ -660,7 +660,7 @@ DT_INST_FOREACH_STATUS_OKAY(ADS1115_INIT) DT_INST_FOREACH_STATUS_OKAY(ADS1114_INIT) /* - * ADS1113: 16 bit, no multiplexer, no programmable gain ampilier + * ADS1113: 16 bit, no multiplexer, no programmable gain amplifier */ #define ADS1113_INIT(n) \ ADS1X1X_INIT(1113, n, ADS111X_ODR_DELAY_US, ADS111X_RESOLUTION, false, false) @@ -668,7 +668,7 @@ DT_INST_FOREACH_STATUS_OKAY(ADS1114_INIT) #define DT_DRV_COMPAT ti_ads1113 DT_INST_FOREACH_STATUS_OKAY(ADS1113_INIT) -/* The ADS101X provides 12 bits of data in binary two's complment format +/* The ADS101X provides 12 bits of data in binary two's complement format * A positive full-scale (+FS) input produces an output code of 7FFh and a * negative full-scale (–FS) input produces an output code of 800h. Single * ended signal measurements only only use the positive code range from @@ -687,7 +687,7 @@ DT_INST_FOREACH_STATUS_OKAY(ADS1113_INIT) } /* - * ADS1015: 12 bit, multiplexer, programmable gain ampilier + * ADS1015: 12 bit, multiplexer, programmable gain amplifier */ #define ADS1015_INIT(n) ADS1X1X_INIT(1015, n, ADS101X_ODR_DELAY_US, ADS101X_RESOLUTION, true, true) #undef DT_DRV_COMPAT @@ -695,7 +695,7 @@ DT_INST_FOREACH_STATUS_OKAY(ADS1113_INIT) DT_INST_FOREACH_STATUS_OKAY(ADS1015_INIT) /* - * ADS1014: 12 bit, no multiplexer, programmable gain ampilier + * ADS1014: 12 bit, no multiplexer, programmable gain amplifier */ #define ADS1014_INIT(n) ADS1X1X_INIT(1014, n, ADS101X_ODR_DELAY_US, ADS101X_RESOLUTION, false, true) #undef DT_DRV_COMPAT @@ -703,7 +703,7 @@ DT_INST_FOREACH_STATUS_OKAY(ADS1015_INIT) DT_INST_FOREACH_STATUS_OKAY(ADS1014_INIT) /* - * ADS1013: 12 bit, no multiplexer, no programmable gain ampilier + * ADS1013: 12 bit, no multiplexer, no programmable gain amplifier */ #define ADS1013_INIT(n) \ ADS1X1X_INIT(1013, n, ADS101X_ODR_DELAY_US, ADS101X_RESOLUTION, false, false) diff --git a/drivers/can/can_mcan.c b/drivers/can/can_mcan.c index 99385274497..45e736af332 100644 --- a/drivers/can/can_mcan.c +++ b/drivers/can/can_mcan.c @@ -853,7 +853,7 @@ int can_mcan_add_rx_filter_std(struct can_mcan_data *data, return -ENOSPC; } - /* TODO propper fifo balancing */ + /* TODO proper fifo balancing */ filter_element.sfce = filter_id & 0x01 ? CAN_MCAN_FCE_FIFO1 : CAN_MCAN_FCE_FIFO0; @@ -915,7 +915,7 @@ static int can_mcan_add_rx_filter_ext(struct can_mcan_data *data, return -ENOSPC; } - /* TODO propper fifo balancing */ + /* TODO proper fifo balancing */ filter_element.efce = filter_id & 0x01 ? CAN_MCAN_FCE_FIFO1 : CAN_MCAN_FCE_FIFO0; diff --git a/drivers/can/can_stm32.c b/drivers/can/can_stm32.c index f49d8e2aa8a..877609fdf0d 100644 --- a/drivers/can/can_stm32.c +++ b/drivers/can/can_stm32.c @@ -1141,7 +1141,7 @@ void can_stm32_remove_rx_filter(const struct device *dev, int filter_id) filter_index = can_calc_filter_index(filter_id, mode_reg, scale_reg); type = can_stm32_get_filter_type(bank_nr, mode_reg, scale_reg); - LOG_DBG("Detatch filter number %d (index %d), type %d", filter_id, + LOG_DBG("Detach filter number %d (index %d), type %d", filter_id, filter_index, type); diff --git a/drivers/clock_control/Kconfig.nrf b/drivers/clock_control/Kconfig.nrf index 1909d8eca0e..7b0de1aea60 100644 --- a/drivers/clock_control/Kconfig.nrf +++ b/drivers/clock_control/Kconfig.nrf @@ -71,7 +71,7 @@ config CLOCK_CONTROL_NRF_DRIVER_CALIBRATION depends on MULTITHREADING default y help - Enabling indicates that calibration is perfomed by the clock control driver. + Enabling indicates that calibration is performed by the clock control driver. config CLOCK_CONTROL_NRF_CALIBRATION_LF_ALWAYS_ON bool "LF clock is always on" diff --git a/drivers/clock_control/clock_control_lpc11u6x.h b/drivers/clock_control/clock_control_lpc11u6x.h index 5118dd4020e..a462840ff10 100644 --- a/drivers/clock_control/clock_control_lpc11u6x.h +++ b/drivers/clock_control/clock_control_lpc11u6x.h @@ -110,14 +110,14 @@ struct lpc11u6x_syscon_regs { volatile uint32_t sys_tck_cal; /* System tick calibration */ volatile const uint32_t reserved12[6]; volatile uint32_t irq_latency; /* IRQ latency */ - volatile uint32_t nmi_src; /* NMI source contorl */ + volatile uint32_t nmi_src; /* NMI source control */ volatile uint32_t pint_sel[8]; /* GPIO pin interrupt select */ volatile uint32_t usb_clk_ctrl; /* USB clock control */ volatile const uint32_t usb_clk_stat; /* USB clock status */ volatile uint32_t reserved13[25]; - volatile uint32_t starterp0; /* Sart logic 0 int wake-up */ + volatile uint32_t starterp0; /* Start logic 0 int wake-up */ volatile const uint32_t reserved14[3]; - volatile uint32_t starterp1; /* Sart logic 1 int wake-up */ + volatile uint32_t starterp1; /* Start logic 1 int wake-up */ volatile const uint32_t reserved15[6]; volatile uint32_t pd_sleep_cfg; /* Deep-sleep power-down * states diff --git a/drivers/clock_control/clock_control_mchp_xec.c b/drivers/clock_control/clock_control_mchp_xec.c index f3044f07fd3..ebad8772087 100644 --- a/drivers/clock_control/clock_control_mchp_xec.c +++ b/drivers/clock_control/clock_control_mchp_xec.c @@ -328,7 +328,7 @@ static int pll_wait_lock(struct pcr_regs *const pcr, uint32_t wait_cnt) * goes off. * At chip reset the PLL is held in reset and the +/- 50% ring oscillator is * the main clock. - * If no VBAT reset occurs the VBAT 32 KHz soure register maintains its state. + * If no VBAT reset occurs the VBAT 32 KHz source register maintains its state. */ static int soc_clk32_init(const struct device *dev, enum clk32k_src pll_clk_src, diff --git a/drivers/clock_control/clock_control_nrf.c b/drivers/clock_control/clock_control_nrf.c index 7366d7659aa..9527198cdd7 100644 --- a/drivers/clock_control/clock_control_nrf.c +++ b/drivers/clock_control/clock_control_nrf.c @@ -762,5 +762,5 @@ SHELL_STATIC_SUBCMD_SET_CREATE(subcmds, SHELL_COND_CMD_REGISTER(CONFIG_CLOCK_CONTROL_NRF_SHELL, nrf_clock_control, &subcmds, - "Clock control commmands", + "Clock control commands", cmd_status); diff --git a/drivers/clock_control/clock_stm32_ll_h7.c b/drivers/clock_control/clock_stm32_ll_h7.c index 0f914869763..93cbc401b84 100644 --- a/drivers/clock_control/clock_stm32_ll_h7.c +++ b/drivers/clock_control/clock_stm32_ll_h7.c @@ -39,7 +39,7 @@ #define z_apb4_prescaler(v) LL_RCC_APB4_DIV_ ## v #define apb4_prescaler(v) z_apb4_prescaler(v) -/* Macro to check for clock feasability */ +/* Macro to check for clock feasibility */ /* It is Cortex M7's responsibility to setup clock tree */ /* This check should only be performed for the M7 core code */ #ifdef CONFIG_CPU_CORTEX_M7 diff --git a/drivers/clock_control/clock_stm32_ll_u5.c b/drivers/clock_control/clock_stm32_ll_u5.c index 9514a981f88..b85dc46ee00 100644 --- a/drivers/clock_control/clock_stm32_ll_u5.c +++ b/drivers/clock_control/clock_stm32_ll_u5.c @@ -66,7 +66,7 @@ void config_enable_default_clocks(void) while (!LL_RCC_LSE_IsReady()) { } - /* Enable LSESYS additionnally */ + /* Enable LSESYS additionally */ LL_RCC_LSE_EnablePropagation(); /* Wait till LSESYS is ready */ while (!LL_RCC_LSESYS_IsReady()) { diff --git a/drivers/counter/counter_ll_stm32_timer.c b/drivers/counter/counter_ll_stm32_timer.c index 605a741d905..6c024b4795b 100644 --- a/drivers/counter/counter_ll_stm32_timer.c +++ b/drivers/counter/counter_ll_stm32_timer.c @@ -194,7 +194,7 @@ static int counter_stm32_set_cc(const struct device *dev, uint8_t id, "Expected that CC interrupt is disabled."); /* First take care of a risk of an event coming from CC being set to - * next tick. Reconfigure CC to future (now tick is the furtherest + * next tick. Reconfigure CC to future (now tick is the furthest * future). */ now = counter_stm32_read(dev); diff --git a/drivers/counter/counter_nrfx_rtc.c b/drivers/counter/counter_nrfx_rtc.c index 2511d3d2670..b00abc2d545 100644 --- a/drivers/counter/counter_nrfx_rtc.c +++ b/drivers/counter/counter_nrfx_rtc.c @@ -247,7 +247,7 @@ static int set_cc(const struct device *dev, uint8_t chan, uint32_t val, now = nrf_rtc_counter_get(rtc); /* First take care of a risk of an event coming from CC being set to - * next tick. Reconfigure CC to future (now tick is the furtherest + * next tick. Reconfigure CC to future (now tick is the furthest * future). If CC was set to next tick we need to wait for up to 15us * (half of 32k tick) and clean potential event. After that time there * is no risk of unwanted event. diff --git a/drivers/counter/counter_nrfx_timer.c b/drivers/counter/counter_nrfx_timer.c index be61d4bc1dc..8fa67b899f5 100644 --- a/drivers/counter/counter_nrfx_timer.c +++ b/drivers/counter/counter_nrfx_timer.c @@ -154,7 +154,7 @@ static int set_cc(const struct device *dev, uint8_t id, uint32_t val, "Expected that CC interrupt is disabled."); /* First take care of a risk of an event coming from CC being set to - * next tick. Reconfigure CC to future (now tick is the furtherest + * next tick. Reconfigure CC to future (now tick is the furthest * future). */ now = read(dev); diff --git a/drivers/display/gd7965.c b/drivers/display/gd7965.c index 715b8dae7a2..b9a1f966070 100644 --- a/drivers/display/gd7965.c +++ b/drivers/display/gd7965.c @@ -22,7 +22,7 @@ LOG_MODULE_REGISTER(gd7965, CONFIG_DISPLAY_LOG_LEVEL); /** * GD7965 compatible EPD controller driver. * - * Currently only the black/white pannels are supported (KW mode), + * Currently only the black/white panels are supported (KW mode), * also first gate/source should be 0. */ @@ -105,7 +105,7 @@ static int gd7965_update_display(const struct device *dev) static int gd7965_blanking_off(const struct device *dev) { if (blanking_on) { - /* Update EPD pannel in normal mode */ + /* Update EPD panel in normal mode */ gd7965_busy_wait(dev); if (gd7965_update_display(dev)) { return -EIO; @@ -318,7 +318,7 @@ static int gd7965_controller_init(const struct device *dev) k_sleep(K_MSEC(GD7965_PON_DELAY)); gd7965_busy_wait(dev); - /* Pannel settings, KW mode */ + /* Panel settings, KW mode */ tmp[0] = GD7965_PSR_KW_R | GD7965_PSR_UD | GD7965_PSR_SHL | diff --git a/drivers/dma/dma_nios2_msgdma.c b/drivers/dma/dma_nios2_msgdma.c index 8acd36d0923..a6ebdc8f106 100644 --- a/drivers/dma/dma_nios2_msgdma.c +++ b/drivers/dma/dma_nios2_msgdma.c @@ -153,7 +153,7 @@ static int nios2_msgdma_transfer_start(const struct device *dev, struct nios2_msgdma_dev_data *cfg = (struct nios2_msgdma_dev_data *)dev->data; int status; - /* Nios-II mSGDMA supports only one channel per DMA core */ + /* Nios-II MSGDMA supports only one channel per DMA core */ if (channel != 0U) { LOG_ERR("Invalid channel number"); return -EINVAL; diff --git a/drivers/entropy/entropy_stm32.c b/drivers/entropy/entropy_stm32.c index f5a041b2cce..93719bcdf1f 100644 --- a/drivers/entropy/entropy_stm32.c +++ b/drivers/entropy/entropy_stm32.c @@ -37,7 +37,7 @@ /* * This driver need to take into account all STM32 family: - * - simple rng without harware fifo and no DMA. + * - simple rng without hardware fifo and no DMA. * - Variable delay between two consecutive random numbers * (depending on family and clock settings) * diff --git a/drivers/espi/Kconfig b/drivers/espi/Kconfig index 65107f1c8aa..3c4de413c86 100644 --- a/drivers/espi/Kconfig +++ b/drivers/espi/Kconfig @@ -54,7 +54,7 @@ config ESPI_AUTOMATIC_WARNING_ACKNOWLEDGE depends on ESPI_VWIRE_CHANNEL depends on ESPI_SLAVE help - Enable automatic acknowledgent from eSPI slave towards eSPI host + Enable automatic acknowledgment from eSPI slave towards eSPI host whenever it receives suspend or reset warning. If this is disabled, it means the app wants to be give the opportunity to prepare for either HOST suspend or reset. diff --git a/drivers/ethernet/Kconfig.stm32_hal b/drivers/ethernet/Kconfig.stm32_hal index ff32e848de2..c1f8c56583c 100644 --- a/drivers/ethernet/Kconfig.stm32_hal +++ b/drivers/ethernet/Kconfig.stm32_hal @@ -97,7 +97,7 @@ config ETH_STM32_AUTO_NEGOTIATION_ENABLE if !ETH_STM32_AUTO_NEGOTIATION_ENABLE config ETH_STM32_SPEED_10M - bool "Set speed to 10 Mbps when autonegotiation is diabled" + bool "Set speed to 10 Mbps when autonegotiation is disabled" default n help Set this if using 10 Mbps and when autonegotiation is disabled, otherwise speed diff --git a/drivers/gpio/gpio_pca953x.c b/drivers/gpio/gpio_pca953x.c index efc6ec7b2df..ad30d16db9c 100644 --- a/drivers/gpio/gpio_pca953x.c +++ b/drivers/gpio/gpio_pca953x.c @@ -161,7 +161,7 @@ static void gpio_pca953x_work_handler(struct k_work *work) } /** - * @brief ISR for intterupt pin of PCA953X + * @brief ISR for interrupt pin of PCA953X * * @param dev Pointer to the device structure for the driver instance. * @param gpio_cb Pointer to callback function struct diff --git a/drivers/i2c/i2c_gd32.c b/drivers/i2c/i2c_gd32.c index 4a152790de9..aa5a3cda000 100644 --- a/drivers/i2c/i2c_gd32.c +++ b/drivers/i2c/i2c_gd32.c @@ -429,7 +429,7 @@ static int i2c_gd32_transfer(const struct device *dev, current = msgs; - /* First message flags implict contain I2C_MSG_RESTART flag. */ + /* First message flags implicitly contain I2C_MSG_RESTART flag. */ current->flags |= I2C_MSG_RESTART; for (uint8_t i = 1; i <= num_msgs; i++) { @@ -453,7 +453,7 @@ static int i2c_gd32_transfer(const struct device *dev, return -EINVAL; } } else { - /* Last message flags implict contain I2C_MSG_STOP flag. */ + /* Last message flags implicitly contain I2C_MSG_STOP flag. */ current->flags |= I2C_MSG_STOP; } diff --git a/drivers/i2c/i2c_npcx_controller.c b/drivers/i2c/i2c_npcx_controller.c index e26bd1836f9..7ed1d4fbd09 100644 --- a/drivers/i2c/i2c_npcx_controller.c +++ b/drivers/i2c/i2c_npcx_controller.c @@ -298,7 +298,7 @@ static inline void i2c_ctrl_fifo_clear_status(const struct device *dev) /* * I2C local functions which touch the registers in 'Normal' bank. These * utilities will change bank back to FIFO mode when leaving themselves in case - * the other utilities acces the registers in 'FIFO' bank. + * the other utilities access the registers in 'FIFO' bank. */ static void i2c_ctrl_hold_bus(const struct device *dev, int stall) { diff --git a/drivers/i2c/i2c_npcx_port.c b/drivers/i2c/i2c_npcx_port.c index c1dc0b68732..ef39e29b310 100644 --- a/drivers/i2c/i2c_npcx_port.c +++ b/drivers/i2c/i2c_npcx_port.c @@ -12,7 +12,7 @@ * * This file contains the driver of SMBus/I2C buses (ports) which provides * pin-muxing for each i2c io-pads. In order to support "SMBus Multi-Bus" - * feature, please refer the diagram below, the driver alsp provides connection + * feature, please refer the diagram below, the driver also provides connection * between Zephyr i2c api functions and i2c controller driver which provides * full support for SMBus/I2C transactions. * diff --git a/drivers/ieee802154/ieee802154_b91.c b/drivers/ieee802154/ieee802154_b91.c index 52385713fd7..5cc4624c6ad 100644 --- a/drivers/ieee802154/ieee802154_b91.c +++ b/drivers/ieee802154/ieee802154_b91.c @@ -256,7 +256,7 @@ static void b91_rf_rx_isr(void) uint8_t *payload; struct net_pkt *pkt; - /* disable DMA and clread IRQ flag */ + /* disable DMA and clear IRQ flag */ dma_chn_dis(DMA1); rf_clr_irq_status(FLD_RF_IRQ_RX); diff --git a/drivers/ieee802154/ieee802154_cc1200.c b/drivers/ieee802154/ieee802154_cc1200.c index 8514fd34ae8..1da07a15026 100644 --- a/drivers/ieee802154/ieee802154_cc1200.c +++ b/drivers/ieee802154/ieee802154_cc1200.c @@ -159,7 +159,7 @@ static uint8_t get_status(const struct device *dev) return val & CC1200_STATUS_MASK; } - /* We cannot get the status, so let's assume about readyness */ + /* We cannot get the status, so let's assume about readiness */ return CC1200_STATUS_CHIP_NOT_READY; } diff --git a/drivers/ieee802154/ieee802154_dw1000.c b/drivers/ieee802154/ieee802154_dw1000.c index d49c707741e..8bb716a23c0 100644 --- a/drivers/ieee802154/ieee802154_dw1000.c +++ b/drivers/ieee802154/ieee802154_dw1000.c @@ -140,7 +140,7 @@ static struct dwt_context dwt_0_context = { }, }; -/* This structer is used to read all additional RX frame info at one push */ +/* This struct is used to read all additional RX frame info at one push */ struct dwt_rx_info_regs { uint8_t rx_fqual[DWT_RX_FQUAL_LEN]; uint8_t rx_ttcki[DWT_RX_TTCKI_LEN]; diff --git a/drivers/ieee802154/ieee802154_dw1000_regs.h b/drivers/ieee802154/ieee802154_dw1000_regs.h index e1766279a6e..ae0433ad927 100644 --- a/drivers/ieee802154/ieee802154_dw1000_regs.h +++ b/drivers/ieee802154/ieee802154_dw1000_regs.h @@ -650,7 +650,7 @@ /* * Acknowledge (31:24 preamble symbol delay before auto ACK is sent) and - * respose (19:0 - unit 1us) timer + * response (19:0 - unit 1us) timer */ /* Acknowledgement Time and Response Time */ #define DWT_ACK_RESP_T_ID 0x1A @@ -1398,7 +1398,7 @@ #define DWT_AON_WCFG_LEN 2 /* Access mask to AON_WCFG register */ #define DWT_AON_WCFG_MASK 0x09CB -/* On Wake-up Run the (temperature and voltage) Analog-to-Digital Convertors */ +/* On Wake-up Run the (temperature and voltage) Analog-to-Digital Converters */ #define DWT_AON_WCFG_ONW_RADC 0x0001 /* On Wake-up turn on the Receiver */ #define DWT_AON_WCFG_ONW_RX 0x0002 diff --git a/drivers/interrupt_controller/intc_esp32.c b/drivers/interrupt_controller/intc_esp32.c index a3deb18ab36..8b9dc9746cc 100644 --- a/drivers/interrupt_controller/intc_esp32.c +++ b/drivers/interrupt_controller/intc_esp32.c @@ -62,7 +62,7 @@ static inline void esp_intr_unlock(void) } /* - * Interrupt handler table and unhandled uinterrupt routine. Duplicated + * Interrupt handler table and unhandled interrupt routine. Duplicated * from xtensa_intr.c... it's supposed to be private, but we need to look * into it in order to see if someone allocated an int using * set_interrupt_handler. @@ -360,7 +360,7 @@ static int get_available_int(int flags, int cpu, int force, int source) /* if existing vd found, don't need to search any more. */ INTC_LOG("%s: existing vd found. intno: %d", __func__, vd->intno); if (force != -1 && force != vd->intno) { - INTC_LOG("%s: intr forced but not matach existing. " + INTC_LOG("%s: intr forced but not match existing. " "existing intno: %d, force: %d", __func__, vd->intno, force); } else if (!is_vect_desc_usable(vd, flags, cpu, force)) { INTC_LOG("%s: existing vd invalid.", __func__); diff --git a/drivers/interrupt_controller/intc_gic.c b/drivers/interrupt_controller/intc_gic.c index 28804dcd559..7893fc3f9b1 100644 --- a/drivers/interrupt_controller/intc_gic.c +++ b/drivers/interrupt_controller/intc_gic.c @@ -92,7 +92,7 @@ void arm_gic_eoi(unsigned int irq) * Ensure the write to peripheral registers are *complete* before the write * to GIC_EOIR. * - * Note: The completion gurantee depends on various factors of system design + * Note: The completion guarantee depends on various factors of system design * and the barrier is the best core can do by which execution of further * instructions waits till the barrier is alive. */ diff --git a/drivers/interrupt_controller/intc_gicv3_its.c b/drivers/interrupt_controller/intc_gicv3_its.c index b5aaff8d2d5..491305b7e13 100644 --- a/drivers/interrupt_controller/intc_gicv3_its.c +++ b/drivers/interrupt_controller/intc_gicv3_its.c @@ -480,7 +480,7 @@ static int gicv3_its_map_intid(const struct device *dev, uint32_t device_id, uin return -EINVAL; } - /* The CPU id directly maps as ICID for the currect CPU redistributor */ + /* The CPU id directly maps as ICID for the current CPU redistributor */ ret = its_send_mapti_cmd(data, device_id, event_id, intid, arch_curr_cpu()->id); if (ret) { LOG_ERR("Failed to map eventid %d to intid %d for deviceid %x", diff --git a/drivers/ipm/ipm_cavs_host.c b/drivers/ipm/ipm_cavs_host.c index 1737da6d816..84184f4437f 100644 --- a/drivers/ipm/ipm_cavs_host.c +++ b/drivers/ipm/ipm_cavs_host.c @@ -18,7 +18,7 @@ * * + Buffer addresses are 4k-aligned (this is a hardware requirement) * + Inbuf must be 4k after outbuf, with no use of the intervening memory - * + Oubuf must be 4k after the start of win0 (this is where the host driver looks) + * + Outbuf must be 4k after the start of win0 (this is where the host driver looks) * * One side effect is that the word "before" MSG_INBUF is owned by our * code too, and can be used for a nice trick below. @@ -70,7 +70,7 @@ static int send(const struct device *ipmdev, int wait, uint32_t id, bool ok = cavs_ipc_send_message(CAVS_HOST_DEV, id, ext_data); /* The IPM docs call for "busy waiting" here, but in fact - * there's a blocking synchrnous call available that might be + * there's a blocking synchronous call available that might be * better. But then we'd have to check whether we're in * interrupt context, and it's not clear to me that SOF would * benefit anyway as all its usage is async. This is OK for diff --git a/drivers/kscan/kscan_mchp_xec.c b/drivers/kscan/kscan_mchp_xec.c index a5ca6d5bbb5..1e741938661 100644 --- a/drivers/kscan/kscan_mchp_xec.c +++ b/drivers/kscan/kscan_mchp_xec.c @@ -31,7 +31,7 @@ LOG_MODULE_REGISTER(kscan_mchp_xec); #define KEYBOARD_COLUMN_DRIVE_ALL -2 #define KEYBOARD_COLUMN_DRIVE_NONE -1 -/* Poll period/debouncing rely onthe 32KHz clock with 30 usec clock cycles */ +/* Poll period/debouncing rely on the 32KHz clock with 30 usec clock cycles */ #define CLOCK_32K_HW_CYCLES_TO_US(X) \ (uint32_t)((((uint64_t)(X) * 1000000U) / sys_clock_hw_cycles_per_sec())) /* Milliseconds in microseconds */ diff --git a/drivers/mm/mm_drv_intel_adsp_tlb.c b/drivers/mm/mm_drv_intel_adsp_tlb.c index 5e655bb4fb9..5d1de411794 100644 --- a/drivers/mm/mm_drv_intel_adsp_tlb.c +++ b/drivers/mm/mm_drv_intel_adsp_tlb.c @@ -59,7 +59,7 @@ static struct k_spinlock tlb_lock; /** * Calculate the index to the TLB table. * - * @param vaddr Page-aligned virutal address. + * @param vaddr Page-aligned virtual address. * @return Index to the TLB table. */ static uint32_t get_tlb_entry_idx(uintptr_t vaddr) diff --git a/drivers/modem/simcom-sim7080.c b/drivers/modem/simcom-sim7080.c index b81acd9954e..91abebb3756 100644 --- a/drivers/modem/simcom-sim7080.c +++ b/drivers/modem/simcom-sim7080.c @@ -202,7 +202,7 @@ error: * First we signal the module that we want to send data over a socket. * This is done by sending AT+CASEND=,\r\n. * If The module is ready to send data it will send back - * an UNTERMINATED promt '> '. After that data can be sent to the modem. + * an UNTERMINATED prompt '> '. After that data can be sent to the modem. * As terminating byte a STRG+Z (0x1A) is sent. The module will * then send a OK or ERROR. */ diff --git a/drivers/peci/peci_ite_it8xxx2.c b/drivers/peci/peci_ite_it8xxx2.c index 97743a39b82..2d5ac5a3b30 100644 --- a/drivers/peci/peci_ite_it8xxx2.c +++ b/drivers/peci/peci_ite_it8xxx2.c @@ -30,7 +30,7 @@ BUILD_ASSERT(IS_ENABLED(CONFIG_PECI_INTERRUPT_DRIVEN), BUILD_ASSERT(DT_NUM_INST_STATUS_OKAY(DT_DRV_COMPAT) <= 1, "Unsupported PECI Instance"); -/* The following constants decribes the bitrate of it8xxx2 PECI, +/* The following constants describes the bitrate of it8xxx2 PECI, * for the frequency are 2000KHz, 1000KHz, and 1600KHz. (Unit: KHz) */ #define PECI_IT8XXX2_BITRATE_2MHZ 2000 diff --git a/drivers/pinctrl/pfc_rcar.c b/drivers/pinctrl/pfc_rcar.c index c6bb47b7293..0298953f543 100644 --- a/drivers/pinctrl/pfc_rcar.c +++ b/drivers/pinctrl/pfc_rcar.c @@ -120,7 +120,7 @@ static const struct pfc_bias_reg *pfc_rcar_get_bias_reg(uint16_t pin, { const struct pfc_bias_reg *bias_regs = pfc_rcar_get_bias_regs(); - /* Loop arround all the registers to find the bit for a given pin */ + /* Loop around all the registers to find the bit for a given pin */ while (bias_regs->puen && bias_regs->pud) { for (size_t i = 0U; i < ARRAY_SIZE(bias_regs->pins); i++) { if (bias_regs->pins[i] == pin) { diff --git a/drivers/sensor/iis2mdc/iis2mdc.c b/drivers/sensor/iis2mdc/iis2mdc.c index fb52c0f6c90..51450b59e65 100644 --- a/drivers/sensor/iis2mdc/iis2mdc.c +++ b/drivers/sensor/iis2mdc/iis2mdc.c @@ -306,7 +306,7 @@ static int iis2mdc_init(const struct device *dev) /* Set device in continuous mode */ if (iis2mdc_operating_mode_set(iis2mdc->ctx, IIS2MDC_CONTINUOUS_MODE)) { - LOG_DBG("set continuos mode failed\n"); + LOG_DBG("set continuous mode failed\n"); return -EIO; } diff --git a/drivers/sensor/lis2dh/lis2dh_trigger.c b/drivers/sensor/lis2dh/lis2dh_trigger.c index 63a7523d9d1..ffb118419ee 100644 --- a/drivers/sensor/lis2dh/lis2dh_trigger.c +++ b/drivers/sensor/lis2dh/lis2dh_trigger.c @@ -275,7 +275,7 @@ static void lis2dh_gpio_int1_callback(const struct device *dev, atomic_set_bit(&lis2dh->trig_flags, TRIGGED_INT1); - /* int is level trigged so disable until we clear it */ + /* int is level triggered so disable until we clear it */ setup_int1(lis2dh->dev, false); #if defined(CONFIG_LIS2DH_TRIGGER_OWN_THREAD) @@ -295,7 +295,7 @@ static void lis2dh_gpio_int2_callback(const struct device *dev, atomic_set_bit(&lis2dh->trig_flags, TRIGGED_INT2); - /* int is level trigged so disable until we clear it */ + /* int is level triggered so disable until we clear it */ setup_int2(lis2dh->dev, false); #if defined(CONFIG_LIS2DH_TRIGGER_OWN_THREAD) diff --git a/drivers/sensor/lis2mdl/lis2mdl.c b/drivers/sensor/lis2mdl/lis2mdl.c index 0817eae32f0..4361cf5420f 100644 --- a/drivers/sensor/lis2mdl/lis2mdl.c +++ b/drivers/sensor/lis2mdl/lis2mdl.c @@ -425,7 +425,7 @@ static int lis2mdl_init(const struct device *dev) rc = lis2mdl_operating_mode_set(ctx, LIS2MDL_CONTINUOUS_MODE); if (rc) { - LOG_ERR("set continuos mode failed"); + LOG_ERR("set continuous mode failed"); return rc; } } diff --git a/drivers/sensor/max17055/max17055.c b/drivers/sensor/max17055/max17055.c index 6f16fb4ce2c..73e7e81e610 100644 --- a/drivers/sensor/max17055/max17055.c +++ b/drivers/sensor/max17055/max17055.c @@ -22,7 +22,7 @@ LOG_MODULE_REGISTER(max17055, CONFIG_SENSOR_LOG_LEVEL); * * @param priv Private data for the driver * @param reg_addr Register address to read - * @param val Place to put the value on success + * @param valp Place to put the value on success * @return 0 if successful, or negative error code from I2C API */ static int max17055_reg_read(struct max17055_data *priv, int reg_addr, diff --git a/drivers/sensor/stmemsc/stmemsc_spi.c b/drivers/sensor/stmemsc/stmemsc_spi.c index 84a0019a1ee..0d3557ce135 100644 --- a/drivers/sensor/stmemsc/stmemsc_spi.c +++ b/drivers/sensor/stmemsc/stmemsc_spi.c @@ -24,8 +24,8 @@ int stmemsc_spi_read(const struct spi_dt_spec *stmemsc, const struct spi_buf_set tx = { .buffers = &tx_buf, .count = 1 }; /* - * trensactions #1: dummy read to skip first byte - * trensactions #2: read "len" byte of data + * transaction #1: dummy read to skip first byte + * transaction #2: read "len" byte of data */ const struct spi_buf rx_buf[2] = { { .buf = NULL, .len = 1, }, @@ -45,8 +45,8 @@ int stmemsc_spi_write(const struct spi_dt_spec *stmemsc, uint8_t buffer_tx[1] = { reg_addr & ~SPI_READ }; /* - * trensactions #1: write 1 byte with reg addr (msb at 0) - * trensactions #2: write "len" byte of data + * transaction #1: write 1 byte with reg addr (msb at 0) + * transaction #2: write "len" byte of data */ const struct spi_buf tx_buf[2] = { { .buf = buffer_tx, .len = 1, }, diff --git a/drivers/usbc/tcpc/ucpd_stm32.c b/drivers/usbc/tcpc/ucpd_stm32.c index a5d4abba240..febb21a39a8 100644 --- a/drivers/usbc/tcpc/ucpd_stm32.c +++ b/drivers/usbc/tcpc/ucpd_stm32.c @@ -639,7 +639,7 @@ static void ucpd_manage_tx(struct alert_info *info) case STATE_ACTIVE_TCPM: /* - * Check if tx msg has finsihed. For TCPM messages + * Check if tx msg has finished. For TCPM messages * transmit is not complete until a GoodCRC message * matching the msgID just sent is received. But, a tx * message can fail due to collision or underrun, @@ -721,7 +721,7 @@ static void ucpd_manage_tx(struct alert_info *info) } } else if (atomic_test_and_clear_bit(&info->evt, UCPD_EVT_RX_MSG)) { /* - * In the case of a collsion, it's possible the port + * In the case of a collision, it's possible the port * partner may not send a GoodCRC and instead send the * message that was colliding. If a message is received * in this state, then treat it as a discard from an @@ -778,7 +778,7 @@ static void ucpd_alert_handler(struct k_work *item) } /* - * USB-PD messages are intiated in TCPM stack (PRL + * USB-PD messages are initiated in TCPM stack (PRL * layer). However, GoodCRC messages are initiated within the * UCPD driver based on USB-PD rx messages. These 2 types of * transmit paths are managed via events. diff --git a/drivers/video/ov2640.c b/drivers/video/ov2640.c index bdad2cf74d8..bc15bd3f7d6 100644 --- a/drivers/video/ov2640.c +++ b/drivers/video/ov2640.c @@ -373,7 +373,7 @@ static const struct ov2640_reg uxga_regs[] = { { RESET, RESET_DVP }, { HSIZE8, (UXGA_HSIZE>>3)}, /* Image Horizontal Size HSIZE[10:3] */ - { VSIZE8, (UXGA_VSIZE>>3)}, /* Image Vertiacl Size VSIZE[10:3] */ + { VSIZE8, (UXGA_VSIZE>>3)}, /* Image Vertical Size VSIZE[10:3] */ /* {HSIZE[11], HSIZE[2:0], VSIZE[2:0]} */ { SIZEL, ((UXGA_HSIZE>>6)&0x40) | ((UXGA_HSIZE&0x7)<<3) | (UXGA_VSIZE&0x7)}, @@ -392,7 +392,7 @@ static const struct ov2640_reg uxga_regs[] = { /* H_DIVIDER/V_DIVIDER */ { CTRLI, CTRLI_LP_DP | 0x00}, - /* DVP prescalar */ + /* DVP prescaler */ { R_DVP_SP, R_DVP_SP_AUTO_MODE | 0x04}, { R_BYPASS, R_BYPASS_DSP_EN }, diff --git a/drivers/virtualization/Kconfig b/drivers/virtualization/Kconfig index 9628a4d0172..f9667ade0ba 100644 --- a/drivers/virtualization/Kconfig +++ b/drivers/virtualization/Kconfig @@ -17,7 +17,7 @@ config IVSHMEM depends on PCIE help This will enable support of qemu's ivshmem device, which is also - present in ACRN hypervizor, and lets VM sharing memory with each + present in ACRN hypervisor, and lets VM sharing memory with each other. if IVSHMEM diff --git a/drivers/watchdog/wdt_npcx.c b/drivers/watchdog/wdt_npcx.c index 86c245f28a7..3924e935de6 100644 --- a/drivers/watchdog/wdt_npcx.c +++ b/drivers/watchdog/wdt_npcx.c @@ -280,7 +280,7 @@ static int wdt_npcx_disable(const struct device *dev) npcx_miwu_irq_disable(&config->t0out); data->timeout_installed = false; - /* Wait for watchdof is stopped. */ + /* Wait until watchdog is stopped. */ return wdt_wait_stopped(dev); } diff --git a/drivers/watchdog/wdt_sam.c b/drivers/watchdog/wdt_sam.c index da2ec37c11e..a6055b0af43 100644 --- a/drivers/watchdog/wdt_sam.c +++ b/drivers/watchdog/wdt_sam.c @@ -213,7 +213,7 @@ static int wdt_sam_feed(const struct device *dev, int channel_id) /* * On watchdog restart the Watchdog counter is immediately - * reloaded/feeded with the 12-bit watchdog counter + * reloaded/fed with the 12-bit watchdog counter * value from WDT_MR and restarted */ Wdt * const wdt = config->regs; diff --git a/dts/arm/microchip/mec172xnsz.dtsi b/dts/arm/microchip/mec172xnsz.dtsi index 1d0daa35669..024342ca748 100644 --- a/dts/arm/microchip/mec172xnsz.dtsi +++ b/dts/arm/microchip/mec172xnsz.dtsi @@ -691,7 +691,7 @@ }; rpmfan0: rpmfan@4000a000 { reg = <0x4000a000 0x80>; - interrrupts = <74 1>, <75 1>; + interrupts = <74 1>, <75 1>; girqs = <17 20>, <17 21>; pcrs = <3 12>; label = "RPMFAN_0"; @@ -699,7 +699,7 @@ }; rpmfan1: rpmfan@4000a080 { reg = <0x4000a080 0x80>; - interrrupts = <76 1>, <77 1>; + interrupts = <76 1>, <77 1>; girqs = <17 22>, <17 23>; pcrs = <4 7>; label = "RPMFAN_1"; diff --git a/dts/arm/nxp/nxp_lpc55S1x_common.dtsi b/dts/arm/nxp/nxp_lpc55S1x_common.dtsi index e65c8f3b4c2..e90d05808d5 100644 --- a/dts/arm/nxp/nxp_lpc55S1x_common.dtsi +++ b/dts/arm/nxp/nxp_lpc55S1x_common.dtsi @@ -57,7 +57,7 @@ }; sram4: memory@20010000 { - /* Conencted to USB bus*/ + /* Connected to USB bus*/ compatible = "zephyr,memory-region", "mmio-sram"; reg = <0x20010000 DT_SIZE_K(16)>; zephyr,memory-region = "SRAM4"; diff --git a/dts/bindings/arc/arc,dccm.yaml b/dts/bindings/arc/arc,dccm.yaml index 31e526cb765..56c58fa93f8 100644 --- a/dts/bindings/arc/arc,dccm.yaml +++ b/dts/bindings/arc/arc,dccm.yaml @@ -1,4 +1,4 @@ -# Copyright (c) 2017, synopsy +# Copyright (c) 2017, synopsys # SPDX-License-Identifier: Apache-2.0 description: ARC DCCM diff --git a/include/arch/arc/asm-compat/assembler.h b/include/arch/arc/asm-compat/assembler.h index 62aac896ae6..3c87a7d47d9 100644 --- a/include/arch/arc/asm-compat/assembler.h +++ b/include/arch/arc/asm-compat/assembler.h @@ -4,7 +4,7 @@ * * Author: Vineet Gupta * - * Top level include file provding ISA pseudo-mnemonics for use in assemmler + * Top level include file providing ISA pseudo-mnemonics for use in assembler * and inline assembly. * * - Helps code reuse across ARC64/ARC32/ARCv2 @@ -14,7 +14,7 @@ * e.g. "DBNZ" implemented using 'SUB' and 'BRNE' * * - Looks more complex than it really is: mainly because Kconfig defines - * are not "honored" in inline assembly. So each varaint is unconditional + * are not "honored" in inline assembly. So each variant is unconditional * code in a standalone file with Kconfig based #ifdef'ry here. During the * build process, the "C" preprocessor runs through this file, leaving * just the final variant include in code fed to compiler/assembler. diff --git a/include/arch/arc/syscall.h b/include/arch/arc/syscall.h index 23c6ed54845..b36caaf2bc0 100644 --- a/include/arch/arc/syscall.h +++ b/include/arch/arc/syscall.h @@ -6,9 +6,9 @@ /** * @file - * @brief ARC specific sycall header + * @brief ARC specific syscall header * - * This header contains the ARC specific sycall interface. It is + * This header contains the ARC specific syscall interface. It is * included by the syscall interface architecture-abstraction header * (include/arch/syscall.h) */ diff --git a/include/arch/arm/aarch32/irq.h b/include/arch/arm/aarch32/irq.h index 3b2e1a5e52c..c269daa6379 100644 --- a/include/arch/arm/aarch32/irq.h +++ b/include/arch/arm/aarch32/irq.h @@ -76,7 +76,7 @@ extern void z_arm_int_exit(void); extern void z_arm_interrupt_init(void); -/* macros convert value of it's argument to a string */ +/* macros convert value of its argument to a string */ #define DO_TOSTR(s) #s #define TOSTR(s) DO_TOSTR(s) diff --git a/include/arch/x86/ia32/syscall.h b/include/arch/x86/ia32/syscall.h index a3939e83e17..2d7d95abb56 100644 --- a/include/arch/x86/ia32/syscall.h +++ b/include/arch/x86/ia32/syscall.h @@ -6,9 +6,9 @@ /** * @file - * @brief x86 (IA32) specific sycall header + * @brief x86 (IA32) specific syscall header * - * This header contains the x86 specific sycall interface. It is + * This header contains the x86 specific syscall interface. It is * included by the syscall interface architecture-abstraction header * (include/arch/syscall.h) */ diff --git a/include/arch/x86/intel64/syscall.h b/include/arch/x86/intel64/syscall.h index 6429617e1a8..a1f88de57a4 100644 --- a/include/arch/x86/intel64/syscall.h +++ b/include/arch/x86/intel64/syscall.h @@ -6,9 +6,9 @@ /** * @file - * @brief x86 (INTEL64) specific sycall header + * @brief x86 (INTEL64) specific syscall header * - * This header contains the x86 specific sycall interface. It is + * This header contains the x86 specific syscall interface. It is * included by the syscall interface architecture-abstraction header * (include/arch/syscall.h) */ diff --git a/include/arch/xtensa/cache.h b/include/arch/xtensa/cache.h index bfd8608a4b8..a9662ba8193 100644 --- a/include/arch/xtensa/cache.h +++ b/include/arch/xtensa/cache.h @@ -117,7 +117,7 @@ static ALWAYS_INLINE uint32_t z_xtrpoflip(uint32_t addr, uint32_t rto, uint32_t * controlled independently. So for any given pointer, it is possible * to convert it to and from a cached version. * - * This function takes a pointer to any addressible object (either in + * This function takes a pointer to any addressable object (either in * cacheable memory or not) and returns a pointer that can be used to * refer to the same memory through the L1 data cache. Data read * through the resulting pointer will reflect locally cached values on @@ -144,7 +144,7 @@ static inline void *arch_xtensa_cached_ptr(void *ptr) * controlled independently. So for any given pointer, it is possible * to convert it to and from a cached version. * - * This function takes a pointer to any addressible object (either in + * This function takes a pointer to any addressable object (either in * cacheable memory or not) and returns a pointer that can be used to * refer to the same memory while bypassing the L1 data cache. Data * in the L1 cache will not be inspected nor modified by the access. diff --git a/include/bluetooth/audio/audio.h b/include/bluetooth/audio/audio.h index 567272fe43b..103857eef61 100644 --- a/include/bluetooth/audio/audio.h +++ b/include/bluetooth/audio/audio.h @@ -428,7 +428,7 @@ struct bt_codec_qos_pref { /** Preferred Transport Latency */ uint16_t latency; - /** @brief Minimun Presentation Delay + /** @brief Minimum Presentation Delay * * Unlike the other fields, this is not a preference but a minimum * requirement. @@ -442,7 +442,7 @@ struct bt_codec_qos_pref { */ uint32_t pd_max; - /** @brief Preferred minimun Presentation Delay */ + /** @brief Preferred minimum Presentation Delay */ uint32_t pref_pd_min; /** @brief Preferred maximum Presentation Delay */ @@ -1044,7 +1044,7 @@ struct bt_audio_unicast_server_cb { * * @param conn The connection that requests the capabilities. * Will be NULL if the capabilities is requested for - * sending a notification, as a result of callling + * sending a notification, as a result of calling * bt_audio_capability_register() or * bt_audio_capability_unregister(). * @param type Type of the endpoint. @@ -1068,7 +1068,7 @@ struct bt_audio_unicast_server_cb { * @param[in] conn The connection that requests the location. * Will be NULL if the location is requested * for sending a notification, as a result of - * callling + * calling * bt_audio_unicast_server_location_changed(). * @param[in] type Type of the endpoint. * @param[out] location Pointer to the location that needs to be set. diff --git a/include/bluetooth/audio/capabilities.h b/include/bluetooth/audio/capabilities.h index 7551bc560e1..ebf947416cb 100644 --- a/include/bluetooth/audio/capabilities.h +++ b/include/bluetooth/audio/capabilities.h @@ -72,7 +72,7 @@ struct bt_audio_capability_pref { /** Preferred Transport Latency in ms */ uint16_t latency; - /** @brief Minimun Presentation Delay in us + /** @brief Minimum Presentation Delay in us * * Unlike the other fields, this is not a preference but a minimum * requirement. @@ -86,7 +86,7 @@ struct bt_audio_capability_pref { */ uint32_t pd_max; - /** @brief Preferred minimun Presentation Delay in us*/ + /** @brief Preferred minimum Presentation Delay in us*/ uint32_t pref_pd_min; /** @brief Preferred maximum Presentation Delay in us */ diff --git a/include/bluetooth/audio/csis.h b/include/bluetooth/audio/csis.h index b2bf2815b71..5e6de268a49 100644 --- a/include/bluetooth/audio/csis.h +++ b/include/bluetooth/audio/csis.h @@ -100,7 +100,7 @@ struct bt_csis_register_param { /** * @brief Size of the set. * - * If set to 0, the set size characteric won't be initialized. + * If set to 0, the set size characteristic won't be initialized. * Otherwise shall be set to minimum 2. */ uint8_t set_size; @@ -169,7 +169,7 @@ int bt_csis_register(const struct bt_csis_register_param *param, void bt_csis_print_sirk(const struct bt_csis *csis); /** - * @brief Starts advertising the Resolveable Set Identifier value. + * @brief Starts advertising the Resolvable Set Identifier value. * * This cannot be used with other connectable advertising sets. * diff --git a/include/bluetooth/audio/media_proxy.h b/include/bluetooth/audio/media_proxy.h index e788c07ced1..9ac6b08ceac 100644 --- a/include/bluetooth/audio/media_proxy.h +++ b/include/bluetooth/audio/media_proxy.h @@ -337,7 +337,7 @@ struct media_proxy_ctrl_cbs { * @brief Track Duration receive callback * * Called when the Track Duration is read or changed - * Seel also media_proxy_ctrl_get_track_duration() + * See also media_proxy_ctrl_get_track_duration() * * @param player Media player instance pointer * @param err Error value. 0 on success, GATT error on positive value diff --git a/include/bluetooth/iso.h b/include/bluetooth/iso.h index ce901925245..c8a926db657 100644 --- a/include/bluetooth/iso.h +++ b/include/bluetooth/iso.h @@ -192,7 +192,7 @@ enum { /** @brief ISO Meta Data structure for received ISO packets. */ struct bt_iso_recv_info { /** ISO timestamp - valid only if the Bluetooth controller includes it - * If time stamp is not pressent this value will be 0 on all iso packets + * If time stamp is not present this value will be 0 on all iso packets */ uint32_t ts; @@ -480,7 +480,7 @@ struct bt_iso_accept_info { /** @brief ISO Server structure. */ struct bt_iso_server { - /** Required minimim security level */ + /** Required minimum security level */ bt_security_t sec_level; /** @brief Server accept callback diff --git a/include/bluetooth/l2cap.h b/include/bluetooth/l2cap.h index d9b834e9748..fbda0cf8d97 100644 --- a/include/bluetooth/l2cap.h +++ b/include/bluetooth/l2cap.h @@ -489,7 +489,7 @@ int bt_l2cap_chan_disconnect(struct bt_l2cap_chan *chan); * The application should use the BT_L2CAP_BUF_SIZE() helper to correctly * size the buffers for the for the outgoing buffer pool. * - * When sending L2CAP data over an LE connection the applicatios is sending + * When sending L2CAP data over an LE connection the application is sending * L2CAP SDUs. The application can optionally reserve * @ref BT_L2CAP_SDU_CHAN_SEND_RESERVE bytes in the buffer before sending. * By reserving bytes in the buffer the stack can use this buffer as a segment diff --git a/include/bluetooth/mesh/cfg_cli.h b/include/bluetooth/mesh/cfg_cli.h index d7b6f1d7b40..2bc0153c55e 100644 --- a/include/bluetooth/mesh/cfg_cli.h +++ b/include/bluetooth/mesh/cfg_cli.h @@ -1284,7 +1284,7 @@ int bt_mesh_cfg_node_identity_get(uint16_t net_idx, uint16_t addr, * @param net_idx Network index to encrypt with. * @param addr Target node address. * @param unicast_addr LPN unicast address. - * @param polltimeout Poltimeout response parameter. + * @param polltimeout Poll timeout response parameter. * * @return 0 on success, or (negative) error code on failure. */ diff --git a/include/bluetooth/sdp.h b/include/bluetooth/sdp.h index 87fd3449f76..1c4e312ee65 100644 --- a/include/bluetooth/sdp.h +++ b/include/bluetooth/sdp.h @@ -582,7 +582,7 @@ int bt_sdp_get_proto_param(const struct net_buf *buf, enum bt_sdp_proto proto, * * @param buf Original buffered raw record data. * @param proto Known protocol to be checked like RFCOMM or L2CAP. - * @param param_index There may be more than one parameter realted to the + * @param param_index There may be more than one parameter related to the * given protocol UUID. This function returns the result that is * indexed by this parameter. It's value is from 0, 0 means the * first matched result, 1 means the second matched result. diff --git a/include/canbus/isotp.h b/include/canbus/isotp.h index 81c4f428026..7f45db5d73d 100644 --- a/include/canbus/isotp.h +++ b/include/canbus/isotp.h @@ -15,7 +15,7 @@ #define ZEPHYR_INCLUDE_ISOTP_H_ /** - * @brief CAN ISO-TP Interf + * @brief CAN ISO-TP Interface * @defgroup can_isotp CAN ISO-TP Interface * @ingroup CAN * @{ diff --git a/include/crypto/crypto.h b/include/crypto/crypto.h index bc626b55d26..d1987978066 100644 --- a/include/crypto/crypto.h +++ b/include/crypto/crypto.h @@ -308,7 +308,7 @@ static inline int cipher_ctr_op(struct cipher_ctx *ctx, * @brief Perform Counter with CBC-MAC (CCM) mode crypto operation * * @param ctx Pointer to the crypto context of this op. - * @param pkt Structure holding the input/output, Assosciated + * @param pkt Structure holding the input/output, Associated * Data (AD) and auth tag buffer pointers. * @param nonce Nonce for the operation. Same nonce value should not * be reused across multiple operations (within a diff --git a/include/drivers/can.h b/include/drivers/can.h index 047de03c893..f237856a9e2 100644 --- a/include/drivers/can.h +++ b/include/drivers/can.h @@ -868,7 +868,7 @@ static inline int z_impl_can_send(const struct device *dev, const struct zcan_fr /** * @brief Add a callback function for a given CAN filter * - * Add a callback to CAN identifiers specified by a filter. When a recevied CAN + * Add a callback to CAN identifiers specified by a filter. When a received CAN * frame matching the filter is received by the CAN controller, the callback * function is called in interrupt context. * diff --git a/include/drivers/interrupt_controller/intel_vtd.h b/include/drivers/interrupt_controller/intel_vtd.h index 8d3d0c9adb9..523ecb46813 100644 --- a/include/drivers/interrupt_controller/intel_vtd.h +++ b/include/drivers/interrupt_controller/intel_vtd.h @@ -100,7 +100,7 @@ static inline uint32_t vtd_remap_msi(const struct device *dev, * @brief Remap the given vector * * @param dev Pointer to the device structure for the driver instance - * @param irte_idx A previoulsy allocated irte entry index number + * @param irte_idx A previously allocated irte entry index number * @param vector An allocated interrupt vector * @param flags interrupt flags * @param src_id a valid source ID or USHRT_MAX if none @@ -123,7 +123,7 @@ static inline int vtd_remap(const struct device *dev, * @brief Set the vector on the allocated irte * * @param dev Pointer to the device structure for the driver instance - * @param irte_idx A previoulsy allocated irte entry index number + * @param irte_idx A previously allocated irte entry index number * @param vector An allocated interrupt vector * * @return 0, a negative errno otherwise @@ -159,7 +159,7 @@ static inline int vtd_get_irte_by_vector(const struct device *dev, * @brief Get the vector given to the IRTE * * @param dev Pointer to the device structure for the driver instance - * @param irte_idx A previoulsy allocated irte entry index number + * @param irte_idx A previously allocated irte entry index number * * @return the vector set to this IRTE */ @@ -176,7 +176,7 @@ static inline uint16_t vtd_get_irte_vector(const struct device *dev, * @brief Set the irq on the allocated irte * * @param dev Pointer to the device structure for the driver instance - * @param irte_idx A previoulsy allocated irte entry index number + * @param irte_idx A previously allocated irte entry index number * @param irq A valid IRQ number * * @return 0, a negative errno otherwise diff --git a/include/drivers/mm/system_mm.h b/include/drivers/mm/system_mm.h index 57b5ce93fa0..bcc98bda212 100644 --- a/include/drivers/mm/system_mm.h +++ b/include/drivers/mm/system_mm.h @@ -134,7 +134,7 @@ int sys_mm_drv_map_array(void *virt, uintptr_t *phys, * * This unmaps one page from the virtual address space. * - * When this completes, the relevant translation table entrie will be + * When this completes, the relevant translation table entries will be * updated as if no mapping was ever made for that memory page. No previous * context needs to be preserved. This function must update mapping in * all active translation tables. @@ -209,7 +209,7 @@ int sys_mm_drv_page_phys_get(void *virt, uintptr_t *phys); * thread as this does not deal with memory domains. * * Note that overlapping of old and new virtual memory regions - * is usually not supported for simplier implementation. Refer to + * is usually not supported for simpler implementation. Refer to * the actual driver to make sure if overlapping is allowed. * * @param virt_old Page-aligned base virtual address of existing memory @@ -240,7 +240,7 @@ int sys_mm_drv_remap_region(void *virt_old, size_t size, void *virt_new); * thread as this does not deal with memory domains. * * Note that overlapping of old and new virtual memory regions - * is usually not supported for simplier implementation. Refer to + * is usually not supported for simpler implementation. Refer to * the actual driver to make sure if overlapping is allowed. * * @param virt_old Page-aligned base virtual address of existing memory @@ -274,7 +274,7 @@ int sys_mm_drv_move_region(void *virt_old, size_t size, void *virt_new, * thread as this does not deal with memory domains. * * Note that overlapping of old and new virtual memory regions - * is usually not supported for simplier implementation. Refer to + * is usually not supported for simpler implementation. Refer to * the actual driver to make sure if overlapping is allowed. * * @param virt_old Page-aligned base virtual address of existing memory diff --git a/include/drivers/pcie/ptm.h b/include/drivers/pcie/ptm.h index 24745491219..181ea7092f2 100644 --- a/include/drivers/pcie/ptm.h +++ b/include/drivers/pcie/ptm.h @@ -19,7 +19,7 @@ extern "C" { * @brief Enable PTM on endpoint * * @param bdf the PCI(e) endpoint - * @return true if that was sucessful, false otherwise + * @return true if that was successful, false otherwise */ bool pcie_ptm_enable(pcie_bdf_t bdf); diff --git a/include/drivers/usbc/usbc_tcpc.h b/include/drivers/usbc/usbc_tcpc.h index 925e434c25d..7aad78db336 100644 --- a/include/drivers/usbc/usbc_tcpc.h +++ b/include/drivers/usbc/usbc_tcpc.h @@ -346,7 +346,7 @@ static inline bool tcpc_check_vbus_level(const struct device *dev, * This function uses the TCPC to measure VBUS if possible or calls the * callback function set by tcpc_set_vbus_measure_callback. In the event that * the TCPC can measure VBUS and the VBUS callback measuring function is - * set, this function usess the callback function. + * set, this function uses the callback function. * * @param dev Runtime device structure * @param vbus_meas pointer where the measured VBUS voltage is stored diff --git a/include/dt-bindings/interrupt-controller/esp-xtensa-intmux.h b/include/dt-bindings/interrupt-controller/esp-xtensa-intmux.h index 8e52df311d0..d0657714e15 100644 --- a/include/dt-bindings/interrupt-controller/esp-xtensa-intmux.h +++ b/include/dt-bindings/interrupt-controller/esp-xtensa-intmux.h @@ -9,7 +9,7 @@ #define WIFI_MAC_INTR_SOURCE 0 /* WiFi MAC, level */ #define WIFI_MAC_NMI_SOURCE 1 /* WiFi MAC, NMI, use if MAC needs fix in NMI */ -#define WIFI_BB_INTR_SOURCE 2 /* WiFi BB, level, we can do some calibartion */ +#define WIFI_BB_INTR_SOURCE 2 /* WiFi BB, level, we can do some calibration */ #define BT_MAC_INTR_SOURCE 3 /* will be cancelled */ #define BT_BB_INTR_SOURCE 4 /* BB, level */ #define BT_BB_NMI_SOURCE 5 /* BT BB, NMI, use if BB have bug to fix in NMI */ diff --git a/include/dt-bindings/interrupt-controller/esp32s2-xtensa-intmux.h b/include/dt-bindings/interrupt-controller/esp32s2-xtensa-intmux.h index 65ef1ce8d91..fd63ea50572 100644 --- a/include/dt-bindings/interrupt-controller/esp32s2-xtensa-intmux.h +++ b/include/dt-bindings/interrupt-controller/esp32s2-xtensa-intmux.h @@ -10,7 +10,7 @@ #define WIFI_MAC_INTR_SOURCE 0 /* WiFi MAC, level */ #define WIFI_MAC_NMI_SOURCE 1 /* WiFi MAC, NMI, use if MAC needs fix in NMI */ #define WIFI_PWR_INTR_SOURCE 2 -#define WIFI_BB_INTR_SOURCE 3 /* WiFi BB, level, we can do some calibartion */ +#define WIFI_BB_INTR_SOURCE 3 /* WiFi BB, level, we can do some calibration */ #define BT_MAC_INTR_SOURCE 4 /* will be cancelled */ #define BT_BB_INTR_SOURCE 5 /* BB, level */ #define BT_BB_NMI_SOURCE 6 /* BT BB, NMI, use if BB have bug to fix in NMI */ diff --git a/include/fs/littlefs.h b/include/fs/littlefs.h index a5016ead375..dff6ac1243c 100644 --- a/include/fs/littlefs.h +++ b/include/fs/littlefs.h @@ -28,7 +28,7 @@ struct fs_littlefs { /* Must be cfg.cache_size */ uint8_t *prog_buffer; - /* Mustbe cfg.lookahead_size/4 elements, and + /* Must be cfg.lookahead_size/4 elements, and * cfg.lookahead_size must be a multiple of 8. */ uint32_t *lookahead_buffer[CONFIG_FS_LITTLEFS_LOOKAHEAD_SIZE / sizeof(uint32_t)]; diff --git a/include/linker/common-rom.ld b/include/linker/common-rom.ld index afdc76434bb..cf4ff7b273b 100644 --- a/include/linker/common-rom.ld +++ b/include/linker/common-rom.ld @@ -58,7 +58,7 @@ /* * The compiler fills the constructor pointers table below, * hence symbol __CTOR_LIST__ must be aligned on word - * boundary. To align with the C++ standard, the first elment + * boundary. To align with the C++ standard, the first element * of the array contains the number of actual constructors. The * last element is NULL. */ diff --git a/include/linker/kobject-priv-stacks.ld b/include/linker/kobject-priv-stacks.ld index 35f170aecb1..36db2d3b755 100644 --- a/include/linker/kobject-priv-stacks.ld +++ b/include/linker/kobject-priv-stacks.ld @@ -43,7 +43,7 @@ ASSERT(z_priv_stacks_ram_used <= KOBJECT_PRIV_STACKS_SZ, "scripts/gen_kobject_placeholders.py did not reserve enough space \ -for priviledged stacks." +for privileged stacks." ); /* Padding is needed to preserve kobject addresses diff --git a/include/net/buf.h b/include/net/buf.h index ffc3f234530..d810d89945f 100644 --- a/include/net/buf.h +++ b/include/net/buf.h @@ -898,7 +898,7 @@ static inline void net_buf_simple_restore(struct net_buf_simple *buf, * Flag indicating that the buffer's associated data pointer, points to * externally allocated memory. Therefore once ref goes down to zero, the * pointed data will not need to be deallocated. This never needs to be - * explicitly set or unet by the net_buf API user. Such net_buf is + * explicitly set or unset by the net_buf API user. Such net_buf is * exclusively instantiated via net_buf_alloc_with_data() function. * Reference count mechanism however will behave the same way, and ref * count going to 0 will free the net_buf but no the data pointer in it. diff --git a/include/net/net_pkt.h b/include/net/net_pkt.h index 1c945983f65..b764ee1bbc9 100644 --- a/include/net/net_pkt.h +++ b/include/net/net_pkt.h @@ -1761,7 +1761,7 @@ size_t net_pkt_available_payload_buffer(struct net_pkt *pkt, /** * @brief Trim net_pkt buffer * - * @details This will basically check for unused buffers and deallocates + * @details This will basically check for unused buffers and deallocate * them relevantly * * @param pkt The net_pkt which buffer will be trimmed diff --git a/include/net/socket.h b/include/net/socket.h index 5773bb846c4..a7cbf73a315 100644 --- a/include/net/socket.h +++ b/include/net/socket.h @@ -98,7 +98,7 @@ struct zsock_pollfd { /** Socket option to select ciphersuites to use. It accepts and returns an array * of integers with IANA assigned ciphersuite identifiers. * If not set, socket will allow all ciphersuites available in the system - * (mebdTLS default behavior). + * (mbedTLS default behavior). */ #define TLS_CIPHERSUITE_LIST 3 /** Read-only socket option to read a ciphersuite chosen during TLS handshake. diff --git a/include/pm/state.h b/include/pm/state.h index a53d0b5fe66..247f6e6f4fd 100644 --- a/include/pm/state.h +++ b/include/pm/state.h @@ -63,7 +63,7 @@ enum pm_state { * non-boot CPUs are powered off. It should allow more energy to be * saved relative to suspend to idle, but the resume latency will * generally be greater than for that state. But it should be the same - * state with suspend to idle state on uniprocesser system. + * state with suspend to idle state on uniprocessor system. * * @note This state is correlated with ACPI S2 state */ diff --git a/include/sys/bitarray.h b/include/sys/bitarray.h index 12e611fe1a8..792e26c285f 100644 --- a/include/sys/bitarray.h +++ b/include/sys/bitarray.h @@ -142,7 +142,7 @@ int sys_bitarray_test_and_clear_bit(sys_bitarray_t *bitarray, size_t bit, int *p * Allocate bits in a bit array * * This finds a number of bits (@p num_bits) in a contiguous of - * previosly unallocated region. If such a region exists, the bits are + * previously unallocated region. If such a region exists, the bits are * marked as allocated and the offset to the start of this region is * returned via @p offset. * diff --git a/include/sys/byteorder.h b/include/sys/byteorder.h index fc5c56056e4..e1ee66aa498 100644 --- a/include/sys/byteorder.h +++ b/include/sys/byteorder.h @@ -308,7 +308,7 @@ static inline void sys_put_le16(uint16_t val, uint8_t dst[2]) * @brief Put a 24-bit integer as little-endian to arbitrary location. * * Put a 24-bit integer, originally in host endianness, to a - * potentially unaligned memory location in littel-endian format. + * potentially unaligned memory location in little-endian format. * * @param val 24-bit integer in host endianness. * @param dst Destination memory address to store the result. diff --git a/include/sys/cbprintf.h b/include/sys/cbprintf.h index 392e29a84ab..16cfc119903 100644 --- a/include/sys/cbprintf.h +++ b/include/sys/cbprintf.h @@ -69,7 +69,7 @@ extern "C" { * @{ */ -/** @brief Assume that const char pointer a pointing to read only (constant) strings. +/** @brief Assume that const char pointer is pointing to read only (constant) strings. * * Flag is valid only for @ref CBPRINTF_STATIC_PACKAGE. */ @@ -89,7 +89,7 @@ extern "C" { #define Z_CBPRINTF_PACKAGE_FIRST_RO_STR_MASK BIT_MASK(Z_CBPRINTF_PACKAGE_FIRST_RO_STR_BITS) /** @brief Indicate that @p n first string format arguments are char pointers to - * read-honly location. + * read-only location. * * Runtime algorithm (address analysis) is skipped for those strings. * @@ -324,7 +324,7 @@ int cbvprintf_package(void *packaged, /** @brief Copy package with optional appending of strings. * - * Copying may including appending strings used in the package to the package body. + * Copying may include appending strings used in the package to the package body. * If input package was created with @ref CBPRINTF_PACKAGE_ADD_RO_STR_POS or * @ref CBPRINTF_PACKAGE_ADD_RW_STR_POS, it contains information where strings * are located within the package. This information can be used to copy strings @@ -345,9 +345,9 @@ int cbvprintf_package(void *packaged, * * @param[in, out] strl if @p packaged is null, it is a pointer to the array where * @p strl_len first string lengths will is stored. If @p packaged is not null, - * it contains legths of first @p strl_len strings. It can be used to optimize + * it contains lengths of first @p strl_len strings. It can be used to optimize * copying so that string length is calculated only once (at length calculation - * phase when @p packaged is null. + * phase when @p packaged is null.) * * @param strl_len Number of elements in @p strl array. * diff --git a/include/sys/cbprintf_internal.h b/include/sys/cbprintf_internal.h index 588064cc49f..d25d31ceedd 100644 --- a/include/sys/cbprintf_internal.h +++ b/include/sys/cbprintf_internal.h @@ -344,7 +344,7 @@ union z_cbprintf_hdr { /* When using clang additional warning needs to be suppressed since each * argument of fmt string is used for sizeof() which results in the warning - * if argument is a stirng literal. Suppression is added here instead of + * if argument is a string literal. Suppression is added here instead of * the macro which generates the warning to not slow down the compiler. */ #ifdef __clang__ diff --git a/include/sys/mpsc_pbuf.h b/include/sys/mpsc_pbuf.h index 565df1f57c3..4ede31882bb 100644 --- a/include/sys/mpsc_pbuf.h +++ b/include/sys/mpsc_pbuf.h @@ -149,7 +149,7 @@ void mpsc_pbuf_init(struct mpsc_pbuf_buffer *buffer, /** @brief Allocate a packet. * * If a buffer is configured to overwrite mode then if there is no space to - * allocated a new buffer, oldest packets are dropped. Otherwise allocation + * allocate a new buffer, oldest packets are dropped. Otherwise allocation * fails and null pointer is returned. * * @param buffer Buffer. diff --git a/include/sys/sys_heap.h b/include/sys/sys_heap.h index 317d6d0c401..75d16c11920 100644 --- a/include/sys/sys_heap.h +++ b/include/sys/sys_heap.h @@ -196,7 +196,7 @@ size_t sys_heap_usable_size(struct sys_heap *heap, void *mem); * Note: this cannot catch every possible error, but if it returns * true then the heap is in a consistent state and can correctly * handle any sys_heap_alloc() request and free any live pointer - * returned from a previou allocation. + * returned from a previous allocation. * * @param heap Heap to validate * @return true, if the heap is valid, otherwise false diff --git a/include/usb/class/usb_audio.h b/include/usb/class/usb_audio.h index 5f43add3b5b..b42c1005409 100644 --- a/include/usb/class/usb_audio.h +++ b/include/usb/class/usb_audio.h @@ -250,7 +250,7 @@ struct usb_audio_ops { size_t usb_audio_get_in_frame_size(const struct device *dev); /** - * @brief Register the USB Audio device and make it useable. + * @brief Register the USB Audio device and make it usable. * This must be called in order to make the device work * and respond to all relevant requests. * diff --git a/include/xen/public/xen.h b/include/xen/public/xen.h index 359e1a2abea..8b7c478656b 100644 --- a/include/xen/public/xen.h +++ b/include/xen/public/xen.h @@ -317,7 +317,7 @@ struct shared_info { * are delivered by this mechanism: * 1. Bi-directional inter- and intra-domain connections. Domains must * arrange out-of-band to set up a connection (usually by allocating - * an unbound 'listener' port and avertising that via a storage service + * an unbound 'listener' port and advertising that via a storage service * such as xenstore). * 2. Physical interrupts. A domain with suitable hardware-access * privileges can bind an event-channel port to a physical interrupt diff --git a/kernel/Kconfig.vm b/kernel/Kconfig.vm index a9c2cf620be..215eb98b916 100644 --- a/kernel/Kconfig.vm +++ b/kernel/Kconfig.vm @@ -167,7 +167,7 @@ config DEMAND_PAGING_TIMING_HISTOGRAM Should say N in production system as this is not without cost. config DEMAND_PAGING_TIMING_HISTOGRAM_NUM_BINS - int "Number of bins (buckets) in Demand Paging Timing Histogrm" + int "Number of bins (buckets) in Demand Paging Timing Histogram" depends on DEMAND_PAGING_TIMING_HISTOGRAM default 10 help diff --git a/kernel/include/kernel_arch_interface.h b/kernel/include/kernel_arch_interface.h index 5a4d57cfae0..4876fe89a44 100644 --- a/kernel/include/kernel_arch_interface.h +++ b/kernel/include/kernel_arch_interface.h @@ -340,7 +340,7 @@ int arch_page_phys_get(void *virt, uintptr_t *phys); * Some page frames within system RAM may not be available for use. A good * example of this is reserved regions in the first megabyte on PC-like systems. * - * Implementations of this function should mark all relavent entries in + * Implementations of this function should mark all relevant entries in * z_page_frames with K_PAGE_FRAME_RESERVED. This function is called at * early system initialization with mm_lock held. */ diff --git a/kernel/mutex.c b/kernel/mutex.c index 4e8b3d7f7b1..10394fdbac6 100644 --- a/kernel/mutex.c +++ b/kernel/mutex.c @@ -251,7 +251,7 @@ int z_impl_k_mutex_unlock(struct k_mutex *mutex) /* * new owner is already of higher or equal prio than first * waiter since the wait queue is priority-based: no need to - * ajust its priority + * adjust its priority */ mutex->owner_orig_prio = new_owner->base.prio; arch_thread_return_value_set(new_owner, 0); diff --git a/lib/os/cbprintf_complete.c b/lib/os/cbprintf_complete.c index 242db0fe9f1..b73c073f733 100644 --- a/lib/os/cbprintf_complete.c +++ b/lib/os/cbprintf_complete.c @@ -25,7 +25,7 @@ size_t strnlen(const char *s, size_t maxlen); /* Provide typedefs used for signed and unsigned integral types - * capable of holding all convertable integral values. + * capable of holding all convertible integral values. */ #ifdef CONFIG_CBPRINTF_FULL_INTEGRAL typedef intmax_t sint_value_type; @@ -1084,7 +1084,7 @@ static char *encode_float(double value, while (expo < -2) { /* - * Make roon to allow a multiplication by 5 without overflow. + * Make room to allow a multiplication by 5 without overflow. * We test only the top part for faster code. */ do { diff --git a/lib/os/cbprintf_packaged.c b/lib/os/cbprintf_packaged.c index 7dfef488665..6f9c7837955 100644 --- a/lib/os/cbprintf_packaged.c +++ b/lib/os/cbprintf_packaged.c @@ -316,7 +316,7 @@ int cbvprintf_package(void *packaged, size_t len, uint32_t flags, /* * Otherwise we must ensure we can store at least - * thepointer to the format string itself. + * the pointer to the format string itself. */ if (buf0 != NULL && BUF_OFFSET + sizeof(char *) > len) { return -ENOSPC; diff --git a/lib/os/rb.c b/lib/os/rb.c index 18f051c8cd6..b5ee2070933 100644 --- a/lib/os/rb.c +++ b/lib/os/rb.c @@ -406,7 +406,7 @@ void rb_remove(struct rbtree *tree, struct rbnode *node) * the "data" pointers between the two nodes, but we * have a few special cases to check. In principle * this works by swapping the child pointers between - * the nodes and retargetting the nodes pointing to + * the nodes and retargeting the nodes pointing to * them from their parents, but: (1) the upper node * may be the root of the tree and not have a parent, * and (2) the lower node may be a direct child of the diff --git a/lib/posix/getopt/Kconfig b/lib/posix/getopt/Kconfig index 1b759648782..fc0055cf692 100644 --- a/lib/posix/getopt/Kconfig +++ b/lib/posix/getopt/Kconfig @@ -3,7 +3,7 @@ menuconfig GETOPT - bool "Geopt library support" + bool "Getopt library support" help This option adds support of getopt. Different shell backends are use their own instance of getopt to diff --git a/lib/posix/pthread_mutex.c b/lib/posix/pthread_mutex.c index e56fca39492..80d3561cbe3 100644 --- a/lib/posix/pthread_mutex.c +++ b/lib/posix/pthread_mutex.c @@ -85,7 +85,7 @@ int pthread_mutex_timedlock(pthread_mutex_t *m, } /** - * @brief Intialize POSIX mutex. + * @brief Initialize POSIX mutex. * * See IEEE 1003.1 */ diff --git a/lib/posix/pthread_rwlock.c b/lib/posix/pthread_rwlock.c index 88323c38c0b..9b20c134647 100644 --- a/lib/posix/pthread_rwlock.c +++ b/lib/posix/pthread_rwlock.c @@ -103,7 +103,7 @@ int pthread_rwlock_timedrdlock(pthread_rwlock_t *rwlock, } /** - * @brief Lock a read-write lock object for reading immedately. + * @brief Lock a read-write lock object for reading immediately. * * API behaviour is unpredictable if number of concurrent reader * lock held is greater than CONCURRENT_READER_LIMIT. @@ -165,7 +165,7 @@ int pthread_rwlock_timedwrlock(pthread_rwlock_t *rwlock, } /** - * @brief Lock a read-write lock object for writing immedately. + * @brief Lock a read-write lock object for writing immediately. * * Write lock does not have priority over reader lock, * threads get lock based on priority. diff --git a/modules/Kconfig.mcuboot_bootutil b/modules/Kconfig.mcuboot_bootutil index af84930ea76..c7b40964d19 100644 --- a/modules/Kconfig.mcuboot_bootutil +++ b/modules/Kconfig.mcuboot_bootutil @@ -9,7 +9,7 @@ menuconfig MCUBOOT_BOOTUTIL_LIB if MCUBOOT_BOOTUTIL_LIB -# hiden option for disabling module-own log configuration +# hidden option for disabling module-own log configuration # while building MCUboot bootloader config MCUBOOT_BOOTUTIL_LIB_OWN_LOG bool diff --git a/modules/Kconfig.mcux b/modules/Kconfig.mcux index 0642bc1b795..d319eedfb82 100644 --- a/modules/Kconfig.mcux +++ b/modules/Kconfig.mcux @@ -103,7 +103,7 @@ config HAS_MCUX_IAP config HAS_MCUX_IAP_LEGACY bool help - Set if the flash memory In Applcation Programming is present in + Set if the flash memory In Application Programming is present in the older LPC family SoCs (LPC54xxx, LPC11xxx). config HAS_MCUX_IGPIO diff --git a/modules/mbedtls/Kconfig.tls-generic b/modules/mbedtls/Kconfig.tls-generic index 2de72e3a586..1c5c8804675 100644 --- a/modules/mbedtls/Kconfig.tls-generic +++ b/modules/mbedtls/Kconfig.tls-generic @@ -379,7 +379,7 @@ config MBEDTLS_SERVER_NAME_INDICATION This requires that MBEDTLS_X509_CRT_PARSE_C is also set. config MBEDTLS_PK_WRITE_C - bool "The generic public (asymetric) key writer" + bool "The generic public (asymmetric) key writer" help Enable generic public key write functions. diff --git a/modules/trusted-firmware-m/Kconfig.tfm b/modules/trusted-firmware-m/Kconfig.tfm index 46b58f0aec7..1a2557a3974 100644 --- a/modules/trusted-firmware-m/Kconfig.tfm +++ b/modules/trusted-firmware-m/Kconfig.tfm @@ -206,7 +206,7 @@ config TFM_MCUBOOT_PATH_LOCAL config TFM_MCUBOOT_PATH_DOWNLOAD bool "TF-M to automatically download MCUboot during build" help - TF-M bulds with BL2 will let the TF-M build to automatically + TF-M builds with BL2 will let the TF-M build to automatically fetch and check-out the MCUboot version to use in the build. endchoice diff --git a/samples/arch/smp/pi/src/main.c b/samples/arch/smp/pi/src/main.c index 8ff65b00e54..ed621954d0f 100644 --- a/samples/arch/smp/pi/src/main.c +++ b/samples/arch/smp/pi/src/main.c @@ -12,7 +12,7 @@ /* * Amount of digits of Pi to calculate, must be a multiple of 4, - * as used algorythm spits 4 digits on every iteration. + * as used algorithm spits 4 digits on every iteration. */ #define DIGITS_NUM 240 diff --git a/samples/arch/smp/pktqueue/src/main.c b/samples/arch/smp/pktqueue/src/main.c index c3064e2dd8c..af1a0f0b814 100644 --- a/samples/arch/smp/pktqueue/src/main.c +++ b/samples/arch/smp/pktqueue/src/main.c @@ -49,7 +49,7 @@ void init_datagram_queue(struct phdr_desc_queue *queue, int queue_num) else descriptors[queue_num][i].ptr[j] = 0; } - /* Compute crc for further comparisson */ + /* Compute crc for further comparison */ uint16_t crc; crc = crc16(POLYNOMIAL, 0x0000, diff --git a/samples/bluetooth/direction_finding_central/boards/nrf52833dk_nrf52820.conf b/samples/bluetooth/direction_finding_central/boards/nrf52833dk_nrf52820.conf index 494694bb519..848ac5852d5 100644 --- a/samples/bluetooth/direction_finding_central/boards/nrf52833dk_nrf52820.conf +++ b/samples/bluetooth/direction_finding_central/boards/nrf52833dk_nrf52820.conf @@ -18,6 +18,6 @@ CONFIG_BT_CTLR_DF_CONN_CTE_RX=y CONFIG_BT_CTLR_DF_ANT_SWITCH_RX=y CONFIG_BT_CTLR_DF_CONN_CTE_REQ=y -# Ensure that there is enough control prcedure contexts to queue and execute all procedures +# Ensure that there is enough control procedure contexts to queue and execute all procedures CONFIG_BT_CTLR_LLCP_LOCAL_PROC_CTX_BUF_NUM=6 CONFIG_BT_CTLR_ADVANCED_FEATURES=y diff --git a/samples/bluetooth/direction_finding_central/boards/nrf52833dk_nrf52833.conf b/samples/bluetooth/direction_finding_central/boards/nrf52833dk_nrf52833.conf index 494694bb519..848ac5852d5 100644 --- a/samples/bluetooth/direction_finding_central/boards/nrf52833dk_nrf52833.conf +++ b/samples/bluetooth/direction_finding_central/boards/nrf52833dk_nrf52833.conf @@ -18,6 +18,6 @@ CONFIG_BT_CTLR_DF_CONN_CTE_RX=y CONFIG_BT_CTLR_DF_ANT_SWITCH_RX=y CONFIG_BT_CTLR_DF_CONN_CTE_REQ=y -# Ensure that there is enough control prcedure contexts to queue and execute all procedures +# Ensure that there is enough control procedure contexts to queue and execute all procedures CONFIG_BT_CTLR_LLCP_LOCAL_PROC_CTX_BUF_NUM=6 CONFIG_BT_CTLR_ADVANCED_FEATURES=y diff --git a/samples/bluetooth/direction_finding_central/boards/nrf52833dk_nrf52833.overlay b/samples/bluetooth/direction_finding_central/boards/nrf52833dk_nrf52833.overlay index 8df796c6bbc..67458935b18 100644 --- a/samples/bluetooth/direction_finding_central/boards/nrf52833dk_nrf52833.overlay +++ b/samples/bluetooth/direction_finding_central/boards/nrf52833dk_nrf52833.overlay @@ -19,7 +19,7 @@ * Radio peripheral. The pins will be acquired by Radio to * drive antenna switching when AoA is enabled. * Pin numbers are selected to drive switches on antenna matrix - * desinged by Nordic. For more information see README.rst. + * designed by Nordic. For more information see README.rst. */ dfegpio0-gpios = <&gpio0 3 0>; dfegpio1-gpios = <&gpio0 4 0>; diff --git a/samples/bluetooth/direction_finding_central/src/main.c b/samples/bluetooth/direction_finding_central/src/main.c index bae4b73f4cf..fb07c34afb1 100644 --- a/samples/bluetooth/direction_finding_central/src/main.c +++ b/samples/bluetooth/direction_finding_central/src/main.c @@ -22,7 +22,7 @@ #define CONN_LATENCY 0U /* Arbitrary selected timeout value */ #define CONN_TIMEOUT 400U -/* Inteval used to run CTE request procedure periodically. +/* Interval used to run CTE request procedure periodically. * Value is a number of connection events. */ #define CTE_REQ_INTERVAL (CONN_LATENCY + 10U) diff --git a/samples/bluetooth/direction_finding_connectionless_rx/boards/nrf52833dk_nrf52820.conf b/samples/bluetooth/direction_finding_connectionless_rx/boards/nrf52833dk_nrf52820.conf index dfb33223aa4..97ce8320ff7 100644 --- a/samples/bluetooth/direction_finding_connectionless_rx/boards/nrf52833dk_nrf52820.conf +++ b/samples/bluetooth/direction_finding_connectionless_rx/boards/nrf52833dk_nrf52820.conf @@ -7,7 +7,7 @@ CONFIG_BT_CTLR_SYNC_PERIODIC=y # Enable Direction Finding Feature including AoA and AoD CONFIG_BT_CTLR_DF=y -# Disable Direction Fiding TX mode +# Disable Direction Finding TX mode CONFIG_BT_CTLR_DF_ANT_SWITCH_TX=n CONFIG_BT_CTLR_DF_ADV_CTE_TX=n diff --git a/samples/bluetooth/direction_finding_connectionless_rx/boards/nrf52833dk_nrf52833.conf b/samples/bluetooth/direction_finding_connectionless_rx/boards/nrf52833dk_nrf52833.conf index 7f1a2f6693a..f27dc630624 100644 --- a/samples/bluetooth/direction_finding_connectionless_rx/boards/nrf52833dk_nrf52833.conf +++ b/samples/bluetooth/direction_finding_connectionless_rx/boards/nrf52833dk_nrf52833.conf @@ -7,7 +7,7 @@ CONFIG_BT_CTLR_SYNC_PERIODIC=y # Enable Direction Finding Feature including AoA and AoD CONFIG_BT_CTLR_DF=y -# Disable Direction Fiding TX mode +# Disable Direction Finding TX mode CONFIG_BT_CTLR_DF_ANT_SWITCH_TX=n CONFIG_BT_CTLR_DF_ADV_CTE_TX=n diff --git a/samples/bluetooth/direction_finding_peripheral/boards/nrf52833dk_nrf52820.conf b/samples/bluetooth/direction_finding_peripheral/boards/nrf52833dk_nrf52820.conf index b490025c2b9..0a751804938 100644 --- a/samples/bluetooth/direction_finding_peripheral/boards/nrf52833dk_nrf52820.conf +++ b/samples/bluetooth/direction_finding_peripheral/boards/nrf52833dk_nrf52820.conf @@ -18,6 +18,6 @@ CONFIG_BT_CTLR_DF_CONN_CTE_TX=y CONFIG_BT_CTLR_DF_ANT_SWITCH_TX=y CONFIG_BT_CTLR_DF_CONN_CTE_RSP=y -# Ensure that there is enough control prcedure contexts to queue and execute all procedures +# Ensure that there is enough control procedure contexts to queue and execute all procedures CONFIG_BT_CTLR_ADVANCED_FEATURES=y CONFIG_BT_CTLR_LLCP_LOCAL_PROC_CTX_BUF_NUM=6 diff --git a/samples/bluetooth/direction_finding_peripheral/boards/nrf52833dk_nrf52833.conf b/samples/bluetooth/direction_finding_peripheral/boards/nrf52833dk_nrf52833.conf index b490025c2b9..0a751804938 100644 --- a/samples/bluetooth/direction_finding_peripheral/boards/nrf52833dk_nrf52833.conf +++ b/samples/bluetooth/direction_finding_peripheral/boards/nrf52833dk_nrf52833.conf @@ -18,6 +18,6 @@ CONFIG_BT_CTLR_DF_CONN_CTE_TX=y CONFIG_BT_CTLR_DF_ANT_SWITCH_TX=y CONFIG_BT_CTLR_DF_CONN_CTE_RSP=y -# Ensure that there is enough control prcedure contexts to queue and execute all procedures +# Ensure that there is enough control procedure contexts to queue and execute all procedures CONFIG_BT_CTLR_ADVANCED_FEATURES=y CONFIG_BT_CTLR_LLCP_LOCAL_PROC_CTX_BUF_NUM=6 diff --git a/samples/bluetooth/direction_finding_peripheral/boards/nrf52833dk_nrf52833.overlay b/samples/bluetooth/direction_finding_peripheral/boards/nrf52833dk_nrf52833.overlay index 8df796c6bbc..67458935b18 100644 --- a/samples/bluetooth/direction_finding_peripheral/boards/nrf52833dk_nrf52833.overlay +++ b/samples/bluetooth/direction_finding_peripheral/boards/nrf52833dk_nrf52833.overlay @@ -19,7 +19,7 @@ * Radio peripheral. The pins will be acquired by Radio to * drive antenna switching when AoA is enabled. * Pin numbers are selected to drive switches on antenna matrix - * desinged by Nordic. For more information see README.rst. + * designed by Nordic. For more information see README.rst. */ dfegpio0-gpios = <&gpio0 3 0>; dfegpio1-gpios = <&gpio0 4 0>; diff --git a/samples/bluetooth/direction_finding_peripheral/src/main.c b/samples/bluetooth/direction_finding_peripheral/src/main.c index e28f9e53782..2625a3a9cd5 100644 --- a/samples/bluetooth/direction_finding_peripheral/src/main.c +++ b/samples/bluetooth/direction_finding_peripheral/src/main.c @@ -30,7 +30,7 @@ static const struct bt_data ad[] = { /* Latency set to zero, to enforce PDU exchange every connection event */ #define CONN_LATENCY 0U -/* Inteval used to run CTE request procedure periodically. +/* Interval used to run CTE request procedure periodically. * Value is a number of connection events. */ #define CTE_REQ_INTERVAL (CONN_LATENCY + 10U) diff --git a/samples/bluetooth/hci_pwr_ctrl/README.rst b/samples/bluetooth/hci_pwr_ctrl/README.rst index ffe96d5effa..9388157d6c2 100644 --- a/samples/bluetooth/hci_pwr_ctrl/README.rst +++ b/samples/bluetooth/hci_pwr_ctrl/README.rst @@ -14,7 +14,7 @@ the TX power variation of the advertiser is a repeatedly descending staircase pattern ranging from -4 dBm to -30 dBm where the Tx power levels decrease every 5s. -Upon sucessful connection, the connection RSSI strength is being monitored and +Upon successful connection, the connection RSSI strength is being monitored and the Tx power of the peripheral device is modulated per connection accordingly such that energy is being saved depending on how powerful the RSSI of the connection is. The peripheral implements a simple GATT profile exposing the diff --git a/samples/bluetooth/hci_rpmsg/src/main.c b/samples/bluetooth/hci_rpmsg/src/main.c index a84099ffd1a..c758afc8261 100644 --- a/samples/bluetooth/hci_rpmsg/src/main.c +++ b/samples/bluetooth/hci_rpmsg/src/main.c @@ -46,7 +46,7 @@ static struct net_buf *hci_rpmsg_cmd_recv(uint8_t *data, size_t remaining) struct net_buf *buf; if (remaining < sizeof(*hdr)) { - LOG_ERR("Not enought data for command header"); + LOG_ERR("Not enough data for command header"); return NULL; } @@ -77,7 +77,7 @@ static struct net_buf *hci_rpmsg_acl_recv(uint8_t *data, size_t remaining) struct net_buf *buf; if (remaining < sizeof(*hdr)) { - LOG_ERR("Not enought data for ACL header"); + LOG_ERR("Not enough data for ACL header"); return NULL; } diff --git a/samples/bluetooth/mesh_demo/src/main.c b/samples/bluetooth/mesh_demo/src/main.c index f77b7a62c7a..73a0664409d 100644 --- a/samples/bluetooth/mesh_demo/src/main.c +++ b/samples/bluetooth/mesh_demo/src/main.c @@ -199,7 +199,7 @@ static void bt_ready(int err) } #if NODE_ADDR != PUBLISHER_ADDR - /* Heartbeat subcscription is a temporary state (due to there + /* Heartbeat subscription is a temporary state (due to there * not being an "indefinite" value for the period, so it never * gets stored persistently. Therefore, we always have to configure * it explicitly. diff --git a/samples/bluetooth/peripheral/prj.conf b/samples/bluetooth/peripheral/prj.conf index 9a56b2c1225..d9637e99722 100644 --- a/samples/bluetooth/peripheral/prj.conf +++ b/samples/bluetooth/peripheral/prj.conf @@ -1,4 +1,4 @@ -# Incresed stack due to settings API usage +# Increased stack due to settings API usage CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048 CONFIG_BT=y diff --git a/samples/bluetooth/peripheral_ht/src/hts.c b/samples/bluetooth/peripheral_ht/src/hts.c index 80a261e1644..02f886b00c1 100644 --- a/samples/bluetooth/peripheral_ht/src/hts.c +++ b/samples/bluetooth/peripheral_ht/src/hts.c @@ -118,7 +118,7 @@ gatt_indicate: mantissa = (uint32_t)(temperature * 100); exponent = (uint8_t)-2; - htm[0] = 0; /* temperature in celcius */ + htm[0] = 0; /* temperature in celsius */ sys_put_le24(mantissa, (uint8_t *)&htm[1]); htm[4] = exponent; diff --git a/samples/bluetooth/unicast_audio_client/README.rst b/samples/bluetooth/unicast_audio_client/README.rst index f8f6ec226ad..1fb776392a7 100644 --- a/samples/bluetooth/unicast_audio_client/README.rst +++ b/samples/bluetooth/unicast_audio_client/README.rst @@ -1,6 +1,6 @@ .. _bluetooth_unicast_audio_client: -Bluetooth: Unicast Audio CLient +Bluetooth: Unicast Audio Client ############################### Overview diff --git a/samples/boards/arc_secure_services/README.rst b/samples/boards/arc_secure_services/README.rst index 33cc475e990..9a2a1074195 100644 --- a/samples/boards/arc_secure_services/README.rst +++ b/samples/boards/arc_secure_services/README.rst @@ -98,7 +98,7 @@ For em starter kit, run the following commands $ cd samples/boards/arc_secure_services/build $ west debug # load normal application - $ monitor load_image ../../../philosophers/build/zepher/zephyr.elf + $ monitor load_image ../../../philosophers/build/zephyr/zephyr.elf $ c For nsim sem, you need two consoles: one for application output, and one for @@ -121,7 +121,7 @@ In the console for debugger: $ arc-elf32-gdb zephyr/zephyr.elf $ target remote :3333 # load normal application - $ load ../../../philosophers/build/zepher/zephyr.elf + $ load ../../../philosophers/build/zephyr/zephyr.elf # load secure application $ load $ c diff --git a/samples/boards/esp32/wifi_station/README.rst b/samples/boards/esp32/wifi_station/README.rst index a7be1dda205..c6a7b07ef45 100644 --- a/samples/boards/esp32/wifi_station/README.rst +++ b/samples/boards/esp32/wifi_station/README.rst @@ -54,7 +54,7 @@ This example uses ``west espressif monitor``, which automatically detects the se I (613) wifi:wifi firmware version: 9c89486 I (613) wifi:wifi certification version: v7.0 I (614) wifi:config NVS flash: disabled - I (618) wifi:config nano formating: disabled + I (618) wifi:config nano formatting: disabled I (622) wifi:Init data frame dynamic rx buffer num: 32 I (627) wifi:Init management frame dynamic rx buffer num: 32 I (632) wifi:Init management short buffer num: 32 diff --git a/samples/boards/mec15xxevb_assy6853/power_management/src/power_mgmt.c b/samples/boards/mec15xxevb_assy6853/power_management/src/power_mgmt.c index 86217b3e67c..0f4b1cc172c 100644 --- a/samples/boards/mec15xxevb_assy6853/power_management/src/power_mgmt.c +++ b/samples/boards/mec15xxevb_assy6853/power_management/src/power_mgmt.c @@ -265,7 +265,7 @@ int test_pwr_mgmt_multithread(bool use_logging, uint8_t cycles) { uint8_t iterations = cycles; /* Ensure we can enter deep sleep when stopping threads - * No UART output should occurr when threads are suspended + * No UART output should occur when threads are suspended * Test to verify Zephyr RTOS issue #20033 * https://github.com/zephyrproject-rtos/zephyr/issues/20033 */ diff --git a/samples/boards/nrf/mesh/onoff-app/src/main.c b/samples/boards/nrf/mesh/onoff-app/src/main.c index 266e8920949..d2970f5fd32 100644 --- a/samples/boards/nrf/mesh/onoff-app/src/main.c +++ b/samples/boards/nrf/mesh/onoff-app/src/main.c @@ -223,7 +223,7 @@ struct bt_mesh_model *mod_cli_sw[] = { }; /* - * LED to Server Model Assigmnents + * LED to Server Model Assignments */ struct bt_mesh_model *mod_srv_sw[] = { diff --git a/samples/boards/nrf/mesh/onoff_level_lighting_vnd_app/src/mesh/device_composition.c b/samples/boards/nrf/mesh/onoff_level_lighting_vnd_app/src/mesh/device_composition.c index 51e23ce7ba7..be9252489dc 100644 --- a/samples/boards/nrf/mesh/onoff_level_lighting_vnd_app/src/mesh/device_composition.c +++ b/samples/boards/nrf/mesh/onoff_level_lighting_vnd_app/src/mesh/device_composition.c @@ -265,7 +265,7 @@ static int gen_onoff_status(struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, struct net_buf_simple *buf) { - printk("Acknownledgement from GEN_ONOFF_SRV\n"); + printk("Acknowledgement from GEN_ONOFF_SRV\n"); printk("Present OnOff = %02x\n", net_buf_simple_pull_u8(buf)); if (buf->len == 2U) { @@ -276,7 +276,7 @@ static int gen_onoff_status(struct bt_mesh_model *model, return 0; } -/* Generic Level (lIGHTNESS) Server message handlers */ +/* Generic Level (LIGHTNESS) Server message handlers */ static int gen_level_get(struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, struct net_buf_simple *buf) @@ -787,7 +787,7 @@ static int gen_level_status(struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, struct net_buf_simple *buf) { - printk("Acknownledgement from GEN_LEVEL_SRV\n"); + printk("Acknowledgement from GEN_LEVEL_SRV\n"); printk("Present Level = %04x\n", net_buf_simple_pull_le16(buf)); if (buf->len == 3U) { @@ -885,7 +885,7 @@ static int gen_def_trans_time_status(struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, struct net_buf_simple *buf) { - printk("Acknownledgement from GEN_DEF_TT_SRV\n"); + printk("Acknowledgement from GEN_DEF_TT_SRV\n"); printk("Transition Time = %02x\n", net_buf_simple_pull_u8(buf)); return 0; @@ -913,7 +913,7 @@ static int gen_onpowerup_status(struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, struct net_buf_simple *buf) { - printk("Acknownledgement from GEN_POWER_ONOFF_SRV\n"); + printk("Acknowledgement from GEN_POWER_ONOFF_SRV\n"); printk("OnPowerUp = %02x\n", net_buf_simple_pull_u8(buf)); return 0; @@ -1052,7 +1052,7 @@ static int vnd_set(struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, static int vnd_status(struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, struct net_buf_simple *buf) { - printk("Acknownledgement from Vendor\n"); + printk("Acknowledgement from Vendor\n"); printk("cmd = %04x\n", net_buf_simple_pull_le16(buf)); printk("response = %08x\n", net_buf_simple_pull_le32(buf)); @@ -1645,7 +1645,7 @@ static int light_lightness_status(struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, struct net_buf_simple *buf) { - printk("Acknownledgement from LIGHT_LIGHTNESS_SRV (Actual)\n"); + printk("Acknowledgement from LIGHT_LIGHTNESS_SRV (Actual)\n"); printk("Present Lightness = %04x\n", net_buf_simple_pull_le16(buf)); if (buf->len == 3U) { @@ -1661,7 +1661,7 @@ static int light_lightness_linear_status(struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, struct net_buf_simple *buf) { - printk("Acknownledgement from LIGHT_LIGHTNESS_SRV (Linear)\n"); + printk("Acknowledgement from LIGHT_LIGHTNESS_SRV (Linear)\n"); printk("Present Lightness = %04x\n", net_buf_simple_pull_le16(buf)); if (buf->len == 3U) { @@ -1677,7 +1677,7 @@ static int light_lightness_last_status(struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, struct net_buf_simple *buf) { - printk("Acknownledgement from LIGHT_LIGHTNESS_SRV (Last)\n"); + printk("Acknowledgement from LIGHT_LIGHTNESS_SRV (Last)\n"); printk("Lightness = %04x\n", net_buf_simple_pull_le16(buf)); return 0; @@ -1687,7 +1687,7 @@ static int light_lightness_default_status(struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, struct net_buf_simple *buf) { - printk("Acknownledgement from LIGHT_LIGHTNESS_SRV (Default)\n"); + printk("Acknowledgement from LIGHT_LIGHTNESS_SRV (Default)\n"); printk("Lightness = %04x\n", net_buf_simple_pull_le16(buf)); return 0; @@ -1697,7 +1697,7 @@ static int light_lightness_range_status(struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, struct net_buf_simple *buf) { - printk("Acknownledgement from LIGHT_LIGHTNESS_SRV (Lightness Range)\n"); + printk("Acknowledgement from LIGHT_LIGHTNESS_SRV (Lightness Range)\n"); printk("Status Code = %02x\n", net_buf_simple_pull_u8(buf)); printk("Range Min = %04x\n", net_buf_simple_pull_le16(buf)); printk("Range Max = %04x\n", net_buf_simple_pull_le16(buf)); @@ -2152,7 +2152,7 @@ static int light_ctl_status(struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, struct net_buf_simple *buf) { - printk("Acknownledgement from LIGHT_CTL_SRV\n"); + printk("Acknowledgement from LIGHT_CTL_SRV\n"); printk("Present CTL Lightness = %04x\n", net_buf_simple_pull_le16(buf)); printk("Present CTL Temperature = %04x\n", net_buf_simple_pull_le16(buf)); @@ -2172,7 +2172,7 @@ static int light_ctl_temp_range_status(struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, struct net_buf_simple *buf) { - printk("Acknownledgement from LIGHT_CTL_SRV (Temperature Range)\n"); + printk("Acknowledgement from LIGHT_CTL_SRV (Temperature Range)\n"); printk("Status Code = %02x\n", net_buf_simple_pull_u8(buf)); printk("Range Min = %04x\n", net_buf_simple_pull_le16(buf)); printk("Range Max = %04x\n", net_buf_simple_pull_le16(buf)); @@ -2184,7 +2184,7 @@ static int light_ctl_temp_status(struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, struct net_buf_simple *buf) { - printk("Acknownledgement from LIGHT_CTL_TEMP_SRV\n"); + printk("Acknowledgement from LIGHT_CTL_TEMP_SRV\n"); printk("Present CTL Temperature = %04x\n", net_buf_simple_pull_le16(buf)); printk("Present CTL Delta UV = %04x\n", @@ -2205,7 +2205,7 @@ static int light_ctl_default_status(struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, struct net_buf_simple *buf) { - printk("Acknownledgement from LIGHT_CTL_SRV (Default)\n"); + printk("Acknowledgement from LIGHT_CTL_SRV (Default)\n"); printk("Lightness = %04x\n", net_buf_simple_pull_le16(buf)); printk("Temperature = %04x\n", net_buf_simple_pull_le16(buf)); printk("Delta UV = %04x\n", net_buf_simple_pull_le16(buf)); @@ -2423,7 +2423,7 @@ static int light_ctl_temp_set(struct bt_mesh_model *model, return 0; } -/* Generic Level (TEMPERARTURE) Server message handlers */ +/* Generic Level (TEMPERATURE) Server message handlers */ static int gen_level_get_temp(struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, struct net_buf_simple *buf) @@ -2935,7 +2935,7 @@ static int gen_level_status_temp(struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, struct net_buf_simple *buf) { - printk("Acknownledgement from GEN_LEVEL_SRV\n"); + printk("Acknowledgement from GEN_LEVEL_SRV\n"); printk("Present Level = %04x\n", net_buf_simple_pull_le16(buf)); if (buf->len == 3U) { diff --git a/samples/boards/nrf/nrfx_prs/README.rst b/samples/boards/nrf/nrfx_prs/README.rst index 07bdb71001f..0924eecd85f 100644 --- a/samples/boards/nrf/nrfx_prs/README.rst +++ b/samples/boards/nrf/nrfx_prs/README.rst @@ -6,7 +6,7 @@ nrfx peripheral resource sharing example Overview ******** -This sample shows how to use in Zephyr nRF perpipherals that share the same ID +This sample shows how to use in Zephyr nRF peripherals that share the same ID and base address. Such peripherals cannot be used simultaneously because they share certain hardware resources, but it is possible to switch between them and use one or the other alternately. Because of the current driver model in Zephyr diff --git a/samples/boards/reel_board/mesh_badge/README.rst b/samples/boards/reel_board/mesh_badge/README.rst index 40dd58ba936..6097af23b8f 100644 --- a/samples/boards/reel_board/mesh_badge/README.rst +++ b/samples/boards/reel_board/mesh_badge/README.rst @@ -47,4 +47,4 @@ text, and make it connectable over GATT): #. Keep the user button pressed when powering on (or press the reset button when powered) -#. Wait until "Reseting Device" is shown +#. Wait until "Resetting Device" is shown diff --git a/samples/boards/reel_board/mesh_badge/src/main.c b/samples/boards/reel_board/mesh_badge/src/main.c index 0d1cf0d7ab5..10d4ed9a460 100644 --- a/samples/boards/reel_board/mesh_badge/src/main.c +++ b/samples/boards/reel_board/mesh_badge/src/main.c @@ -208,7 +208,7 @@ void main(void) err = periphs_init(); if (err) { - printk("perpherals initialization failed (err %d)\n", err); + printk("peripherals initialization failed (err %d)\n", err); return; } } diff --git a/samples/boards/stm32/backup_sram/README.rst b/samples/boards/stm32/backup_sram/README.rst index 6aa1c4dd548..2762eb2df34 100644 --- a/samples/boards/stm32/backup_sram/README.rst +++ b/samples/boards/stm32/backup_sram/README.rst @@ -16,7 +16,7 @@ VBAT is preserved, the incremented value will be shown on the next power-cycle. .. note:: On most boards VBAT is typically connected to VDD thanks to a jumper. - To excercise this sample with an independent VBAT source, you will need to + To exercise this sample with an independent VBAT source, you will need to remove the jumper. Building and Running diff --git a/samples/boards/stm32/ccm/README.rst b/samples/boards/stm32/ccm/README.rst index 7da4fa84a4f..ade1a39796b 100644 --- a/samples/boards/stm32/ccm/README.rst +++ b/samples/boards/stm32/ccm/README.rst @@ -57,7 +57,7 @@ look like this: The total used CCM area : [0x10000000, 0x10000021) Zero initialized BSS area : [0x10000000, 0x10000007) - Unitialized NOINIT area : [0x10000008, 0x10000013) + Uninitialized NOINIT area : [0x10000008, 0x10000013) Initialised DATA area : [0x10000014, 0x10000021) Start of DATA in FLASH : 0x08003940 @@ -103,7 +103,7 @@ When the board is reset (without power-cycling), the output looks like this: The total used CCM area : [0x10000000, 0x10000021) Zero initialized BSS area : [0x10000000, 0x10000007) - Unitialized NOINIT area : [0x10000008, 0x10000013) + Uninitialized NOINIT area : [0x10000008, 0x10000013) Initialised DATA area : [0x10000014, 0x10000021) Start of DATA in FLASH : 0x08003940 diff --git a/samples/boards/stm32/ccm/src/main.c b/samples/boards/stm32/ccm/src/main.c index 7dea05524f1..bc72e176df0 100644 --- a/samples/boards/stm32/ccm/src/main.c +++ b/samples/boards/stm32/ccm/src/main.c @@ -120,7 +120,7 @@ void main(void) &__ccm_start, &__ccm_end); printf("Zero initialized BSS area : [%p, %p)\n", &__ccm_bss_start, &__ccm_bss_end); - printf("Unitialized NOINIT area : [%p, %p)\n", + printf("Uninitialized NOINIT area : [%p, %p)\n", &__ccm_noinit_start, &__ccm_noinit_end); printf("Initialised DATA area : [%p, %p)\n", &__ccm_data_start, &__ccm_data_end); diff --git a/samples/boards/stm32/usbc/sink/README.rst b/samples/boards/stm32/usbc/sink/README.rst index 385d0a717b9..7690610f44b 100644 --- a/samples/boards/stm32/usbc/sink/README.rst +++ b/samples/boards/stm32/usbc/sink/README.rst @@ -16,7 +16,7 @@ negotiates with the charger to provide 5V@100mA and displays all Power Delivery Objects (PDOs) provided by the charger. Please note that this example does not implement any of the features and -requiresments outlined in the USBC Specification needed to create a robust +requirements outlined in the USBC Specification needed to create a robust USBC Sink device. It is meant for demonstration purposes only. .. _sink-sample-requirements: diff --git a/samples/boards/stm32/usbc/sink/src/usbc_snk.c b/samples/boards/stm32/usbc/sink/src/usbc_snk.c index 2d6d5d922cc..0457b5193c9 100644 --- a/samples/boards/stm32/usbc/sink/src/usbc_snk.c +++ b/samples/boards/stm32/usbc/sink/src/usbc_snk.c @@ -302,7 +302,7 @@ static void display_pdo(int idx, uint32_t pdo_value) LOG_INF("\tVoltage: %d", PD_CONVERT_FIXED_PDO_VOLTAGE_TO_MV(pdo.voltage)); LOG_INF("\tPeak Current: %d", pdo.peak_current); - LOG_INF("\tUchunked Support: %d", + LOG_INF("\tUnchunked Support: %d", pdo.unchunked_ext_msg_supported); LOG_INF("\tDual Role Data: %d", pdo.dual_role_data); @@ -310,7 +310,7 @@ static void display_pdo(int idx, uint32_t pdo_value) pdo.usb_comms_capable); LOG_INF("\tUnconstrained Pwr: %d", pdo.unconstrained_power); - LOG_INF("\tUSB Susspend: %d", + LOG_INF("\tUSB Suspend: %d", pdo.usb_suspend_supported); LOG_INF("\tDual Role Power: %d", pdo.dual_role_power); @@ -413,7 +413,7 @@ static void tc_attached_snk_run(void *tc_obj) /* Check if Hard Reset was received */ if (tc->flag & FLAG_HARD_RESET_RECEIVED) { - /* Flag is cleard in snk_startup function */ + /* Flag is cleared in snk_startup function */ snk_startup(tc); } @@ -580,7 +580,7 @@ static void tc_attached_snk_run(void *tc_obj) } break; case SNK_TRANSITION_SINK: - /* Display Soruce Caps Received form Source */ + /* Display Source Caps Received from Source */ display_source_caps(tc); tc->sub_state = SUB_STATE0; tc->pd_state = SNK_READY; @@ -632,7 +632,7 @@ static void tc_attached_snk_run(void *tc_obj) break; } - /* Only the sink pwer sub states when we are not in a pd contract */ + /* Only the sink power sub states when we are not in a pd contract */ if (!tc->pd_connected) { /* Run Sink Power Sub-State */ sink_power_sub_states(); diff --git a/samples/drivers/crypto/src/main.c b/samples/drivers/crypto/src/main.c index 5c92c5aaa55..c629042158e 100644 --- a/samples/drivers/crypto/src/main.c +++ b/samples/drivers/crypto/src/main.c @@ -358,7 +358,7 @@ void ctr_mode(const struct device *dev) if (memcmp(decrypt.out_buf, plaintext, sizeof(plaintext))) { LOG_ERR("CTR mode DECRYPT - Mismatch between plaintext " - "and decypted cipher text"); + "and decrypted cipher text"); print_buffer_comparison(plaintext, decrypt.out_buf, sizeof(plaintext)); goto out; diff --git a/samples/drivers/eeprom/README.rst b/samples/drivers/eeprom/README.rst index 0adfa13c503..98007767a5e 100644 --- a/samples/drivers/eeprom/README.rst +++ b/samples/drivers/eeprom/README.rst @@ -51,4 +51,4 @@ Sample Output Found EEPROM device "EEPROM_M24C02" Using eeprom with size of: 256. Device booted 7 times. - Reset the MCU to see the inceasing boot counter. + Reset the MCU to see the increasing boot counter. diff --git a/samples/drivers/eeprom/sample.yaml b/samples/drivers/eeprom/sample.yaml index 304e7b1c10a..d8d1df91cb3 100644 --- a/samples/drivers/eeprom/sample.yaml +++ b/samples/drivers/eeprom/sample.yaml @@ -8,7 +8,7 @@ common: harness_config: type: one_line regex: - - "Reset the MCU to see the inceasing boot counter." + - "Reset the MCU to see the increasing boot counter." tests: sample.drivers.eeprom: diff --git a/samples/drivers/eeprom/src/main.c b/samples/drivers/eeprom/src/main.c index 94649bb4dae..dab059b59dd 100644 --- a/samples/drivers/eeprom/src/main.c +++ b/samples/drivers/eeprom/src/main.c @@ -69,5 +69,5 @@ void main(void) return; } - printk("Reset the MCU to see the inceasing boot counter.\n\n"); + printk("Reset the MCU to see the increasing boot counter.\n\n"); } diff --git a/samples/drivers/espi/src/main.c b/samples/drivers/espi/src/main.c index 1b55d89313a..064af7cd0e7 100644 --- a/samples/drivers/espi/src/main.c +++ b/samples/drivers/espi/src/main.c @@ -1325,12 +1325,12 @@ int espi_test(void) } #ifndef CONFIG_ESPI_AUTOMATIC_BOOT_DONE_ACKNOWLEDGE - /* When automatic acknowledge is disabled to perform lenghty operations + /* When automatic acknowledge is disabled to perform lengthy operations * in the eSPI slave, need to explicitly send slave boot */ bool vw_ch_sts; - /* Simulate lenghty operation during boot */ + /* Simulate lengthy operation during boot */ k_sleep(K_SECONDS(2)); do { diff --git a/samples/drivers/lcd_hd44780/src/main.c b/samples/drivers/lcd_hd44780/src/main.c index 075154cc9f8..80bb31453b4 100644 --- a/samples/drivers/lcd_hd44780/src/main.c +++ b/samples/drivers/lcd_hd44780/src/main.c @@ -312,7 +312,7 @@ void pi_lcd_home(const struct device *gpio_dev) k_sleep(K_MSEC(2)); /* wait for 2ms */ } -/** Set curson position */ +/** Set cursor position */ void pi_lcd_set_cursor(const struct device *gpio_dev, uint8_t col, uint8_t row) { diff --git a/samples/drivers/led_apa102/README.rst b/samples/drivers/led_apa102/README.rst index 7286d11c6ec..9def8376dcc 100644 --- a/samples/drivers/led_apa102/README.rst +++ b/samples/drivers/led_apa102/README.rst @@ -85,5 +85,5 @@ following output: .. code-block:: none - ***** BOOTING ZEPHYR OS zepyhr-v1.13.XX ***** + ***** BOOTING ZEPHYR OS zephyr-v1.13.XX ***** [general] [INF] main: Found LED strip device APA102 diff --git a/samples/drivers/led_lp503x/src/main.c b/samples/drivers/led_lp503x/src/main.c index 8e4d984e333..63850b5723f 100644 --- a/samples/drivers/led_lp503x/src/main.c +++ b/samples/drivers/led_lp503x/src/main.c @@ -105,7 +105,7 @@ static int run_led_test(const struct device *lp503x_dev, uint8_t led) } /** - * @brief Run tests on a all the LEDs using the channel-based API syscalls. + * @brief Run tests on all the LEDs using the channel-based API syscalls. * * @param lp503x_dev LP503X LED controller device. */ @@ -115,7 +115,7 @@ static int run_channel_test(const struct device *lp503x_dev) uint8_t buffer[LP503X_COLORS_PER_LED * LP503X_MAX_LEDS]; int err; - LOG_INF("Testing alls LEDs (channel API)"); + LOG_INF("Testing all LEDs (channel API)"); for (idx = 0; idx < ARRAY_SIZE(colors); idx++) { uint8_t led; @@ -190,7 +190,7 @@ static int run_channel_test(const struct device *lp503x_dev) } k_sleep(SLEEP_DELAY); - /* Turn LED off. */ + /* Turn LEDs off. */ for (led = 0; led < LP503X_MAX_LEDS; led++) { buffer[led] = 0; } diff --git a/samples/drivers/misc/ft800/README.rst b/samples/drivers/misc/ft800/README.rst index 770839a42b4..533578c088e 100644 --- a/samples/drivers/misc/ft800/README.rst +++ b/samples/drivers/misc/ft800/README.rst @@ -36,7 +36,7 @@ described below: :goals: flash :compact: -To build the sample for `VM800C board`_ the shild must be defined as described +To build the sample for `VM800C board`_ the shield must be defined as described below: .. zephyr-app-commands:: diff --git a/samples/drivers/ps2/src/main.c b/samples/drivers/ps2/src/main.c index e15944e5ae6..57ef7424e3c 100644 --- a/samples/drivers/ps2/src/main.c +++ b/samples/drivers/ps2/src/main.c @@ -16,9 +16,9 @@ LOG_MODULE_REGISTER(); #define TASK_STACK_SIZE 1024 #define PRIORITY 7 -/*Minimum safe time invertal between regular PS/2 calls */ +/*Minimum safe time interval between regular PS/2 calls */ #define MS_BETWEEN_REGULAR_CALLS 8 -/*Minimum safe time invertal between BAT/Reset PS/2 calls */ +/*Minimum safe time interval between BAT/Reset PS/2 calls */ #define MS_BETWEEN_RESET_CALLS 500 static void to_port_60_thread(void *dummy1, void *dummy2, void *dummy3); @@ -173,7 +173,7 @@ void main(void) k_msleep(MS_BETWEEN_RESET_CALLS); /* The ps2 blocks are generic, therefore, it is allowed to swap - * keybaord and mouse as deired + * keyboard and mouse as desired */ #if DT_NODE_HAS_STATUS(DT_INST(0, microchip_xec_ps2), okay) ps2_0_dev = device_get_binding(DT_LABEL(DT_INST(0, microchip_xec_ps2))); diff --git a/samples/drivers/spi_fujitsu_fram/src/main.c b/samples/drivers/spi_fujitsu_fram/src/main.c index a8500a81890..1d8befa2411 100644 --- a/samples/drivers/spi_fujitsu_fram/src/main.c +++ b/samples/drivers/spi_fujitsu_fram/src/main.c @@ -165,7 +165,7 @@ void main(void) data[0] = 0xAE; err = write_bytes(spi, &spi_cfg, 0x00, data, 1); if (err) { - printk("Error writing to FRAM! errro code (%d)\n", err); + printk("Error writing to FRAM! error code (%d)\n", err); return; } else { printk("Wrote 0xAE to address 0x00.\n"); diff --git a/samples/drivers/uart/stm32/single_wire/README.rst b/samples/drivers/uart/stm32/single_wire/README.rst index 6016dcfccb0..8956cca4a31 100644 --- a/samples/drivers/uart/stm32/single_wire/README.rst +++ b/samples/drivers/uart/stm32/single_wire/README.rst @@ -17,7 +17,7 @@ twister to verify this sample's output automatically. Building and Running ******************** -Build and flash as follows, replacig ``stm32f3_disco`` with your board: +Build and flash as follows, replacing ``stm32f3_disco`` with your board: .. zephyr-app-commands:: :zephyr-app: samples/drivers/uart/stm32/single_wire diff --git a/samples/kernel/metairq_dispatch/README.rst b/samples/kernel/metairq_dispatch/README.rst index f20962576aa..6db68d630da 100644 --- a/samples/kernel/metairq_dispatch/README.rst +++ b/samples/kernel/metairq_dispatch/README.rst @@ -16,7 +16,7 @@ via a queue from the device ISR (really just a timer interrupt). Each message has a random (and non-trivial) amount of processing that must happen in the worker thread. This implements a "bursty load" -environment where occassional spikes in load require preemption of +environment where occasional spikes in load require preemption of running threads and delay scheduling of lower priority threads. Messages are accompanied by a timestamp that allows per-message latencies to be computed at several points: @@ -36,7 +36,7 @@ Aspects to note in the results: latencies and lower processing delays, as expected. * Cooperatively scheduled threads have significantly better processing - delay behavior than preemtible ones, as they can only be preempted + delay behavior than preemptible ones, as they can only be preempted by the MetaIRQ thread. * Because of queueing and the bursty load, all worker threads of any diff --git a/samples/kernel/metairq_dispatch/src/main.c b/samples/kernel/metairq_dispatch/src/main.c index d40ccbece5e..6264491577f 100644 --- a/samples/kernel/metairq_dispatch/src/main.c +++ b/samples/kernel/metairq_dispatch/src/main.c @@ -119,7 +119,7 @@ static void record_latencies(struct msg *m, uint32_t latency) } /* It might be a potential race condition in this subroutine. - * We check if the msg seqence is reaching the MAX EVENT first. + * We check if the msg sequence is reaching the MAX EVENT first. * To prevent the coming incorrect changes of the array. */ if (m->seq >= MAX_EVENTS) { diff --git a/samples/modules/canopennode/README.rst b/samples/modules/canopennode/README.rst index 0341a129730..500a9040814 100644 --- a/samples/modules/canopennode/README.rst +++ b/samples/modules/canopennode/README.rst @@ -46,7 +46,7 @@ Building and Running for FRDM-K64F ================================== The :ref:`frdm_k64f` board does not come with an onboard CAN transceiver. In order to use the CAN bus on the FRDM-K64F board, an -external CAN bus tranceiver must be connected to ``PTB18`` +external CAN bus transceiver must be connected to ``PTB18`` (``CAN0_TX``) and ``PTB19`` (``CAN0_RX``). This board supports CANopen LED indicators (red and green LEDs) @@ -65,7 +65,7 @@ Building and Running for STM32F072RB Discovery ============================================== The :ref:`stm32f072b_disco_board` board does not come with an onboard CAN transceiver. In order to use the CAN bus on the STM32F072RB Discovery board, an -external CAN bus tranceiver must be connected to ``PB8`` (``CAN_RX``) and +external CAN bus transceiver must be connected to ``PB8`` (``CAN_RX``) and ``PB9`` (``CAN_TX``). This board supports CANopen LED indicators (red and green LEDs) @@ -84,7 +84,7 @@ Building and Running for STM32F3 Discovery ========================================== The :ref:`stm32f3_disco_board` board does not come with an onboard CAN transceiver. In order to use the CAN bus on the STM32F3 Discovery board, an -external CAN bus tranceiver must be connected to ``PD1`` (``CAN_TX``) and +external CAN bus transceiver must be connected to ``PD1`` (``CAN_TX``) and ``PD0`` (``CAN_RX``). This board supports CANopen LED indicators (red and green LEDs) diff --git a/samples/modules/canopennode/objdict/objdict.xml b/samples/modules/canopennode/objdict/objdict.xml index a72ea167798..1351c9f0515 100644 --- a/samples/modules/canopennode/objdict/objdict.xml +++ b/samples/modules/canopennode/objdict/objdict.xml @@ -23,7 +23,7 @@ bit 7: manufacturer specific bit 0-7: Zero can be written to erase error history Standard Error Field -bit 0-15: Error code as transmited in the Emergency object +bit 0-15: Error code as transmitted in the Emergency object bit 16-31: Manufacturer specific additional information @@ -64,7 +64,7 @@ bit 31: set to 0 bit 0-31: period of SYNC transmission in µs (0 = no transmission, no checking) - bit 0-31: window leghth after SYNC when PDOS must be transmited in µs, (0 = not used) + bit 0-31: window length after SYNC when PDOS must be transmitted in µs, (0 = not used) Name of the manufacturer as string @@ -302,7 +302,7 @@ bit 30: 0(1) - rtr are allowed (are NOT allowed) for PDO bit 31: 0(1) - node uses (does NOT use) PDO Transmission type -value = 0-240: reciving is synchronous, process after next reception of SYNC object +value = 0-240: receiving is synchronous, process after next reception of SYNC object value = 241-253: not used value = 254: manufacturer specific value = 255: asynchronous @@ -552,12 +552,12 @@ bit 30: 0(1) - rtr are allowed (are NOT allowed) for PDO bit 31: 0(1) - node uses (does NOT use) PDO Transmission type -value = 0: transmiting is synchronous, specification in device profile -value = 1-240: transmiting is synchronous after every N-th SYNC object +value = 0: transmitting is synchronous, specification in device profile +value = 1-240: transmitting is synchronous after every N-th SYNC object value = 241-251: not used -value = 252-253: Transmited only on reception of Remote Transmission Request +value = 252-253: Transmitted only on reception of Remote Transmission Request value = 254: manufacturer specific -value = 255: asinchronous, specification in device profile +value = 255: asynchronous, specification in device profile inhibit time bit 0-15: Minimum time between transmissions of the PDO in 100µs. Zero disables functionality. diff --git a/samples/modules/nanopb/README.rst b/samples/modules/nanopb/README.rst index be591738098..071498668a4 100644 --- a/samples/modules/nanopb/README.rst +++ b/samples/modules/nanopb/README.rst @@ -14,7 +14,7 @@ Requirements ************ Nanopb uses the protocol buffer compiler to generate source and header files, -make sure the ``protoc`` executable is intalled and available. +make sure the ``protoc`` executable is installed and available. .. tabs:: diff --git a/samples/net/civetweb/http_server/src/main.c b/samples/net/civetweb/http_server/src/main.c index d50d299aa76..6beededc2ec 100644 --- a/samples/net/civetweb/http_server/src/main.c +++ b/samples/net/civetweb/http_server/src/main.c @@ -15,7 +15,7 @@ #define CIVETWEB_MAIN_THREAD_STACK_SIZE CONFIG_MAIN_STACK_SIZE -/* Use samllest possible value of 1024 (see the line 18619 of civetweb.c) */ +/* Use smallest possible value of 1024 (see the line 18619 of civetweb.c) */ #define MAX_REQUEST_SIZE_BYTES 1024 K_THREAD_STACK_DEFINE(civetweb_stack, CIVETWEB_MAIN_THREAD_STACK_SIZE); diff --git a/samples/net/civetweb/websocket_server/README.rst b/samples/net/civetweb/websocket_server/README.rst index eea1ae39aa8..f9c731208f5 100644 --- a/samples/net/civetweb/websocket_server/README.rst +++ b/samples/net/civetweb/websocket_server/README.rst @@ -43,7 +43,7 @@ The port number can be changed in :zephyr_file:`samples/net/civetweb/websocket_s This sample application consists of two main parts: - **HTTP Server** - ``http://192.0.2.1:8080`` or ``http://192.0.2.1:8080/index.html`` It is needed to serve application's main page and its dependencies. -- **WebSocket Server** - ``ws://192.0.2.1:8080/ws``. It is an echo server, which sends recived data enclosed in **board name** and a string **too!** back. +- **WebSocket Server** - ``ws://192.0.2.1:8080/ws``. It is an echo server, which sends received data enclosed in **board name** and a string **too!** back. The **HTTP Server*** serves following statically allocated files (*no file system is present*): diff --git a/samples/net/civetweb/websocket_server/src/http_server_handlers.c b/samples/net/civetweb/websocket_server/src/http_server_handlers.c index 3ae7342feee..66b610a7768 100644 --- a/samples/net/civetweb/websocket_server/src/http_server_handlers.c +++ b/samples/net/civetweb/websocket_server/src/http_server_handlers.c @@ -112,7 +112,7 @@ __code_decl int this_send_buffer_chunked(struct mg_connection *conn, } } - /* Must be sent at the end of the chuked sequence */ + /* Must be sent at the end of the chunked sequence */ ret = mg_send_chunk(conn, "", 0); error_this_send_buffer_chunked: diff --git a/samples/net/civetweb/websocket_server/src/websocket_server_handlers.c b/samples/net/civetweb/websocket_server/src/websocket_server_handlers.c index 3c9033feced..85b9631539c 100644 --- a/samples/net/civetweb/websocket_server/src/websocket_server_handlers.c +++ b/samples/net/civetweb/websocket_server/src/websocket_server_handlers.c @@ -137,7 +137,7 @@ __code_decl int this_data_handler(struct mg_connection *conn, int bits, /* TODO: Maybe need we close WS connection here?! */ LOG_ERR("Unknown ERROR: ret_state = %d", ret_state); } else if (ret_state == 0) { - LOG_DBG("Close WS sonnection: ret_state = %d", ret_state); + LOG_DBG("Close WS connection: ret_state = %d", ret_state); } return ret_state; diff --git a/samples/net/cloud/tagoio_http_post/prj.conf b/samples/net/cloud/tagoio_http_post/prj.conf index fc2af697059..5896be8cd8d 100644 --- a/samples/net/cloud/tagoio_http_post/prj.conf +++ b/samples/net/cloud/tagoio_http_post/prj.conf @@ -3,7 +3,7 @@ CONFIG_MAIN_STACK_SIZE=4096 # C Library # Default use minimal libc and with MINIMAL_LIBC_MALLOC_ARENA_SIZE defining -# HEAP size (512 bytes) are enought to run DNS. +# HEAP size (512 bytes) are enough to run DNS. CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE=4096 # Networking config diff --git a/samples/net/dsa/src/dsa_lldp.c b/samples/net/dsa/src/dsa_lldp.c index 27970df7188..ba42715ae20 100644 --- a/samples/net/dsa/src/dsa_lldp.c +++ b/samples/net/dsa/src/dsa_lldp.c @@ -58,7 +58,7 @@ int dsa_lldp_send(struct net_if *iface, struct instance_data *pd, eth_hdr->type = htons(LLDP_ETHER_TYPE); /* LLDP packet data */ - /* Chasis ID */ + /* Chassis ID */ dsa_buf_write_be16((LLDP_TLV_CHASSIS_ID << 9) | (ETH_ALEN + 1), &p); *p++ = 4; /* subtype */ memcpy(p, net_if_get_link_addr(iface)->addr, ETH_ALEN); @@ -125,7 +125,7 @@ void dsa_lldp_print_info(uint8_t *lldp_p, uint8_t lanid) case LLDP_TLV_END_LLDPDU: return; case LLDP_TLV_CHASSIS_ID: - LOG_INF("\tCHASIS ID:\t%02x:%02x:%02x:%02x:%02x:%02x", + LOG_INF("\tCHASSIS ID:\t%02x:%02x:%02x:%02x:%02x:%02x", p[0], p[1], p[2], p[3], p[4], p[5]); break; case LLDP_TLV_PORT_ID: diff --git a/samples/net/lwm2m_client/README.rst b/samples/net/lwm2m_client/README.rst index 52be33cff65..bf5e8b4dff3 100644 --- a/samples/net/lwm2m_client/README.rst +++ b/samples/net/lwm2m_client/README.rst @@ -136,7 +136,7 @@ You can now open a web browser to: http://localhost:8888 The Demo Bootstrap Server web UI will open, this is where you can configure your device for bootstrap. -Configure the lwm2m-client sample in the Demo Bootsrap Server: +Configure the lwm2m-client sample in the Demo Bootstrap Server: 1. Click on "Add new client bootstrap configuration" #. Enter the following data: @@ -165,7 +165,7 @@ following: The sample will start and automatically connect to the Leshan Demo Bootstrap Server to obtain the LwM2M Server information. After that, the sample will automatically connect to the Leshan Demo Sever, as it was indicated in the -Bootstrap Server configuraion. +Bootstrap Server configuration. It is possible to combine overlay files, to enable DTLS and Bootstrap for instance. In that case, the user should make sure to update the port number in @@ -230,7 +230,7 @@ from console: ot extpanid ot thread start -You could get all parameters for existng OT network from your OTBR with +You could get all parameters for existing OT network from your OTBR with the following command: .. code-block:: console diff --git a/samples/net/lwm2m_client/src/lwm2m-client.c b/samples/net/lwm2m_client/src/lwm2m-client.c index 7fb8e3e3ce8..c84593eea51 100644 --- a/samples/net/lwm2m_client/src/lwm2m-client.c +++ b/samples/net/lwm2m_client/src/lwm2m-client.c @@ -457,7 +457,7 @@ static void rd_client_event(struct lwm2m_ctx *client, break; case LWM2M_RD_CLIENT_EVENT_NETWORK_ERROR: - LOG_ERR("LwM2M engine reported a network erorr."); + LOG_ERR("LwM2M engine reported a network error."); lwm2m_rd_client_stop(client, rd_client_event, true); break; } diff --git a/samples/net/sockets/coap_server/src/coap-server.c b/samples/net/sockets/coap_server/src/coap-server.c index b61858a75f5..5db2bfb20e2 100644 --- a/samples/net/sockets/coap_server/src/coap-server.c +++ b/samples/net/sockets/coap_server/src/coap-server.c @@ -957,7 +957,7 @@ static void schedule_next_retransmission(void) int32_t remaining; uint32_t now = k_uptime_get_32(); - /* Get the first pending retansmission to expire after cycling. */ + /* Get the first pending retransmission to expire after cycling. */ pending = coap_pending_next_to_expire(pendings, NUM_PENDINGS); if (!pending) { return; @@ -1110,7 +1110,7 @@ static int send_notification_packet(const struct sockaddr *addr, r = send_coap_reply(&response, addr, addr_len); - /* On succesfull creation of pending request, do not free memory */ + /* On successful creation of pending request, do not free memory */ if (type == COAP_TYPE_CON) { return r; } diff --git a/samples/net/virtual/README.rst b/samples/net/virtual/README.rst index 0523586d3fa..6869d21e1a4 100644 --- a/samples/net/virtual/README.rst +++ b/samples/net/virtual/README.rst @@ -7,7 +7,7 @@ Overview ******** This sample application creates a sample virtual network interface for -demostrative purposes, it does not do anything useful here. +demonstrative purposes, it does not do anything useful here. There are total 4 network interfaces. Ethernet network interface is providing the real network interface and all the virtual interfaces are running on top of it. diff --git a/samples/net/virtual/src/main.c b/samples/net/virtual/src/main.c index 987b070055a..1499d08c0f7 100644 --- a/samples/net/virtual/src/main.c +++ b/samples/net/virtual/src/main.c @@ -396,7 +396,7 @@ void main(void) net_virtual_interface_attach(ud.ip_tunnel_1, ud.ethernet); /* Attach our example virtual interface on top of the IPv4 one. - * This is just an exaple how to stack the interface on top of + * This is just an example how to stack the interface on top of * each other. */ net_virtual_interface_attach(ud.my_iface, ud.ip_tunnel_1); diff --git a/samples/sensor/adt7420/src/main.c b/samples/sensor/adt7420/src/main.c index 84bfa4a7978..dd036fb84ab 100644 --- a/samples/sensor/adt7420/src/main.c +++ b/samples/sensor/adt7420/src/main.c @@ -104,7 +104,7 @@ static void process(const struct device *dev) int ret; bool reset_window = false; - /* Set upddate rate to 240 mHz */ + /* Set update rate to 240 mHz */ sensor_set_attribute(dev, SENSOR_CHAN_AMBIENT_TEMP, SENSOR_ATTR_SAMPLING_FREQUENCY, 240 * 1000); diff --git a/samples/sensor/ina219/README.rst b/samples/sensor/ina219/README.rst index b93269461ec..dc39c438f6a 100644 --- a/samples/sensor/ina219/README.rst +++ b/samples/sensor/ina219/README.rst @@ -31,7 +31,7 @@ Building and Running Sample Output ============= -When monitoring a 3.3 V bus with a 0.1 Ohm shunt restistor +When monitoring a 3.3 V bus with a 0.1 Ohm shunt resistor you should get a similar output as below, repeated every 2 seconds: .. code-block:: console diff --git a/samples/sensor/sgp40_sht4x/README.rst b/samples/sensor/sgp40_sht4x/README.rst index cacc578919c..f594ffced7f 100644 --- a/samples/sensor/sgp40_sht4x/README.rst +++ b/samples/sensor/sgp40_sht4x/README.rst @@ -57,7 +57,7 @@ Sample Output *** Booting Zephyr OS build v2.6.0-rc1-315-g50d8d1187138 *** SHT4X: 23.64 Temp. [C] ; 30.74 RH [%] -- SGP40: 30531 Gas [a.u.] - [00:00:00.250,000] SGP40.sgp40_init: SGP40: Selftest succeded! + [00:00:00.250,000] SGP40.sgp40_init: SGP40: Selftest succeeded! SHT4X: 23.66 Temp. [C] ; 32.16 RH [%] -- SGP40: 30541 Gas [a.u.] SHT4X: 23.63 Temp. [C] ; 30.83 RH [%] -- SGP40: 30522 Gas [a.u.] diff --git a/samples/sensor/th02/src/main.c b/samples/sensor/th02/src/main.c index 31dddd68bb5..b38db561b89 100644 --- a/samples/sensor/th02/src/main.c +++ b/samples/sensor/th02/src/main.c @@ -86,7 +86,7 @@ void main(void) 223 /* degree symbol */); glcd_print(glcd, row, strlen(row)); - /* display himidity on LCD */ + /* display humidity on LCD */ glcd_cursor_pos_set(glcd, 17 - strlen(row), 0); sprintf(row, "RH:%.0f%c", sensor_value_to_double(val + 1), 37 /* percent symbol */); diff --git a/samples/sensor/tmp108/Kconfig b/samples/sensor/tmp108/Kconfig index 8029042ca83..746da258d59 100644 --- a/samples/sensor/tmp108/Kconfig +++ b/samples/sensor/tmp108/Kconfig @@ -19,7 +19,7 @@ config APP_ENABLE_ONE_SHOT starts this process. Set this to enable 1 shot mode example. config APP_TEMP_ALERT_HIGH_THRESH - int "RH [%] high threshold for alert trigger in celcius" + int "RH [%] high threshold for alert trigger in celsius" range 0 50 default 26 help @@ -30,7 +30,7 @@ config APP_TEMP_ALERT_HIGH_THRESH See spec sheet for more details. config APP_TEMP_ALERT_LOW_THRESH - int "RH [%] low threshold for alert trigger in celcius" + int "RH [%] low threshold for alert trigger in celsius" range 0 50 default 18 help diff --git a/samples/sensor/wsen_itds/README.rst b/samples/sensor/wsen_itds/README.rst index b8ac163221f..b7dd98b587d 100644 --- a/samples/sensor/wsen_itds/README.rst +++ b/samples/sensor/wsen_itds/README.rst @@ -5,7 +5,7 @@ WSEN-ITDS: 3-axis acceleration sensor Overview ******** - This sample periodically measures acceleration in 3-axis and die temerature for + This sample periodically measures acceleration in 3-axis and die temperature for 5 sec in the interval of 300msec in polling mode. Then data ready trigger mode is enabled with the sample frequency of 400Hz and 3-axis data is fetched based on interrupt. The result is displayed on the console. diff --git a/samples/subsys/canbus/isotp/src/main.c b/samples/subsys/canbus/isotp/src/main.c index e76ec2ebed9..1cdbe6898be 100644 --- a/samples/subsys/canbus/isotp/src/main.c +++ b/samples/subsys/canbus/isotp/src/main.c @@ -122,7 +122,7 @@ void rx_0_5_thread(void *arg1, void *arg2, void *arg3) received_len = isotp_recv(&recv_ctx_0_5, rx_buffer, sizeof(rx_buffer)-1U, K_MSEC(2000)); if (received_len < 0) { - printk("Receiving erreor [%d]\n", received_len); + printk("Receiving error [%d]\n", received_len); continue; } diff --git a/samples/subsys/ipc/openamp_rsc_table/CMakeLists.txt b/samples/subsys/ipc/openamp_rsc_table/CMakeLists.txt index 3c4eafd3a3a..57640da8418 100644 --- a/samples/subsys/ipc/openamp_rsc_table/CMakeLists.txt +++ b/samples/subsys/ipc/openamp_rsc_table/CMakeLists.txt @@ -10,7 +10,7 @@ project(openamp_rsc_table_remote) # METAL_MAX_DEVICE_REGIONS is used to give the number of memory regions shared # between processors. By default only one region is defined for the vrings -# and rpmsg buffers. The METAL_MAX_DEVICE_REGIONS has to be redifined to add a +# and rpmsg buffers. The METAL_MAX_DEVICE_REGIONS has to be redefined to add a # second region for the resource table. zephyr_compile_definitions(METAL_MAX_DEVICE_REGIONS=2) diff --git a/samples/subsys/ipc/openamp_rsc_table/boards/stm32mp157c_dk2.overlay b/samples/subsys/ipc/openamp_rsc_table/boards/stm32mp157c_dk2.overlay index b843b81083a..836b20aac6a 100644 --- a/samples/subsys/ipc/openamp_rsc_table/boards/stm32mp157c_dk2.overlay +++ b/samples/subsys/ipc/openamp_rsc_table/boards/stm32mp157c_dk2.overlay @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, STMICROLECTRONICS + * Copyright (c) 2020, STMICROELECTRONICS * * SPDX-License-Identifier: Apache-2.0 */ diff --git a/samples/subsys/ipc/openamp_rsc_table/src/main_remote.c b/samples/subsys/ipc/openamp_rsc_table/src/main_remote.c index 530786a9eca..b7a549d7d11 100644 --- a/samples/subsys/ipc/openamp_rsc_table/src/main_remote.c +++ b/samples/subsys/ipc/openamp_rsc_table/src/main_remote.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, STMICROLECTRONICS + * Copyright (c) 2020, STMICROELECTRONICS * * SPDX-License-Identifier: Apache-2.0 */ diff --git a/samples/subsys/mgmt/hawkbit/README.rst b/samples/subsys/mgmt/hawkbit/README.rst index fe98cd842cb..e2da6a9c8c2 100644 --- a/samples/subsys/mgmt/hawkbit/README.rst +++ b/samples/subsys/mgmt/hawkbit/README.rst @@ -157,7 +157,7 @@ following command: hawkbit run And then wait. The board will ping the server, check if there are any new -updates, and then download the update you've just created. If everyting goes +updates, and then download the update you've just created. If everything goes fine the message ``Image flashed successfully, you can reboot now`` will be printed on the terminal. diff --git a/samples/subsys/mgmt/mcumgr/smp_svr/README.rst b/samples/subsys/mgmt/mcumgr/smp_svr/README.rst index 2c9ebcf3004..21602f48aef 100644 --- a/samples/subsys/mgmt/mcumgr/smp_svr/README.rst +++ b/samples/subsys/mgmt/mcumgr/smp_svr/README.rst @@ -194,7 +194,7 @@ the image. west flash --bin-file build/zephyr/zephyr.signed.bin -We need to explicity specify the *signed* image file, otherwise the non-signed version +We need to explicitly specify the *signed* image file, otherwise the non-signed version will be used and the image wont be runnable. Sample image: hello world! diff --git a/samples/subsys/mgmt/mcumgr/smp_svr/src/main.c b/samples/subsys/mgmt/mcumgr/smp_svr/src/main.c index b3a2514a922..7bdc0151a2f 100644 --- a/samples/subsys/mgmt/mcumgr/smp_svr/src/main.c +++ b/samples/subsys/mgmt/mcumgr/smp_svr/src/main.c @@ -108,7 +108,7 @@ void main(void) } } /* using __TIME__ ensure that a new binary will be built on every - * compile which is convient when testing firmware upgrade. + * compile which is convenient when testing firmware upgrade. */ LOG_INF("build time: " __DATE__ " " __TIME__); diff --git a/samples/subsys/mgmt/updatehub/README.rst b/samples/subsys/mgmt/updatehub/README.rst index 4b90e4ce037..db16237a0a9 100644 --- a/samples/subsys/mgmt/updatehub/README.rst +++ b/samples/subsys/mgmt/updatehub/README.rst @@ -28,11 +28,11 @@ You can access the sample source code at Caveats ******* -* The Zephyr port of ``UpdateHub`` was initialy developed to run on a +* The Zephyr port of ``UpdateHub`` was initially developed to run on a :ref:`Freedom-K64F ` kit using the ethernet connectivity. The application should build and run for other platforms with same connectivity. -* The sample provides overlay files to enable other tecnologies like WIFI, +* The sample provides overlay files to enable other technologies like WIFI, modem, BLE IPSP, 802.15.4 or OpenThread. These technologies depends on hardware resources and the correspondent overlay was designed to be generic instead full optimized. @@ -56,7 +56,7 @@ Building and Running The below steps describe how to build and run the ``UpdateHub`` sample in Zephyr. Open a terminal ``terminal 1`` and navigate to your Zephyr project -directory. This allows contruct and run everything from a common place. +directory. This allows to construct and run everything from a common place. .. code-block:: console @@ -87,7 +87,7 @@ Step 2.1: UpdateHub-CE (Community Edition) The Zephyr sample application is configured by default to use the UpdateHub-CE server edition. This version implies you need run your own server. The UpdateHub-CE is distributed as a docker container and can be on your local -network or even instaled on a service provider like Digital Ocean, Vultr etc. +network or even installed on a service provider like Digital Ocean, Vultr etc. To start using the UpdateHub-CE simple execute the docker command with the following parameters on another terminal ``terminal 2``. @@ -263,7 +263,7 @@ tested with native linux driver and an USB dongle. Step 4.6: Build for OpenThread Network [experimental] ----------------------------------------------------- -The OpenThread requries the ``overlay-ot.conf``. It requires two nodes: +The OpenThread requires the ``overlay-ot.conf``. It requires two nodes: one will be the host NCP and the second one will be the device under test. The validation needs a Linux kernel >= 4.9 with optional NAT-64 support. The start point is try reproduce the `OpenThread Router`_. It is diff --git a/samples/subsys/pm/device_pm/src/dummy_driver.c b/samples/subsys/pm/device_pm/src/dummy_driver.c index 8ab8d74ea34..eda8a02f81f 100644 --- a/samples/subsys/pm/device_pm/src/dummy_driver.c +++ b/samples/subsys/pm/device_pm/src/dummy_driver.c @@ -67,7 +67,7 @@ static int dummy_close(const struct device *dev) ret = pm_device_runtime_put(dev); if (ret == 1) { - printk("Async suspend request ququed\n"); + printk("Async suspend request queued\n"); } /* Parent can be suspended */ diff --git a/samples/subsys/settings/src/main.c b/samples/subsys/settings/src/main.c index 26d25f5887a..a46ec07666b 100644 --- a/samples/subsys/settings/src/main.c +++ b/samples/subsys/settings/src/main.c @@ -21,7 +21,7 @@ #define FAIL_MSG "fail (err %d)\n" #define SECTION_BEGIN_LINE \ "\n=================================================\n" -/* Default valuse are assigned to settings valuses consuments +/* Default values are assigned to settings values consuments * All of them will be overwritten if storage contain proper key-values */ uint8_t angle_val; @@ -203,7 +203,7 @@ static void example_save_and_load_basic(void) printk("basic load and save using registered handlers\n"); /* load all key-values at once * In case a key-value doesn't exist in the storage - * default valuse should be assigned to settings consuments variable + * default values should be assigned to settings consuments variable * before any settings load call */ printk("\nload all key-value pairs using registered handlers\n"); @@ -310,7 +310,7 @@ static void example_direct_load_subtree(void) int rc; /* load subtree directly using call-specific handler `direct_loader' - * This handder loads subtree values to call-speciffic structure of type + * This handler loads subtree values to call-specific structure of type * 'direct_length_data`. */ printk(SECTION_BEGIN_LINE); @@ -359,7 +359,7 @@ static int direct_loader_immediate_value(const char *name, size_t len, return -EINVAL; } - /* other keys aren't served by the calback + /* other keys aren't served by the callback * Return success in order to skip them * and keep storage processing. */ @@ -511,7 +511,7 @@ void example_runtime_usage(void) printk(" The settings destination off the key has " "got value: \"%s\"\n\n", source_name_val); - /* set settins destination value "by hand" for next example */ + /* set settings destination value "by hand" for next example */ (void) strcpy(source_name_val, "rtos"); printk(SECTION_BEGIN_LINE); diff --git a/samples/subsys/shell/shell_module/src/dynamic_cmd.c b/samples/subsys/shell/shell_module/src/dynamic_cmd.c index eeccfed5134..2848b5be552 100644 --- a/samples/subsys/shell/shell_module/src/dynamic_cmd.c +++ b/samples/subsys/shell/shell_module/src/dynamic_cmd.c @@ -12,7 +12,7 @@ #define MAX_CMD_CNT (20u) #define MAX_CMD_LEN (33u) -/* buffer holding dynamicly created user commands */ +/* buffer holding dynamically created user commands */ static char dynamic_cmd_buffer[MAX_CMD_CNT][MAX_CMD_LEN]; /* commands counter */ static uint8_t dynamic_cmd_cnt; @@ -85,7 +85,7 @@ static int cmd_dynamic_execute(const struct shell *shell, } } - shell_error(shell, "%s: uknown parameter: %s", argv[0], argv[1]); + shell_error(shell, "%s: unknown parameter: %s", argv[0], argv[1]); return -ENOEXEC; } diff --git a/samples/subsys/shell/shell_module/src/uart_reinit.c b/samples/subsys/shell/shell_module/src/uart_reinit.c index 0414b1ed548..7d534322475 100644 --- a/samples/subsys/shell/shell_module/src/uart_reinit.c +++ b/samples/subsys/shell/shell_module/src/uart_reinit.c @@ -117,5 +117,5 @@ static int cmd_uart_release(const struct shell *shell, size_t argc, char **argv) SHELL_CMD_REGISTER(shell_uart_release, NULL, "Uninitialize shell instance and release uart, start loopback " - "on uart. Shell instance is renitialized when 'x' is pressed", + "on uart. Shell instance is reinitialized when 'x' is pressed", cmd_uart_release); diff --git a/samples/subsys/testsuite/pytest/pytest/test_sample.py b/samples/subsys/testsuite/pytest/pytest/test_sample.py index 52bf3c50564..33b6b8d6a6d 100755 --- a/samples/subsys/testsuite/pytest/pytest/test_sample.py +++ b/samples/subsys/testsuite/pytest/pytest/test_sample.py @@ -26,7 +26,7 @@ def test_case(cmdopt): which holds the artifacts generated by ztest. The main work of test cases in this file is to check those stuff in that directory. This test case simply compare the return value of cmdopt with the - environment varialbe exported by fixture pytest_cmdopt_handle. + environment variable exported by fixture pytest_cmdopt_handle. ''' assert os.path.exists(cmdopt) diff --git a/samples/subsys/tracing/README.txt b/samples/subsys/tracing/README.txt index 3a14c7367ac..7e5374604f8 100644 --- a/samples/subsys/tracing/README.txt +++ b/samples/subsys/tracing/README.txt @@ -1,9 +1,9 @@ -Title: Send Tracing Formated Packet To The Host With Supported Backends +Title: Send Tracing Formatted Packet To The Host With Supported Backends Description: This application can be used to demonstrate the tracing feature. The tracing -formated packet will be sent to the host with the currently supported tracing +formatted packet will be sent to the host with the currently supported tracing backend under tracing generic infrastructure. -------------------------------------------------------------------------------- diff --git a/samples/subsys/usb/webusb/src/main.c b/samples/subsys/usb/webusb/src/main.c index f1fac9440c9..0aac6a2da16 100644 --- a/samples/subsys/usb/webusb/src/main.c +++ b/samples/subsys/usb/webusb/src/main.c @@ -285,7 +285,7 @@ int vendor_handle_req(struct usb_setup_packet *pSetup, *data = (uint8_t *)(&msos1_compatid_descriptor); *len = sizeof(msos1_compatid_descriptor); - LOG_DBG("Get MS OS Descriptors CompatibeID"); + LOG_DBG("Get MS OS Descriptors CompatibleID"); return 0; } diff --git a/samples/tfm_integration/psa_crypto/README.rst b/samples/tfm_integration/psa_crypto/README.rst index 6befee38b6c..baef7287bb0 100644 --- a/samples/tfm_integration/psa_crypto/README.rst +++ b/samples/tfm_integration/psa_crypto/README.rst @@ -216,7 +216,7 @@ the MCUboot bootloader image binary (``bl2.hex``). .. code-block:: bash - nrfjprg -f NRF91 --program tfm/bin/bl2.hex --sectorerase + nrfjprog -f NRF91 --program tfm/bin/bl2.hex --sectorerase Finally, flash the concatenated TF-M + Zephyr binary. diff --git a/samples/tfm_integration/psa_crypto/src/psa_attestation.c b/samples/tfm_integration/psa_crypto/src/psa_attestation.c index 37b3f058e6c..89b0dc1ab3e 100644 --- a/samples/tfm_integration/psa_crypto/src/psa_attestation.c +++ b/samples/tfm_integration/psa_crypto/src/psa_attestation.c @@ -92,7 +92,7 @@ psa_status_t att_test(void) { psa_status_t err = PSA_SUCCESS; - /* 64-bytee nonce/challenge, encrypted using the default public key; + /* 64-byte nonce/challenge, encrypted using the default public key; * * 00 11 22 33 44 55 66 77 88 99 AA BB CC DD EE FF * 00 11 22 33 44 55 66 77 88 99 AA BB CC DD EE FF diff --git a/samples/tfm_integration/psa_crypto/src/psa_attestation.h b/samples/tfm_integration/psa_crypto/src/psa_attestation.h index 004b68ac935..1164dda8ad4 100644 --- a/samples/tfm_integration/psa_crypto/src/psa_attestation.h +++ b/samples/tfm_integration/psa_crypto/src/psa_attestation.h @@ -33,7 +33,7 @@ psa_status_t att_get_pub_key(void); * data points used to uniquely identify this device to an external * verification entity (the IAT consumer). * - * The generated IAT should be crytographically verrifiable by the IAT consumer. + * The generated IAT should be cryptographically verifiable by the IAT consumer. * * For details on IAT see https://tools.ietf.org/html/draft-mandyam-eat-01 * diff --git a/samples/tfm_integration/psa_crypto/src/psa_crypto.c b/samples/tfm_integration/psa_crypto/src/psa_crypto.c index f142fa4ece8..ab35dbd70aa 100644 --- a/samples/tfm_integration/psa_crypto/src/psa_crypto.c +++ b/samples/tfm_integration/psa_crypto/src/psa_crypto.c @@ -40,7 +40,7 @@ static const struct json_obj_descr csr_json_descr[] = { /** * @brief Extracts the public key from the specified persistent key id. * - * @param key_id The permament identifier for the generated key. + * @param key_id The permanent identifier for the generated key. * @param key Pointer to the buffer where the public key data * will be written. * @param key_buf_size Size of key buffer in bytes. @@ -213,11 +213,11 @@ err: * @brief Generates a new permanent, persistent prime256v1 (ecdsa-with-SHA256) * key in ITS, associating it with the specified unique key identifier. * - * This function will generate a new permament prime256v1 key in internal trusted + * This function will generate a new permanent prime256v1 key in internal trusted * storage. Cryptographic operations can then be performed using the key * identifier (key_id) associated with this persistent key. * - * @param key_id The permament identifier for the generated key. + * @param key_id The permanent identifier for the generated key. * @param key_usage The usage policy for the key. */ static psa_status_t crp_gen_key_secp256r1(psa_key_id_t key_id, diff --git a/samples/tfm_integration/psa_crypto/src/util_app_cfg.h b/samples/tfm_integration/psa_crypto/src/util_app_cfg.h index d0d8cc0be19..41402a459eb 100644 --- a/samples/tfm_integration/psa_crypto/src/util_app_cfg.h +++ b/samples/tfm_integration/psa_crypto/src/util_app_cfg.h @@ -47,7 +47,7 @@ struct cfg_data { psa_status_t cfg_create_data(void); /** - * @brief Attempts to loac the config record from secure storage. If the + * @brief Attempts to load the config record from secure storage. If the * record is not found in secure storage, a new record will be created * using default config settings. * diff --git a/samples/tfm_integration/tfm_ipc/README.rst b/samples/tfm_integration/tfm_ipc/README.rst index 3f519b372e8..78c5097ff98 100644 --- a/samples/tfm_integration/tfm_ipc/README.rst +++ b/samples/tfm_integration/tfm_ipc/README.rst @@ -126,7 +126,7 @@ Build Zephyr with a non-secure configuration: $ west build -b stm32l562e_dk_ns samples/tfm_integration/tfm_ipc/ -The script to initialize the device is avalaible in the ``build/tfm`` folder: +The script to initialize the device is available in the ``build/tfm`` folder: - ``regression.sh``: Sets platform option bytes config and erase platform. @@ -189,7 +189,7 @@ the MCUboot bootloader image binary (``bl2.hex``). .. code-block:: bash - nrfjprg -f NRF91 --program tfm/bin/bl2.hex --sectorerase + nrfjprog -f NRF91 --program tfm/bin/bl2.hex --sectorerase Finally, flash the concatenated TF-M + Zephyr binary. diff --git a/samples/tfm_integration/tfm_secure_partition/README.rst b/samples/tfm_integration/tfm_secure_partition/README.rst index 0160e02c199..fc7be3a3c3e 100644 --- a/samples/tfm_integration/tfm_secure_partition/README.rst +++ b/samples/tfm_integration/tfm_secure_partition/README.rst @@ -19,7 +19,7 @@ The partition is built by the TF-M build system, refer to :ref:`tfm_build_system For more information on how to add custom secure partitions refer to TF-M's guide: https://tf-m-user-guide.trustedfirmware.org/docs/integration_guide/services/tfm_secure_partition_addition.html -When adapting this partition for your own purposes, please change all occurences of "dummy_partition", "DUMMY_PARTITION", "dp", and "DP" to your own partition name. +When adapting this partition for your own purposes, please change all occurrences of "dummy_partition", "DUMMY_PARTITION", "dp", and "DP" to your own partition name. Also, look through both the secure and non-secure CMakeLists.txt file and make relevant changes, as well as the yaml files inside "partition". Building and Running diff --git a/samples/userspace/prod_consumer/src/app_a.c b/samples/userspace/prod_consumer/src/app_a.c index dcd2f198fe3..8b774d5fb49 100644 --- a/samples/userspace/prod_consumer/src/app_a.c +++ b/samples/userspace/prod_consumer/src/app_a.c @@ -231,7 +231,7 @@ void app_a_entry(void *p1, void *p2, void *p3) * This child thread automatically inherits the memory domain of * this thread that created it; it will be a member of app_a_domain. * - * Initiailize this thread with K_FOREVER timeout so we can + * Initialize this thread with K_FOREVER timeout so we can * modify its permissions and then start it. */ k_thread_create(&writeback_thread, writeback_stack, diff --git a/samples/userspace/prod_consumer/src/sample_driver.h b/samples/userspace/prod_consumer/src/sample_driver.h index e9fa222950e..2540af4e21c 100644 --- a/samples/userspace/prod_consumer/src/sample_driver.h +++ b/samples/userspace/prod_consumer/src/sample_driver.h @@ -72,7 +72,7 @@ static inline int z_impl_sample_driver_state_set(const struct device *dev, * This callback runs in interrupt context. The provided data * blob will be of size SAMPLE_DRIVER_MSG_SIZE. * - * @param dev Sample driver device to install callabck + * @param dev Sample driver device to install callback * @param cb Callback function pointer * @param context Context passed to callback function, or NULL if not needed * @return 0 Success, nonzero if an error occurred diff --git a/samples/userspace/shared_mem/src/main.c b/samples/userspace/shared_mem/src/main.c index 7cdd499546f..d0262ec88b1 100644 --- a/samples/userspace/shared_mem/src/main.c +++ b/samples/userspace/shared_mem/src/main.c @@ -9,7 +9,7 @@ * Basic example of userspace thread protected memory * * NOTE: The encryption algorithm is unverified and - * based on a 1930's erra piece of hardware. + * based on a 1930's era piece of hardware. * DO NOT USE THIS CODE FOR SECURITY * */ @@ -26,7 +26,7 @@ * the definition of variables. A possible alternative * is using one source file per thread and implementing * a objcopy to rename the data and bss section for the - * thread to the partiotion name. + * thread to the partition name. */ /* prepare the memory partition structures */ @@ -278,7 +278,7 @@ void ct(void) while (1) { k_sem_take(&allforone, K_FOREVER); if (fBUFOUT == 1) { - printk("CT Thread Receivedd Message\n"); + printk("CT Thread Received Message\n"); memset((void *)&tbuf, 0, sizeof(tbuf)); memcpy((void *)&tbuf, (void *)BUFOUT, SAMP_BLOCKSIZE); fBUFOUT = 0; diff --git a/scripts/ci/check_compliance.py b/scripts/ci/check_compliance.py index 9d2ed138eaa..42687aea5b8 100755 --- a/scripts/ci/check_compliance.py +++ b/scripts/ci/check_compliance.py @@ -219,7 +219,7 @@ class CheckPatch(ComplianceTest): class KconfigCheck(ComplianceTest): """ Checks is we are introducing any new warnings/errors with Kconfig, - for example using undefiend Kconfig variables. + for example using undefined Kconfig variables. """ name = "Kconfig" doc = "See https://docs.zephyrproject.org/latest/guides/kconfig/index.html for more details." @@ -586,7 +586,7 @@ UNDEF_KCONFIG_WHITELIST = { class KconfigBasicCheck(KconfigCheck, ComplianceTest): """ Checks is we are introducing any new warnings/errors with Kconfig, - for example using undefiend Kconfig variables. + for example using undefined Kconfig variables. This runs the basic Kconfig test, which is checking only for undefined references inside the Kconfig tree. """ diff --git a/scripts/coccinelle/const_config_info.cocci b/scripts/coccinelle/const_config_info.cocci index 718051f4e97..c7802232848 100644 --- a/scripts/coccinelle/const_config_info.cocci +++ b/scripts/coccinelle/const_config_info.cocci @@ -1,5 +1,5 @@ // Copyright (c) 2020 Nordic Semiconductor ASA -// SPDX-License-Identifer: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 // Enforce preservation of const qualifier on config_info casts // diff --git a/scripts/coccinelle/find_dev_usage.cocci b/scripts/coccinelle/find_dev_usage.cocci index fa969870fba..6c67af23996 100644 --- a/scripts/coccinelle/find_dev_usage.cocci +++ b/scripts/coccinelle/find_dev_usage.cocci @@ -1,5 +1,5 @@ // Copyright (c) 2020 Intel Corporation -// SPDX-License-Identifer: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 // Uses a python database (a dict) to find where const struct device // variable are being used in zephyr functions and, if it's being in place diff --git a/scripts/coccinelle/find_functions.cocci b/scripts/coccinelle/find_functions.cocci index ed29d874d11..d8afb6dc296 100644 --- a/scripts/coccinelle/find_functions.cocci +++ b/scripts/coccinelle/find_functions.cocci @@ -1,5 +1,5 @@ // Copyright (c) 2020 Intel Corporation -// SPDX-License-Identifer: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 // In patch mode, patch all device instance to const (if not already). @@ -99,7 +99,7 @@ parameter list[nb_params] params; } ) -// Insert function implentations and inlines +// Insert function implementations and inlines @script:python depends on report @ diff --git a/scripts/coccinelle/int_ms_to_timeout.cocci b/scripts/coccinelle/int_ms_to_timeout.cocci index 2cfaaeb080c..01563e74a20 100644 --- a/scripts/coccinelle/int_ms_to_timeout.cocci +++ b/scripts/coccinelle/int_ms_to_timeout.cocci @@ -1,5 +1,5 @@ // Copyright (c) 2019-2020 Nordic Semiconductor ASA -// SPDX-License-Identifer: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 // Convert legacy integer timeouts to timeout API // diff --git a/scripts/coccinelle/ms_timeout.cocci b/scripts/coccinelle/ms_timeout.cocci index 0b925f785e8..a01eafe5c43 100644 --- a/scripts/coccinelle/ms_timeout.cocci +++ b/scripts/coccinelle/ms_timeout.cocci @@ -1,5 +1,5 @@ // Copyright (c) 2019-2020 Nordic Semiconductor ASA -// SPDX-License-Identifer: Apache-2.0 +// SPDX-License-Identifier: Apache-2.0 // Replace use of K_NO_WAIT and K_FOREVER in API that requires // timeouts be specified as integral milliseconds. @@ -17,7 +17,7 @@ virtual report // ** Handle millisecond timeout as the last parameter -// Match identifer passed as timeout +// Match identifier passed as timeout @match_fn_l1@ identifier fn =~ "(?x)^ (dmic_read @@ -80,7 +80,7 @@ identifier K_FOREVER =~ "^K_FOREVER$"; // ** Handle millisecond timeout as second from last parameter -// Match identifer passed as timeout +// Match identifier passed as timeout @match_fn_l2@ identifier fn =~ "(?x)^ (http_client_req @@ -138,7 +138,7 @@ expression X1; // ** Handle millisecond timeout as third from last parameter -// Match identifer passed as timeout +// Match identifier passed as timeout @match_fn_l3@ identifier fn =~ "(?x)^ (can_send diff --git a/scripts/coredump/coredump_gdbserver.py b/scripts/coredump/coredump_gdbserver.py index e9ba93a25f5..a1f0503b77f 100755 --- a/scripts/coredump/coredump_gdbserver.py +++ b/scripts/coredump/coredump_gdbserver.py @@ -60,7 +60,7 @@ def main(): # know what is going on logger.setLevel(logging.INFO) - # Setup logging for "gdbstuc" + # Setup logging for "gdbstub" logger = logging.getLogger("gdbstub") if args.debug: logger.setLevel(logging.DEBUG) diff --git a/scripts/coredump/coredump_parser/elf_parser.py b/scripts/coredump/coredump_parser/elf_parser.py index 013b6185bbd..743f9efacc3 100644 --- a/scripts/coredump/coredump_parser/elf_parser.py +++ b/scripts/coredump/coredump_parser/elf_parser.py @@ -26,7 +26,7 @@ class CoredumpElfFile(): Class to parse ELF file for memory content in various sections. There are read-only sections (e.g. text and rodata) where the memory content does not need to be dumped via coredump - and can be retrived from the ELF file. + and can be retrieved from the ELF file. """ def __init__(self, elffile): diff --git a/scripts/dts/gen_dts_cmake.py b/scripts/dts/gen_dts_cmake.py index 8afc5987a8e..f3be6a0fa1d 100755 --- a/scripts/dts/gen_dts_cmake.py +++ b/scripts/dts/gen_dts_cmake.py @@ -28,7 +28,7 @@ Be careful: The build system includes this generated file early on, so devicetree values can be used at CMake processing time. -Accss is not done directly, but with Zephyr CMake extension APIs, +Access is not done directly, but with Zephyr CMake extension APIs, like this: # sets 'compat' to "vnd,soc" in CMake diff --git a/scripts/footprint/compare_footprint b/scripts/footprint/compare_footprint index 313a0044acb..69403c0a3f9 100755 --- a/scripts/footprint/compare_footprint +++ b/scripts/footprint/compare_footprint @@ -144,7 +144,7 @@ def run_footprint_build(commit=None): os.path.basename(os.environ.get('ZEPHYR_BASE'))) if os.path.exists(tmp_location): shutil.rmtree(tmp_location) - logging.debug("clonning into %s" % tmp_location) + logging.debug("cloning into %s" % tmp_location) proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, cwd=tempfile.gettempdir(), shell=True) diff --git a/scripts/footprint/fpdiff.py b/scripts/footprint/fpdiff.py index 3c4172b1d85..194d438cf5e 100755 --- a/scripts/footprint/fpdiff.py +++ b/scripts/footprint/fpdiff.py @@ -8,7 +8,7 @@ # end up with a json file in the build directory that can be used as input # for this script. -# The output shows which symbols insreased and which decreased in size and +# The output shows which symbols increased and which decreased in size and # also tracked added/remove symbols as well. # Example: diff --git a/scripts/gen_kobject_list.py b/scripts/gen_kobject_list.py index d93f5b4885b..8368799a522 100755 --- a/scripts/gen_kobject_list.py +++ b/scripts/gen_kobject_list.py @@ -119,7 +119,7 @@ def kobject_to_enum(kobj): return "K_OBJ_%s" % name.upper() subsystems = [ - # Editing the list is deprecated, add the __subsystem sentinal to your driver + # Editing the list is deprecated, add the __subsystem sentinel to your driver # api declaration instead. e.x. # # __subsystem struct my_driver_api { diff --git a/scripts/gen_kobject_placeholders.py b/scripts/gen_kobject_placeholders.py index f5d1e879b63..3cbad0afa3c 100755 --- a/scripts/gen_kobject_placeholders.py +++ b/scripts/gen_kobject_placeholders.py @@ -115,7 +115,7 @@ def parse_args(): parser.add_argument("--outdir", required=True, help="Output directory (/include/generated)") parser.add_argument("--datapct", required=True, - help="Multipler to the size of reserved space for DATA region") + help="Multiplier to the size of reserved space for DATA region") parser.add_argument("--rodata", required=True, help="Extra bytes to reserve for RODATA region") parser.add_argument("-v", "--verbose", action="store_true", diff --git a/scripts/gen_relocate_app.py b/scripts/gen_relocate_app.py index 90424cd1988..626cbc72c8b 100644 --- a/scripts/gen_relocate_app.py +++ b/scripts/gen_relocate_app.py @@ -42,7 +42,7 @@ import glob import warnings from elftools.elf.elffile import ELFFile -# This script will create linker comands for text,rodata data, bss section relocation +# This script will create linker commands for text,rodata data, bss section relocation PRINT_TEMPLATE = """ KEEP(*({0})) @@ -344,7 +344,7 @@ def generate_memcpy_code(memory_type, full_list_of_sections, code_generation): code_generation["extern"] += EXTERN_LINKER_VAR_DECLARATION.format( memory_type.lower(), mtype) - # add for all the bss data that needs to be zeored on boot up + # add for all the bss data that needs to be zeroed on boot up if full_list_of_sections["bss"] and generate_section["bss"] and memory_type != "SRAM": code_generation["zero_code"] += MEMSET_TEMPLATE.format(memory_type.lower()) code_generation["extern"] += EXTERN_LINKER_VAR_DECLARATION.format( @@ -450,7 +450,7 @@ def main(): rel_dict = create_dict_wrt_mem() complete_list_of_sections = {} - # Create/or trucate file contents if it already exists + # Create/or truncate file contents if it already exists # raw = open(linker_file, "w") # for each memory_type, create text/rodata/data/bss sections for all obj files diff --git a/scripts/gen_syscalls.py b/scripts/gen_syscalls.py index 2abf0542727..1d250411739 100755 --- a/scripts/gen_syscalls.py +++ b/scripts/gen_syscalls.py @@ -116,7 +116,7 @@ uintptr_t %s(uintptr_t arg1, uintptr_t arg2, uintptr_t arg3, uintptr_t arg4, uintptr_t arg5, uintptr_t arg6, void *ssf); """ -# defines a macro wrapper which supercedes the syscall when used +# defines a macro wrapper which supersedes the syscall when used # and provides tracing enter/exit hooks while allowing per compilation unit # enable/disable of syscall tracing. Used for returning functions # Note that the last argument to the exit macro is the return value. @@ -135,7 +135,7 @@ syscall_tracer_with_return_template = """ #endif """ -# defines a macro wrapper which supercedes the syscall when used +# defines a macro wrapper which supersedes the syscall when used # and provides tracing enter/exit hooks while allowing per compilation unit # enable/disable of syscall tracing. Used for non-returning (void) functions syscall_tracer_void_template = """ diff --git a/scripts/get_maintainer.py b/scripts/get_maintainer.py index 0c27e418fb9..02e30dad870 100755 --- a/scripts/get_maintainer.py +++ b/scripts/get_maintainer.py @@ -106,7 +106,7 @@ def _parse_args(): "maintainer", metavar="MAINTAINER", nargs="?", - help="List all areas maintained by maintaier.") + help="List all areas maintained by maintainer.") areas_parser.set_defaults(cmd_fn=Maintainers._areas_cmd) diff --git a/scripts/kconfig/kconfigfunctions.py b/scripts/kconfig/kconfigfunctions.py index aca59e099e9..19cdc499f1e 100644 --- a/scripts/kconfig/kconfigfunctions.py +++ b/scripts/kconfig/kconfigfunctions.py @@ -197,7 +197,7 @@ def _dt_chosen_reg_addr(kconf, chosen, index=0, unit=None): """ This function takes a 'chosen' property and treats that property as a path to an EDT node. If it finds an EDT node, it will look to see if that - nodnode has a register at the given 'index' and return the address value of + node has a register at the given 'index' and return the address value of that reg, if not we return 0. The function will divide the value based on 'unit': diff --git a/scripts/logging/dictionary/dictionary_parser/utils.py b/scripts/logging/dictionary/dictionary_parser/utils.py index 62ac64d4fa1..f94a8090f0d 100644 --- a/scripts/logging/dictionary/dictionary_parser/utils.py +++ b/scripts/logging/dictionary/dictionary_parser/utils.py @@ -5,7 +5,7 @@ # SPDX-License-Identifier: Apache-2.0 """ -Utilities for Dictionary-based Logingg Parser +Utilities for Dictionary-based Logging Parser """ import binascii diff --git a/scripts/parse_syscalls.py b/scripts/parse_syscalls.py index e00474fe71b..9994efdd274 100644 --- a/scripts/parse_syscalls.py +++ b/scripts/parse_syscalls.py @@ -68,7 +68,7 @@ def analyze_headers(multiple_directories): files.sort() for fn in files: - # toolchain/common.h has the definitions of these tagswhich we + # toolchain/common.h has the definitions of these tags which we # don't want to trip over path = os.path.join(root, fn) if (not (path.endswith(".h") or path.endswith(".c")) or diff --git a/scripts/pylib/twister/scl.py b/scripts/pylib/twister/scl.py index 7c1a430e83d..2518e4b4138 100644 --- a/scripts/pylib/twister/scl.py +++ b/scripts/pylib/twister/scl.py @@ -27,12 +27,12 @@ def yaml_load(filename): """ Safely load a YAML document - Follows recomendations from + Follows recommendations from https://security.openstack.org/guidelines/dg_avoid-dangerous-input-parsing-libraries.html. :param str filename: filename to load :raises yaml.scanner: On YAML scan issues - :raises: any other exception on file access erors + :raises: any other exception on file access errors :return: dictionary representing the YAML document """ try: @@ -46,7 +46,7 @@ def yaml_load(filename): e.note, cmark.name, cmark.line, cmark.column, e.context) raise -# If pykwalify is installed, then the validate functionw ill work -- +# If pykwalify is installed, then the validate function will work -- # otherwise, it is a stub and we'd warn about it. try: import pykwalify.core @@ -67,7 +67,7 @@ except ImportError as e: def yaml_load_verify(filename, schema): """ Safely load a testcase/sample yaml document and validate it - against the YAML schema, returing in case of success the YAML data. + against the YAML schema, returning in case of success the YAML data. :param str filename: name of the file to load and process :param dict schema: loaded YAML schema (can load with :func:`yaml_load`) diff --git a/scripts/pylib/twister/twisterlib.py b/scripts/pylib/twister/twisterlib.py index 67ef1c9bd1d..01f473172a6 100755 --- a/scripts/pylib/twister/twisterlib.py +++ b/scripts/pylib/twister/twisterlib.py @@ -964,7 +964,7 @@ class QEMUHandler(Handler): The guest virtual time in QEMU icount mode isn't host time and it's maintained by counting guest instructions, so we use QEMU - process exection time to mostly simulate the time of guest OS. + process execution time to mostly simulate the time of guest OS. """ proc = psutil.Process(pid) cpu_time = proc.cpu_times() @@ -1747,7 +1747,7 @@ Tests should reference the category and subsystem with a dot as a separator. br"^\s*void\s+test_main\(void\)", re.MULTILINE) stc_regex = re.compile( - br"""^\s* # empy space at the beginning is ok + br"""^\s* # empty space at the beginning is ok # catch the case where it is declared in the same sentence, e.g: # # ztest_test_suite(mutex_complex, ztest_user_unit_test(TESTNAME)); @@ -1758,7 +1758,7 @@ Tests should reference the category and subsystem with a dot as a separator. )? # Catch ztest[_user]_unit_test-[_setup_teardown](TESTNAME) ztest_(?:1cpu_)?(?:user_)?unit_test(?:_setup_teardown)? - # Consume the argument that becomes the extra testcse + # Consume the argument that becomes the extra testcase \(\s*(?P[a-zA-Z0-9_]+) # _setup_teardown() variant has two extra arguments that we ignore (?:\s*,\s*[a-zA-Z0-9_]+\s*,\s*[a-zA-Z0-9_]+)? @@ -3486,7 +3486,7 @@ class TestSuite(DisablePyTestCollectionMixin): self.filtered_platforms = set(p.platform.name for p in self.instances.values() if p.status != "skipped" ) - # Remove from discards configururations that must not be discarded (e.g. integration_platforms when --integration was used) + # Remove from discards configurations that must not be discarded (e.g. integration_platforms when --integration was used) for instance in remove_from_discards: del self.discards[instance] diff --git a/scripts/tests/twister/README.md b/scripts/tests/twister/README.md index c19d70d9a60..9e9f7831c2f 100644 --- a/scripts/tests/twister/README.md +++ b/scripts/tests/twister/README.md @@ -54,4 +54,4 @@ If needed,the full coverage html report can be generated in every run of "pytest - test_twister.py : Contains basic testcases for environment variables, verifying testcase & platform schema's. - test_testsuite_class.py : Contains testcases for Testsuite class (except reporting functionality) in twisterlib.py. - test_testinstance.py : Contains testcases for Testinstance and Testcase class. -- test_reporting_testsuite.py : Contains testcases for reporting fucntionality of Testsuite class of twister. +- test_reporting_testsuite.py : Contains testcases for reporting functionality of Testsuite class of twister. diff --git a/scripts/tests/twister/test_reporting_testsuite.py b/scripts/tests/twister/test_reporting_testsuite.py index cea2c44fe50..f15b90d4671 100644 --- a/scripts/tests/twister/test_reporting_testsuite.py +++ b/scripts/tests/twister/test_reporting_testsuite.py @@ -23,7 +23,7 @@ def test_discard_report(class_testsuite, platforms_list, all_testcases_dict, cap Test 1: Check if apply_filters function has been run before running discard_report Test 2: Test if the generated report is not empty - Test 3: Test if the gerenrated report contains the expected columns""" + Test 3: Test if the generated report contains the expected columns""" class_testsuite.platforms = platforms_list class_testsuite.platform_names = [p.name for p in platforms_list] class_testsuite.testcases = all_testcases_dict @@ -43,7 +43,7 @@ def test_discard_report(class_testsuite, platforms_list, all_testcases_dict, cap def test_csv_report(class_testsuite, instances_fixture, tmpdir): """ Testing csv_report function of Testsuite class in twister - Test 1: Assert the csv_report isnt empty after execution of csv_report function + Test 1: Assert the csv_report isn't empty after execution of csv_report function Test 2: Assert on the columns and values of the generated csv_report""" class_testsuite.instances = instances_fixture filename = tmpdir.mkdir("test_csv").join("twister_csv_report.csv") diff --git a/scripts/tests/twister/test_testinstance.py b/scripts/tests/twister/test_testinstance.py index 613bc4021a0..7475bae9742 100644 --- a/scripts/tests/twister/test_testinstance.py +++ b/scripts/tests/twister/test_testinstance.py @@ -30,7 +30,7 @@ TESTDATA_1 = [ def test_check_build_or_run(class_testsuite, monkeypatch, all_testcases_dict, platforms_list, build_only, slow, harness, platform_type, platform_sim, device_testing, fixture, expected): """" Test to check the conditions for build_only and run scenarios Scenario 1: Test when different parameters are passed, build_only and run are set correctly - Sceanrio 2: Test if build_only is enabled when the OS is Windows""" + Scenario 2: Test if build_only is enabled when the OS is Windows""" class_testsuite.testcases = all_testcases_dict testcase = class_testsuite.testcases.get('scripts/tests/twister/test_data/testcases/tests/test_a/test_a.check_1') diff --git a/scripts/twister b/scripts/twister index 937d82668e1..69e7c70551a 100755 --- a/scripts/twister +++ b/scripts/twister @@ -539,7 +539,7 @@ structure in the main Zephyr tree: boards///""") parser.add_argument( "-j", "--jobs", type=int, help="Number of jobs for building, defaults to number of CPU threads, " - "overcommited by factor 2 when --build-only.") + "overcommitted by factor 2 when --build-only.") parser.add_argument( "--json-report", action="store_true", @@ -1112,7 +1112,7 @@ def main(): suite.selected_platforms = set(p.platform.name for p in suite.instances.values()) elif options.test_only: # Get list of connected hardware and filter tests to only be run on connected hardware - # in cases where no platform was specified when runn the tests. + # in cases where no platform was specified when running the tests. # If the platform does not exist in the hardware map, just skip it. connected_list = [] if not options.platform: diff --git a/scripts/utils/pinctrl_nrf_migrate.py b/scripts/utils/pinctrl_nrf_migrate.py index 1618522d0aa..6c6438d9df2 100644 --- a/scripts/utils/pinctrl_nrf_migrate.py +++ b/scripts/utils/pinctrl_nrf_migrate.py @@ -296,7 +296,7 @@ def fmt_states(device: str, indent: str) -> str: Args: device: Device name. - indent: Intentation. + indent: Indentation. Returns: State entries to be appended to the device. diff --git a/scripts/west_commands/runners/canopen_program.py b/scripts/west_commands/runners/canopen_program.py index e63b5181216..34c4a36adad 100644 --- a/scripts/west_commands/runners/canopen_program.py +++ b/scripts/west_commands/runners/canopen_program.py @@ -318,7 +318,7 @@ class CANopenProgramDownloader(object): array.add_member(member) objdict.add_object(array) - array = canopen.objectdictionary.Array('Program sofware ID', 0x1f56) + array = canopen.objectdictionary.Array('Program software ID', 0x1f56) member = canopen.objectdictionary.Variable('', 0x1f56, subindex=1) member.data_type = canopen.objectdictionary.UNSIGNED32 array.add_member(member) diff --git a/scripts/west_commands/runners/jlink.py b/scripts/west_commands/runners/jlink.py index 4215afecbff..923eebb16a5 100644 --- a/scripts/west_commands/runners/jlink.py +++ b/scripts/west_commands/runners/jlink.py @@ -259,7 +259,7 @@ class JLinkBinaryRunner(ZephyrBinaryRunner): if self.erase: lines.append('erase') # Erase all flash sectors - # Get the build artifact to flash, prefering .hex over .bin + # Get the build artifact to flash, preferring .hex over .bin if self.hex_name is not None and os.path.isfile(self.hex_name): flash_file = self.hex_name flash_cmd = f'loadfile {self.hex_name}' diff --git a/scripts/west_commands/runners/mdb.py b/scripts/west_commands/runners/mdb.py index 4107487994c..7cf4049fd83 100644 --- a/scripts/west_commands/runners/mdb.py +++ b/scripts/west_commands/runners/mdb.py @@ -192,7 +192,7 @@ class MdbHwBinaryRunner(ZephyrBinaryRunner): def do_add_parser(cls, parser): parser.add_argument('--jtag', default='digilent', help='''choose the jtag interface for hardware - targets, e.g. --jtat=digilent for digilent + targets, e.g. --jtag=digilent for digilent jtag adapter''') parser.add_argument('--cores', default=1, help='''choose the number of cores that target has, diff --git a/scripts/west_commands/zspdx/cmakefileapijson.py b/scripts/west_commands/zspdx/cmakefileapijson.py index c4357e099a6..921a092742b 100644 --- a/scripts/west_commands/zspdx/cmakefileapijson.py +++ b/scripts/west_commands/zspdx/cmakefileapijson.py @@ -102,7 +102,7 @@ def parseConfig(cfg_dict, replyDir): cfgdir.build = dir_dict.get("build", "") cfgdir.parentIndex = dir_dict.get("parentIndex", -1) cfgdir.childIndexes = dir_dict.get("childIndexes", []) - cfgdir.projectIndex = dir_dict.get("projecttIndex", -1) + cfgdir.projectIndex = dir_dict.get("projectIndex", -1) cfgdir.targetIndexes = dir_dict.get("targetIndexes", []) minCMakeVer_dict = dir_dict.get("minimumCMakeVersion", {}) cfgdir.minimumCMakeVersion = minCMakeVer_dict.get("string", "") diff --git a/share/zephyr-package/cmake/ZephyrConfigVersion.cmake b/share/zephyr-package/cmake/ZephyrConfigVersion.cmake index 5b9472b1ebb..3a52550e28a 100644 --- a/share/zephyr-package/cmake/ZephyrConfigVersion.cmake +++ b/share/zephyr-package/cmake/ZephyrConfigVersion.cmake @@ -6,7 +6,7 @@ # usable Zephyr installation for building of applications. # Checking for version 0.0.0 is a way to allow other Zephyr installation to determine if there is a better match. -# A better match would be an installed Zephyr that has a common index with currect source dir. +# A better match would be an installed Zephyr that has a common index with current source dir. # Version 0.0.0 indicates that we should just return, in order to obtain our path. if(0.0.0 STREQUAL PACKAGE_FIND_VERSION) return() @@ -126,8 +126,8 @@ if(NOT IS_INCLUDED) # This check works the following way. # CMake finds packages will look all packages registered in the user package registry. # As this code is processed inside registered packages, we simply test if - # another package has a comon path with the current sample, and if so, we - # will retrun here, and let CMake call into the other registered package for + # another package has a common path with the current sample, and if so, we + # will return here, and let CMake call into the other registered package for # real version checking. check_zephyr_package(CHECK_ONLY VERSION_CHECK) diff --git a/soc/arc/snps_arc_iot/sysconf.h b/soc/arc/snps_arc_iot/sysconf.h index aebe39fddcd..c8c274e6687 100644 --- a/soc/arc/snps_arc_iot/sysconf.h +++ b/soc/arc/snps_arc_iot/sysconf.h @@ -28,7 +28,7 @@ typedef struct sysconf_reg { volatile uint32_t PLLSTAT; /* PLL status register */ volatile uint32_t PLLCON; /* PLL control register */ volatile uint32_t reserved3; /* 0x30 */ - volatile uint32_t AHBCLKEN; /* AHB module clock enbale */ + volatile uint32_t AHBCLKEN; /* AHB module clock enable */ volatile uint32_t reserved4[2]; /* 0x38, 0x3c */ volatile uint32_t I2S_TX_SCLKDIV; /* I2S TX SCLK divisor */ volatile uint32_t I2S_RX_SCLKDIV; /* I2S RX SCLK divisor */ @@ -46,7 +46,7 @@ typedef struct sysconf_reg { volatile uint32_t ARDUINO_MUX; /* arduino IO mux */ volatile uint32_t USBPHY_PLL; /* USBPHY PLL */ volatile uint32_t USBCFG; /* USB configuration */ - volatile uint32_t TIMER_PAUSE; /* PWM timer puse */ + volatile uint32_t TIMER_PAUSE; /* PWM timer pause */ volatile uint32_t GPIO8B_DBCLK_DIV; /* GPIO8B DBCLK divisor */ volatile uint32_t RESET_PD_VECTOR; /* reset powerdown vector */ volatile uint32_t UART3SCLK_DIV; /* UART3SCLK_DIV */ diff --git a/soc/arm/arm/beetle/CMSDK_BEETLE.h b/soc/arm/arm/beetle/CMSDK_BEETLE.h index 3a5e8b7f39e..6dd19d09b40 100644 --- a/soc/arm/arm/beetle/CMSDK_BEETLE.h +++ b/soc/arm/arm/beetle/CMSDK_BEETLE.h @@ -48,7 +48,7 @@ typedef enum IRQn UARTOVF_IRQn = 12, /* UART 0,1,2 Overflow Interrupt */ SPI1_IRQn = 13, /* SPI 1 Interrupt */ QSPI_IRQn = 14, /* QUAD SPI Interrupt */ - DMA_IRQn = 15, /* Reserved for DMA Interrup */ + DMA_IRQn = 15, /* Reserved for DMA Interrupt */ PORT0_0_IRQn = 16, /* All P0 I/O pins used as irq source */ PORT0_1_IRQn = 17, /* There are 16 pins in total */ PORT0_2_IRQn = 18, diff --git a/soc/arm/arm/beetle/soc_registers.h b/soc/arm/arm/beetle/soc_registers.h index 269f397dac9..8c6f16f6fc7 100644 --- a/soc/arm/arm/beetle/soc_registers.h +++ b/soc/arm/arm/beetle/soc_registers.h @@ -95,9 +95,9 @@ struct syscon { /* Offset: 0x0e4 (r/w) event interface control register */ volatile uint32_t eventcfg; volatile uint32_t reserved6[2]; - /* Offset: 0x0f0 (r/w) sram power control overide */ + /* Offset: 0x0f0 (r/w) sram power control override */ volatile uint32_t pwrovride0; - /* Offset: 0x0f4 (r/w) embedded flash power control overide */ + /* Offset: 0x0f4 (r/w) embedded flash power control override */ volatile uint32_t pwrovride1; /* Offset: 0x0f8 (r/ ) memory status register */ volatile uint32_t memorystatus; diff --git a/soc/arm/arm/mps2/soc.c b/soc/arm/arm/mps2/soc.c index 8395ccd44ea..6e4f8176db4 100644 --- a/soc/arm/arm/mps2/soc.c +++ b/soc/arm/arm/mps2/soc.c @@ -45,7 +45,7 @@ FPGAIO_INIT(2); #define CPU1_FLASH_OFFSET (0x10000000) /** - * @brief Wake up CPU 1 from another CPU, this is plaform specific. + * @brief Wake up CPU 1 from another CPU, this is platform specific. */ void wakeup_cpu1(void) { @@ -60,7 +60,7 @@ void wakeup_cpu1(void) } /** - * @brief Get the current CPU ID, this is plaform specific. + * @brief Get the current CPU ID, this is platform specific. * * @return Current CPU ID */ diff --git a/soc/arm/arm/musca_b1/soc.c b/soc/arm/arm/musca_b1/soc.c index 4924e58ede0..ee447c015b7 100644 --- a/soc/arm/arm/musca_b1/soc.c +++ b/soc/arm/arm/musca_b1/soc.c @@ -20,7 +20,7 @@ #define BL2_HEADER_SIZE (0x400) /** - * @brief Wake up CPU 1 from another CPU, this is plaform specific. + * @brief Wake up CPU 1 from another CPU, this is platform specific. * */ void wakeup_cpu1(void) @@ -36,7 +36,7 @@ void wakeup_cpu1(void) } /** - * @brief Get the current CPU ID, this is plaform specific. + * @brief Get the current CPU ID, this is platform specific. * * @return Current CPU ID */ diff --git a/soc/arm/atmel_sam/common/atmel_sam_dt.h b/soc/arm/atmel_sam/common/atmel_sam_dt.h index 8ddd1730f65..1da4c4a8e66 100644 --- a/soc/arm/atmel_sam/common/atmel_sam_dt.h +++ b/soc/arm/atmel_sam/common/atmel_sam_dt.h @@ -28,7 +28,7 @@ DT_PROP_BY_PHANDLE(DT_PINCTRL_0(node_id, i),\ atmel_pins, peripheral_id) -/* Get peripheral cfg associated wiith pinctrl-0 pin at index 'i' */ +/* Get peripheral cfg associated with pinctrl-0 pin at index 'i' */ #define ATMEL_SAM_PIN_PERIPH(node_id, i) \ DT_PHA(DT_PINCTRL_0(node_id, i), atmel_pins, peripheral) @@ -85,7 +85,7 @@ /* internal macro to structure things for use with UTIL_LISTIFY */ #define ATMEL_SAM_DT_PIN_ELEM(idx, node_id) ATMEL_SAM_DT_PIN(node_id, idx) -/* Construct an array intializer for soc_gpio_pin for a device instance */ +/* Construct an array initializer for soc_gpio_pin for a device instance */ #define ATMEL_SAM_DT_PINS(node_id) \ { LISTIFY(ATMEL_SAM_DT_NUM_PINS(node_id), \ ATMEL_SAM_DT_PIN_ELEM, (,), node_id) \ diff --git a/soc/arm/atmel_sam/sam4l/soc.h b/soc/arm/atmel_sam/sam4l/soc.h index 78808894739..f044fc8363c 100644 --- a/soc/arm/atmel_sam/sam4l/soc.h +++ b/soc/arm/atmel_sam/sam4l/soc.h @@ -103,7 +103,7 @@ #define PM_CLOCK_MASK(bus, per) ((bus << 5) + per) /** Bus index of maskable module clocks. Peripheral ids are defined out of - * order. It start from PBA up to PBD, then move to HSB, and finaly CPU. + * order. It start from PBA up to PBD, then move to HSB, and finally CPU. */ #define PM_CLK_GRP_CPU 5 #define PM_CLK_GRP_HSB 4 diff --git a/soc/arm/atmel_sam0/common/atmel_sam0_dt.h b/soc/arm/atmel_sam0/common/atmel_sam0_dt.h index a33e8bbcf24..fa70d09d4ae 100644 --- a/soc/arm/atmel_sam0/common/atmel_sam0_dt.h +++ b/soc/arm/atmel_sam0/common/atmel_sam0_dt.h @@ -58,7 +58,7 @@ #define ATMEL_SAM0_PIN_TO_PORT_REG_ADDR(node_id, i) \ DT_REG_ADDR(DT_PHANDLE(DT_PINCTRL_0(node_id, i), atmel_pins)) -/* Get peripheral cfg associated wiith pinctrl-0 pin at index 'i' */ +/* Get peripheral cfg associated with pinctrl-0 pin at index 'i' */ #define ATMEL_SAM0_PIN_PERIPH(node_id, i) \ DT_PHA(DT_PINCTRL_0(node_id, i), atmel_pins, peripheral) @@ -92,7 +92,7 @@ /* internal macro to structure things for use with UTIL_LISTIFY */ #define ATMEL_SAM0_DT_PIN_ELEM(idx, node_id) ATMEL_SAM0_DT_PORT(node_id, idx) -/* Construct an array intializer for soc_port_pin for a device instance */ +/* Construct an array initializer for soc_port_pin for a device instance */ #define ATMEL_SAM0_DT_PINS(node_id) \ { LISTIFY(ATMEL_SAM0_DT_NUM_PINS(node_id), \ ATMEL_SAM0_DT_PIN_ELEM, (,), node_id) \ diff --git a/soc/arm/atmel_sam0/common/soc_samd2x.c b/soc/arm/atmel_sam0/common/soc_samd2x.c index 6166d9ee794..c2fdca75565 100644 --- a/soc/arm/atmel_sam0/common/soc_samd2x.c +++ b/soc/arm/atmel_sam0/common/soc_samd2x.c @@ -67,7 +67,7 @@ static void osc32k_init(void) SYSCTRL_OSC32K_STARTUP(0x6u) | SYSCTRL_OSC32K_EN32K | SYSCTRL_OSC32K_ENABLE; - /* Wait for the oscillator to stabalise. */ + /* Wait for the oscillator to stabilise. */ while (!SYSCTRL->PCLKSR.bit.OSC32KRDY) { } } diff --git a/soc/arm/cypress/common/cypress_psoc6_dt.h b/soc/arm/cypress/common/cypress_psoc6_dt.h index 4447110e69c..3b4c837d4be 100644 --- a/soc/arm/cypress/common/cypress_psoc6_dt.h +++ b/soc/arm/cypress/common/cypress_psoc6_dt.h @@ -152,7 +152,7 @@ /* internal macro to structure things for use with UTIL_LISTIFY */ #define CY_PSOC6_PIN_ELEM(idx, inst) CY_PSOC6_DT_INST_PIN(inst, idx) -/* Construct an array intializer for soc_gpio_pin for a device instance */ +/* Construct an array initializer for soc_gpio_pin for a device instance */ #define CY_PSOC6_DT_INST_PINS(inst) \ { LISTIFY(CY_PSOC6_DT_INST_NUM_PINS(inst), \ CY_PSOC6_PIN_ELEM, (,), inst) \ diff --git a/soc/arm/microchip_mec/common/reg/mec_timers.h b/soc/arm/microchip_mec/common/reg/mec_timers.h index 64861a75925..da6723212e4 100644 --- a/soc/arm/microchip_mec/common/reg/mec_timers.h +++ b/soc/arm/microchip_mec/common/reg/mec_timers.h @@ -238,7 +238,7 @@ struct rtmr_regs { #define MCHP_WKTMR_SWKC_AUTO_RELOAD \ BIT(MCHP_WKTMR_SWKC_AUTO_RELOAD_POS) -/* Sub-weeek alarm counter at +0x18 */ +/* Sub-week alarm counter at +0x18 */ #define MCHP_WKTMR_SWAC_MASK 0x1ff01ffu #define MCHP_WKTMR_SWAC_LOAD_POS 0 #define MCHP_WKTMR_SWAC_CNT_RO_POS 16 diff --git a/soc/arm/microchip_mec/common/reg/mec_uart.h b/soc/arm/microchip_mec/common/reg/mec_uart.h index 4b363161510..4ae30948bc6 100644 --- a/soc/arm/microchip_mec/common/reg/mec_uart.h +++ b/soc/arm/microchip_mec/common/reg/mec_uart.h @@ -40,7 +40,7 @@ #define MCHP_UART_IER_EMSI 0x08u /* Modem Status */ #define MCHP_UART_IER_ALL 0x0fu -/* FIFO Contro Register, Write-Only */ +/* FIFO Control Register, Write-Only */ #define MCHP_UART_FCR_OFS 2u #define MCHP_UART_FCR_MASK 0xcfu #define MCHP_UART_FCR_EXRF 0x01u /* Enable TX & RX FIFO's */ diff --git a/soc/arm/microchip_mec/common/soc_espi_saf.h b/soc/arm/microchip_mec/common/soc_espi_saf.h index 7695904cc4f..e0776b0e7fc 100644 --- a/soc/arm/microchip_mec/common/soc_espi_saf.h +++ b/soc/arm/microchip_mec/common/soc_espi_saf.h @@ -316,7 +316,7 @@ struct espi_saf_hw_cfg { * QMSPI descriptors describing SPI opcode transmit and * data read. * SAF controller Poll2 Mast value specific for this flash device - * SAF continuous mode prefix register value for those flashes requireing + * SAF continuous mode prefix register value for those flashes requiring * a prefix byte transmitted before the enter continuous mode command. * Start QMSPI descriptor numbers. * miscellaneous flags. @@ -344,7 +344,7 @@ struct espi_saf_flash_cfg { * SPI start address. 20-bits = bits[31:12] of SPI address * SPI limit address. 20-bits = bits[31:12] of last SPI address * 8-bit bit map of eSPI master write-erase permission - * 8-bit bit map of eSPI maste read permission + * 8-bit bit map of eSPI master read permission * eSPI master numbers 0 - 7 correspond to bits 0 - 7. * * Protection region lock: diff --git a/soc/arm/microchip_mec/common/soc_i2c.c b/soc/arm/microchip_mec/common/soc_i2c.c index 23a63fbdfa3..eac47fe66b3 100644 --- a/soc/arm/microchip_mec/common/soc_i2c.c +++ b/soc/arm/microchip_mec/common/soc_i2c.c @@ -28,7 +28,7 @@ struct mec_i2c_port { /* * indexed by port number: all on VTR1 except as commented - * NOTE: MCHP MECxxxx data sheets specificy GPIO pin numbers in octal. + * NOTE: MCHP MECxxxx data sheets specify GPIO pin numbers in octal. * TODO: MEC15xx and MEC172x handle ports with alternate pins. */ static const struct mec_i2c_port mec_i2c_ports[] = { diff --git a/soc/arm/microchip_mec/mec1501/soc.c b/soc/arm/microchip_mec/mec1501/soc.c index 10f34bde7fc..5907fef3f3b 100644 --- a/soc/arm/microchip_mec/mec1501/soc.c +++ b/soc/arm/microchip_mec/mec1501/soc.c @@ -147,7 +147,7 @@ static int soc_init(const struct device *dev) * On HW reset PCR Processor Clock Divider = 4 for 48/4 = 12 MHz. * Set clock divider = 1 for maximum speed. * NOTE1: This clock divider affects all Cortex-M4 core clocks. - * If you change it you must repogram SYSTICK to maintain the + * If you change it you must reprogram SYSTICK to maintain the * same absolute time interval. */ PCR_REGS->PROC_CLK_CTRL = CONFIG_SOC_MEC1501_PROC_CLK_DIV; diff --git a/soc/arm/microchip_mec/mec1701/soc.c b/soc/arm/microchip_mec/mec1701/soc.c index 4004334575f..27ca1860ede 100644 --- a/soc/arm/microchip_mec/mec1701/soc.c +++ b/soc/arm/microchip_mec/mec1701/soc.c @@ -25,8 +25,8 @@ static int soc_init(const struct device *dev) for (girc_enable_set = (uint32_t *)&INTS_INST->GIRQ08_EN_SET; girc_enable_set <= &INTS_INST->GIRQ15_EN_SET; girc_enable_set += 5) { - /* This probably will require tunning, but drawing 8.2 also - illustrates how to diasable spurious interrupts */ + /* This probably will require tuning, but drawing 8.2 also + illustrates how to disable spurious interrupts */ *girc_enable_set = 0xFFFFFFFF; } diff --git a/soc/arm/microchip_mec/mec172x/reg/mec172x_ecia.h b/soc/arm/microchip_mec/mec172x/reg/mec172x_ecia.h index 495e425b9e4..3ceb34bf5a3 100644 --- a/soc/arm/microchip_mec/mec172x/reg/mec172x_ecia.h +++ b/soc/arm/microchip_mec/mec172x/reg/mec172x_ecia.h @@ -877,7 +877,7 @@ enum MCHP_GIRQ_INDEX { /* * GIRQ22 Source, Enable_Set/Clr, Result registers bit positions * NOTE: These wake sources allow the peripheral to turn back on clocks - * long enough to facilite the data transfer. No interrupt to the EC occurs + * long enough to facilitate the data transfer. No interrupt to the EC occurs * unless the peripheral was configured to generate an EC interrupt for * the specific data transfer. */ diff --git a/soc/arm/microchip_mec/mec172x/reg/mec172x_espi_iom.h b/soc/arm/microchip_mec/mec172x/reg/mec172x_espi_iom.h index 91465631227..2f50390d16b 100644 --- a/soc/arm/microchip_mec/mec172x/reg/mec172x_espi_iom.h +++ b/soc/arm/microchip_mec/mec172x/reg/mec172x_espi_iom.h @@ -68,8 +68,8 @@ /* * Read-Only ALERT Open Drain select. * If EC has indicated it can support open-drain ESPI_ALERT# then - * the Host can enable open-drain ESPI_ALERT# by sending a configuraiton - * message. This read-only bit relects the configuration selection. + * the Host can enable open-drain ESPI_ALERT# by sending a configuration + * message. This read-only bit reflects the configuration selection. */ #define MCHP_ESPI_GBL_CAP1_ALERT_ODS_SEL_POS 7u #define MCHP_ESPI_GBL_CAP1_ALERT_SEL_ODS \ @@ -278,7 +278,7 @@ /* eSPI specification indicates RT field must be 00b */ #define MCHP_ESPI_LTR_MSG_RT_VAL 0u #define MCHP_ESPI_LTR_MSG_REQ_POS 15u -/* inifinite latency(default) */ +/* infinite latency(default) */ #define MCHP_ESPI_LTR_MSG_REQ_INF 0u /* latency computed from VAL and SC(scale) fields */ #define MCHP_ESPI_LTR_MSG_REQ_VAL BIT(MCHP_ESPI_LTR_MSG_REQ_POS) diff --git a/soc/arm/microchip_mec/mec172x/reg/mec172x_espi_saf.h b/soc/arm/microchip_mec/mec172x/reg/mec172x_espi_saf.h index 8c7db2d6333..b69e868ddcc 100644 --- a/soc/arm/microchip_mec/mec172x/reg/mec172x_espi_saf.h +++ b/soc/arm/microchip_mec/mec172x/reg/mec172x_espi_saf.h @@ -93,7 +93,7 @@ #define MCHP_SAF_ECP_INTEN_MASK 0x01u #define MCHP_SAF_ECP_INTEN_DONE BIT(0) -/* SAF Flash Configuratin Size Limit register */ +/* SAF Flash Configuration Size Limit register */ #define MCHP_SAF_FL_CFG_SIZE_LIM_OFS 0x30u #define MCHP_SAF_FL_CFG_SIZE_LIM_MASK 0xffffffffu diff --git a/soc/arm/microchip_mec/mec172x/reg/mec172x_i2c_smb.h b/soc/arm/microchip_mec/mec172x/reg/mec172x_i2c_smb.h index 47500728528..2b6f43a0207 100644 --- a/soc/arm/microchip_mec/mec172x/reg/mec172x_i2c_smb.h +++ b/soc/arm/microchip_mec/mec172x/reg/mec172x_i2c_smb.h @@ -251,7 +251,7 @@ /* Offset 0x58 I2C FSM read-only */ #define MCHP_I2C_SMB_I2C_FSM_OFS 0x58u -/* Offset 0x5C SMB Netork layer FSM read-only */ +/* Offset 0x5C SMB Network layer FSM read-only */ #define MCHP_I2C_SMB_FSM_OFS 0x5cu /* Offset 0x60 Wake Status register */ diff --git a/soc/arm/microchip_mec/mec172x/reg/mec172x_pcr.h b/soc/arm/microchip_mec/mec172x/reg/mec172x_pcr.h index 0a4f5fc793d..6f050d78c97 100644 --- a/soc/arm/microchip_mec/mec172x/reg/mec172x_pcr.h +++ b/soc/arm/microchip_mec/mec172x/reg/mec172x_pcr.h @@ -114,7 +114,7 @@ #define MCHP_PCR_PROC_CLK_CTRL_2MHZ 48 #define MCHP_PCR_PROC_CLK_CTRL_DFLT MCHP_PCR_PROC_CLK_CTRL_24MHZ -/* PCR Slow Clock Control. Clock divicder for 100KHz clock domain */ +/* PCR Slow Clock Control. Clock divider for 100KHz clock domain */ #define MCHP_PCR_SLOW_CLK_CTRL_MASK GENMASK(9, 0) #define MCHP_PCR_SLOW_CLK_CTRL_100KHZ 0x1e0u diff --git a/soc/arm/nordic_nrf/common/soc_nrf_common.h b/soc/arm/nordic_nrf/common/soc_nrf_common.h index f93c10f84df..abe43cc28ec 100644 --- a/soc/arm/nordic_nrf/common/soc_nrf_common.h +++ b/soc/arm/nordic_nrf/common/soc_nrf_common.h @@ -182,7 +182,7 @@ /** * @brief Helper macro for NRF_DT_CHECK_PIN_ASSIGNMENTS * - * This macro is neeeded only because the order of parameters taken by + * This macro is needed only because the order of parameters taken by * DT_NODE_HAS_PROP is different than that required for a macro to be * invoked by FOR_EACH_FIXED_ARG. * diff --git a/soc/arm/nordic_nrf/nrf53/power.c b/soc/arm/nordic_nrf/nrf53/power.c index 89aec80f114..c07f3c30a66 100644 --- a/soc/arm/nordic_nrf/nrf53/power.c +++ b/soc/arm/nordic_nrf/nrf53/power.c @@ -1,6 +1,6 @@ /* * Copyright (c) 2017 Intel Corporation. - * Copytight (c) 2019 Nordic Semiconductor ASA + * Copyright (c) 2019 Nordic Semiconductor ASA * * SPDX-License-Identifier: Apache-2.0 */ diff --git a/soc/arm/nordic_nrf/nrf91/power.c b/soc/arm/nordic_nrf/nrf91/power.c index e3194e005bc..83ba247b9a8 100644 --- a/soc/arm/nordic_nrf/nrf91/power.c +++ b/soc/arm/nordic_nrf/nrf91/power.c @@ -1,6 +1,6 @@ /* * Copyright (c) 2017 Intel Corporation. - * Copytight (c) 2019 Nordic Semiconductor ASA + * Copyright (c) 2019 Nordic Semiconductor ASA * * SPDX-License-Identifier: Apache-2.0 */ diff --git a/soc/arm/nuvoton_npcx/common/power.c b/soc/arm/nuvoton_npcx/common/power.c index 847f85a2abd..a5b8cc4573c 100644 --- a/soc/arm/nuvoton_npcx/common/power.c +++ b/soc/arm/nuvoton_npcx/common/power.c @@ -27,7 +27,7 @@ * LFCLK - Low-Frequency Clock. Its frequency is fixed to 32kHz. * HFCLK - High-Frequency (PLL) Clock. Its frequency is configured to OFMCLK. * - * Based on the follwoing criteria: + * Based on the following criteria: * * - A delay of 'Instant' wake-up from 'Deep Sleep' is 20 us. * - A delay of 'Standard' wake-up from 'Deep Sleep' is 3.43 ms. @@ -124,7 +124,7 @@ static void npcx_power_enter_system_sleep(int slp_mode, int wk_mode) NPCX_ENTER_SYSTEM_SLEEP(); /* - * Compensate system timer by the elasped time of low-freq timer during + * Compensate system timer by the elapsed time of low-freq timer during * system sleep mode. */ npcx_clock_compensate_system_timer(); diff --git a/soc/arm/nuvoton_npcx/common/reg/reg_def.h b/soc/arm/nuvoton_npcx/common/reg/reg_def.h index db13007090a..2f092312573 100644 --- a/soc/arm/nuvoton_npcx/common/reg/reg_def.h +++ b/soc/arm/nuvoton_npcx/common/reg/reg_def.h @@ -1158,7 +1158,7 @@ struct smb_fifo_reg { /* 0x01C: SMB Rx-FIFO Status */ volatile uint8_t SMBRXF_STS; volatile uint8_t reserved12; - /* 0x01E: SMB Rx-FIFO Contro */ + /* 0x01E: SMB Rx-FIFO Control */ volatile uint8_t SMBRXF_CTL; volatile uint8_t reserved13; }; @@ -1305,7 +1305,7 @@ struct tach_reg { /* 0x018: Compare Configuration */ volatile uint8_t TCPCFG; volatile uint8_t reserved7; - /* 0x01A: Timer Wake-Up Enablen */ + /* 0x01A: Timer Wake-Up Enable */ volatile uint8_t TWUEN; volatile uint8_t reserved8; /* 0x01C: Timer Configuration */ @@ -1373,7 +1373,7 @@ struct ps2_reg { /* 0x006: PS/2 Output Signal */ volatile uint8_t PSOSIG; volatile uint8_t reserved4; - /* 0x008: PS/2 Iutput Signal */ + /* 0x008: PS/2 Input Signal */ volatile uint8_t PSISIG; volatile uint8_t reserved5; /* 0x00A: PS/2 Interrupt Enable */ diff --git a/soc/arm/nuvoton_npcx/common/soc_host.h b/soc/arm/nuvoton_npcx/common/soc_host.h index 11be222526e..e5c7c3aff6c 100644 --- a/soc/arm/nuvoton_npcx/common/soc_host.h +++ b/soc/arm/nuvoton_npcx/common/soc_host.h @@ -20,7 +20,7 @@ extern "C" { /** * @brief Initializes all host sub-modules in Core domain. * - * This routine initalizes all host sub-modules which HW blocks belong to + * This routine initializes all host sub-modules which HW blocks belong to * Core domain. And it also saves the pointer of eSPI callback list to report * any peripheral events application layer. * @@ -36,8 +36,8 @@ int npcx_host_init_subs_core_domain(const struct device *host_bus_dev, /** * @brief Initializes all host sub-modules in Host domain. * - * This routine initalizes all host sub-modules which HW blocks belong to - * Host domain. Please notcie it must be executed after receiving PLT_RST + * This routine initializes all host sub-modules which HW blocks belong to + * Host domain. Please notice it must be executed after receiving PLT_RST * de-asserted signal and eSPI peripheral channel is enabled and ready. */ void npcx_host_init_subs_host_domain(void); diff --git a/soc/arm/nxp_imx/mimx8ml8_m7/mpu_regions.c b/soc/arm/nxp_imx/mimx8ml8_m7/mpu_regions.c index 299c0a23e9e..739629531b7 100644 --- a/soc/arm/nxp_imx/mimx8ml8_m7/mpu_regions.c +++ b/soc/arm/nxp_imx/mimx8ml8_m7/mpu_regions.c @@ -61,7 +61,7 @@ static const struct arm_mpu_region mpu_regions[] = { /* * Non-cacheable area is provided in DDR memory, the DDR region [0x80000000 ~ 0x81000000] - * (please see the imx8mp-evk-rpmsg.dts) totally 16MB is revserved for CM7 core. You can put + * (please see the imx8mp-evk-rpmsg.dts) totally 16MB is reserved for CM7 core. You can put * global or static uninitialized variables in NonCacheable section(initialized variables in * NonCacheable.init section) to make them uncacheable. Since the base address of MPU region * should be multiples of region size, to make it simple, the MPU region 5 set the address diff --git a/soc/arm/nxp_imx/rt/Kconfig.soc b/soc/arm/nxp_imx/rt/Kconfig.soc index 7556a607e5f..27c7836ceee 100644 --- a/soc/arm/nxp_imx/rt/Kconfig.soc +++ b/soc/arm/nxp_imx/rt/Kconfig.soc @@ -655,7 +655,7 @@ config FLEXSPI_CONFIG_BLOCK_OFFSET help FlexSPI configuration block consists of parameters regarding specific flash devices including read command sequence, quad mode enablement - sequence (optional), etc. The boot ROM expectes FlexSPI configuration + sequence (optional), etc. The boot ROM expects FlexSPI configuration parameter to be presented in serial nor flash. config IMAGE_VECTOR_TABLE_OFFSET diff --git a/soc/arm/nxp_imx/rt/flexspi_nor_config.h b/soc/arm/nxp_imx/rt/flexspi_nor_config.h index 2a0eb895aaf..b00e90b4baa 100644 --- a/soc/arm/nxp_imx/rt/flexspi_nor_config.h +++ b/soc/arm/nxp_imx/rt/flexspi_nor_config.h @@ -246,7 +246,7 @@ struct flexspi_mem_config_t { uint8_t deviceType; /* !< [0x045-0x045] Serial Flash Pad Type: 1 - Single, 2 - Dual, 4 - Quad, 8 - Octal */ uint8_t sflashPadType; - /* !< [0x046-0x046] Serial Flash Frequencey, device specific definitions, See System Boot */ + /* !< [0x046-0x046] Serial Flash Frequency, device specific definitions, See System Boot */ uint8_t serialClkFreq; /* ! Chapter for more details */ /* !< [0x047-0x047] LUT customization Enable, it is required if the program/erase cannot */ @@ -330,7 +330,7 @@ struct flexspi_nor_config_t { uint8_t needExitNoCmdMode; /* !< Half the Serial Clock for non-read command: true/false */ uint8_t halfClkForNonReadCmd; - /* !< Need to Restore NoCmd mode after IP commmand execution */ + /* !< Need to Restore NoCmd mode after IP command execution */ uint8_t needRestoreNoCmdMode; /* !< Block size */ uint32_t blockSize; diff --git a/soc/arm/nxp_imx/rt/power_rt11xx.h b/soc/arm/nxp_imx/rt/power_rt11xx.h index b3da3e74ee1..21a630570b9 100644 --- a/soc/arm/nxp_imx/rt/power_rt11xx.h +++ b/soc/arm/nxp_imx/rt/power_rt11xx.h @@ -9,7 +9,7 @@ #define _SOC_ARM_NXP_IMX_RT_POWER_RT11XX_H_ /* - * Set point configurations. These are kept in a seprate file for readability. + * Set point configurations. These are kept in a separate file for readability. */ #define SP0 0 diff --git a/soc/arm/nxp_imx/rt/soc_rt11xx.c b/soc/arm/nxp_imx/rt/soc_rt11xx.c index cb1872ff4fd..ac372b4f28b 100644 --- a/soc/arm/nxp_imx/rt/soc_rt11xx.c +++ b/soc/arm/nxp_imx/rt/soc_rt11xx.c @@ -23,7 +23,7 @@ #include "usb_dc_mcux.h" #endif -#if CONFIG_USB_DC_NXP_EHCI /* USB PHY condfiguration */ +#if CONFIG_USB_DC_NXP_EHCI /* USB PHY configuration */ #define BOARD_USB_PHY_D_CAL (0x07U) #define BOARD_USB_PHY_TXCAL45DP (0x06U) #define BOARD_USB_PHY_TXCAL45DM (0x06U) diff --git a/soc/arm/nxp_imx/rt5xx/Kconfig.soc b/soc/arm/nxp_imx/rt5xx/Kconfig.soc index 1d729eb5cbf..aa238b61a9c 100644 --- a/soc/arm/nxp_imx/rt5xx/Kconfig.soc +++ b/soc/arm/nxp_imx/rt5xx/Kconfig.soc @@ -82,7 +82,7 @@ config FLASH_CONFIG_OFFSET default 0x400 help The flash config offset provides the boot ROM with the on-board - flash type and parameters. The boot ROM requires a fixed flash conifg + flash type and parameters. The boot ROM requires a fixed flash config offset for FlexSPI device. config IMAGE_VECTOR_TABLE_OFFSET diff --git a/soc/arm/nxp_imx/rt6xx/Kconfig.soc b/soc/arm/nxp_imx/rt6xx/Kconfig.soc index 1f5c7d2b2f3..f979fba2c6d 100644 --- a/soc/arm/nxp_imx/rt6xx/Kconfig.soc +++ b/soc/arm/nxp_imx/rt6xx/Kconfig.soc @@ -100,7 +100,7 @@ config FLASH_CONFIG_OFFSET default 0x400 help The flash config offset provides the boot ROM with the on-board - flash type and parameters. The boot ROM requires a fixed flash conifg + flash type and parameters. The boot ROM requires a fixed flash config offset for FlexSPI device. config IMAGE_VECTOR_TABLE_OFFSET diff --git a/soc/arm/st_stm32/common/st_stm32_dt.h b/soc/arm/st_stm32/common/st_stm32_dt.h index 5f1300b24d9..0d3257fbb22 100644 --- a/soc/arm/st_stm32/common/st_stm32_dt.h +++ b/soc/arm/st_stm32/common/st_stm32_dt.h @@ -23,7 +23,7 @@ /** - * @brief Internal: Get a node indentifier for an element in a + * @brief Internal: Get a node identifier for an element in a * pinctrl-x property for a given device instance inst * * @param inst device instance number @@ -35,7 +35,7 @@ DT_INST_PINCTRL_BY_IDX(inst, x, i) /** - * @brief Internal: Get a node indentifier for an element in a + * @brief Internal: Get a node identifier for an element in a * pinctrl-x property for a given device * * @param name device node label identifier @@ -47,7 +47,7 @@ DT_PINCTRL_BY_IDX(DT_NODELABEL(name), x, i) /** - * @brief Internal: Get pinmux property of a node indentifier for an element + * @brief Internal: Get pinmux property of a node identifier for an element * in a pinctrl-x property for a given device instance inst * * @param inst device instance number @@ -59,7 +59,7 @@ DT_PROP(ST_STM32_DT_INST_NODE_ID_FROM_PINCTRL(inst, x, i), pinmux) /** - * @brief Internal: Get pinmux property of a node indentifier for an element + * @brief Internal: Get pinmux property of a node identifier for an element * in a pinctrl-x property for a given device * * @param name device node label identifier @@ -71,7 +71,7 @@ DT_PROP(ST_STM32_DT_NODE_ID_FROM_PINCTRL(name, x, i), pinmux) /** - * @brief Internal: Get property of a node indentifier for an element + * @brief Internal: Get property of a node identifier for an element * in a pinctrl-x property for a given device instance inst * * @param inst device instance number @@ -84,7 +84,7 @@ DT_PROP(ST_STM32_DT_INST_NODE_ID_FROM_PINCTRL(inst, x, i), function) /** - * @brief Internal: Get property of a node indentifier for an element + * @brief Internal: Get property of a node identifier for an element * in a pinctrl-x property for a given device * * @param inst device instance number @@ -122,7 +122,7 @@ DT_ENUM_IDX(ST_STM32_DT_NODE_ID_FROM_PINCTRL(name, x, i), slew_rate) /** - * @brief Internal: Contruct a pincfg field of a soc_gpio_pinctrl element + * @brief Internal: Construct a pincfg field of a soc_gpio_pinctrl element * with index i of a pinctrl-x property for a given device instance inst * * @param i index of soc_gpio_pinctrl element @@ -161,7 +161,7 @@ #endif /* CONFIG_SOC_SERIES_STM32F1X */ /** - * @brief Internal: Contruct a pincfg field of a soc_gpio_pinctrl element + * @brief Internal: Construct a pincfg field of a soc_gpio_pinctrl element * with index i of a pinctrl-x property for a given device * * @param i index of soc_gpio_pinctrl element @@ -198,7 +198,7 @@ #endif /* CONFIG_SOC_SERIES_STM32F1X */ /** - * @brief Internal: Contruct a soc_gpio_pinctrl element index i of + * @brief Internal: Construct a soc_gpio_pinctrl element index i of * a pinctrl-x property for a given device instance inst * * @param i element index @@ -213,7 +213,7 @@ } /** - * @brief Internal: Contruct a soc_gpio_pinctrl element index i of + * @brief Internal: Construct a soc_gpio_pinctrl element index i of * a pinctrl-x property for a given device * * @param i element index @@ -259,7 +259,7 @@ * for a given device instance * * This macro returns an array of soc_gpio_pinctrl, each line matching a pinctrl - * configuration provived in property pcintrl- of device instance + * configuration provided in property pcintrl- of device instance * * @param inst device instance number * @param x index of targeted pinctrl- property (eg: pinctrl-) @@ -279,7 +279,7 @@ * for a given device name * * This macro returns an array of soc_gpio_pinctrl, each line matching a pinctrl - * configuration provived in property pcintrl- of a device referenced by + * configuration provided in property pcintrl- of a device referenced by * its node label identifier. * * @param name device node label identifier diff --git a/soc/arm/st_stm32/stm32wb/soc.c b/soc/arm/st_stm32/stm32wb/soc.c index 4adf34d9cc0..c4068ea2ef9 100644 --- a/soc/arm/st_stm32/stm32wb/soc.c +++ b/soc/arm/st_stm32/stm32wb/soc.c @@ -46,7 +46,7 @@ static int stm32wb_init(const struct device *arg) SystemCoreClock = 4000000; /* Set C2 Power Mode to shutdown */ - /* It will be udated by C2 when required */ + /* It will be updated by C2 when required */ LL_C2_PWR_SetPowerMode(LL_PWR_MODE_SHUTDOWN); return 0; diff --git a/soc/posix/inf_clock/soc.c b/soc/posix/inf_clock/soc.c index a504f081e50..13a7cc11a86 100644 --- a/soc/posix/inf_clock/soc.c +++ b/soc/posix/inf_clock/soc.c @@ -109,7 +109,7 @@ void posix_change_cpu_state_and_wait(bool halted) void posix_interrupt_raised(void) { /* We change the CPU to running state (we awake it), and block this - * thread until the CPU is hateld again + * thread until the CPU is halted again */ posix_change_cpu_state_and_wait(false); @@ -149,7 +149,7 @@ void posix_halt_cpu(void) posix_irq_handler(); /* - * And we go back to whatever Zephyr thread calleed us. + * And we go back to whatever Zephyr thread called us. */ } diff --git a/soc/riscv/esp32c3/idle.c b/soc/riscv/esp32c3/idle.c index 1109a827445..df23d5a02ee 100644 --- a/soc/riscv/esp32c3/idle.c +++ b/soc/riscv/esp32c3/idle.c @@ -17,7 +17,7 @@ */ void arch_cpu_idle(void) { - /* curiously it arives here with the interrupts masked + /* curiously it arrives here with the interrupts masked * so umask it before wait for an event */ arch_irq_unlock(MSTATUS_IEN); diff --git a/soc/riscv/openisa_rv32m1/vector_table.ld b/soc/riscv/openisa_rv32m1/vector_table.ld index 73c3ac45cf3..2676c2438aa 100644 --- a/soc/riscv/openisa_rv32m1/vector_table.ld +++ b/soc/riscv/openisa_rv32m1/vector_table.ld @@ -14,7 +14,7 @@ #ifdef CONFIG_BOOTLOADER_MCUBOOT /* * For CONFIG_BOOTLOADER_MCUBOOT, the vector table is located at the - * end of the image header of the MCUboot. After the tagert image is + * end of the image header of the MCUboot. After the target image is * boot, the register Machine Trap-Vector Base Address (MTVEC) is * set with the value of _vector_start in the reset handler. */ diff --git a/soc/riscv/riscv-ite/it8xxx2/h2ram.ld b/soc/riscv/riscv-ite/it8xxx2/h2ram.ld index 137cf6a588a..d09396786b3 100644 --- a/soc/riscv/riscv-ite/it8xxx2/h2ram.ld +++ b/soc/riscv/riscv-ite/it8xxx2/h2ram.ld @@ -7,7 +7,7 @@ SECTION_PROLOGUE(.h2ram_pool, (NOLOAD),) { /* - * Ensure this secation is 4k-byte aligned. + * Ensure this section is 4k-byte aligned. * NOTE: This won't cause gap if this is included first inside * the RAMABLE_REGION. Because RAM base is 4k-byte aligned. */ diff --git a/soc/riscv/riscv-privilege/sifive-freedom/fe310_clock.c b/soc/riscv/riscv-privilege/sifive-freedom/fe310_clock.c index bedb3c8da15..d3e8a2f1141 100644 --- a/soc/riscv/riscv-privilege/sifive-freedom/fe310_clock.c +++ b/soc/riscv/riscv-privilege/sifive-freedom/fe310_clock.c @@ -8,7 +8,7 @@ #include #include "fe310_prci.h" -/* Selects the 16MHz oscilator on the HiFive1 board, which provides a clock +/* Selects the 16MHz oscillator on the HiFive1 board, which provides a clock * that's accurate enough to actually drive serial ports off of. */ static int fe310_clock_init(const struct device *dev) diff --git a/soc/riscv/riscv-privilege/sifive-freedom/fu540_clock.c b/soc/riscv/riscv-privilege/sifive-freedom/fu540_clock.c index cbbba2e9c0e..d0ac9e30e82 100644 --- a/soc/riscv/riscv-privilege/sifive-freedom/fu540_clock.c +++ b/soc/riscv/riscv-privilege/sifive-freedom/fu540_clock.c @@ -8,7 +8,7 @@ #include "fu540_prci.h" /* - * Switch the clock source to 1GHz PLL from 33.333MHz oscilator on the HiFive + * Switch the clock source to 1GHz PLL from 33.333MHz oscillator on the HiFive * Unleashed board. */ static int fu540_clock_init(const struct device *dev) diff --git a/soc/riscv/riscv-privilege/sifive-freedom/fu740_clock.c b/soc/riscv/riscv-privilege/sifive-freedom/fu740_clock.c index 0eb6a67b5e7..cff655430c9 100644 --- a/soc/riscv/riscv-privilege/sifive-freedom/fu740_clock.c +++ b/soc/riscv/riscv-privilege/sifive-freedom/fu740_clock.c @@ -9,7 +9,7 @@ /* * Switch the clock source - * - core: to 1GHz PLL (CORE_PLL) from 26MHz oscilator (HFCLK) + * - core: to 1GHz PLL (CORE_PLL) from 26MHz oscillator (HFCLK) * - peri: to 250MHz PLL (HFPCLKPLL) from HFCLK * on the HiFive Unmatched board. * diff --git a/soc/riscv/riscv-privilege/telink_b91/soc.c b/soc/riscv/riscv-privilege/telink_b91/soc.c index 05735b68ee6..68036cdc60a 100644 --- a/soc/riscv/riscv-privilege/telink_b91/soc.c +++ b/soc/riscv/riscv-privilege/telink_b91/soc.c @@ -12,7 +12,7 @@ #define reg_reset REG_ADDR8(0x1401ef) #define SOFT_RESET 0x20u -/* List of supported CCLK fregencies */ +/* List of supported CCLK frequencies */ #define CLK_16MHZ 16000000u #define CLK_24MHZ 24000000u #define CLK_32MHZ 32000000u diff --git a/soc/x86/atom/soc.h b/soc/x86/atom/soc.h index 8ac6661ec14..40ea9f0ad30 100644 --- a/soc/x86/atom/soc.h +++ b/soc/x86/atom/soc.h @@ -32,7 +32,7 @@ /* FIXME: The values below copied from generic ia32 soc, we need to get the * correct numbers for Atom and the minnowboard * - * This is added now to get basic enumartion of devices and verify that PCI + * This is added now to get basic enumeration of devices and verify that PCI * driver is functional. */ #define PCI_BUS_NUMBERS 1 diff --git a/soc/xtensa/esp32/include/gdbstub/soc.h b/soc/xtensa/esp32/include/gdbstub/soc.h index b6d2fa2033e..03e0c5df0b2 100644 --- a/soc/xtensa/esp32/include/gdbstub/soc.h +++ b/soc/xtensa/esp32/include/gdbstub/soc.h @@ -10,7 +10,7 @@ #define SOC_XTENSA_ESP32_GDBSTUB_H_ #ifndef ZEPHYR_INCLUDE_ARCH_XTENSA_GDBSTUB_SYS_H_ -#error "Must be inclued after arch/xtensa/gdbstub.h" +#error "Must be included after arch/xtensa/gdbstub.h" #endif /* ZEPHYR_INCLUDE_ARCH_XTENSA_GDBSTUB_SYS_H_ */ #define SOC_GDB_GPKT_BIN_SIZE 420 diff --git a/soc/xtensa/intel_adsp/common/CMakeLists.txt b/soc/xtensa/intel_adsp/common/CMakeLists.txt index d17d02a1cbc..72975e8cb5b 100644 --- a/soc/xtensa/intel_adsp/common/CMakeLists.txt +++ b/soc/xtensa/intel_adsp/common/CMakeLists.txt @@ -45,7 +45,7 @@ endif() # warning squashing on the objcopy steps. Binutils has a misfeature # where if the copy removes all the sections from an input ELF program # header (our link generates lots of phdrs because of the disjoint -# cachability addresses), it will warn about an "empty" segment even +# cacheability addresses), it will warn about an "empty" segment even # though it was TOLD to drop the contents! # # Also note that rimage is picky with section flags: it will try to diff --git a/soc/xtensa/intel_adsp/common/include/cavs-idc.h b/soc/xtensa/intel_adsp/common/include/cavs-idc.h index d224a806da6..99e2f2f18f6 100644 --- a/soc/xtensa/intel_adsp/common/include/cavs-idc.h +++ b/soc/xtensa/intel_adsp/common/include/cavs-idc.h @@ -42,7 +42,7 @@ * IDC[src].core[dst].itc = BIT(31) | message; * while (IDC[src].core[dst].itc & BIT(31)) {} * - * And the other side (on cpu "dst", generally in the IDC interruupt + * And the other side (on cpu "dst", generally in the IDC interrupt * handler) will read and acknowledge those same values via: * * uint32_t my_msg = IDC[dst].core[src].tfc & 0x7fffffff; diff --git a/soc/xtensa/intel_adsp/common/include/cavs-ipc-regs.h b/soc/xtensa/intel_adsp/common/include/cavs-ipc-regs.h index aefbd7e2226..8feefa0ac47 100644 --- a/soc/xtensa/intel_adsp/common/include/cavs-ipc-regs.h +++ b/soc/xtensa/intel_adsp/common/include/cavs-ipc-regs.h @@ -44,7 +44,7 @@ * * Note that while the scheme in #1 may look like an atomic message, * there is no queuing in the hardware! This is just a regular level - * triggered interrupt with some scratch registers on which mulitple + * triggered interrupt with some scratch registers on which multiple * contexts can race. The design intent is that the sender polls the * IDR.BUSY bit (or waits for a return interrupt via #2) to be sure * the link is available. And even then two independent initiators diff --git a/soc/xtensa/intel_adsp/common/include/soc.h b/soc/xtensa/intel_adsp/common/include/soc.h index 9dbd70d1d7a..d62133e9452 100644 --- a/soc/xtensa/intel_adsp/common/include/soc.h +++ b/soc/xtensa/intel_adsp/common/include/soc.h @@ -103,7 +103,7 @@ extern bool soc_cpus_active[CONFIG_MP_NUM_CPUS]; * reach idle. * * @note On older cAVS hardware, core power is controlled by the host. - * This function must still be called for OS bookeeping, but it is + * This function must still be called for OS bookkeeping, but it is * insufficient without application coordination (and careful * synchronization!) with the host x86 environment. * diff --git a/soc/xtensa/intel_s1000/include/cavs-idc.h b/soc/xtensa/intel_s1000/include/cavs-idc.h index 048257fb934..d5abe233f3f 100644 --- a/soc/xtensa/intel_s1000/include/cavs-idc.h +++ b/soc/xtensa/intel_s1000/include/cavs-idc.h @@ -42,7 +42,7 @@ * IDC[src].core[dst].itc = BIT(31) | message; * while (IDC[src].core[dst].itc & BIT(31)) {} * - * And the other side (on cpu "dst", generally in the IDC interruupt + * And the other side (on cpu "dst", generally in the IDC interrupt * handler) will read and acknowledge those same values via: * * uint32_t my_msg = IDC[dst].core[src].tfc & 0x7fffffff; diff --git a/soc/xtensa/intel_s1000/memory.h b/soc/xtensa/intel_s1000/memory.h index 1e6b9147bfd..bf3d4fef5e6 100644 --- a/soc/xtensa/intel_s1000/memory.h +++ b/soc/xtensa/intel_s1000/memory.h @@ -72,7 +72,7 @@ #define LPRAM_BASE (DT_REG_ADDR(DT_NODELABEL(sram1))) #define LPRAM_SIZE (DT_REG_SIZE(DT_NODELABEL(sram1))) -/* Boot vector resideing in LP-SRAM for core #1 */ +/* Boot vector residing in LP-SRAM for core #1 */ #define LPSRAM_BOOT_VECTOR_ADDR (LPRAM_BASE + 0x08) #define IPC_DSP_SIZE 0x00000080 diff --git a/subsys/bluetooth/Kconfig.iso b/subsys/bluetooth/Kconfig.iso index 3e5d7a39f0b..be80d7e148a 100644 --- a/subsys/bluetooth/Kconfig.iso +++ b/subsys/bluetooth/Kconfig.iso @@ -109,7 +109,7 @@ config BT_ISO_MAX_BIG int "Maximum number of Broadcast Isochronous Groups (BIGs) to support" default 1 help - Maximmum number of BIGs that are supported by the host. A BIG can be + Maximum number of BIGs that are supported by the host. A BIG can be used for either transmitting or receiving, but not at the same time. endif # BT_ISO_BROADCAST diff --git a/subsys/bluetooth/audio/bass.c b/subsys/bluetooth/audio/bass.c index 1d6df5f8ac9..e24cf9f3137 100644 --- a/subsys/bluetooth/audio/bass.c +++ b/subsys/bluetooth/audio/bass.c @@ -164,7 +164,7 @@ static void bt_debug_dump_recv_state(const struct bass_recv_state_internal *recv for (int i = 0; i < state->num_subgroups; i++) { const struct bt_bass_subgroup *subgroup = &state->subgroups[i]; - BT_DBG("\tSubsgroup[%d]: BIS sync %u (requested %u), metadata_len %u, metadata: %s", + BT_DBG("\tSubgroup[%d]: BIS sync %u (requested %u), metadata_len %u, metadata: %s", i, subgroup->bis_sync, subgroup->requested_bis_sync, subgroup->metadata_len, bt_hex(subgroup->metadata, subgroup->metadata_len)); @@ -1001,7 +1001,7 @@ static int bass_mod_src(struct bt_conn *conn, struct net_buf_simple *buf) state_changed |= old_pa_sync_state != state->pa_sync_state; - BT_DBG("Index %u: Source modifed: ID 0x%02x", + BT_DBG("Index %u: Source modified: ID 0x%02x", internal_state->index, state->src_id); bt_debug_dump_recv_state(internal_state); diff --git a/subsys/bluetooth/audio/broadcast_source.c b/subsys/bluetooth/audio/broadcast_source.c index 26dcea798ed..9bc0423391f 100644 --- a/subsys/bluetooth/audio/broadcast_source.c +++ b/subsys/bluetooth/audio/broadcast_source.c @@ -277,7 +277,7 @@ static void bt_audio_encode_base(const struct bt_audio_broadcast_source *source, sizeof(codec_data->type)); } - /* Calcute length of codec config data */ + /* Calculate length of codec config data */ len = net_buf_simple_tail(buf) - start - sizeof(len); /* Update the length field */ *start = len; @@ -293,7 +293,7 @@ static void bt_audio_encode_base(const struct bt_audio_broadcast_source *source, metadata->data_len - sizeof(metadata->type)); } - /* Calcute length of codec config data */ + /* Calculate length of codec config data */ len = net_buf_simple_tail(buf) - start - sizeof(len); /* Update the length field */ *start = len; diff --git a/subsys/bluetooth/audio/mcc.c b/subsys/bluetooth/audio/mcc.c index 934afbf890d..fde2cf0f825 100644 --- a/subsys/bluetooth/audio/mcc.c +++ b/subsys/bluetooth/audio/mcc.c @@ -1413,7 +1413,7 @@ static uint8_t discover_primary_func(struct bt_conn *conn, cur_mcs_inst->start_handle = attr->handle + 1; cur_mcs_inst->end_handle = prim_service->end_handle; - /* Start discovery of characeristics */ + /* Start discovery of characteristics */ discover_params.uuid = NULL; discover_params.start_handle = cur_mcs_inst->start_handle; discover_params.end_handle = cur_mcs_inst->end_handle; diff --git a/subsys/bluetooth/audio/mcs.c b/subsys/bluetooth/audio/mcs.c index 8ac7d0e80ff..9f5cf3196a4 100644 --- a/subsys/bluetooth/audio/mcs.c +++ b/subsys/bluetooth/audio/mcs.c @@ -33,7 +33,7 @@ * (Number found by experiment.) * * Either find a better way of setting up the Kconfig, or serialize the - * notfications. + * notifications. */ BUILD_ASSERT(CONFIG_BT_L2CAP_TX_BUF_COUNT >= 10, "Too few L2CAP buffers"); @@ -41,7 +41,7 @@ static struct media_proxy_sctrl_cbs cbs; /* Functions for reading and writing attributes, and for keeping track * of attribute configuration changes. - * Functions for notifications are placed after the service defition. + * Functions for notifications are placed after the service definition. */ static ssize_t read_player_name(struct bt_conn *conn, const struct bt_gatt_attr *attr, void *buf, diff --git a/subsys/bluetooth/audio/media_proxy.c b/subsys/bluetooth/audio/media_proxy.c index 092479d4058..e62554dec92 100644 --- a/subsys/bluetooth/audio/media_proxy.c +++ b/subsys/bluetooth/audio/media_proxy.c @@ -31,7 +31,7 @@ struct scontroller { struct media_proxy_sctrl_cbs *cbs; }; -/* Aynchronous controller - controller using the asynchronous API */ +/* Asynchronous controller - controller using the asynchronous API */ struct controller { struct media_proxy_ctrl_cbs *cbs; }; diff --git a/subsys/bluetooth/audio/mics_client.c b/subsys/bluetooth/audio/mics_client.c index 037097c0bda..ddb57d27e06 100644 --- a/subsys/bluetooth/audio/mics_client.c +++ b/subsys/bluetooth/audio/mics_client.c @@ -402,7 +402,7 @@ int bt_mics_discover(struct bt_conn *conn, struct bt_mics **mics) * 1) Primary discover for the MICS * 2) Characteristic discover of the MICS * 3) Discover services included in MICS (AICS) - * 4) For each included service found; discovery of the characteristiscs + * 4) For each included service found; discovery of the characteristics * 5) When everything above have been discovered, the callback is called */ diff --git a/subsys/bluetooth/audio/mpl.c b/subsys/bluetooth/audio/mpl.c index f256edcec2e..1ce7d17745c 100644 --- a/subsys/bluetooth/audio/mpl.c +++ b/subsys/bluetooth/audio/mpl.c @@ -25,7 +25,7 @@ #define PLAYBACK_SPEED_PARAM_DEFAULT BT_MCS_PLAYBACK_SPEED_UNITY -/* Temporary hardcoded setup for groups, tracks and segements */ +/* Temporary hardcoded setup for groups, tracks and segments */ /* There is one parent group, which is the parent of a number of groups. */ /* The groups have a number of tracks. */ /* (There is only one level of groups, there are no groups of groups.) */ @@ -1663,7 +1663,7 @@ void playing_state_command_handler(struct mpl_cmd command, media_proxy_pl_track_position_cb(pl.track_pos); } /* If the argument to "goto segment" is zero, */ - /* the segment shal stay the same, and the */ + /* the segment shall stay the same, and the */ /* track position shall not change. */ ntf.result_code = BT_MCS_OPC_NTF_SUCCESS; } else { @@ -1889,7 +1889,7 @@ void paused_state_command_handler(struct mpl_cmd command, media_proxy_pl_track_position_cb(pl.track_pos); } /* If the argument to "goto segment" is zero, */ - /* the segment shal stay the same, and the */ + /* the segment shall stay the same, and the */ /* track position shall not change. */ ntf.result_code = BT_MCS_OPC_NTF_SUCCESS; } else { @@ -2038,7 +2038,7 @@ void seeking_state_command_handler(struct mpl_cmd command, break; case BT_MCS_OPC_FAST_REWIND: /* TODO: Here, and for FAST_FORWARD */ - /* Decide on algorithm for muliple presses - add step (as */ + /* Decide on algorithm for multiple presses - add step (as */ /* now) or double/half? */ /* What about FR followed by FF? */ /* Currently, the seeking speed may also become zero */ @@ -2130,7 +2130,7 @@ void seeking_state_command_handler(struct mpl_cmd command, media_proxy_pl_track_position_cb(pl.track_pos); } /* If the argument to "goto segment" is zero, */ - /* the segment shal stay the same, and the */ + /* the segment shall stay the same, and the */ /* track position shall not change. */ ntf.result_code = BT_MCS_OPC_NTF_SUCCESS; } else { diff --git a/subsys/bluetooth/audio/mpl_internal.h b/subsys/bluetooth/audio/mpl_internal.h index f830245aa4c..2284b5c15bd 100644 --- a/subsys/bluetooth/audio/mpl_internal.h +++ b/subsys/bluetooth/audio/mpl_internal.h @@ -131,7 +131,7 @@ void mpl_test_current_group_id_changed_cb(void); /* Trigger parent group id changed callback */ void mpl_test_parent_group_id_changed_cb(void); -/* Trigger playinge order changed callback */ +/* Trigger playing order changed callback */ void mpl_test_playing_order_changed_cb(void); /* Trigger media state changed callback */ diff --git a/subsys/bluetooth/audio/vcs_internal.h b/subsys/bluetooth/audio/vcs_internal.h index 19801221fcc..c3e6e4d7af3 100644 --- a/subsys/bluetooth/audio/vcs_internal.h +++ b/subsys/bluetooth/audio/vcs_internal.h @@ -1,6 +1,6 @@ /** * @file - * @brief Internal Header for Bluetooth Volumen Control Service (VCS). + * @brief Internal Header for Bluetooth Volume Control Service (VCS). * * Copyright (c) 2020 Bose Corporation * Copyright (c) 2020-2021 Nordic Semiconductor ASA diff --git a/subsys/bluetooth/common/Kconfig b/subsys/bluetooth/common/Kconfig index d29cb5e5f94..1e3ece62b89 100644 --- a/subsys/bluetooth/common/Kconfig +++ b/subsys/bluetooth/common/Kconfig @@ -78,7 +78,7 @@ config BT_BUF_ACL_RX_SIZE This means the maximum L2CAP PDU MTU is restricted by the maximum ACL size subtracting the 4 byte header of an L2CAP PDU. When using L2CAP Connection oriented Channels without segmentation - then the L2CAP SDU MTU is also restricetd by the maximum ACL size + then the L2CAP SDU MTU is also restricted by the maximum ACL size subtracting the 4 Byte header of an L2CAP PDU plus the 2 byte header of an L2CAP SDU. diff --git a/subsys/bluetooth/controller/Kconfig b/subsys/bluetooth/controller/Kconfig index 92fac125e81..38ed0ee6a0a 100644 --- a/subsys/bluetooth/controller/Kconfig +++ b/subsys/bluetooth/controller/Kconfig @@ -316,7 +316,7 @@ config BT_CTLR_ECDH depends on BT_CTLR_ECDH_SUPPORT default y help - Enable support for Bluetoooth v4.2 Elliptic Curve Diffie-Hellman + Enable support for Bluetooth v4.2 Elliptic Curve Diffie-Hellman feature in the controller. config BT_CTLR_CONN_PARAM_REQ diff --git a/subsys/bluetooth/controller/Kconfig.df b/subsys/bluetooth/controller/Kconfig.df index e9165d67afa..21f3f9d6835 100644 --- a/subsys/bluetooth/controller/Kconfig.df +++ b/subsys/bluetooth/controller/Kconfig.df @@ -212,7 +212,7 @@ config BT_CTLR_DF_SAMPLE_OFFSET_PHY_1M_SAMPLING_1US default 1 help Offset of sampling start from beginning of sampling slot. The value is a signed number - of 16M cycles relative. It is used when PHY is set to PHY 1M and sampling slot duarion + of 16M cycles relative. It is used when PHY is set to PHY 1M and sampling slot duration is 1 us. Decreasing the offset beyond the trigger of the AoA/AoD procedure will have no effect. @@ -223,7 +223,7 @@ config BT_CTLR_DF_SAMPLE_OFFSET_PHY_2M_SAMPLING_1US default 15 help Offset of sampling start from beginning of sampling slot. The value is a signed number - of 16M cycles relative. It is used when PHY is set to PHY 1M and sampling slot duarion + of 16M cycles relative. It is used when PHY is set to PHY 1M and sampling slot duration is 1 us. Decreasing the offset beyond the trigger of the AoA/AoD procedure will have no effect. @@ -235,7 +235,7 @@ config BT_CTLR_DF_SAMPLE_OFFSET_PHY_1M_SAMPLING_2US default 6 help Offset of sampling start from beginning of sampling slot. The value is a signed number - of 16M cycles relative. It is used when PHY is set to PHY 1M and sampling slot duarion + of 16M cycles relative. It is used when PHY is set to PHY 1M and sampling slot duration is 2 us. Decreasing the offset beyond the trigger of the AoA/AoD procedure will have no effect. @@ -246,7 +246,7 @@ config BT_CTLR_DF_SAMPLE_OFFSET_PHY_2M_SAMPLING_2US default 20 help Offset of sampling start from beginning of sampling slot. The value is a signed number - of 16M cycles relative. It is used when PHY is set to PHY 1M and sampling slot duarion + of 16M cycles relative. It is used when PHY is set to PHY 1M and sampling slot duration is 2 us. Decreasing the offset beyond the trigger of the AoA/AoD procedure will have no effect. diff --git a/subsys/bluetooth/controller/Kconfig.ll_sw_split b/subsys/bluetooth/controller/Kconfig.ll_sw_split index f9b1a44d369..90f8c57806e 100644 --- a/subsys/bluetooth/controller/Kconfig.ll_sw_split +++ b/subsys/bluetooth/controller/Kconfig.ll_sw_split @@ -249,7 +249,7 @@ config BT_CTLR_ADV_EXT_PDU_EXTRA_DATA_MEMORY help Add additional memory to advertising PDU storage. The memory is a general purpose storage for data that should be send from ULL to LLL. - The data stored in the memory are in synchoronization with content + The data stored in the memory are in synchronization with content of PDU memory. For example, the extra data memory is used for storage for parameters @@ -371,7 +371,7 @@ config BT_CTLR_SCHED_ADVANCED_CENTRAL_CONN_SPACING of the established central role connections. The precision is determined by the resolution of the platform dependent ticker clock. - When spefifying values above 6.25 ms, the spacing may be unobtainable if + When specifying values above 6.25 ms, the spacing may be unobtainable if the connection interval becomes smaller than the total spacing. In that case, modulo is applied and a total spacing of 15 ms on a 10 ms connection interval yields 5 ms spacing. diff --git a/subsys/bluetooth/controller/hci/hci_driver.c b/subsys/bluetooth/controller/hci/hci_driver.c index e827b00a0d0..e75f8ecd012 100644 --- a/subsys/bluetooth/controller/hci/hci_driver.c +++ b/subsys/bluetooth/controller/hci/hci_driver.c @@ -227,9 +227,9 @@ static struct net_buf *process_prio_evt(struct node_rx_pdu *node_rx, * @brief Handover from Controller thread to Host thread * @details Execution context: Controller thread * Pull from memq_ll_rx and push up to Host thread recv_thread() via recv_fifo - * @param p1 Unused. Required to conform with Zephyr thread protoype - * @param p2 Unused. Required to conform with Zephyr thread protoype - * @param p3 Unused. Required to conform with Zephyr thread protoype + * @param p1 Unused. Required to conform with Zephyr thread prototype + * @param p2 Unused. Required to conform with Zephyr thread prototype + * @param p3 Unused. Required to conform with Zephyr thread prototype */ static void prio_recv_thread(void *p1, void *p2, void *p3) { diff --git a/subsys/bluetooth/controller/include/ll_feat.h b/subsys/bluetooth/controller/include/ll_feat.h index 32ed99456a2..93a6f919f08 100644 --- a/subsys/bluetooth/controller/include/ll_feat.h +++ b/subsys/bluetooth/controller/include/ll_feat.h @@ -37,7 +37,7 @@ #define LL_FEAT_BIT_PING 0 #endif /* !CONFIG_BT_CTLR_LE_PING */ -/* Maximum supported ACL Tx fragement size is limited by uint8_t len field in +/* Maximum supported ACL Tx fragment size is limited by uint8_t len field in * the PDU structure of the Controller implementation. 4 octets reserved for * MIC in encrypted ACL PDUs, hence ACL Tx fragment maximum size of 251 octets. */ diff --git a/subsys/bluetooth/controller/ll_sw/lll.h b/subsys/bluetooth/controller/ll_sw/lll.h index 534eaf6aa3b..b51aea8357b 100644 --- a/subsys/bluetooth/controller/ll_sw/lll.h +++ b/subsys/bluetooth/controller/ll_sw/lll.h @@ -199,7 +199,7 @@ struct ull_hdr { /* TODO: The intention is to use the greater of the * ticks_prepare_to_start or ticks_active_to_start as the prepare * offset. At the prepare tick generate a software interrupt - * servicable by application as the per role configurable advance + * serviceable by application as the per role configurable advance * radio event notification, usable for data acquisitions. * ticks_preempt_to_start is the per role dynamic preempt offset, * which shall be based on role's preparation CPU usage diff --git a/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio.c b/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio.c index a0495c093af..fdbfa06334e 100644 --- a/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio.c +++ b/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio.c @@ -587,7 +587,7 @@ static uint8_t sw_tifs_toggle; * @param dir_curr Current direction the Radio is working: SW_SWITCH_TX or SW_SWITCH_RX * @param dir_next Next direction the Radio is preparing for: SW_SWITCH_TX or SW_SWITCH_RX * @param phy_curr PHY the Radio is working on. - * @param flags_curr Flags related with current PHY, the Radio is workingo on. + * @param flags_curr Flags related with current PHY, the Radio is working on. * @param phy_next Next PHY the Radio is preparing for. * @param flags_next Flags related with next PHY, the Radio is preparing for. * @param end_evt_delay_en Enable end event delay compensation for TIFS after switch from current @@ -1011,7 +1011,7 @@ uint32_t radio_tmr_start(uint8_t trx, uint32_t ticks_start, uint32_t remainder) SW_SWITCH_TIMER->MODE = 0; SW_SWITCH_TIMER->PRESCALER = 4; SW_SWITCH_TIMER->BITMODE = 0; /* 16 bit */ - /* FIXME: start alongwith EVENT_TIMER, to save power */ + /* FIXME: start along with EVENT_TIMER, to save power */ nrf_timer_task_trigger(SW_SWITCH_TIMER, NRF_TIMER_TASK_START); #endif /* !CONFIG_BT_CTLR_SW_SWITCH_SINGLE_TIMER */ diff --git a/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio.h b/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio.h index 844bc7aefda..2e1b686c494 100644 --- a/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio.h +++ b/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio.h @@ -39,7 +39,7 @@ ((uint8_t)((((flags) >> RADIO_PKT_CONF_PHY_POS)) & RADIO_PKT_CONF_PHY_MSK)) /* Helper macro to create bitfield with CTE type only */ #define RADIO_PKT_CONF_CTE(phy) ((uint8_t)((phy) << RADIO_PKT_CONF_CTE_POS)) -/* Helper macro to get CTE enable field value from radion packet configuration bitfield */ +/* Helper macro to get CTE enable field value from radio packet configuration bitfield */ #define RADIO_PKT_CONF_CTE_GET(flags) \ ((uint8_t)((((flags) >> RADIO_PKT_CONF_CTE_POS)) & RADIO_PKT_CONF_CTE_MSK)) /* Helper macro to create a radio packet configure bitfield */ diff --git a/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio_df.c b/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio_df.c index 99e453de15f..0b355508d7d 100644 --- a/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio_df.c +++ b/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio_df.c @@ -310,7 +310,7 @@ void radio_df_cte_tx_aod_2us_set(uint8_t cte_len) * that is in DFECTRL1 register after reset. That is done instead of * adding conditions on the value and masking of the field before * storing configuration in the register. Also values in DFECTRL2, - * that depend on PHY, are irrelevand for AoD Tx, hence use of + * that depend on PHY, are irrelevant for AoD Tx, hence use of * PHY_LEGACY here. */ radio_df_ctrl_set(cte_len, RADIO_DFECTRL1_TSWITCHSPACING_2us, @@ -323,7 +323,7 @@ void radio_df_cte_tx_aod_4us_set(uint8_t cte_len) * that is in DFECTRL1 register after reset. That is done instead of * adding conditions on the value and masking of the field before * storing configuration in the register. Also values in DFECTRL2, - * that depend on PHY, are irrelevand for AoD Tx, hence use of + * that depend on PHY, are irrelevant for AoD Tx, hence use of * PHY_LEGACY here. */ radio_df_ctrl_set(cte_len, RADIO_DFECTRL1_TSWITCHSPACING_4us, @@ -336,7 +336,7 @@ void radio_df_cte_tx_aoa_set(uint8_t cte_len) * value that is in DFECTRL1 register after reset. That is done instead * of adding conditions on the value and masking of the field before * storing configuration in the register. Also values in DFECTRL2, - * that depend on PHY, are irrelevand for AoA Tx, hence use of + * that depend on PHY, are irrelevant for AoA Tx, hence use of * PHY_LEGACY here. */ radio_df_ctrl_set(cte_len, RADIO_DFECTRL1_TSWITCHSPACING_4us, @@ -347,7 +347,7 @@ void radio_df_cte_rx_2us_switching(bool cte_info_in_s1, uint8_t phy) { /* BT spec requires single sample for a single switching slot, so * spacing for slot and samples is the same. - * CTE duation is used only when CTEINLINE config is disabled. + * CTE duration is used only when CTEINLINE config is disabled. */ radio_df_ctrl_set(0, RADIO_DFECTRL1_TSWITCHSPACING_2us, RADIO_DFECTRL1_TSAMPLESPACING_2us, phy); @@ -358,7 +358,7 @@ void radio_df_cte_rx_4us_switching(bool cte_info_in_s1, uint8_t phy) { /* BT spec requires single sample for a single switching slot, so * spacing for slot and samples is the same. - * CTE duation is used only when CTEINLINE config is disabled. + * CTE duration is used only when CTEINLINE config is disabled. */ radio_df_ctrl_set(0, RADIO_DFECTRL1_TSWITCHSPACING_4us, RADIO_DFECTRL1_TSAMPLESPACING_4us, phy); diff --git a/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio_df.h b/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio_df.h index 069f0b5ab0f..e7cc3dd76ee 100644 --- a/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio_df.h +++ b/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio_df.h @@ -40,7 +40,7 @@ void radio_df_cte_rx_4us_switching(bool cte_info_in_s1, uint8_t phy); /* Clears antenna switch pattern. */ void radio_df_ant_switch_pattern_clear(void); -/* Set antenna switch pattern. Pay attention, paterns are added to +/* Set antenna switch pattern. Pay attention, patterns are added to * Radio internal list. Before start of new patterns clear the list * by call to @ref radio_df_ant_switch_pattern_clear. */ diff --git a/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio_nrf52833.h b/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio_nrf52833.h index 19169e15647..a5a42537a0e 100644 --- a/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio_nrf52833.h +++ b/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio_nrf52833.h @@ -356,7 +356,7 @@ * or reception of a PDU on air. In case of regular PDU it is generated when last bit of CRC is * received or transmitted. * - * When direction finding is enabled a PDU may include Constant Tone Extensio at its end. For PDU + * When direction finding is enabled a PDU may include Constant Tone Extension at its end. For PDU * including CTE EVENTS_PHYEND event is generated at very end of a PDU. In case there is no CTE in * a PDU the EVENTS_PHYEND event is generated in the same instant as EVENTS_END event. */ diff --git a/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio_nrf5340.h b/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio_nrf5340.h index 9826b47577f..1b96ea3b568 100644 --- a/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio_nrf5340.h +++ b/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio_nrf5340.h @@ -358,7 +358,7 @@ * or reception of a PDU on air. In case of regular PDU it is generated when last bit of CRC is * received or transmitted. * - * When direction finding is enabled a PDU may include Constant Tone Extensio at its end. For PDU + * When direction finding is enabled a PDU may include Constant Tone Extension at its end. For PDU * including CTE EVENTS_PHYEND event is generated at very end of a PDU, after CTE is received or * transmitted. In case there is no CTE in a PDU the EVENTS_PHYEND event is generated in the same * instant as EVENTS_END event. diff --git a/subsys/bluetooth/controller/ll_sw/nordic/lll/lll_df_types.h b/subsys/bluetooth/controller/ll_sw/nordic/lll/lll_df_types.h index e58d4450eff..a324594e582 100644 --- a/subsys/bluetooth/controller/ll_sw/nordic/lll/lll_df_types.h +++ b/subsys/bluetooth/controller/ll_sw/nordic/lll/lll_df_types.h @@ -12,7 +12,7 @@ /* @brief Min supported length of antenna switching pattern */ #define LLL_DF_MIN_ANT_PATTERN_LEN 3 -/* @brief Mactros to name constants informing where CTEInfo may be found within a PDU depending on +/* @brief Macros to name constants informing where CTEInfo may be found within a PDU depending on * a PDU type. */ #define CTE_INFO_IN_S1_BYTE true @@ -70,9 +70,9 @@ struct lll_df_adv_cfg { * It is not defined by Bluetooth Core specification. This is the vendor specific value. * * Nordic Semiconductor Radio peripheral provides 16 bit wide IQ samples. - * BT 5.3 Core specification Vol 4, Part E sectons 7.7.65.21 and 7.7.65.22 limit size of + * BT 5.3 Core specification Vol 4, Part E sections 7.7.65.21 and 7.7.65.22 limit size of * IQ samples to 8 bits. - * To mitigate the limited accuratcy and losing information about saturated IQ samples a 0x80 value + * To mitigate the limited accuracy and losing information about saturated IQ samples a 0x80 value * is selected to serve the purpose. */ #define IQ_SAMPLE_STATURATED_16_BIT 0x8000 diff --git a/subsys/bluetooth/controller/ll_sw/nordic/lll/lll_sync.c b/subsys/bluetooth/controller/ll_sw/nordic/lll/lll_sync.c index 8426968382c..2cb52470369 100644 --- a/subsys/bluetooth/controller/ll_sw/nordic/lll/lll_sync.c +++ b/subsys/bluetooth/controller/ll_sw/nordic/lll/lll_sync.c @@ -611,7 +611,7 @@ static void isr_aux_setup(void *param) } /** - * @brief Common part of ISR responsbile for handling PDU receive. + * @brief Common part of ISR responsible for handling PDU receive. * * @param lll Pointer to LLL sync object. * @param node_type Type of a receive node to be set for handling by ULL. @@ -831,7 +831,7 @@ static void isr_rx_adv_sync(void *param) radio_tmr_ready_save(radio_tmr_ready_get()); /* When periodic advertisement is synchronized, the CTEType may change. It should not - * affect sychronization even when new CTE type is not allowed by sync parameters. + * affect synchronization even when new CTE type is not allowed by sync parameters. * Hence the SYNC_STAT_READY is set. */ err = isr_rx(lll, NODE_RX_TYPE_SYNC_REPORT, crc_ok, rssi_ready, @@ -891,7 +891,7 @@ static void isr_rx_aux_chain(void *param) } /* When periodic advertisement is synchronized, the CTEType may change. It should not - * affect sychronization even when new CTE type is not allowed by sync parameters. + * affect synchronization even when new CTE type is not allowed by sync parameters. * Hence the SYNC_STAT_READY is set. */ err = isr_rx(lll, NODE_RX_TYPE_EXT_AUX_REPORT, crc_ok, rssi_ready, diff --git a/subsys/bluetooth/controller/ll_sw/openisa/hal/RV32M1/radio/radio.c b/subsys/bluetooth/controller/ll_sw/openisa/hal/RV32M1/radio/radio.c index 87d9dfe9342..3270a689e4b 100644 --- a/subsys/bluetooth/controller/ll_sw/openisa/hal/RV32M1/radio/radio.c +++ b/subsys/bluetooth/controller/ll_sw/openisa/hal/RV32M1/radio/radio.c @@ -515,7 +515,7 @@ void radio_setup(void) */ GENFSK->PB_PARTITION = GENFSK_PB_PARTITION_PB_PARTITION(PB_RX); - /* Get warmpup times. They are used in TIFS calculations */ + /* Get warmup times. They are used in TIFS calculations */ rx_wu = (XCVR_TSM->END_OF_SEQ & XCVR_TSM_END_OF_SEQ_END_OF_RX_WU_MASK) >> XCVR_TSM_END_OF_SEQ_END_OF_RX_WU_SHIFT; tx_wu = (XCVR_TSM->END_OF_SEQ & XCVR_TSM_END_OF_SEQ_END_OF_TX_WU_MASK) @@ -740,7 +740,7 @@ void radio_pkt_configure(uint8_t bits_len, uint8_t max_len, uint8_t flags) GENFSK->H1_CFG |= GENFSK_H1_CFG_H1_MASK(0) | GENFSK_H1_CFG_H1_MATCH(0); - /* set Rx watermak to AA + PDU header */ + /* set Rx watermark to AA + PDU header */ GENFSK->RX_WATERMARK = GENFSK_RX_WATERMARK_RX_WATERMARK(RX_WTMRK); } diff --git a/subsys/bluetooth/controller/ll_sw/openisa/hal/cpu.h b/subsys/bluetooth/controller/ll_sw/openisa/hal/cpu.h index c317f6e226d..d00258fab1c 100644 --- a/subsys/bluetooth/controller/ll_sw/openisa/hal/cpu.h +++ b/subsys/bluetooth/controller/ll_sw/openisa/hal/cpu.h @@ -15,7 +15,7 @@ static inline void cpu_sleep(void) static inline void cpu_dmb(void) { /* FIXME: Add necessary host machine required Data Memory Barrier - * instruction alongwith the below defined compiler memory + * instruction along with the below defined compiler memory * clobber. */ __asm__ volatile ("" : : : "memory"); diff --git a/subsys/bluetooth/controller/ll_sw/pdu.h b/subsys/bluetooth/controller/ll_sw/pdu.h index cbbf18e8880..f8917cac02d 100644 --- a/subsys/bluetooth/controller/ll_sw/pdu.h +++ b/subsys/bluetooth/controller/ll_sw/pdu.h @@ -859,7 +859,7 @@ struct pdu_data { } __packed; /* Generic ISO pdu, could be CIS or BIS - * To be used when reffering to component withouth knowing CIS or BIS type + * To be used when referring to component without knowing CIS or BIS type */ struct pdu_iso { #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ diff --git a/subsys/bluetooth/controller/ll_sw/ull.c b/subsys/bluetooth/controller/ll_sw/ull.c index 368f9803db8..4fc19409914 100644 --- a/subsys/bluetooth/controller/ll_sw/ull.c +++ b/subsys/bluetooth/controller/ll_sw/ull.c @@ -296,7 +296,7 @@ static uint8_t MALIGN(4) ticker_users[MAYFLY_CALLER_COUNT][TICKER_USER_T_SIZE]; /* Memory for user/context simultaneous API operations */ static uint8_t MALIGN(4) ticker_user_ops[TICKER_USER_OPS][TICKER_USER_OP_T_SIZE]; -/* Semaphire to wakeup thread on ticker API callback */ +/* Semaphore to wakeup thread on ticker API callback */ static struct k_sem sem_ticker_api_cb; /* Semaphore to wakeup thread on Rx-ed objects */ diff --git a/subsys/bluetooth/controller/ll_sw/ull_adv.c b/subsys/bluetooth/controller/ll_sw/ull_adv.c index 7a0e18e154c..a1c17869117 100644 --- a/subsys/bluetooth/controller/ll_sw/ull_adv.c +++ b/subsys/bluetooth/controller/ll_sw/ull_adv.c @@ -1835,7 +1835,7 @@ static uint32_t ticker_update_rand(struct ll_adv_set *adv, uint32_t ticks_delay_ uint32_t ret; /* Get pseudo-random number in the range [0..ticks_delay_window]. - * Please note that using modulo of 2^32 samle space has an uneven + * Please note that using modulo of 2^32 sample space has an uneven * distribution, slightly favoring smaller values. */ lll_rand_isr_get(&random_delay, sizeof(random_delay)); diff --git a/subsys/bluetooth/controller/ll_sw/ull_adv_aux.c b/subsys/bluetooth/controller/ll_sw/ull_adv_aux.c index 9888862ef5b..c6f28b4f493 100644 --- a/subsys/bluetooth/controller/ll_sw/ull_adv_aux.c +++ b/subsys/bluetooth/controller/ll_sw/ull_adv_aux.c @@ -101,7 +101,7 @@ uint8_t ll_adv_aux_ad_data_set(uint8_t handle, uint8_t op, uint8_t frag_pref, /* op param definitions: * 0x00 - Intermediate fragment of fragmented extended advertising data * 0x01 - First fragment of fragmented extended advertising data - * 0x02 - Last fragemnt of fragemented extended advertising data + * 0x02 - Last fragment of fragmented extended advertising data * 0x03 - Complete extended advertising data * 0x04 - Unchanged data (just update the advertising data) * All other values, Reserved for future use diff --git a/subsys/bluetooth/controller/ll_sw/ull_adv_sync.c b/subsys/bluetooth/controller/ll_sw/ull_adv_sync.c index 7d42afc056b..4b36a64c0d7 100644 --- a/subsys/bluetooth/controller/ll_sw/ull_adv_sync.c +++ b/subsys/bluetooth/controller/ll_sw/ull_adv_sync.c @@ -793,7 +793,7 @@ uint32_t ull_adv_sync_time_get(const struct ll_adv_sync_set *sync, /* NOTE: 16-bit values are sufficient for minimum radio event time * reservation, 32-bit are used here so that reservations for - * whole back-to-back chaining of PDUs can be accomodated where + * whole back-to-back chaining of PDUs can be accommodated where * the required microseconds could overflow 16-bits, example, * back-to-back chained Coded PHY PDUs. */ @@ -1110,7 +1110,7 @@ uint8_t ull_adv_sync_pdu_alloc(struct ll_adv_set *adv, * * @param[in] lll_sync Reference to periodic advertising sync. * @param[in] ter_pdu_prev Pointer to previous PDU. - * @param[in] ter_pdu_ Pointer to PDU to fill fileds. + * @param[in] ter_pdu_ Pointer to PDU to fill fields. * @param[in] hdr_add_fields Flag with information which fields add. * @param[in] hdr_rem_fields Flag with information which fields remove. * @param[in] hdr_data Pointer to data to be added to header. Content @@ -1171,7 +1171,7 @@ uint8_t ull_adv_sync_pdu_set_clear(struct lll_adv_sync *lll_sync, ter_pdu->rx_addr = ter_pdu_prev->rx_addr; /* Get common pointers from current tertiary PDU data. - * It is possbile that the current tertiary is the same as + * It is possible that the current tertiary is the same as * previous one. It may happen if update periodic advertising * chain in place. */ diff --git a/subsys/bluetooth/controller/ll_sw/ull_conn_iso.c b/subsys/bluetooth/controller/ll_sw/ull_conn_iso.c index 13fd5d631b3..7d1c59895e4 100644 --- a/subsys/bluetooth/controller/ll_sw/ull_conn_iso.c +++ b/subsys/bluetooth/controller/ll_sw/ull_conn_iso.c @@ -279,10 +279,10 @@ void ull_conn_iso_done(struct node_rx_event_done *done) * has completed and the stream is released and callback is provided, the * cis_released_cb callback is invoked. * - * @param cis Pointer to connected ISO stream to stop - * @param cis_relased_cb Callback to invoke when the CIS has been released. - * NULL to ignore. - * @param reason Termination reason + * @param cis Pointer to connected ISO stream to stop + * @param cis_released_cb Callback to invoke when the CIS has been released. + * NULL to ignore. + * @param reason Termination reason */ void ull_conn_iso_cis_stop(struct ll_conn_iso_stream *cis, ll_iso_stream_released_cb_t cis_released_cb, diff --git a/subsys/bluetooth/controller/ll_sw/ull_iso_types.h b/subsys/bluetooth/controller/ll_sw/ull_iso_types.h index c56e940d6df..c2542858b3c 100644 --- a/subsys/bluetooth/controller/ll_sw/ull_iso_types.h +++ b/subsys/bluetooth/controller/ll_sw/ull_iso_types.h @@ -25,7 +25,7 @@ #define IS_CIS_HANDLE(_handle) 0 #endif /* CONFIG_BT_CTLR_CONN_ISO */ -/* Common memebers for ll_conn_iso_stream and ll_broadcast_iso_stream */ +/* Common members for ll_conn_iso_stream and ll_broadcast_iso_stream */ struct ll_iso_stream_hdr { struct ll_iso_datapath *datapath_in; struct ll_iso_datapath *datapath_out; diff --git a/subsys/bluetooth/controller/ll_sw/ull_llcp_conn_upd.c b/subsys/bluetooth/controller/ll_sw/ull_llcp_conn_upd.c index 7773d6cd958..f6dfeb0d2be 100644 --- a/subsys/bluetooth/controller/ll_sw/ull_llcp_conn_upd.c +++ b/subsys/bluetooth/controller/ll_sw/ull_llcp_conn_upd.c @@ -702,7 +702,7 @@ static void rp_cu_st_idle(struct ll_conn *conn, struct proc_ctx *ctx, uint8_t ev ctx->state = RP_CU_STATE_WAIT_RX_CONN_UPDATE_IND; break; default: - /* Unknown proceduce */ + /* Unknown procedure */ LL_ASSERT(0); break; } diff --git a/subsys/bluetooth/controller/ll_sw/ull_llcp_features.h b/subsys/bluetooth/controller/ll_sw/ull_llcp_features.h index 1786f93875e..a715ada5df4 100644 --- a/subsys/bluetooth/controller/ll_sw/ull_llcp_features.h +++ b/subsys/bluetooth/controller/ll_sw/ull_llcp_features.h @@ -118,7 +118,7 @@ static inline bool feature_phy_coded(struct ll_conn *conn) } /* - * for assymetric features we can check either if we support it + * for asymmetric features we can check either if we support it * or if the peer supports it */ static inline bool feature_smi_rx(struct ll_conn *conn) diff --git a/subsys/bluetooth/controller/ll_sw/ull_llcp_internal.h b/subsys/bluetooth/controller/ll_sw/ull_llcp_internal.h index 1a727da8be7..ebd7d5dd9aa 100644 --- a/subsys/bluetooth/controller/ll_sw/ull_llcp_internal.h +++ b/subsys/bluetooth/controller/ll_sw/ull_llcp_internal.h @@ -26,7 +26,7 @@ enum llcp_proc { PROC_CHAN_MAP_UPDATE, PROC_DATA_LENGTH_UPDATE, PROC_CTE_REQ, - /* A helper enum entry, to use in pause prcedure context */ + /* A helper enum entry, to use in pause procedure context */ PROC_NONE = 0x0, }; #if ((CONFIG_BT_CTLR_LLCP_COMMON_TX_CTRL_BUF_NUM <\ diff --git a/subsys/bluetooth/controller/ll_sw/ull_scan_internal.h b/subsys/bluetooth/controller/ll_sw/ull_scan_internal.h index a90aac5527e..b9a64a7dcc4 100644 --- a/subsys/bluetooth/controller/ll_sw/ull_scan_internal.h +++ b/subsys/bluetooth/controller/ll_sw/ull_scan_internal.h @@ -58,7 +58,7 @@ struct ll_scan_set *ull_scan_is_valid_get(struct ll_scan_set *scan); /* Return ll_scan_set context if enabled */ struct ll_scan_set *ull_scan_is_enabled_get(uint8_t handle); -/* Return ll_scan_set contesst if disabled */ +/* Return ll_scan_set context if disabled */ struct ll_scan_set *ull_scan_is_disabled_get(uint8_t handle); /* Return flags if enabled */ diff --git a/subsys/bluetooth/controller/ll_sw/ull_sync.c b/subsys/bluetooth/controller/ll_sw/ull_sync.c index 909873b2804..c951fadb96c 100644 --- a/subsys/bluetooth/controller/ll_sw/ull_sync.c +++ b/subsys/bluetooth/controller/ll_sw/ull_sync.c @@ -831,7 +831,7 @@ void ull_sync_established_report(memq_link_t *link, struct node_rx_hdr *rx) if (1) { #endif /* !CONFIG_BT_CTLR_SYNC_PERIODIC_CTE_TYPE_FILTERING */ - /* Switch sync event prepare function to one reposnsible for regular PDUs receive */ + /* Switch sync event prepare function to one responsible for regular PDUs receive */ sync->lll_sync_prepare = lll_sync_prepare; /* Change node type to appropriately handle periodic diff --git a/subsys/bluetooth/controller/ticker/ticker.c b/subsys/bluetooth/controller/ticker/ticker.c index 3af48b8e3b5..f17d9bd7fdd 100644 --- a/subsys/bluetooth/controller/ticker/ticker.c +++ b/subsys/bluetooth/controller/ticker/ticker.c @@ -142,7 +142,7 @@ struct ticker_user_op_start { */ struct ticker_user_op_update { uint32_t ticks_drift_plus; /* Requested positive drift in ticks */ - uint32_t ticks_drift_minus; /* Requested negatice drift in ticks */ + uint32_t ticks_drift_minus; /* Requested negative drift in ticks */ #if !defined(CONFIG_BT_TICKER_SLOT_AGNOSTIC) uint32_t ticks_slot_plus; /* Number of ticks to add to slot * reservation (air-time) @@ -832,7 +832,7 @@ static uint8_t ticker_resolve_collision(struct ticker_node *nodes, * @brief Ticker worker * * @details Runs as upper half of ticker operation, triggered by a compare - * match from the underlaying counter HAL, via the ticker_trigger function. + * match from the underlying counter HAL, via the ticker_trigger function. * Traverses ticker nodes to find tickers expired since last job * execution. Expired (requested) ticker nodes have their timeout callback * functions called. Finally, a ticker job is enqueued. Invoked from the @@ -1455,7 +1455,7 @@ static inline uint8_t ticker_job_list_manage(struct ticker_instance *instance, user_op, ticks_elapsed, insert_head); } else { - /* Update on expired node requested, defering + /* Update on expired node requested, deferring * update until bottom half finishes. */ /* sched job to run after worker bottom half. @@ -1601,7 +1601,7 @@ static inline void ticker_job_worker_bh(struct ticker_instance *instance, ticker->req = ticker->ack; } - /* Reload ticks_to_expire with atleast one + /* Reload ticks_to_expire with at least one * period. */ ticks_to_expire = 0U; @@ -2643,7 +2643,7 @@ void ticker_trigger(uint8_t instance_index) * @param ticks_anchor Absolute tick count as anchor point for * ticks_first * @param ticks_first Initial number of ticks before first timeout - * @param ticks_periodic Number of ticks for a peridic ticker node. If 0, + * @param ticks_periodic Number of ticks for a periodic ticker node. If 0, * ticker node is treated as one-shot * @param remainder_periodic Periodic ticks fraction * @param lazy Number of periods to skip (latency). A value of 1 @@ -3220,7 +3220,7 @@ uint32_t ticker_ticks_now_get(void) } /** - * @brief Get diffence between two tick counts + * @brief Get difference between two tick counts * * @details Subtract two counts and truncate to correct HW dependent counter * bit width diff --git a/subsys/bluetooth/controller/util/dbuf.h b/subsys/bluetooth/controller/util/dbuf.h index 04ebfd1eaad..8593b368d37 100644 --- a/subsys/bluetooth/controller/util/dbuf.h +++ b/subsys/bluetooth/controller/util/dbuf.h @@ -54,7 +54,7 @@ static inline void *dbuf_peek(struct dbuf_hdr *hdr) * @brief Enqueue new element for buffer swap. * * @param hdr Pointer to double buffer header. - * @param idx Intex of element to be swapped. + * @param idx Index of element to be swapped. */ static inline void dbuf_enqueue(struct dbuf_hdr *hdr, uint8_t idx) { @@ -68,17 +68,17 @@ static inline void dbuf_enqueue(struct dbuf_hdr *hdr, uint8_t idx) * If it points to a different index than member first, then buffer will be * swapped and @p is_modified will be set to true. * - * Pointer to lates element is returned. + * Pointer to latest element is returned. * * @param[in] hdr Pointer to double buffer header. - * @param[out] is_modifled Pointer to return information if buffer was swapped. + * @param[out] is_modified Pointer to return information if buffer was swapped. * * @return Pointer to latest enqueued buffer element. */ void *dbuf_latest_get(struct dbuf_hdr *hdr, uint8_t *is_modified); /** - * @brief Retruns pointer to the current element, the one after last swap operation. + * @brief Returns pointer to the current element, the one after last swap operation. * * The function provides access to element that is pointed by member first of dbuf_hrd. * Returned value always points to latest one, that was swapped after most recent call to diff --git a/subsys/bluetooth/controller/util/mfifo.h b/subsys/bluetooth/controller/util/mfifo.h index a4616f426e5..882fb6aa3db 100644 --- a/subsys/bluetooth/controller/util/mfifo.h +++ b/subsys/bluetooth/controller/util/mfifo.h @@ -304,7 +304,7 @@ static inline void *mfifo_dequeue_iter_get(uint8_t *fifo, uint8_t size, uint8_t /** * @brief Dequeue head-buffer from queue of buffers * - * @param fifo[in] Contigous memory holding the circular queue + * @param fifo[in] Contiguous memory holding the circular queue * @param size[in] Size of each buffer in circular queue * @param count[in] Number of buffers in circular queue * @param last[in] Tail index, Span: [0 .. count-1] diff --git a/subsys/bluetooth/host/Kconfig b/subsys/bluetooth/host/Kconfig index f2247f973ab..8814922abc2 100644 --- a/subsys/bluetooth/host/Kconfig +++ b/subsys/bluetooth/host/Kconfig @@ -181,7 +181,7 @@ config BT_WHITELIST config BT_FILTER_ACCEPT_LIST bool "Filter accept list support" help - This option enables the filter accep list API. This takes advantage of the + This option enables the filter accept list API. This takes advantage of the filtering feature of a BLE controller. The filter accept list is a global list and the same list is used by both scanner and advertiser. The filter accept list cannot be modified while @@ -194,7 +194,7 @@ config BT_FILTER_ACCEPT_LIST Connections can be established automatically for accepted peers. This options deprecates the bt_le_set_auto_conn API in favor of the - bt_conn_create_aute_le API. + bt_conn_create_auto_le API. config BT_LIM_ADV_TIMEOUT int "Timeout for limited advertising in 1s units" @@ -371,7 +371,7 @@ config BT_FIXED_PASSKEY help With this option enabled, the application will be able to call the bt_passkey_set() API to set a fixed passkey. If set, the - pairing_confim() callback will be called for all incoming pairings. + pairing_confirm() callback will be called for all incoming pairings. config BT_USE_DEBUG_KEYS bool "Security Manager Debug Mode" diff --git a/subsys/bluetooth/host/att.c b/subsys/bluetooth/host/att.c index 9673a1be82b..1a37cbc1d82 100644 --- a/subsys/bluetooth/host/att.c +++ b/subsys/bluetooth/host/att.c @@ -189,7 +189,7 @@ static int chan_send(struct bt_att_chan *chan, struct net_buf *buf, } /* bt_l2cap_chan_send does actually return the number of bytes - * that could be sent immediatelly. + * that could be sent immediately. */ err = bt_l2cap_chan_send(&chan->chan.chan, buf); if (err < 0) { @@ -1134,7 +1134,7 @@ static uint8_t read_type_cb(const struct bt_gatt_attr *attr, uint16_t handle, */ data->err = 0x00; - /* Fast foward to next item position */ + /* Fast forward to next item position */ data->item = net_buf_add(net_buf_frag_last(data->buf), sizeof(*data->item)); data->item->handle = sys_cpu_to_le16(handle); diff --git a/subsys/bluetooth/host/att_internal.h b/subsys/bluetooth/host/att_internal.h index a02fad0981e..4f6e13192c5 100644 --- a/subsys/bluetooth/host/att_internal.h +++ b/subsys/bluetooth/host/att_internal.h @@ -226,7 +226,7 @@ struct bt_att_read_mult_vl_req { uint16_t handles[0]; } __packed; -/* Read Multiple Respose */ +/* Read Multiple Response */ #define BT_ATT_OP_READ_MULT_VL_RSP 0x21 struct bt_att_read_mult_vl_rsp { uint16_t len; diff --git a/subsys/bluetooth/host/br.c b/subsys/bluetooth/host/br.c index b84ba2c642d..834cb04910c 100644 --- a/subsys/bluetooth/host/br.c +++ b/subsys/bluetooth/host/br.c @@ -321,7 +321,7 @@ static int request_name(const bt_addr_t *addr, uint8_t pscan, uint16_t offset) bt_addr_copy(&cp->bdaddr, addr); cp->pscan_rep_mode = pscan; - cp->reserved = 0x00; /* reserver, should be set to 0x00 */ + cp->reserved = 0x00; /* reserved, should be set to 0x00 */ cp->clock_offset = offset; return bt_hci_cmd_send_sync(BT_HCI_OP_REMOTE_NAME_REQUEST, buf, NULL); diff --git a/subsys/bluetooth/host/conn_internal.h b/subsys/bluetooth/host/conn_internal.h index 089ef3c880a..4966d6dea23 100644 --- a/subsys/bluetooth/host/conn_internal.h +++ b/subsys/bluetooth/host/conn_internal.h @@ -415,7 +415,7 @@ struct net_buf *bt_conn_create_frag_timeout(size_t reserve, /* Initialize connection management */ int bt_conn_init(void); -/* Selects based on connecton type right semaphore for ACL packets */ +/* Selects based on connection type right semaphore for ACL packets */ struct k_sem *bt_conn_get_pkts(struct bt_conn *conn); /* k_poll related helpers for the TX thread */ diff --git a/subsys/bluetooth/host/direction.c b/subsys/bluetooth/host/direction.c index b4f25d3809b..59601c3323a 100644 --- a/subsys/bluetooth/host/direction.c +++ b/subsys/bluetooth/host/direction.c @@ -148,13 +148,13 @@ static int hci_df_set_cl_cte_tx_params(const struct bt_le_ext_adv *adv, buf, NULL); } -/* @brief Function provides information about DF antennae numer and +/* @brief Function provides information about DF antennae number and * controller capabilities related with Constant Tone Extension. * * @param[out] switch_sample_rates Optional switching and sampling rates. * @param[out] num_ant Antennae number. * @param[out] max_switch_pattern_len Maximum supported antennae switching - * paterns length. + * patterns length. * @param[out] max_cte_len Maximum length of CTE in 8[us] units. * * @return Zero in case of success, other value in case of failure. @@ -195,7 +195,7 @@ static int hci_df_read_ant_info(uint8_t *switch_sample_rates, return 0; } -/* @brief Function handles send of HCI commnad to enable or disables CTE +/* @brief Function handles send of HCI command to enable or disables CTE * transmission for given advertising set. * * @param[in] adv Pointer to advertising set diff --git a/subsys/bluetooth/host/gatt.c b/subsys/bluetooth/host/gatt.c index 6233c28101e..5a695cee47e 100644 --- a/subsys/bluetooth/host/gatt.c +++ b/subsys/bluetooth/host/gatt.c @@ -1932,7 +1932,7 @@ ssize_t bt_gatt_attr_write_ccc(struct bt_conn *conn, if (!cfg) { /* If there's no existing entry, but the new value is zero, * we don't need to do anything, since a disabled CCC is - * behavioraly the same as no written CCC. + * behaviorally the same as no written CCC. */ if (!value) { return len; diff --git a/subsys/bluetooth/host/hci_core.c b/subsys/bluetooth/host/hci_core.c index 8be0331152f..2236c032772 100644 --- a/subsys/bluetooth/host/hci_core.c +++ b/subsys/bluetooth/host/hci_core.c @@ -2796,7 +2796,7 @@ static int le_init_iso(void) int err; struct net_buf *rsp; - /* Set Isochronus Channels - Host support */ + /* Set Isochronous Channels - Host support */ err = le_set_host_feature(BT_LE_FEAT_BIT_ISO_CHANNELS, 1); if (err) { return err; diff --git a/subsys/bluetooth/host/hfp_hf.c b/subsys/bluetooth/host/hfp_hf.c index dfe6d01408f..f2b7f7e4cce 100644 --- a/subsys/bluetooth/host/hfp_hf.c +++ b/subsys/bluetooth/host/hfp_hf.c @@ -47,7 +47,7 @@ static const struct { {"call", 0, 1}, /* HF_CALL_IND */ {"callsetup", 0, 3}, /* HF_CALL_SETUP_IND */ {"callheld", 0, 2}, /* HF_CALL_HELD_IND */ - {"signal", 0, 5}, /* HF_SINGNAL_IND */ + {"signal", 0, 5}, /* HF_SIGNAL_IND */ {"roam", 0, 1}, /* HF_ROAM_IND */ {"battchg", 0, 5} /* HF_BATTERY_IND */ }; diff --git a/subsys/bluetooth/host/hfp_internal.h b/subsys/bluetooth/host/hfp_internal.h index 42448b4a84d..100e82de424 100644 --- a/subsys/bluetooth/host/hfp_internal.h +++ b/subsys/bluetooth/host/hfp_internal.h @@ -20,7 +20,7 @@ #define BT_HFP_AG_FEATURE_REJECT_CALL 0x00000020 /* Ability to reject call */ #define BT_HFP_AG_FEATURE_ECS 0x00000040 /* Enhanced call status */ #define BT_HFP_AG_FEATURE_ECC 0x00000080 /* Enhanced call control */ -#define BT_HFP_AG_FEATURE_EXT_ERR 0x00000100 /* Extented error codes */ +#define BT_HFP_AG_FEATURE_EXT_ERR 0x00000100 /* Extended error codes */ #define BT_HFP_AG_FEATURE_CODEC_NEG 0x00000200 /* Codec negotiation */ #define BT_HFP_AG_FEATURE_HF_IND 0x00000400 /* HF Indicators */ #define BT_HFP_AG_FEARTURE_ESCO_S4 0x00000800 /* eSCO S4 Settings */ diff --git a/subsys/bluetooth/host/id.c b/subsys/bluetooth/host/id.c index abdff24d537..9752f573998 100644 --- a/subsys/bluetooth/host/id.c +++ b/subsys/bluetooth/host/id.c @@ -507,7 +507,7 @@ bool bt_id_scan_random_addr_check(void) * valid and only updated on RPA timeout. */ if (IS_ENABLED(CONFIG_BT_PRIVACY)) { - /* Cannot start scannor or initiator if the random address is + /* Cannot start scanner or initiator if the random address is * used by the advertiser for an RPA with a different identity * or for a random static identity address. */ diff --git a/subsys/bluetooth/host/keys_br.c b/subsys/bluetooth/host/keys_br.c index 6fd0eabbba9..4bb9f21162e 100644 --- a/subsys/bluetooth/host/keys_br.c +++ b/subsys/bluetooth/host/keys_br.c @@ -144,7 +144,7 @@ void bt_keys_link_key_store(struct bt_keys_link_key *link_key) err = settings_save_one(key, link_key->storage_start, BT_KEYS_LINK_KEY_STORAGE_LEN); if (err) { - BT_ERR("Failed to svae link key (err %d)", err); + BT_ERR("Failed to save link key (err %d)", err); } } } diff --git a/subsys/bluetooth/host/l2cap.c b/subsys/bluetooth/host/l2cap.c index 08b610f4c60..8f635cfbb53 100644 --- a/subsys/bluetooth/host/l2cap.c +++ b/subsys/bluetooth/host/l2cap.c @@ -2548,7 +2548,7 @@ static void l2cap_disconnected(struct bt_l2cap_chan *chan) BT_L2CAP_LE_CHAN(chan)->rx.cid); /* Cancel RTX work on signal channel. - * Disconnected callback is always called from system worqueue + * Disconnected callback is always called from system workqueue * so this should always succeed. */ (void)k_work_cancel_delayable(&chan->rtx_work); diff --git a/subsys/bluetooth/host/l2cap_br.c b/subsys/bluetooth/host/l2cap_br.c index acef7c0fefd..6baf050616a 100644 --- a/subsys/bluetooth/host/l2cap_br.c +++ b/subsys/bluetooth/host/l2cap_br.c @@ -1022,7 +1022,7 @@ send_rsp: rsp->scid = sys_cpu_to_le16(BR_CHAN(chan)->tx.cid); /* - * TODO: If options other than MTU bacame meaningful then processing + * TODO: If options other than MTU became meaningful then processing * the options chain need to be modified and taken into account when * sending back to peer. */ @@ -1135,7 +1135,7 @@ static void l2cap_br_disconnected(struct bt_l2cap_chan *chan) if (atomic_test_and_clear_bit(BR_CHAN(chan)->flags, L2CAP_FLAG_SIG_INFO_PENDING)) { /* Cancel RTX work on signal channel. - * Disconnected callback is always called from system worqueue + * Disconnected callback is always called from system workqueue * so this should always succeed. */ (void)k_work_cancel_delayable(&chan->rtx_work); diff --git a/subsys/bluetooth/host/l2cap_internal.h b/subsys/bluetooth/host/l2cap_internal.h index cd018e5655a..0bc7156066d 100644 --- a/subsys/bluetooth/host/l2cap_internal.h +++ b/subsys/bluetooth/host/l2cap_internal.h @@ -55,7 +55,7 @@ struct bt_l2cap_conn_req { uint16_t scid; } __packed; -/* command statuses in reposnse */ +/* command statuses in response */ #define BT_L2CAP_CS_NO_INFO 0x0000 #define BT_L2CAP_CS_AUTHEN_PEND 0x0001 diff --git a/subsys/bluetooth/host/rfcomm.c b/subsys/bluetooth/host/rfcomm.c index 0853c90f430..9253fe43838 100644 --- a/subsys/bluetooth/host/rfcomm.c +++ b/subsys/bluetooth/host/rfcomm.c @@ -782,7 +782,7 @@ static enum security_result rfcomm_dlc_security(struct bt_rfcomm_dlc *dlc) /* If current security level is greater than or equal to required * security level then return SUCCESS. - * For SSP devices the current security will be atleast MEDIUM + * For SSP devices the current security will be at least MEDIUM * since L2CAP is enforcing it */ if (conn->sec_level >= dlc->required_sec_level) { diff --git a/subsys/bluetooth/host/sdp.c b/subsys/bluetooth/host/sdp.c index a543fcba050..d9675aec628 100644 --- a/subsys/bluetooth/host/sdp.c +++ b/subsys/bluetooth/host/sdp.c @@ -1694,7 +1694,7 @@ static void sdp_client_notify_result(struct bt_sdp_client *session, /* * Set user internal result buffer length as same as record * length to fake user. User will see the individual record - * length as rec_len insted of whole session rec_buf length. + * length as rec_len instead of whole session rec_buf length. */ result.resp_buf->len = rec_len; diff --git a/subsys/bluetooth/mesh/Kconfig b/subsys/bluetooth/mesh/Kconfig index 6aba6d98c8d..4fae4c0456f 100644 --- a/subsys/bluetooth/mesh/Kconfig +++ b/subsys/bluetooth/mesh/Kconfig @@ -215,7 +215,7 @@ endif # BT_CONN config BT_MESH_ACCESS_LAYER_MSG bool "Direct Bluetooth message access layer messages" help - This option allows the applicaiton to directly access + This option allows the application to directly access Bluetooth access layer messages without the need to instantiate Bluetooth mesh models. @@ -413,7 +413,7 @@ config BT_MESH_TX_SEG_MSG_COUNT Maximum number of simultaneous outgoing multi-segment and/or reliable messages. - Note that: Since Mesh Segmentation/reassemblying is a mandatory + Note that: Since Mesh Segmentation/reassembling is a mandatory feature of specification, set to zero will not allow send any Mesh Segment message. diff --git a/subsys/bluetooth/mesh/access.h b/subsys/bluetooth/mesh/access.h index 592ae43024f..6cac66c40b3 100644 --- a/subsys/bluetooth/mesh/access.h +++ b/subsys/bluetooth/mesh/access.h @@ -56,7 +56,7 @@ void bt_mesh_model_settings_commit(void); /** @brief Register a callback function hook for mesh model messages. * - * Register a callback function to act as a hook for recieving mesh model layer messages + * Register a callback function to act as a hook for receiving mesh model layer messages * directly to the application without having instantiated the relevant models. * * @param cb A pointer to the callback function. diff --git a/subsys/bluetooth/mesh/app_keys.c b/subsys/bluetooth/mesh/app_keys.c index 119e1ed8137..96ef2b6dbec 100644 --- a/subsys/bluetooth/mesh/app_keys.c +++ b/subsys/bluetooth/mesh/app_keys.c @@ -27,7 +27,7 @@ /* Tracking of what storage changes are pending for App Keys. We track this in * a separate array here instead of within the respective bt_mesh_app_key - * struct itselve, since once a key gets deleted its struct becomes invalid + * struct itself, since once a key gets deleted its struct becomes invalid * and may be reused for other keys. */ struct app_key_update { diff --git a/subsys/bluetooth/mesh/beacon.c b/subsys/bluetooth/mesh/beacon.c index 4cc7c66af00..582ef6c4c5f 100644 --- a/subsys/bluetooth/mesh/beacon.c +++ b/subsys/bluetooth/mesh/beacon.c @@ -229,7 +229,7 @@ static void update_beacon_observation(void) /* Observation period is 20 seconds, whereas the beacon timer * runs every 10 seconds. We process what's happened during the - * window only after the seconnd half. + * window only after the second half. */ first_half = !first_half; if (first_half) { diff --git a/subsys/bluetooth/mesh/lpn.c b/subsys/bluetooth/mesh/lpn.c index d0b77df0399..786924ca82d 100644 --- a/subsys/bluetooth/mesh/lpn.c +++ b/subsys/bluetooth/mesh/lpn.c @@ -377,7 +377,7 @@ static void req_sent(uint16_t duration, int err, void *user_data) if (lpn->established || IS_ENABLED(CONFIG_BT_MESH_LPN_ESTABLISHMENT)) { lpn_set_state(BT_MESH_LPN_RECV_DELAY); - /* We start scanning a bit early to elimitate risk of missing + /* We start scanning a bit early to eliminate risk of missing * response data due to HCI and other latencies. */ k_work_reschedule(&lpn->timer, @@ -530,7 +530,7 @@ void bt_mesh_lpn_msg_received(struct bt_mesh_net_rx *rx) } if (lpn->sent_req != TRANS_CTL_OP_FRIEND_POLL) { - BT_WARN("Unexpected message withouth a preceding Poll"); + BT_WARN("Unexpected message without a preceding Poll"); return; } diff --git a/subsys/bluetooth/mesh/pb_adv.c b/subsys/bluetooth/mesh/pb_adv.c index ac8862b3b17..5bebd4d3c24 100644 --- a/subsys/bluetooth/mesh/pb_adv.c +++ b/subsys/bluetooth/mesh/pb_adv.c @@ -874,7 +874,7 @@ static int prov_link_accept(const struct prov_bearer_cb *cb, void *cb_data) link.cb = cb; link.cb_data = cb_data; - /* Make sure we're scanning for provisioning inviations */ + /* Make sure we're scanning for provisioning invitations */ bt_mesh_scan_enable(); /* Enable unprovisioned beacon sending */ bt_mesh_beacon_enable(); diff --git a/subsys/bluetooth/mesh/prov_device.c b/subsys/bluetooth/mesh/prov_device.c index 15a4ce6f629..614106e3e27 100644 --- a/subsys/bluetooth/mesh/prov_device.c +++ b/subsys/bluetooth/mesh/prov_device.c @@ -92,7 +92,7 @@ static void prov_invite(const uint8_t *data) /* Number of Elements supported */ net_buf_simple_add_u8(&buf, bt_mesh_elem_count()); - /* Supported algorithms - FIPS P-256 Eliptic Curve */ + /* Supported algorithms - FIPS P-256 Elliptic Curve */ net_buf_simple_add_be16(&buf, BIT(PROV_ALG_P256)); /* Public Key Type */ diff --git a/subsys/bluetooth/mesh/subnet.c b/subsys/bluetooth/mesh/subnet.c index 82d277552d8..45e54346868 100644 --- a/subsys/bluetooth/mesh/subnet.c +++ b/subsys/bluetooth/mesh/subnet.c @@ -41,7 +41,7 @@ /* Tracking of what storage changes are pending for Net Keys. We track this in * a separate array here instead of within the respective bt_mesh_subnet - * struct itselve, since once a key gets deleted its struct becomes invalid + * struct itself, since once a key gets deleted its struct becomes invalid * and may be reused for other keys. */ struct net_key_update { diff --git a/subsys/bluetooth/mesh/subnet.h b/subsys/bluetooth/mesh/subnet.h index 0e0fbe05d5f..e8d226c6543 100644 --- a/subsys/bluetooth/mesh/subnet.h +++ b/subsys/bluetooth/mesh/subnet.h @@ -40,7 +40,7 @@ struct bt_mesh_subnet { uint8_t beacons_last; /* Number of beacons during last * observation window */ - uint8_t beacons_cur; /* Number of beaconds observed during + uint8_t beacons_cur; /* Number of beacons observed during * currently ongoing window. */ diff --git a/subsys/bluetooth/mesh/transport.c b/subsys/bluetooth/mesh/transport.c index fa06eb5ee47..619d3498a22 100644 --- a/subsys/bluetooth/mesh/transport.c +++ b/subsys/bluetooth/mesh/transport.c @@ -1422,7 +1422,7 @@ static int trans_seg(struct net_buf_simple *buf, struct bt_mesh_net_rx *net_rx, /* Look for free slot for a new RX session */ rx = seg_rx_alloc(net_rx, hdr, seq_auth, seg_n); if (!rx) { - /* Warn but don't cancel since the existing slots willl + /* Warn but don't cancel since the existing slots will * eventually be freed up and we'll be able to process * this one. */ diff --git a/subsys/bluetooth/services/ots/ots_l2cap_internal.h b/subsys/bluetooth/services/ots/ots_l2cap_internal.h index 2808c8e8524..bf6a1cff497 100644 --- a/subsys/bluetooth/services/ots/ots_l2cap_internal.h +++ b/subsys/bluetooth/services/ots/ots_l2cap_internal.h @@ -49,7 +49,7 @@ int bt_gatt_ots_l2cap_unregister(struct bt_gatt_ots_l2cap *l2cap_ctx); /** @brief Connect OTS L2CAP channel * * This function is for the OTS client to make an L2CAP connection to - * the OTS server. One of the availalable registered L2CAP contexts + * the OTS server. One of the available registered L2CAP contexts * will be used for the connection. * * @param[in] conn Connection pointer diff --git a/subsys/bluetooth/shell/l2cap.c b/subsys/bluetooth/shell/l2cap.c index 44c0850df9f..e6566bfefbb 100644 --- a/subsys/bluetooth/shell/l2cap.c +++ b/subsys/bluetooth/shell/l2cap.c @@ -440,7 +440,7 @@ SHELL_STATIC_SUBCMD_SET_CREATE(l2cap_cmds, SHELL_CMD_ARG(connect, NULL, " [sec_level]", cmd_connect, 2, 1), SHELL_CMD_ARG(disconnect, NULL, HELP_NONE, cmd_disconnect, 1, 0), SHELL_CMD_ARG(metrics, NULL, "", cmd_metrics, 2, 0), - SHELL_CMD_ARG(recv, NULL, "[delay (in miliseconds)", cmd_recv, 1, 1), + SHELL_CMD_ARG(recv, NULL, "[delay (in milliseconds)", cmd_recv, 1, 1), SHELL_CMD_ARG(register, NULL, " [sec_level] " "[policy: allowlist, 16byte_key]", cmd_register, 2, 2), SHELL_CMD_ARG(send, NULL, "[number of packets] [length of packet(s)]", diff --git a/subsys/canbus/isotp/isotp.c b/subsys/canbus/isotp/isotp.c index 304cb952a5b..117daf4946c 100644 --- a/subsys/canbus/isotp/isotp.c +++ b/subsys/canbus/isotp/isotp.c @@ -487,7 +487,7 @@ static void process_cf(struct isotp_recv_ctx *ctx, struct zcan_frame *frame) K_MSEC(ISOTP_CR)); if ((frame->data[index++] & ISOTP_PCI_SN_MASK) != ctx->sn_expected++) { - LOG_ERR("Sequence number missmatch"); + LOG_ERR("Sequence number mismatch"); receive_report_error(ctx, ISOTP_N_WRONG_SN); k_work_submit(&ctx->work); return; @@ -923,7 +923,7 @@ static inline int send_ff(struct isotp_send_ctx *ctx) } /* According to ISO FF has sn 0 and is incremented to one - * alltough it's not part of the FF frame + * although it's not part of the FF frame */ ctx->sn = 1; data = get_data_ctx(ctx); diff --git a/subsys/debug/Kconfig b/subsys/debug/Kconfig index 008f8a613de..63a6bdc54fb 100644 --- a/subsys/debug/Kconfig +++ b/subsys/debug/Kconfig @@ -295,7 +295,7 @@ config OMIT_FRAME_POINTER depends on OVERRIDE_FRAME_POINTER_DEFAULT help Choose Y for best performance. On some architectures (including x86) - this will favor code size and performance over debugability. + this will favor code size and performance over debuggability. Choose N in you wish to retain the frame pointer. This option may be useful if your application uses runtime backtracing and does not diff --git a/subsys/debug/gdbstub.c b/subsys/debug/gdbstub.c index 2eacc2a0f68..1f772112959 100644 --- a/subsys/debug/gdbstub.c +++ b/subsys/debug/gdbstub.c @@ -724,7 +724,7 @@ int z_gdb_main_loop(struct gdb_ctx *ctx) /** * Write the value of the CPU registers - * Fromat: G XX... + * Format: G XX... */ case 'G': pkt_len = arch_gdb_reg_writeall(ctx, ptr, pkt_len - 1); diff --git a/subsys/disk/disk_access.c b/subsys/disk/disk_access.c index 02b708aa82a..9e4ec3a8c8c 100644 --- a/subsys/disk/disk_access.c +++ b/subsys/disk/disk_access.c @@ -139,7 +139,7 @@ int disk_access_register(struct disk_info *disk) /* append to the disk list */ sys_dlist_append(&disk_access_list, &disk->node); - LOG_DBG("disk interface(%s) registred", disk->name); + LOG_DBG("disk interface(%s) registered", disk->name); reg_err: k_mutex_unlock(&mutex); return rc; @@ -163,7 +163,7 @@ int disk_access_unregister(struct disk_info *disk) } /* remove disk node from the list */ sys_dlist_remove(&disk->node); - LOG_DBG("disk interface(%s) unregistred", disk->name); + LOG_DBG("disk interface(%s) unregistered", disk->name); unreg_err: k_mutex_unlock(&mutex); return rc; diff --git a/subsys/emul/emul_bmi160.c b/subsys/emul/emul_bmi160.c index 08b1aeda125..a473a92cb00 100644 --- a/subsys/emul/emul_bmi160.c +++ b/subsys/emul/emul_bmi160.c @@ -3,7 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 * - * Emulator for the Boche BMI160 accelerometer / gyro. This supports basic + * Emulator for the Bosch BMI160 accelerometer / gyro. This supports basic * init and reading of canned samples. It supports both I2C and SPI buses. */ @@ -58,7 +58,7 @@ static void sample_read(struct bmi160_emul_data *data, union bmi160_sample *buf) { /* * Use hard-coded scales to get values just above 0, 1, 2 and - * 3, 4, 5. Values are stored in little endianess. + * 3, 4, 5. Values are stored in little endianness. * gyr[x] = 0x0b01 // 3 * 1000000 / BMI160_GYR_SCALE(2000) + 1 * gyr[y] = 0x0eac // 4 * 1000000 / BMI160_GYR_SCALE(2000) + 1 * gyr[z] = 0x1257 // 5 * 1000000 / BMI160_GYR_SCALE(2000) + 1 diff --git a/subsys/fb/cfb.c b/subsys/fb/cfb.c index ea5691a4498..6bcee7a63c6 100644 --- a/subsys/fb/cfb.c +++ b/subsys/fb/cfb.c @@ -57,7 +57,7 @@ struct char_framebuffer { /** Font kerning */ int8_t kerning; - /** Invertedj*/ + /** Inverted */ bool inverted; }; diff --git a/subsys/fs/nvs/nvs.c b/subsys/fs/nvs/nvs.c index 9abde874fd3..48e7f2fb6ab 100644 --- a/subsys/fs/nvs/nvs.c +++ b/subsys/fs/nvs/nvs.c @@ -353,7 +353,7 @@ static int nvs_flash_wrt_entry(struct nvs_fs *fs, uint16_t id, const void *data, /* end of flash routines */ /* If the closing ate is invalid, its offset cannot be trusted and - * the last valod ate of the sector should instead try to be recovered by going + * the last valid ate of the sector should instead try to be recovered by going * through all ate's. * * addr should point to the faulty closing ate and will be updated to the last @@ -714,7 +714,7 @@ static int nvs_startup(struct nvs_fs *fs) */ fs->data_wra += nvs_al_size(fs, last_ate.offset + last_ate.len); - /* ate on the last possition within the sector is + /* ate on the last position within the sector is * reserved for deletion an entry */ if (fs->ate_wra == fs->data_wra && last_ate.len) { diff --git a/subsys/logging/Kconfig.backends b/subsys/logging/Kconfig.backends index 6d0c0c2a80f..f4fb9f35528 100644 --- a/subsys/logging/Kconfig.backends +++ b/subsys/logging/Kconfig.backends @@ -191,9 +191,9 @@ config LOG_BACKEND_SPINEL depends on NET_L2_OPENTHREAD help When enabled, backend will use OpenThread dedicated SPINEL protocol for logging. - This protocol is byte oriented and wrapps given messages into serial frames. + This protocol is byte oriented and wraps given messages into serial frames. Backend should be enabled only to OpenThread purposes and when UART backend is disabled - or works on antoher UART device to avoid interference. + or works on another UART device to avoid interference. if LOG_BACKEND_SPINEL diff --git a/subsys/mgmt/ec_host_cmd/ec_host_cmd_handler.c b/subsys/mgmt/ec_host_cmd/ec_host_cmd_handler.c index 1bab0941622..b07b9d0a4e4 100644 --- a/subsys/mgmt/ec_host_cmd/ec_host_cmd_handler.c +++ b/subsys/mgmt/ec_host_cmd/ec_host_cmd_handler.c @@ -68,7 +68,7 @@ static void handle_host_cmds_entry(void *arg1, void *arg2, void *arg3) */ k_sem_give(rx.dev_owns); - /* Wait until and RX messages is received on host interace */ + /* Wait until and RX messages is received on host interface */ if (k_sem_take(rx.handler_owns, K_FOREVER) < 0) { /* This code path should never occur due to the nature of * k_sem_take with K_FOREVER diff --git a/subsys/mgmt/hawkbit/hawkbit_device.h b/subsys/mgmt/hawkbit/hawkbit_device.h index 290cdeed6c7..0018d0584cd 100644 --- a/subsys/mgmt/hawkbit/hawkbit_device.h +++ b/subsys/mgmt/hawkbit/hawkbit_device.h @@ -1,7 +1,7 @@ /* * Copyright (c) 2020 Linumiz * - * SPDX-License-Identiier: Apache-2.0 + * SPDX-License-Identifier: Apache-2.0 */ #ifndef __HAWKBIT_DEVICE_H__ diff --git a/subsys/mgmt/mcumgr/Kconfig b/subsys/mgmt/mcumgr/Kconfig index a9648fccea2..2e1037f75b6 100644 --- a/subsys/mgmt/mcumgr/Kconfig +++ b/subsys/mgmt/mcumgr/Kconfig @@ -196,7 +196,7 @@ config IMG_MGMT_DIRECT_IMAGE_UPLOAD (two DTS images for Zephyr); this allows to treat every DTS defined image as direct target for upload, and more than two may be used (4 at this time). NOTE: When direct upload is used the image numbers are shifted by + 1, and the default - behaviour is, when image is not selected, to upload to image that represents secndary + behaviour is, when image is not selected, to upload to image that represents secondary slot in normal operation. config IMG_MGMT_REJECT_DIRECT_XIP_MISMATCHED_SLOT diff --git a/subsys/mgmt/mcumgr/lib/cmd/img_mgmt/include/img_mgmt/img_mgmt_impl.h b/subsys/mgmt/mcumgr/lib/cmd/img_mgmt/include/img_mgmt/img_mgmt_impl.h index be04a6ab1c5..594d8fa1567 100644 --- a/subsys/mgmt/mcumgr/lib/cmd/img_mgmt/include/img_mgmt/img_mgmt_impl.h +++ b/subsys/mgmt/mcumgr/lib/cmd/img_mgmt/include/img_mgmt/img_mgmt_impl.h @@ -55,7 +55,7 @@ int img_mgmt_impl_write_confirmed(void); * @param slot The index of the slot to read from. * @param offset The offset within the slot to read from. * @param dst On success, the read data gets written here. - * @param num_bytes The number of byets to read. + * @param num_bytes The number of bytes to read. * * @return 0 on success, MGMT_ERR_[...] code on failure. */ diff --git a/subsys/mgmt/mcumgr/lib/cmd/img_mgmt/src/img_mgmt_state.c b/subsys/mgmt/mcumgr/lib/cmd/img_mgmt/src/img_mgmt_state.c index 85a4af1c6d7..f67ddbd36a3 100644 --- a/subsys/mgmt/mcumgr/lib/cmd/img_mgmt/src/img_mgmt_state.c +++ b/subsys/mgmt/mcumgr/lib/cmd/img_mgmt/src/img_mgmt_state.c @@ -114,7 +114,7 @@ img_mgmt_state_set_pending(int slot, int permanent) state_flags = img_mgmt_state_flags(slot); - /* Unconfirmed slots are always runable. A confirmed slot can only be + /* Unconfirmed slots are always runnable. A confirmed slot can only be * run if it is a loader in a split image setup. */ if (state_flags & IMG_MGMT_STATE_F_CONFIRMED && slot != 0) { diff --git a/subsys/mgmt/mcumgr/lib/cmd/shell_mgmt/include/shell_mgmt/shell_mgmt_impl.h b/subsys/mgmt/mcumgr/lib/cmd/shell_mgmt/include/shell_mgmt/shell_mgmt_impl.h index 1d545e24280..970599b452a 100644 --- a/subsys/mgmt/mcumgr/lib/cmd/shell_mgmt/include/shell_mgmt/shell_mgmt_impl.h +++ b/subsys/mgmt/mcumgr/lib/cmd/shell_mgmt/include/shell_mgmt/shell_mgmt_impl.h @@ -22,7 +22,7 @@ extern "C" { * @brief Execute `line` as a shell command * * @param line : shell command to be executed - * @return int : 0 on success, -errno otherwire + * @return int : 0 on success, -errno otherwise */ int shell_mgmt_impl_exec(const char *line); diff --git a/subsys/mgmt/mcumgr/lib/transport/smp-bluetooth.md b/subsys/mgmt/mcumgr/lib/transport/smp-bluetooth.md index 029d995f048..17c4dd9fa9b 100644 --- a/subsys/mgmt/mcumgr/lib/transport/smp-bluetooth.md +++ b/subsys/mgmt/mcumgr/lib/transport/smp-bluetooth.md @@ -1,6 +1,6 @@ # SMP over Bluetooth -This document specifies how the mcumgr Simple Management Procotol (SMP) is +This document specifies how the mcumgr Simple Management Protocol (SMP) is transmitted over Bluetooth. ## Overview diff --git a/subsys/mgmt/mcumgr/lib/transport/smp-console.md b/subsys/mgmt/mcumgr/lib/transport/smp-console.md index 0b12f3c8d56..46320bf30ba 100644 --- a/subsys/mgmt/mcumgr/lib/transport/smp-console.md +++ b/subsys/mgmt/mcumgr/lib/transport/smp-console.md @@ -1,6 +1,6 @@ # SMP over console -This document specifies how the mcumgr Simple Management Procotol (SMP) is +This document specifies how the mcumgr Simple Management Protocol (SMP) is transmitted over text consoles. ## Overview diff --git a/subsys/mgmt/mcumgr/smp.c b/subsys/mgmt/mcumgr/smp.c index 760e249a9df..1abaf2d5a58 100644 --- a/subsys/mgmt/mcumgr/smp.c +++ b/subsys/mgmt/mcumgr/smp.c @@ -56,7 +56,7 @@ zephyr_smp_trim_front(void *buf, size_t len, void *arg) /** * Splits an appropriately-sized fragment from the front of a net_buf, as - * neeeded. If the length of the net_buf is greater than specified maximum + * needed. If the length of the net_buf is greater than specified maximum * fragment size, a new net_buf is allocated, and data is moved from the source * net_buf to the new net_buf. If the net_buf is small enough to fit in a * single fragment, the source net_buf is returned unmodified, and the supplied diff --git a/subsys/mgmt/osdp/src/osdp_pd.c b/subsys/mgmt/osdp/src/osdp_pd.c index 8c89b1e7310..4dacf0c7b0d 100644 --- a/subsys/mgmt/osdp/src/osdp_pd.c +++ b/subsys/mgmt/osdp/src/osdp_pd.c @@ -50,7 +50,7 @@ static struct osdp_pd_id osdp_pd_id = { }; static struct osdp_pd_cap osdp_pd_cap[] = { - /* Driver Implicit cababilities */ + /* Driver Implicit capabilities */ { OSDP_PD_CAP_CHECK_CHARACTER_SUPPORT, 1, /* The PD supports the 16-bit CRC-16 mode */ @@ -510,7 +510,7 @@ static int pd_build_reply(struct osdp_pd *pd, uint8_t *buf, int max_len) break; case REPLY_NAK: if (max_len < REPLY_NAK_LEN) { - LOG_ERR(TAG "Fatal: insufficent space for sending NAK"); + LOG_ERR(TAG "Fatal: insufficient space for sending NAK"); return -1; } buf[len++] = pd->reply_id; @@ -585,10 +585,10 @@ static int pd_build_reply(struct osdp_pd *pd, uint8_t *buf, int max_len) if (ret != 0) { /* catch all errors and report it as a RECORD error to CP */ - LOG_ERR(TAG "ReplyID unknown or insufficent space or some other" + LOG_ERR(TAG "ReplyID unknown or insufficient space or some other" "error. Sending NAK"); if (max_len < REPLY_NAK_LEN) { - LOG_ERR(TAG "Fatal: insufficent space for sending NAK"); + LOG_ERR(TAG "Fatal: insufficient space for sending NAK"); return -1; } buf[0] = REPLY_NAK; diff --git a/subsys/mgmt/updatehub/include/updatehub.h b/subsys/mgmt/updatehub/include/updatehub.h index f190b40c1a0..1cbf3889177 100644 --- a/subsys/mgmt/updatehub/include/updatehub.h +++ b/subsys/mgmt/updatehub/include/updatehub.h @@ -65,7 +65,7 @@ enum updatehub_response updatehub_probe(void); * @return UPDATEHUB_NETWORKING_ERROR if fail to connect to the server. * @return UPDATEHUB_DOWNLOAD_ERROR fail while downloading the update package. * @return UPDATEHUB_INSTALL_ERROR fail while installing the update package. - * @return UPDATEHUB_FLASH_INIT_ERROR fail to initilialize the flash. + * @return UPDATEHUB_FLASH_INIT_ERROR fail to initialize the flash. */ enum updatehub_response updatehub_update(void); diff --git a/subsys/mgmt/updatehub/updatehub_priv.h b/subsys/mgmt/updatehub/updatehub_priv.h index 5973d93bacc..ebfedcbb02a 100644 --- a/subsys/mgmt/updatehub/updatehub_priv.h +++ b/subsys/mgmt/updatehub/updatehub_priv.h @@ -45,7 +45,7 @@ static char *updatehub_response(enum updatehub_response response) case UPDATEHUB_INSTALL_ERROR: return "Fail while installing the update package"; case UPDATEHUB_FLASH_INIT_ERROR: - return "Fail to initilialize the flash"; + return "Fail to initialize the flash"; case UPDATEHUB_NO_UPDATE: return "No update available"; default: diff --git a/subsys/modbus/modbus_core.c b/subsys/modbus/modbus_core.c index 9bc679b2d69..481be5b871b 100644 --- a/subsys/modbus/modbus_core.c +++ b/subsys/modbus/modbus_core.c @@ -204,7 +204,7 @@ static struct modbus_context *modbus_init_iface(const uint8_t iface) ctx = &mb_ctx_tbl[iface]; if (atomic_test_and_set_bit(&ctx->state, MODBUS_STATE_CONFIGURED)) { - LOG_ERR("Interface allready used"); + LOG_ERR("Interface already used"); return NULL; } diff --git a/subsys/modbus/modbus_serial.c b/subsys/modbus/modbus_serial.c index 97f44adcd73..07eabab29f6 100644 --- a/subsys/modbus/modbus_serial.c +++ b/subsys/modbus/modbus_serial.c @@ -366,7 +366,7 @@ static void cb_handler_tx(struct modbus_context *ctx) } /* Must wait till the transmission is complete or - * RS-485 tranceiver could be disabled before all data has + * RS-485 transceiver could be disabled before all data has * been transmitted and message will be corrupted. */ if (uart_irq_tx_complete(cfg->dev)) { diff --git a/subsys/net/ip/Kconfig b/subsys/net/ip/Kconfig index 6196cc03d57..c347cfa45fe 100644 --- a/subsys/net/ip/Kconfig +++ b/subsys/net/ip/Kconfig @@ -439,7 +439,7 @@ config NET_TCP_MAX_RECV_WINDOW_SIZE help This value defines the maximum TCP receive window size. Increasing this value can improve connection throughput, but requires more - receive buffers avaialble in the system for efficient operation. + receive buffers available in the system for efficient operation. The default value 0 lets the TCP stack select the value according to amount of network buffers configured in the system. @@ -452,7 +452,7 @@ config NET_TCP_RECV_QUEUE_TIMEOUT If we receive out-of-order TCP data, we queue it. This value tells how long the data is kept before it is discarded if we have not been able to pass the data to the application. If set to 0, then receive - queing is not enabled. The value is in milliseconds. + queueing is not enabled. The value is in milliseconds. Note that we only queue data sequentially in current version i.e., there should be no holes in the queue. For example, if we receive SEQs 5,4,3,6 and are waiting SEQ 2, the data in segments 3,4,5,6 is diff --git a/subsys/net/ip/connection.c b/subsys/net/ip/connection.c index 9828aa5f7a9..6f8988ebb2b 100644 --- a/subsys/net/ip/connection.c +++ b/subsys/net/ip/connection.c @@ -602,7 +602,7 @@ enum net_verdict net_conn_input(struct net_pkt *pkt, return NET_DROP; } - /* TODO: Make core part of networing subsystem less dependent on + /* TODO: Make core part of networking subsystem less dependent on * UDP, TCP, IPv4 or IPv6. So that we can add new features with * less cross-module changes. */ diff --git a/subsys/net/ip/dhcpv4.c b/subsys/net/ip/dhcpv4.c index eff7b00781c..f3f702819c4 100644 --- a/subsys/net/ip/dhcpv4.c +++ b/subsys/net/ip/dhcpv4.c @@ -658,7 +658,7 @@ static void dhcpv4_timeout(struct k_work *work) } } -/* Parse DHCPv4 options and retrieve relavant information +/* Parse DHCPv4 options and retrieve relevant information * as per RFC 2132. */ static bool dhcpv4_parse_options(struct net_pkt *pkt, diff --git a/subsys/net/ip/icmpv6.h b/subsys/net/ip/icmpv6.h index fbd90e65ca9..5f8252562bb 100644 --- a/subsys/net/ip/icmpv6.h +++ b/subsys/net/ip/icmpv6.h @@ -84,7 +84,7 @@ struct net_icmpv6_nd_opt_route_info { #endif } flags; uint32_t route_lifetime; - /* Variable-legnth prefix field follows, can be 0, 8 or 16 bytes + /* Variable-length prefix field follows, can be 0, 8 or 16 bytes * depending on the option length. */ } __packed; @@ -148,8 +148,8 @@ struct net_icmpv6_mld_mcast_record { /* Codes for ICMPv6 Destination Unreachable message */ #define NET_ICMPV6_DST_UNREACH_NO_ROUTE 0 /* No route to destination */ #define NET_ICMPV6_DST_UNREACH_ADMIN 1 /* Admin prohibited communication */ -#define NET_ICMPV6_DST_UNREACH_SCOPE 2 /* Beoynd scope of source address */ -#define NET_ICMPV6_DST_UNREACH_NO_ADDR 3 /* Address unrechable */ +#define NET_ICMPV6_DST_UNREACH_SCOPE 2 /* Beyond scope of source address */ +#define NET_ICMPV6_DST_UNREACH_NO_ADDR 3 /* Address unreachable */ #define NET_ICMPV6_DST_UNREACH_NO_PORT 4 /* Port unreachable */ #define NET_ICMPV6_DST_UNREACH_SRC_ADDR 5 /* Source address failed */ #define NET_ICMPV6_DST_UNREACH_REJ_ROUTE 6 /* Reject route to destination */ diff --git a/subsys/net/ip/ipv4_autoconf_internal.h b/subsys/net/ip/ipv4_autoconf_internal.h index 94404494ff3..25e6feb11c9 100644 --- a/subsys/net/ip/ipv4_autoconf_internal.h +++ b/subsys/net/ip/ipv4_autoconf_internal.h @@ -48,7 +48,7 @@ #define IPV4_AUTOCONF_START_DELAY 3 /** - * @brief Start IPv4 autocofiguration RFC 3927: IPv4 Link Local + * @brief Start IPv4 autoconfiguration RFC 3927: IPv4 Link Local * * @details Start IPv4 IP autoconfiguration * diff --git a/subsys/net/ip/ipv6_fragment.c b/subsys/net/ip/ipv6_fragment.c index 79b00822d2b..3819dcb27d1 100644 --- a/subsys/net/ip/ipv6_fragment.c +++ b/subsys/net/ip/ipv6_fragment.c @@ -706,7 +706,7 @@ int net_ipv6_send_fragmented_pkt(struct net_if *iface, struct net_pkt *pkt, } /* The Maximum payload can fit into each packet after IPv6 header, - * Extenstion headers and Fragmentation header. + * Extension headers and Fragmentation header. */ fit_len = NET_IPV6_MTU - NET_IPV6_FRAGH_LEN - (net_pkt_ip_hdr_len(pkt) + net_pkt_ipv6_ext_len(pkt)); diff --git a/subsys/net/ip/packet_socket.c b/subsys/net/ip/packet_socket.c index 14e6dce891a..bc359238621 100644 --- a/subsys/net/ip/packet_socket.c +++ b/subsys/net/ip/packet_socket.c @@ -42,7 +42,7 @@ enum net_verdict net_packet_socket_input(struct net_pkt *pkt, uint8_t proto) * And L2 should not pull off L2 header when combination of socket * like this AF_PACKET, SOCK_RAW and ETH_P_ALL proto. * 2) Socket combination of AF_INET, SOCK_RAW, IPPROTO_RAW - * packet has to go through L2 and L2 verfies it's header and removes + * packet has to go through L2 and L2 verifies it's header and removes * header. Only packet with L3 header will be given to socket. * 3) If user opens raw and non raw socket together, based on raw * socket combination packet has to be feed to raw socket and only diff --git a/subsys/net/ip/route.c b/subsys/net/ip/route.c index 9ce59253814..f74c0ac5674 100644 --- a/subsys/net/ip/route.c +++ b/subsys/net/ip/route.c @@ -41,7 +41,7 @@ static sys_slist_t routes; /* Track currently active route lifetime timers */ static sys_slist_t active_route_lifetime_timers; -/* Timer that manages expired route entires. */ +/* Timer that manages expired route entries. */ static struct k_work_delayable route_lifetime_timer; static K_MUTEX_DEFINE(lock); diff --git a/subsys/net/ip/tcp.c b/subsys/net/ip/tcp.c index 8f1196c62ba..3ba80d60370 100644 --- a/subsys/net/ip/tcp.c +++ b/subsys/net/ip/tcp.c @@ -914,7 +914,7 @@ static int tcp_out_ext(struct tcp *conn, uint8_t flags, struct net_pkt *data, if (is_destination_local(pkt)) { /* If the destination is local, we have to let the current * thread to finish with any state-machine changes before - * sending the packet, or it might lead to state unconsistencies + * sending the packet, or it might lead to state inconsistencies */ k_work_schedule_for_queue(&tcp_work_q, &conn->send_timer, K_NO_WAIT); diff --git a/subsys/net/ip/tcp.h b/subsys/net/ip/tcp.h index 666e6429dcc..56c7d52d468 100644 --- a/subsys/net/ip/tcp.h +++ b/subsys/net/ip/tcp.h @@ -34,7 +34,7 @@ extern "C" { #include /** - * @brief Allocate a TCP connecton for the net_context + * @brief Allocate a TCP connection for the net_context * and mutually link the net_context and TCP connection. * * @param context Network context @@ -44,7 +44,7 @@ extern "C" { int net_tcp_get(struct net_context *context); /** - * @brief Close and delete the TCP connecton for the net_context + * @brief Close and delete the TCP connection for the net_context * * @param context Network context * @@ -54,7 +54,7 @@ int net_tcp_put(struct net_context *context); /* TODO: Clarify what happens if the ref count goes to 0 */ /** - * @brief Unref a TCP connecton + * @brief Unref a TCP connection * * @param context Network context * @@ -112,7 +112,7 @@ int net_tcp_queue(struct net_context *context, const void *buf, size_t len, struct net_tcp_hdr *net_tcp_input(struct net_pkt *pkt, struct net_pkt_data_access *tcp_access); /* TODO: net_tcp_input() isn't used by TCP and might be dropped with little - * re-factorig + * re-factoring */ /* No ops, provided for compatibility with the old TCP */ diff --git a/subsys/net/ip/tcp_internal.h b/subsys/net/ip/tcp_internal.h index c12c5f0abb9..8c791a87e12 100644 --- a/subsys/net/ip/tcp_internal.h +++ b/subsys/net/ip/tcp_internal.h @@ -238,7 +238,7 @@ static inline int net_tcp_send_data(struct net_context *context, * @param cb TCP receive callback function * @param user_data TCP receive callback user data * - * @return 0 if no erro, < 0 in case of error + * @return 0 if no error, < 0 in case of error */ #if defined(CONFIG_NET_NATIVE_TCP) int net_tcp_recv(struct net_context *context, net_context_recv_cb_t cb, @@ -343,7 +343,7 @@ static inline int net_tcp_update_recv_wnd(struct net_context *context, * * @param context Network context * - * @return 0 on success where a TCP FIN packet has been queueed, -ENOTCONN + * @return 0 on success where a TCP FIN packet has been queued, -ENOTCONN * in case the socket was not connected or listening, -EOPNOTSUPP * in case it was not a TCP socket or -EPROTONOSUPPORT if TCP is not * supported diff --git a/subsys/net/l2/bluetooth/bluetooth.c b/subsys/net/l2/bluetooth/bluetooth.c index 1633ebe2c09..fa523e49cf4 100644 --- a/subsys/net/l2/bluetooth/bluetooth.c +++ b/subsys/net/l2/bluetooth/bluetooth.c @@ -111,7 +111,7 @@ static int net_bt_send(struct net_if *iface, struct net_pkt *pkt) net_capture_pkt(iface, pkt); - /* Dettach data fragments for packet */ + /* Detach data fragments for packet */ buffer = pkt->buffer; pkt->buffer = NULL; diff --git a/subsys/net/l2/ethernet/ethernet.c b/subsys/net/l2/ethernet/ethernet.c index 41a42ad68de..a32b41eb886 100644 --- a/subsys/net/l2/ethernet/ethernet.c +++ b/subsys/net/l2/ethernet/ethernet.c @@ -664,7 +664,7 @@ static int ethernet_send(struct net_if *iface, struct net_pkt *pkt) } else if (IS_ENABLED(CONFIG_NET_LLDP) && net_pkt_is_lldp(pkt)) { ptype = htons(NET_ETH_PTYPE_LLDP); } else if (IS_ENABLED(CONFIG_NET_ARP)) { - /* Unktown type: Unqueued pkt is an ARP reply. + /* Unknown type: Unqueued pkt is an ARP reply. */ ptype = htons(NET_ETH_PTYPE_ARP); net_pkt_set_family(pkt, AF_INET); diff --git a/subsys/net/l2/ethernet/gptp/gptp.c b/subsys/net/l2/ethernet/gptp/gptp.c index f80cc2485de..f7263faeee6 100644 --- a/subsys/net/l2/ethernet/gptp/gptp.c +++ b/subsys/net/l2/ethernet/gptp/gptp.c @@ -521,7 +521,7 @@ static void gptp_state_machine(void) for (port = GPTP_PORT_START; port < GPTP_PORT_END; port++) { struct gptp_port_ds *port_ds = GPTP_PORT_DS(port); - /* If interface is down, don't move foward */ + /* If interface is down, don't move forward */ if (net_if_flag_is_set(GPTP_PORT_IFACE(port), NET_IF_UP)) { switch (GPTP_GLOBAL_DS()->selected_role[port]) { case GPTP_PORT_DISABLED: diff --git a/subsys/net/l2/ethernet/gptp/gptp_md.c b/subsys/net/l2/ethernet/gptp/gptp_md.c index a37745e521b..eb467e176fb 100644 --- a/subsys/net/l2/ethernet/gptp/gptp_md.c +++ b/subsys/net/l2/ethernet/gptp/gptp_md.c @@ -399,7 +399,7 @@ static void gptp_md_pdelay_compute(int port) /* * Currently, if the computed delay is negative, this means - * that it is negligeable enough compared to other factors. + * that it is negligible enough compared to other factors. */ if ((port_ds->neighbor_prop_delay <= port_ds->neighbor_prop_delay_thresh)) { @@ -572,7 +572,7 @@ static void gptp_md_pdelay_req_state_machine(int port) port_ds = GPTP_PORT_DS(port); /* Unset AS-Capable if multiple responses to a pDelay request have been - * reveived. + * received. */ if (state->rcvd_pdelay_resp > 1 || state->rcvd_pdelay_follow_up > 1) { port_ds->as_capable = false; diff --git a/subsys/net/l2/ethernet/gptp/gptp_mi.c b/subsys/net/l2/ethernet/gptp/gptp_mi.c index 4f430e8c2f6..bf470b7dc19 100644 --- a/subsys/net/l2/ethernet/gptp/gptp_mi.c +++ b/subsys/net/l2/ethernet/gptp/gptp_mi.c @@ -1527,7 +1527,7 @@ static void gptp_mi_port_announce_information_state_machine(int port) case GPTP_PA_INFO_SUPERIOR_MASTER_PORT: /* We copy directly the content of the message to the port * priority vector without using an intermediate - * messagePrioriry structure. + * messagePriority structure. */ if (!bmca_data->rcvd_announce_ptr) { diff --git a/subsys/net/l2/ethernet/gptp/gptp_private.h b/subsys/net/l2/ethernet/gptp/gptp_private.h index dbe10f07e42..88ceef4a997 100644 --- a/subsys/net/l2/ethernet/gptp/gptp_private.h +++ b/subsys/net/l2/ethernet/gptp/gptp_private.h @@ -51,7 +51,7 @@ bool gptp_is_slave_port(int port); int gptp_get_port_number(struct net_if *iface); /** - * @brief Calculate a logInteral and store in Uscaled ns structure. + * @brief Calculate a logInterval and store in Uscaled ns structure. * * @param interval Result of calculation. * diff --git a/subsys/net/l2/ethernet/gptp/gptp_state.h b/subsys/net/l2/ethernet/gptp/gptp_state.h index 3a5b72e4112..c6297d28397 100644 --- a/subsys/net/l2/ethernet/gptp/gptp_state.h +++ b/subsys/net/l2/ethernet/gptp/gptp_state.h @@ -559,7 +559,7 @@ struct gptp_port_bmca_data { bool rcvd_msg; /** Indicate if PortAnnounceInformation should copy the newly determined - * master_prioriry and master_steps_removed. + * master_priority and master_steps_removed. */ bool updt_info; diff --git a/subsys/net/l2/ieee802154/ieee802154.c b/subsys/net/l2/ieee802154/ieee802154.c index 81a264e69a3..58033b806a9 100644 --- a/subsys/net/l2/ieee802154/ieee802154.c +++ b/subsys/net/l2/ieee802154/ieee802154.c @@ -145,7 +145,7 @@ static bool ieeee802154_check_dst_addr(struct net_if *iface, if (mhr->fs->fc.dst_addr_mode == IEEE802154_ADDR_MODE_SHORT) { /* * d.1. A short destination address is included in the frame, - * and it matches either macShortAddress orthe broadcast + * and it matches either macShortAddress or the broadcast * address. */ if (!(dst_plain->addr.short_addr == IEEE802154_BROADCAST_ADDRESS || diff --git a/subsys/net/l2/ieee802154/ieee802154_frame.c b/subsys/net/l2/ieee802154/ieee802154_frame.c index 42532eac41e..e13044bd81e 100644 --- a/subsys/net/l2/ieee802154/ieee802154_frame.c +++ b/subsys/net/l2/ieee802154/ieee802154_frame.c @@ -475,7 +475,7 @@ uint8_t ieee802154_compute_header_size(struct net_if *iface, &((struct ieee802154_context *)net_if_l2_data(iface))->sec_ctx; #endif - /** if dst is NULL, we'll consider it as a brodcast header */ + /** if dst is NULL, we'll consider it as a broadcast header */ if (!dst || net_ipv6_is_addr_mcast(dst) || net_ipv6_is_addr_unspecified(dst)) { diff --git a/subsys/net/l2/openthread/Kconfig b/subsys/net/l2/openthread/Kconfig index 7e5b0ad1ec8..58e571bea7f 100644 --- a/subsys/net/l2/openthread/Kconfig +++ b/subsys/net/l2/openthread/Kconfig @@ -50,9 +50,9 @@ config OPENTHREAD_MANUAL_START help If enabled, OpenThread stack will have to be configured and started manually, with respective API calls or CLI/NCP commands. - Otherwise, OpenThread will configure the network parametrs and try to + Otherwise, OpenThread will configure the network parameters and try to join the Thread network automatically during initialization (using - credentials stored in persistend storage, obtained during + credentials stored in persistent storage, obtained during commissioning or pre-commissioned with other Kconfig options, depending on configuration used). diff --git a/subsys/net/lib/dns/dns_pack.c b/subsys/net/lib/dns/dns_pack.c index c5794510ef9..b79d7370ee9 100644 --- a/subsys/net/lib/dns/dns_pack.c +++ b/subsys/net/lib/dns/dns_pack.c @@ -247,7 +247,7 @@ static int dns_msg_pack_query_header(uint8_t *buf, uint16_t size, uint16_t id) */ offset = DNS_HEADER_ID_LEN; - /* Split the following assignements just in case we need to alter + /* Split the following assignments just in case we need to alter * the flags in future releases */ *(buf + offset) = DNS_FLAGS1; /* QR, Opcode, AA, TC and RD */ diff --git a/subsys/net/lib/dns/llmnr_responder.c b/subsys/net/lib/dns/llmnr_responder.c index 4a743065145..816afe42a7e 100644 --- a/subsys/net/lib/dns/llmnr_responder.c +++ b/subsys/net/lib/dns/llmnr_responder.c @@ -456,7 +456,7 @@ static int dns_read(struct net_context *ctx, data_len = MIN(net_pkt_remaining_data(pkt), DNS_RESOLVER_MAX_BUF_SIZE); /* Store the DNS query name into a temporary net_buf, which will be - * enventually used to send a response + * eventually used to send a response */ result = net_buf_alloc(&llmnr_dns_msg_pool, BUF_ALLOC_TIMEOUT); if (!result) { diff --git a/subsys/net/lib/dns/mdns_responder.c b/subsys/net/lib/dns/mdns_responder.c index 5c856973ef5..90955d9b406 100644 --- a/subsys/net/lib/dns/mdns_responder.c +++ b/subsys/net/lib/dns/mdns_responder.c @@ -455,7 +455,7 @@ static int dns_read(struct net_context *ctx, data_len = MIN(net_pkt_remaining_data(pkt), DNS_RESOLVER_MAX_BUF_SIZE); /* Store the DNS query name into a temporary net_buf, which will be - * enventually used to send a response + * eventually used to send a response */ result = net_buf_alloc(&mdns_msg_pool, BUF_ALLOC_TIMEOUT); if (!result) { diff --git a/subsys/net/lib/http/http_parser_url.c b/subsys/net/lib/http/http_parser_url.c index 817f5eceb17..75da775a856 100644 --- a/subsys/net/lib/http/http_parser_url.c +++ b/subsys/net/lib/http/http_parser_url.c @@ -490,7 +490,7 @@ http_parser_parse_url(const char *buf, size_t buflen, int is_connect, case s_dead: return 1; - /* Skip delimeters */ + /* Skip delimiters */ case s_req_schema_slash: case s_req_schema_slash_slash: case s_req_server_start: diff --git a/subsys/net/lib/lwm2m/Kconfig b/subsys/net/lib/lwm2m/Kconfig index 7466b4fbdcc..17102971263 100644 --- a/subsys/net/lib/lwm2m/Kconfig +++ b/subsys/net/lib/lwm2m/Kconfig @@ -199,7 +199,7 @@ config LWM2M_RD_CLIENT_ENDPOINT_NAME_MAX_LENGTH depends on LWM2M_RD_CLIENT_SUPPORT default 33 help - Default: room for 32 hexadeciaml digits (UUID) + NULL + Default: room for 32 hexadecimal digits (UUID) + NULL config LWM2M_RD_CLIENT_MAX_RETRIES int "Specify maximum number of registration retries" @@ -333,7 +333,7 @@ config LWM2M_FIRMWARE_UPDATE_OBJ_SUPPORT_MULTIPLE depends on LWM2M_FIRMWARE_UPDATE_OBJ_SUPPORT select EXPERIMENTAL help - Support multiple instances of LWM2M Firwmare Update Object (ID 5) + Support multiple instances of LWM2M Firmware Update Object (ID 5) config LWM2M_FIRMWARE_UPDATE_OBJ_INSTANCE_COUNT int "Maximum # of LWM2M Firmware update object instances" diff --git a/subsys/net/lib/lwm2m/lwm2m_engine.c b/subsys/net/lib/lwm2m/lwm2m_engine.c index 1b411fb57e9..65c30febe1a 100644 --- a/subsys/net/lib/lwm2m/lwm2m_engine.c +++ b/subsys/net/lib/lwm2m/lwm2m_engine.c @@ -141,7 +141,7 @@ static int sock_nfds; static struct lwm2m_block_context block1_contexts[NUM_BLOCK1_CONTEXT]; -/* write-attribute related definitons */ +/* write-attribute related definitions */ static const char * const LWM2M_ATTR_STR[] = { "pmin", "pmax", "gt", "lt", "st" }; static const uint8_t LWM2M_ATTR_LEN[] = { 4, 4, 2, 2, 2 }; @@ -351,7 +351,7 @@ static int update_attrs(void *ref, struct notification_attrs *out) out->st = write_attr_pool[i].float_val; break; default: - LOG_ERR("Unrecognize attr: %d", + LOG_ERR("Unrecognized attr: %d", write_attr_pool[i].type); return -EINVAL; } @@ -2387,12 +2387,12 @@ static int lwm2m_engine_observer_timestamp_update(sys_slist_t *observer, /* Resource Update on going skip this*/ continue; } - /* Compare Obervation node path to updated one */ + /* Compare Observation node path to updated one */ if (!lwm2m_notify_observer_list(&obs->path_list, path)) { continue; } - /* Read Atributes after validation Path */ + /* Read Attributes after validation Path */ ret = engine_observe_attribute_list_get(&obs->path_list, &nattrs, srv_obj_inst); if (ret < 0) { return ret; @@ -4714,7 +4714,7 @@ static int handle_request(struct coap_packet *request, } if ((code & COAP_REQUEST_MASK) == COAP_METHOD_GET) { - /* Normal Obeservation Request or Cancel */ + /* Normal Observation Request or Cancel */ r = lwm2m_engine_observation_handler(msg, observe, accept, false); if (r < 0) { @@ -4985,7 +4985,7 @@ static void lwm2m_udp_receive(struct lwm2m_ctx *client_ctx, if (msg->acknowledged) { r = lwm2m_response_promote_to_con(msg); if (r < 0) { - LOG_ERR("Failed to promote reponse to CON: %d", + LOG_ERR("Failed to promote response to CON: %d", r); lwm2m_reset_message(msg, true); return; @@ -5952,7 +5952,7 @@ int lwm2m_engine_add_path_to_list(sys_slist_t *lwm2m_path_list, sys_slist_t *lwm entry->path.obj_inst_id == path->obj_inst_id && entry->path.res_id > path->res_id) { /* - * Object ID and Object Intance id same + * Object ID and Object Instance id same * but Resource ID is smaller */ add_before_current = true; @@ -5961,7 +5961,7 @@ int lwm2m_engine_add_path_to_list(sys_slist_t *lwm2m_path_list, sys_slist_t *lwm entry->path.res_id == path->res_id && entry->path.res_inst_id > path->res_inst_id) { /* - * Object ID, Object Intance id & Resource ID same + * Object ID, Object Instance id & Resource ID same * but Resource instance ID is smaller */ add_before_current = true; @@ -6096,7 +6096,7 @@ int lwm2m_perform_composite_read_op(struct lwm2m_message *msg, uint16_t content_ /* find first obj_inst with path's obj_id */ obj_inst = next_engine_obj_inst(msg->path.obj_id, -1); } else { - /* Read rooth Path */ + /* Read root Path */ ret = lwm2m_perform_composite_read_root(msg, &num_read); if (ret == -ENOMEM) { LOG_ERR("Supported message size is too small for read root"); diff --git a/subsys/net/lib/lwm2m/lwm2m_obj_portfolio.c b/subsys/net/lib/lwm2m/lwm2m_obj_portfolio.c index 38eec3db093..1ff62f18d9f 100644 --- a/subsys/net/lib/lwm2m/lwm2m_obj_portfolio.c +++ b/subsys/net/lib/lwm2m/lwm2m_obj_portfolio.c @@ -50,7 +50,7 @@ LOG_MODULE_REGISTER(LOG_MODULE_NAME); static struct lwm2m_engine_obj portfolio; static struct lwm2m_engine_obj_field fields[] = { OBJ_FIELD_DATA(PORTFOLIO_IDENTITY_ID, RW, STRING), /* Mandatory, multi-instance */ - OBJ_FIELD_EXECUTE(PORTFOLIO_GET_AUTH_DATA_ID), /* Optional, ingle-instance */ + OBJ_FIELD_EXECUTE(PORTFOLIO_GET_AUTH_DATA_ID), /* Optional, single-instance */ OBJ_FIELD_DATA(PORTFOLIO_AUTH_DATA_ID, R_OPT, OPAQUE), /* Optional, multi-instance */ OBJ_FIELD_DATA(PORTFOLIO_AUTH_STATUS_ID, R_OPT, U8) /* Optional, single-instance*/ }; diff --git a/subsys/net/lib/lwm2m/lwm2m_obj_security.c b/subsys/net/lib/lwm2m/lwm2m_obj_security.c index 357c7b9a504..e1f3cf9386e 100644 --- a/subsys/net/lib/lwm2m/lwm2m_obj_security.c +++ b/subsys/net/lib/lwm2m/lwm2m_obj_security.c @@ -204,7 +204,7 @@ int lwm2m_security_index_to_inst_id(int index) return -EINVAL; } - /* not instanstiated */ + /* not instantiated */ if (!inst[index].obj) { return -ENOENT; } diff --git a/subsys/net/lib/lwm2m/lwm2m_rw_json.c b/subsys/net/lib/lwm2m/lwm2m_rw_json.c index 26e0081db8a..77325a9ef06 100644 --- a/subsys/net/lib/lwm2m/lwm2m_rw_json.c +++ b/subsys/net/lib/lwm2m/lwm2m_rw_json.c @@ -141,7 +141,7 @@ static void json_add_char(struct lwm2m_input_context *in, } } -/* Simlified JSON style reader for reading in values from a LWM2M JSON string */ +/* Simplified JSON style reader for reading in values from a LWM2M JSON string */ static int json_next_token(struct lwm2m_input_context *in, struct json_in_formatter_data *fd) { @@ -248,7 +248,7 @@ static int json_next_token(struct lwm2m_input_context *in, } } - /* OK if cont == 0 othewise we failed */ + /* OK if cont == 0 otherwise we failed */ return (cont == 0U); } @@ -799,7 +799,7 @@ static int get_objlnk(struct lwm2m_input_context *in, total_len = len; value->obj_id = (uint16_t)tmp; - len++; /* +1 for ':' delimeter. */ + len++; /* +1 for ':' delimiter. */ fd->value_offset += len; len = read_int(in, &tmp, false); diff --git a/subsys/net/lib/lwm2m/lwm2m_rw_plain_text.c b/subsys/net/lib/lwm2m/lwm2m_rw_plain_text.c index 9d99fe73ca7..af98e97f868 100644 --- a/subsys/net/lib/lwm2m/lwm2m_rw_plain_text.c +++ b/subsys/net/lib/lwm2m/lwm2m_rw_plain_text.c @@ -381,7 +381,7 @@ static int get_objlnk(struct lwm2m_input_context *in, total_len = len; value->obj_id = (uint16_t)tmp; - /* Skip ':' delimeter. */ + /* Skip ':' delimiter. */ total_len++; in->offset++; diff --git a/subsys/net/lib/lwm2m/lwm2m_rw_senml_json.c b/subsys/net/lib/lwm2m/lwm2m_rw_senml_json.c index 16afa64cee8..5d476337008 100644 --- a/subsys/net/lib/lwm2m/lwm2m_rw_senml_json.c +++ b/subsys/net/lib/lwm2m/lwm2m_rw_senml_json.c @@ -268,7 +268,7 @@ static int json_next_token(struct lwm2m_input_context *in, struct json_in_format } } - /* OK if cont == 0 othewise we failed */ + /* OK if cont == 0 otherwise we failed */ return (cont == 0U); } @@ -1025,7 +1025,7 @@ static int get_objlnk(struct lwm2m_input_context *in, struct lwm2m_objlnk *value total_len = len; value->obj_id = (uint16_t)tmp; - len++; /* +1 for ':' delimeter. */ + len++; /* +1 for ':' delimiter. */ fd->value_offset += len; len = read_int(in, &tmp, false); diff --git a/subsys/net/lib/lwm2m/lwm2m_rw_senml_json.h b/subsys/net/lib/lwm2m/lwm2m_rw_senml_json.h index 8440187c668..80c04ca346b 100644 --- a/subsys/net/lib/lwm2m/lwm2m_rw_senml_json.h +++ b/subsys/net/lib/lwm2m/lwm2m_rw_senml_json.h @@ -19,7 +19,7 @@ int do_read_op_senml_json(struct lwm2m_message *msg); /* General Write single Path operation */ int do_write_op_senml_json(struct lwm2m_message *msg); -/* Send opearation builder */ +/* Send operation builder */ int do_send_op_senml_json(struct lwm2m_message *msg, sys_slist_t *lwm2m_path_list); /* API for call composite READ from engine */ int do_composite_read_op_senml_json(struct lwm2m_message *msg); diff --git a/subsys/net/lib/openthread/platform/diag.c b/subsys/net/lib/openthread/platform/diag.c index bb763a650e7..3971c5213aa 100644 --- a/subsys/net/lib/openthread/platform/diag.c +++ b/subsys/net/lib/openthread/platform/diag.c @@ -24,7 +24,7 @@ otError otPlatDiagProcess(otInstance *aInstance, ARG_UNUSED(argc); ARG_UNUSED(aInstance); - /* Add more plarform specific diagnostics features here. */ + /* Add more platform specific diagnostics features here. */ snprintk(aOutput, aOutputMaxLen, "diag feature '%s' is not supported\r\n", argv[0]); diff --git a/subsys/net/lib/openthread/platform/openthread-core-zephyr-config.h b/subsys/net/lib/openthread/platform/openthread-core-zephyr-config.h index 8578374a058..4581133f561 100644 --- a/subsys/net/lib/openthread/platform/openthread-core-zephyr-config.h +++ b/subsys/net/lib/openthread/platform/openthread-core-zephyr-config.h @@ -223,7 +223,7 @@ */ #define OPENTHREAD_CONFIG_HEAP_INTERNAL_SIZE_NO_DTLS (4 * sizeof(void *)) -/* Disable software srouce address matching. */ +/* Disable software source address matching. */ /** * @def RADIO_CONFIG_SRC_MATCH_SHORT_ENTRY_NUM diff --git a/subsys/net/lib/openthread/platform/settings.c b/subsys/net/lib/openthread/platform/settings.c index 9fc962c714a..764188f5b0d 100644 --- a/subsys/net/lib/openthread/platform/settings.c +++ b/subsys/net/lib/openthread/platform/settings.c @@ -142,7 +142,7 @@ struct ot_setting_read_ctx { */ int index; - /* Target instnace to read. */ + /* Target instance to read. */ int target_index; /* Operation result. */ diff --git a/subsys/net/lib/sntp/sntp_pkt.h b/subsys/net/lib/sntp/sntp_pkt.h index 4f04007116b..979348383f2 100644 --- a/subsys/net/lib/sntp/sntp_pkt.h +++ b/subsys/net/lib/sntp/sntp_pkt.h @@ -36,11 +36,11 @@ struct sntp_pkt { uint32_t ref_tm_s; uint32_t ref_tm_f; uint32_t orig_tm_s; /* Originate timestamp seconds */ - uint32_t orig_tm_f; /* Originate timsstamp seconds fraction */ + uint32_t orig_tm_f; /* Originate timestamp seconds fraction */ uint32_t rx_tm_s; /* Receive timestamp seconds */ uint32_t rx_tm_f; /* Receive timestamp seconds fraction */ - uint32_t tx_tm_s; /* Transimit timestamp seconds */ - uint32_t tx_tm_f; /* Transimit timestamp seconds fraction */ + uint32_t tx_tm_s; /* Transmit timestamp seconds */ + uint32_t tx_tm_f; /* Transmit timestamp seconds fraction */ } __packed; #endif diff --git a/subsys/net/lib/sockets/Kconfig b/subsys/net/lib/sockets/Kconfig index 9162cb6f87e..cfa6c3a10bd 100644 --- a/subsys/net/lib/sockets/Kconfig +++ b/subsys/net/lib/sockets/Kconfig @@ -172,7 +172,7 @@ config NET_SOCKETS_OFFLOAD_TLS default y help If enabled, the offloading engine is expected to handle TLS/DTLS - socket calls. Othwerwise, Zephyrs native TLS socket implementation + socket calls. Otherwise, Zephyrs native TLS socket implementation will be used, and only TCP/UDP socket calls will be offloaded. config NET_SOCKETS_PACKET diff --git a/subsys/net/lib/sockets/socketpair.c b/subsys/net/lib/sockets/socketpair.c index cbe9b373a3d..fad1e93914f 100644 --- a/subsys/net/lib/sockets/socketpair.c +++ b/subsys/net/lib/sockets/socketpair.c @@ -37,7 +37,7 @@ enum { * The implementation strives for compatibility with socketpair(2). * * Resources contained within this structure are said to be 'local', while - * reources contained within the other half of the socketpair (or other + * resources contained within the other half of the socketpair (or other * endpoint) are said to be 'remote'. * * Theory of operation: @@ -156,7 +156,7 @@ static inline void swap32(uint32_t *a, uint32_t *b) * * If no threads are blocking on A, then the signals have no effect. * - * The memeory associated with the local endpoint is cleared and freed. + * The memory associated with the local endpoint is cleared and freed. */ static void spair_delete(struct spair *spair) { @@ -373,7 +373,7 @@ out: * @ref spair.pipe. Thus, allowing more data to be written. * * 2) @ref SPAIR_SIG_CANCEL - the @em remote socketpair endpoint was closed - * Receipt of this result is analagous to SIGPIPE from POSIX + * Receipt of this result is analogous to SIGPIPE from POSIX * ("Write on a pipe with no one to read it."). In this case, the function * will return -1 and set @ref errno to @ref EPIPE. * diff --git a/subsys/net/lib/sockets/sockets_tls.c b/subsys/net/lib/sockets/sockets_tls.c index b531c38839a..9499564ea26 100644 --- a/subsys/net/lib/sockets/sockets_tls.c +++ b/subsys/net/lib/sockets/sockets_tls.c @@ -2356,7 +2356,7 @@ static int ztls_poll_offload(struct zsock_pollfd *fds, int nfds, int timeout) int remaining; uint32_t entry = k_uptime_get_32(); - /* Overwrite TLS file decriptors with underlying ones. */ + /* Overwrite TLS file descriptors with underlying ones. */ for (i = 0; i < nfds; i++) { fd_backup[i] = fds[i].fd; diff --git a/subsys/net/lib/tftp/Kconfig b/subsys/net/lib/tftp/Kconfig index 338c18eb462..aeb518c0f12 100644 --- a/subsys/net/lib/tftp/Kconfig +++ b/subsys/net/lib/tftp/Kconfig @@ -24,7 +24,7 @@ config TFTPC_REQUEST_TIMEOUT default 5000 help Maximum amount of time (in msec) that the TFTP Client will wait for - data from the TFTP Server. Once this time has elasped, the TFTP Client + data from the TFTP Server. Once this time has elapsed, the TFTP Client will assume that the Server failed and close the connection. config TFTPC_REQUEST_RETRANSMITS diff --git a/subsys/net/lib/websocket/websocket.c b/subsys/net/lib/websocket/websocket.c index 1677283dc49..d241b491bcc 100644 --- a/subsys/net/lib/websocket/websocket.c +++ b/subsys/net/lib/websocket/websocket.c @@ -282,7 +282,7 @@ int websocket_connect(int sock, struct websocket_request *wreq, sizeof("Sec-Websocket-Key: "), &olen, sec_accept_key, /* We are only interested in 16 first bytes so - * substract 4 from the SHA-1 length + * subtract 4 from the SHA-1 length */ sizeof(sec_accept_key) - 4); if (ret) { @@ -443,7 +443,7 @@ static inline int websocket_poll_offload(struct zsock_pollfd *fds, int nfds, int ret = 0; int i; - /* Overwrite websocket file decriptors with underlying ones. */ + /* Overwrite websocket file descriptors with underlying ones. */ for (i = 0; i < nfds; i++) { fd_backup[i] = fds[i].fd; diff --git a/subsys/random/Kconfig b/subsys/random/Kconfig index 6a7364e4b15..a89e095b350 100644 --- a/subsys/random/Kconfig +++ b/subsys/random/Kconfig @@ -77,7 +77,7 @@ choice CSPRNG_GENERATOR_CHOICE If the hardware entropy support of the platform has sufficient performance to support CSRNG then select that. Otherwise, select - CTR-DRBG CSPRNG as that is a FIPS140-2 recommmended CSPRNG. + CTR-DRBG CSPRNG as that is a FIPS140-2 recommended CSPRNG. config HARDWARE_DEVICE_CS_GENERATOR bool "Use hardware random driver for CS random numbers" diff --git a/subsys/settings/src/settings_file.c b/subsys/settings/src/settings_file.c index 0ff74860e29..8478608c9af 100644 --- a/subsys/settings/src/settings_file.c +++ b/subsys/settings/src/settings_file.c @@ -263,7 +263,7 @@ static int settings_file_save_and_compress(struct settings_file *cf, rc = settings_next_line_ctx(&loc1); if (rc || loc1.len == 0) { - /* try to amend new value to the commpresed file */ + /* try to amend new value to the compressed file */ break; } @@ -297,7 +297,7 @@ static int settings_file_save_and_compress(struct settings_file *cf, if (rc || loc2.len == 0) { /* try to amend new value to */ - /* the commpresed file */ + /* the compressed file */ break; } @@ -442,7 +442,7 @@ static int read_handler(void *ctx, off_t off, char *buf, size_t *len) ssize_t r_len; int rc; - /* 0 is reserved for reding the length-field only */ + /* 0 is reserved for reading the length-field only */ if (entry_ctx->len != 0) { if (off >= entry_ctx->len) { *len = 0; diff --git a/subsys/settings/src/settings_priv.h b/subsys/settings/src/settings_priv.h index 739efedcc43..8e7cf830d91 100644 --- a/subsys/settings/src/settings_priv.h +++ b/subsys/settings/src/settings_priv.h @@ -77,7 +77,7 @@ int settings_next_line_ctx(struct line_entry_ctx *entry_ctx); * @param[in] len_req size of

out

buffer * @param[out] len_read length of read name * @param[in] cb_arg settings line storage context expected by the - *

read_cb

implementatio + *

read_cb

implementation * * @retval 0 on success, * -ERCODE on storage errors diff --git a/subsys/shell/backends/shell_telnet.c b/subsys/shell/backends/shell_telnet.c index 8a75115c892..13266565ab3 100644 --- a/subsys/shell/backends/shell_telnet.c +++ b/subsys/shell/backends/shell_telnet.c @@ -33,7 +33,7 @@ struct shell_telnet *sh_telnet; #define TELNET_MIN_COMMAND_LEN 2 #define TELNET_WILL_DO_COMMAND_LEN 3 -/* Basic TELNET implmentation. */ +/* Basic TELNET implementation. */ static void telnet_end_client_connection(void) { diff --git a/subsys/shell/shell_log_backend.c b/subsys/shell/shell_log_backend.c index 509ca52aa31..b2e4ceee276 100644 --- a/subsys/shell/shell_log_backend.c +++ b/subsys/shell/shell_log_backend.c @@ -337,7 +337,7 @@ static void copy_to_pbuffer(struct mpsc_pbuf_buffer *mpsc_buffer, return; } - /* First word contains intenal mpsc packet flags and when copying + /* First word contains internal mpsc packet flags and when copying * those flags must be omitted. */ uint8_t *dst_data = (uint8_t *)dst + sizeof(struct mpsc_pbuf_hdr); diff --git a/subsys/storage/flash_map/flash_map_default.c b/subsys/storage/flash_map/flash_map_default.c index 4f2830571af..5df5486065d 100644 --- a/subsys/storage/flash_map/flash_map_default.c +++ b/subsys/storage/flash_map/flash_map_default.c @@ -18,9 +18,9 @@ #define FOREACH_PARTITION(n) DT_FOREACH_CHILD(DT_DRV_INST(n), FLASH_AREA_FOO) -/* We iterate over all compatible 'fixed-partions' nodes and +/* We iterate over all compatible 'fixed-partitions' nodes and * use DT_FOREACH_CHILD to iterate over all the partitions for that - * 'fixed-partions' node. This way we build a global partition map + * 'fixed-partitions' node. This way we build a global partition map */ const struct flash_area default_flash_map[] = { DT_INST_FOREACH_STATUS_OKAY(FOREACH_PARTITION) diff --git a/subsys/testsuite/coverage/coverage.h b/subsys/testsuite/coverage/coverage.h index 9efa52a6d78..af4a125b0b3 100644 --- a/subsys/testsuite/coverage/coverage.h +++ b/subsys/testsuite/coverage/coverage.h @@ -75,7 +75,7 @@ struct gcov_ctr_info { struct gcov_fn_info { const struct gcov_info *key; /* comdat key */ unsigned int ident; /* unique ident of function */ - unsigned int lineno_checksum; /* function lineo_checksum */ + unsigned int lineno_checksum; /* function lineno_checksum */ unsigned int cfg_checksum; /* function cfg checksum */ struct gcov_ctr_info ctrs[0]; /* instrumented counters */ }; diff --git a/subsys/testsuite/include/busy_sim.h b/subsys/testsuite/include/busy_sim.h index a2e77b5a2fd..673376aa685 100644 --- a/subsys/testsuite/include/busy_sim.h +++ b/subsys/testsuite/include/busy_sim.h @@ -17,13 +17,13 @@ typedef void (*busy_sim_cb_t)(void); * is used for getting random numbers. System work queue is used to get random * values and keep them in a ring buffer. * - * @param active_avg Avarage time of busy looping in the counter callback (in microseconds). + * @param active_avg Average time of busy looping in the counter callback (in microseconds). * - * @param active_delta Specifies deviation from avarage time of busy looping (in microseconds). + * @param active_delta Specifies deviation from average time of busy looping (in microseconds). * - * @param idle_avg Avarage time of counter alarm timeout (in microseconds). + * @param idle_avg Average time of counter alarm timeout (in microseconds). * - * @param idle_delta Specifies deviation from avarage time of counter alarm (in microseconds). + * @param idle_delta Specifies deviation from average time of counter alarm (in microseconds). * * @param cb Callback called from the context of the busy simulator timeout. If ZLI interrupt * is used for busy simulator counter then kernel API cannot be used from that callback. diff --git a/subsys/testsuite/ztest/Kconfig b/subsys/testsuite/ztest/Kconfig index afdd6964cb8..71ec7fdd26f 100644 --- a/subsys/testsuite/ztest/Kconfig +++ b/subsys/testsuite/ztest/Kconfig @@ -14,7 +14,7 @@ config ZTEST_NEW_API bool "Use the new Ztest API" help Enables the new Ztest APIs for creating suites and unit tests in - separate compilational units as well as the new 'rules' API. + separate compilation units as well as the new 'rules' API. config ZTEST_STACK_SIZE int "Test function thread stack size" diff --git a/subsys/testsuite/ztest/include/ztest_test_new.h b/subsys/testsuite/ztest/include/ztest_test_new.h index e18f88504df..99dffed66c0 100644 --- a/subsys/testsuite/ztest/include/ztest_test_new.h +++ b/subsys/testsuite/ztest/include/ztest_test_new.h @@ -214,7 +214,7 @@ static inline void unit_test_noop(void) * @brief Create and register a new unit test. * * Calling this macro will create a new unit test and attach it to the declared `suite`. The `suite` - * does not need to be defined in the same compilational unit. + * does not need to be defined in the same compilation unit. * * @param suite The name of the test suite to attach this test * @param fn The test function to call. @@ -278,7 +278,7 @@ struct ztest_test_rule { * provides a mechanism for tests to perform custom operations depending on the specific test or * the data (for example logging may use the test's name). * - * @param name The name for the test rule (must be unique within the compilational unit) + * @param name The name for the test rule (must be unique within the compilation unit) * @param before_each_fn The callback function to call before each test (may be NULL) * @param after_each_fn The callback function to call after each test (may be NULL) */ diff --git a/subsys/testsuite/ztest/src/ztress.c b/subsys/testsuite/ztest/src/ztress.c index 4831cd2e880..4ee04f6fd0a 100644 --- a/subsys/testsuite/ztest/src/ztress.c +++ b/subsys/testsuite/ztest/src/ztress.c @@ -59,7 +59,7 @@ static void test_timeout(struct k_timer *timer) ztress_abort(); } -/* Ratio is 1/16, e.g using ratio 14 reduces all timeouts by multipling it by 14/16. +/* Ratio is 1/16, e.g using ratio 14 reduces all timeouts by multiplying it by 14/16. * 16 fraction is used to avoid dividing which may take more time on certain platforms. */ static void adjust_load(uint8_t ratio) @@ -375,7 +375,7 @@ int ztress_execute(struct ztress_context_data *timer_data, (void)k_timer_status_sync(&ztress_timer); } - /* print raport */ + /* print report */ ztress_report(); ztress_end(old_prio); @@ -403,7 +403,7 @@ void ztress_report(void) (uint32_t)init_backoff[i].ticks, (uint32_t)backoff[i].ticks); } - printk("\tAvarage CPU load:%u%%, measurements:%u\n", + printk("\tAverage CPU load:%u%%, measurements:%u\n", rt.cpu_load / 10, rt.cpu_load_measurements); } diff --git a/subsys/tracing/Kconfig b/subsys/tracing/Kconfig index 2f3355e59f4..ab9f4613a7d 100644 --- a/subsys/tracing/Kconfig +++ b/subsys/tracing/Kconfig @@ -121,7 +121,7 @@ config TRACING_BUFFER_SIZE help Size of tracing buffer. If TRACING_ASYNC is enabled, tracing buffer is used as a ring buffer to buffer data packet and string packet. If - TRACING_SYNC is enabled, the buffer is used to hold the formated data. + TRACING_SYNC is enabled, the buffer is used to hold the formatted data. config TRACING_PACKET_MAX_SIZE int "Max size of one tracing packet" diff --git a/subsys/tracing/include/tracing_backend.h b/subsys/tracing/include/tracing_backend.h index e38225d9520..635c1dbc040 100644 --- a/subsys/tracing/include/tracing_backend.h +++ b/subsys/tracing/include/tracing_backend.h @@ -69,8 +69,8 @@ static inline void tracing_backend_init( * @brief Output tracing packet with tracing backend. * * @param backend Pointer to tracing_backend instance. - * @param data Address of outputing buffer. - * @param length Length of outputing buffer. + * @param data Address of outputting buffer. + * @param length Length of outputting buffer. */ static inline void tracing_backend_output( const struct tracing_backend *backend, diff --git a/subsys/tracing/sysview/SYSVIEW_Zephyr.txt b/subsys/tracing/sysview/SYSVIEW_Zephyr.txt index 9be847a11b2..b213888c4c5 100644 --- a/subsys/tracing/sysview/SYSVIEW_Zephyr.txt +++ b/subsys/tracing/sysview/SYSVIEW_Zephyr.txt @@ -1,4 +1,4 @@ -# Insipred by the the same configuration file available in the SystemView tool +# Inspired by the the same configuration file available in the SystemView tool Option ReversePriority # diff --git a/subsys/tracing/tracing_backend_usb.c b/subsys/tracing/tracing_backend_usb.c index e2c7e36dcbf..7bcbb66f06f 100644 --- a/subsys/tracing/tracing_backend_usb.c +++ b/subsys/tracing/tracing_backend_usb.c @@ -150,7 +150,7 @@ static void tracing_backend_usb_output(const struct tracing_backend *backend, transfer_state = USB_TRANSFER_ONGOING; /* - * make sure every USB tansfer no need ZLP at all + * make sure every USB transfer no need ZLP at all * because we are in lowest priority thread content * there are no deterministic time between real USB * packet and ZLP diff --git a/subsys/usb/class/audio/audio.c b/subsys/usb/class/audio/audio.c index 2e2725972b3..b4d06771b15 100644 --- a/subsys/usb/class/audio/audio.c +++ b/subsys/usb/class/audio/audio.c @@ -51,7 +51,7 @@ static sys_slist_t usb_audio_data_devlist; * @brief Fill the USB Audio descriptor * * This macro fills USB descriptor for specific type of device - * (Heahphones or Microphone) depending on dev param. + * (Headphones or Microphone) depending on dev param. * * @note Feature unit has variable length and only 1st field of * .bmaControls is filled. Later its fixed in usb_fix_descriptor() @@ -357,7 +357,7 @@ static void audio_cb_usb_status(struct usb_cfg_data *cfg, } /** - * @brief Helper funciton for checking if particular entity is a part of + * @brief Helper function for checking if particular entity is a part of * the audio device. * * This function checks if given entity is a part of given audio device. @@ -406,7 +406,7 @@ static bool is_entity_valid(struct usb_audio_dev_data *audio_dev_data, } /** - * @brief Helper funciton for getting the audio_dev_data by the entity number. + * @brief Helper function for getting the audio_dev_data by the entity number. * * This function searches through all audio devices the one with given * entity number and return the audio_dev_data structure for this entity. @@ -436,7 +436,7 @@ static struct usb_audio_dev_data *get_audio_dev_data_by_entity( } /** - * @brief Helper funciton for checking if particular interface is a part of + * @brief Helper function for checking if particular interface is a part of * the audio device. * * This function checks if given interface is a part of given audio device. @@ -467,7 +467,7 @@ static bool is_interface_valid(struct usb_audio_dev_data *audio_dev_data, } /** - * @brief Helper funciton for getting the audio_dev_data by the interface + * @brief Helper function for getting the audio_dev_data by the interface * number. * * This function searches through all audio devices the one with given @@ -507,7 +507,7 @@ static struct usb_audio_dev_data *get_audio_dev_data_by_iface(uint8_t interface) * @param device Device part that has been addressed. Applicable for * bidirectional device. * - * @return 0 if succesfulf, negative errno otherwise. + * @return 0 if successful, negative errno otherwise. */ static int handle_fu_mute_req(struct usb_audio_dev_data *audio_dev_data, struct usb_setup_packet *setup, @@ -555,7 +555,7 @@ static int handle_fu_mute_req(struct usb_audio_dev_data *audio_dev_data, * @param len Size of the buffer. * @param data Buffer containing the request result. * - * @return 0 if succesfulf, negative errno otherwise. + * @return 0 if successful, negative errno otherwise. */ static int handle_feature_unit_req(struct usb_audio_dev_data *audio_dev_data, struct usb_setup_packet *pSetup, diff --git a/subsys/usb/class/audio/usb_audio_internal.h b/subsys/usb/class/audio/usb_audio_internal.h index e207b4ced4c..fb2a8971de1 100644 --- a/subsys/usb/class/audio/usb_audio_internal.h +++ b/subsys/usb/class/audio/usb_audio_internal.h @@ -36,7 +36,7 @@ #define BMA_CONTROLS_OFFSET 6 #define FU_FIXED_ELEMS_SIZE 7 -/* Macros for maitaining features of feature unit entity */ +/* Macros for maintaining features of feature unit entity */ #define FEATURE_MUTE_SIZE 0x01 #define FEATURE_VOLUME_SIZE 0x02 #define FEATURE_BASS_SIZE 0x01 @@ -104,7 +104,7 @@ | IF_USB_AUDIO_PROP(dev, i, channel_t, BIT(11))\ ) -/* Macro for getting the number of configured channles for given device. +/* Macro for getting the number of configured channels for given device. * Master channel (0) excluded. */ #define CH_CNT(dev, i) (0 \ @@ -199,7 +199,7 @@ struct usb_audio_entity { }; /** - * @warning Size of baInterface is 2 just to make it useable + * @warning Size of baInterface is 2 just to make it usable * for all kind of devices: headphones, microphone and headset. * Actual size of the struct should be checked by reading * .bLength. diff --git a/subsys/usb/class/dfu/usb_dfu.c b/subsys/usb/class/dfu/usb_dfu.c index 2f0ce006ddc..800ecc0c26b 100644 --- a/subsys/usb/class/dfu/usb_dfu.c +++ b/subsys/usb/class/dfu/usb_dfu.c @@ -694,7 +694,7 @@ static void dfu_status_cb(struct usb_cfg_data *cfg, LOG_DBG("USB device disconnected"); break; case USB_DC_SUSPEND: - LOG_DBG("USB device supended"); + LOG_DBG("USB device suspended"); break; case USB_DC_RESUME: LOG_DBG("USB device resumed"); diff --git a/subsys/usb/class/msc.c b/subsys/usb/class/msc.c index 005b0622687..47246f62921 100644 --- a/subsys/usb/class/msc.c +++ b/subsys/usb/class/msc.c @@ -869,7 +869,7 @@ static void mass_storage_status_cb(struct usb_cfg_data *cfg, LOG_DBG("USB device disconnected"); break; case USB_DC_SUSPEND: - LOG_DBG("USB device supended"); + LOG_DBG("USB device suspended"); break; case USB_DC_RESUME: LOG_DBG("USB device resumed"); @@ -977,7 +977,7 @@ static int mass_storage_init(const struct device *dev) if (block_size != BLOCK_SIZE) { LOG_ERR("Block Size reported by the storage side is " - "different from Mass Storgae Class page Buffer - " + "different from Mass Storage Class page Buffer - " "Aborting"); return 0; } diff --git a/subsys/usb/class/netusb/function_ecm.c b/subsys/usb/class/netusb/function_ecm.c index f605e845a79..e4cb638c6b4 100644 --- a/subsys/usb/class/netusb/function_ecm.c +++ b/subsys/usb/class/netusb/function_ecm.c @@ -380,7 +380,7 @@ static void ecm_status_cb(struct usb_cfg_data *cfg, case USB_DC_CONFIGURED: case USB_DC_SUSPEND: case USB_DC_RESUME: - LOG_DBG("USB unhandlded state: %d", status); + LOG_DBG("USB unhandled state: %d", status); break; case USB_DC_SOF: diff --git a/subsys/usb/class/netusb/function_eem.c b/subsys/usb/class/netusb/function_eem.c index df7ddbdd88e..97d5ed074aa 100644 --- a/subsys/usb/class/netusb/function_eem.c +++ b/subsys/usb/class/netusb/function_eem.c @@ -258,7 +258,7 @@ static void eem_status_cb(struct usb_cfg_data *cfg, case USB_DC_CONFIGURED: case USB_DC_SUSPEND: case USB_DC_RESUME: - LOG_DBG("USB unhandlded state: %d", status); + LOG_DBG("USB unhandled state: %d", status); break; case USB_DC_SOF: diff --git a/subsys/usb/class/netusb/function_rndis.c b/subsys/usb/class/netusb/function_rndis.c index c2269dd360a..3506ae24ff7 100644 --- a/subsys/usb/class/netusb/function_rndis.c +++ b/subsys/usb/class/netusb/function_rndis.c @@ -342,10 +342,10 @@ static void rndis_bulk_out(uint8_t ep, enum usb_dc_ep_cb_status_code ep_status) } /* We already use frame keeping with len, warn here about - * receiving frame delimeter + * receiving frame delimiter */ if (len == 1U && !buffer[0]) { - LOG_DBG("Got frame delimeter, skip"); + LOG_DBG("Got frame delimiter, skip"); return; } @@ -513,7 +513,7 @@ static int rndis_init_handle(uint8_t *data, uint32_t len) rndis_queue_rsp(buf); - /* Nofity about ready reply */ + /* Notify about ready reply */ rndis_notify_rsp(); return 0; @@ -669,7 +669,7 @@ static int rndis_query_handle(uint8_t *data, uint32_t len) rndis_queue_rsp(buf); - /* Nofity about ready reply */ + /* Notify about ready reply */ rndis_notify_rsp(); return 0; @@ -742,7 +742,7 @@ static int rndis_set_handle(uint8_t *data, uint32_t len) rndis_queue_rsp(buf); - /* Nofity about ready reply */ + /* Notify about ready reply */ rndis_notify_rsp(); return 0; @@ -769,7 +769,7 @@ static int rndis_reset_handle(uint8_t *data, uint32_t len) rndis_queue_rsp(buf); - /* Nofity about ready reply */ + /* Notify about ready reply */ rndis_notify_rsp(); return 0; @@ -797,7 +797,7 @@ static int rndis_keepalive_handle(uint8_t *data, uint32_t len) rndis_queue_rsp(buf); - /* Nofity about ready reply */ + /* Notify about ready reply */ rndis_notify_rsp(); return 0; @@ -1133,7 +1133,7 @@ static void rndis_status_cb(struct usb_cfg_data *cfg, case USB_DC_SUSPEND: case USB_DC_RESUME: case USB_DC_INTERFACE: - LOG_DBG("USB unhandlded state: %d", status); + LOG_DBG("USB unhandled state: %d", status); break; case USB_DC_SOF: diff --git a/subsys/usb/class/netusb/function_rndis.h b/subsys/usb/class/netusb/function_rndis.h index a5f44495aec..532686d3ca6 100644 --- a/subsys/usb/class/netusb/function_rndis.h +++ b/subsys/usb/class/netusb/function_rndis.h @@ -7,7 +7,7 @@ void rndis_clean(void); /* - * RNDIS definitons + * RNDIS definitions */ #define RNDIS_GEN_MAX_TOTAL_SIZE 1558 diff --git a/subsys/usb/usb_device.c b/subsys/usb/usb_device.c index f8d164e669a..7005e0db677 100644 --- a/subsys/usb/usb_device.c +++ b/subsys/usb/usb_device.c @@ -1266,7 +1266,7 @@ int usb_deconfig(void) /* unregister descriptors */ usb_register_descriptors(NULL); - /* unegister standard request handler */ + /* unregister standard request handler */ usb_register_request_handler(USB_REQTYPE_TYPE_STANDARD, NULL); /* unregister class request handlers for each interface*/ @@ -1376,7 +1376,7 @@ int usb_wakeup_request(void) * Note, a USB function can have more than one interface and the * request does not have to be directed to the first interface (unlikely). * These functions can be simplified and moved to usb_handle_request() - * when legacy initialization throgh the usb_set_config() and + * when legacy initialization through the usb_set_config() and * usb_enable() is no longer needed. */ @@ -1522,7 +1522,7 @@ int usb_enable(usb_dc_status_callback status_cb) int ret; struct usb_dc_ep_cfg_data ep0_cfg; - /* Prevent from calling usb_enable form different contex. + /* Prevent from calling usb_enable form different context. * This should only be called once. */ LOG_DBG("lock usb_enable_lock mutex"); diff --git a/tests/arch/arm/arm_interrupt/README.txt b/tests/arch/arm/arm_interrupt/README.txt index 59db3263afd..d3f207e5d5a 100644 --- a/tests/arch/arm/arm_interrupt/README.txt +++ b/tests/arch/arm/arm_interrupt/README.txt @@ -2,7 +2,7 @@ Title: Test to verify code fault handling in ISR execution context and the behavior of irq_lock() and irq_unlock() when invoked from User Mode. An additional test case verifies that null pointer dereferencing attempts are detected and interpreted - as CPU fauls. Tests supported only on Cortex-M architecture. + as CPU faults. Tests supported only on Cortex-M architecture. Description: diff --git a/tests/arch/arm/arm_no_multithreading/README.txt b/tests/arch/arm/arm_no_multithreading/README.txt index feda4f0d996..ee58af41427 100644 --- a/tests/arch/arm/arm_no_multithreading/README.txt +++ b/tests/arch/arm/arm_no_multithreading/README.txt @@ -10,7 +10,7 @@ ARM Cortex-M targets. In detail the test verifies that - PSPLIM is set to the main stack base (if applicable) - FPU state is reset (if applicable) - Interrupts are enabled when switching to main() -- Interrupts may be registerd and serviced +- Interrupts may be registered and serviced - Activating PendSV triggers a Reserved Exception error --------------------------------------------------------------------------- diff --git a/tests/arch/arm/arm_ramfunc/README.txt b/tests/arch/arm/arm_ramfunc/README.txt index e20a00c3c30..71c6f0b52ca 100644 --- a/tests/arch/arm/arm_ramfunc/README.txt +++ b/tests/arch/arm/arm_ramfunc/README.txt @@ -3,7 +3,7 @@ Title: Test to verify code execution from SRAM for XIP images (ARM Only) Description: This test verifies that we can define functions in SRAM (and -sucessfully execute them from SRAM) in ARM XIP images. It +successfully execute them from SRAM) in ARM XIP images. It also verifies that the .ramfunc section is accessible by nPRIV code when building with support for user mode (CONFIG_USERSPACE=y). Only for ARM Cortex-M targets. diff --git a/tests/arch/arm/arm_thread_swap_tz/Kconfig b/tests/arch/arm/arm_thread_swap_tz/Kconfig index 6e237c6d596..59ac6f2cac1 100644 --- a/tests/arch/arm/arm_thread_swap_tz/Kconfig +++ b/tests/arch/arm/arm_thread_swap_tz/Kconfig @@ -1,5 +1,5 @@ # SPDX-License-Identifier: Apache-2.0 -# Copyright (c) 2021 Nordic Semicondutor ASA +# Copyright (c) 2021 Nordic Semiconductor ASA config ARM_STORE_EXC_RETURN bool diff --git a/tests/arch/arm64/arm64_gicv3_its/boards/fvp_base_revc_2xaemv8a.conf b/tests/arch/arm64/arm64_gicv3_its/boards/fvp_base_revc_2xaemv8a.conf index aa094e60d11..70a699068df 100644 --- a/tests/arch/arm64/arm64_gicv3_its/boards/fvp_base_revc_2xaemv8a.conf +++ b/tests/arch/arm64/arm64_gicv3_its/boards/fvp_base_revc_2xaemv8a.conf @@ -8,7 +8,7 @@ # # Note, will need 64K HEAP_MEM per CPUs added. # -# This doesn't necessarely include the Interrupt Translation Table, which are +# This doesn't necessarily include the Interrupt Translation Table, which are # 256bytes aligned tables, for reference a 32 ITEs table needs 256bytes. # # To permit allocating 256 ITT tables of 32 ITEs, 13x64K HEAP_MEM is needed diff --git a/tests/arch/arm64/arm64_psci/src/main.c b/tests/arch/arm64/arm64_psci/src/main.c index a1953f4dae7..7c680227c2c 100644 --- a/tests/arch/arm64/arm64_psci/src/main.c +++ b/tests/arch/arm64/arm64_psci/src/main.c @@ -17,7 +17,7 @@ void test_psci_func(void) ver = psci_version(); zassert_false((PSCI_VERSION_MAJOR(ver) == 0 && PSCI_VERSION_MINOR(ver) < 2), - "Wrong PSCI firware version"); + "Wrong PSCI firmware version"); /* This should return -PSCI_RET_ALREADY_ON that is mapped to -EINVAL */ ret = pm_cpu_on(0, 0); diff --git a/tests/arch/xtensa_asm2/src/main.c b/tests/arch/xtensa_asm2/src/main.c index 1df3ec1dc3f..b1642aff05c 100644 --- a/tests/arch/xtensa_asm2/src/main.c +++ b/tests/arch/xtensa_asm2/src/main.c @@ -486,7 +486,7 @@ int interrupt_test(void) * main thread calling functions that don't involve * exceptions. By experiment, calling spill_fn with a * first (depth) argument of 6 or 7 results in a - * shallow call tree that won't throw exepctions. At + * shallow call tree that won't throw exceptions. At * least we're executing real code which depends on * its register state and validating that interrupts * don't hurt. diff --git a/tests/benchmarks/data_structure_perf/rbtree_perf/src/rbtree_perf.c b/tests/benchmarks/data_structure_perf/rbtree_perf/src/rbtree_perf.c index 5acace1d907..cd0efe50a95 100644 --- a/tests/benchmarks/data_structure_perf/rbtree_perf/src/rbtree_perf.c +++ b/tests/benchmarks/data_structure_perf/rbtree_perf/src/rbtree_perf.c @@ -13,7 +13,7 @@ */ const static uint32_t dlog_N = 18; -/* rbnode structure is embeddedable in user structure */ +/* rbnode structure is embeddable in user structure */ struct container_node { struct rbnode node; int value; @@ -34,7 +34,7 @@ bool node_lessthan(struct rbnode *a, struct rbnode *b) * @details * Test Objective: * - Define and initialize a rbtree, and test two features: - * first, rbtree node struct can be embeded in any user struct. + * first, rbtree node struct can be embedded in any user struct. * last, rbtree can be walked though by some macro APIs. * * Testing techniques: diff --git a/tests/benchmarks/latency_measure/src/coop_ctx_switch.c b/tests/benchmarks/latency_measure/src/coop_ctx_switch.c index ccddb8a3882..1a0f09e5add 100644 --- a/tests/benchmarks/latency_measure/src/coop_ctx_switch.c +++ b/tests/benchmarks/latency_measure/src/coop_ctx_switch.c @@ -45,7 +45,7 @@ K_SEM_DEFINE(sync_sema, 0, 1); /** * - * thread_onne + * thread_one * * Fiber makes all the test preparations: registers the interrupt handler, * gets the first timestamp and invokes the software interrupt. diff --git a/tests/benchmarks/sys_kernel/src/lifo.c b/tests/benchmarks/sys_kernel/src/lifo.c index 1695fca202a..103981bdb6b 100644 --- a/tests/benchmarks/sys_kernel/src/lifo.c +++ b/tests/benchmarks/sys_kernel/src/lifo.c @@ -205,7 +205,7 @@ int lifo_test(void) k_fifo_put(&sync_fifo, element); } - /* test get wait & put functions between co-op and premptive threads */ + /* test get wait & put functions between co-op and preemptive threads */ fprintf(output_file, sz_test_case_fmt, "LIFO #3"); fprintf(output_file, sz_description, diff --git a/tests/benchmarks/sys_kernel/src/mwfifo.c b/tests/benchmarks/sys_kernel/src/mwfifo.c index 9dcbf7abf5a..0318f4d157d 100644 --- a/tests/benchmarks/sys_kernel/src/mwfifo.c +++ b/tests/benchmarks/sys_kernel/src/mwfifo.c @@ -203,7 +203,7 @@ int fifo_test(void) k_fifo_put(&sync_fifo, element); } - /* test get wait & put functions between co-op and premptive threads */ + /* test get wait & put functions between co-op and preemptive threads */ fprintf(output_file, sz_test_case_fmt, "FIFO #3"); fprintf(output_file, sz_description, diff --git a/tests/benchmarks/sys_kernel/src/stack.c b/tests/benchmarks/sys_kernel/src/stack.c index 460dd5da278..1fe104da5f1 100644 --- a/tests/benchmarks/sys_kernel/src/stack.c +++ b/tests/benchmarks/sys_kernel/src/stack.c @@ -190,7 +190,7 @@ int stack_test(void) return_value += check_result(i, t); - /* test get wait & put stack functions across co-op and premptive + /* test get wait & put stack functions across co-op and preemptive * threads */ fprintf(output_file, sz_test_case_fmt, diff --git a/tests/benchmarks/sys_kernel/src/syskernel.c b/tests/benchmarks/sys_kernel/src/syskernel.c index c111817b2cc..de2a5674409 100644 --- a/tests/benchmarks/sys_kernel/src/syskernel.c +++ b/tests/benchmarks/sys_kernel/src/syskernel.c @@ -127,7 +127,7 @@ void main(void) number_of_loops = NUMBER_OF_LOOPS; - /* The following code is needed to make the benchmakring run on + /* The following code is needed to make the benchmarking run on * slower platforms. */ uint64_t time_stamp = sys_clock_tick_get(); diff --git a/tests/bluetooth/bsim_bt/bsim_test_l2cap/src/main_l2cap_ecred.c b/tests/bluetooth/bsim_bt/bsim_test_l2cap/src/main_l2cap_ecred.c index acae9113ca8..64096d79ac4 100644 --- a/tests/bluetooth/bsim_bt/bsim_test_l2cap/src/main_l2cap_ecred.c +++ b/tests/bluetooth/bsim_bt/bsim_test_l2cap/src/main_l2cap_ecred.c @@ -84,7 +84,7 @@ static int chan_recv_cb(struct bt_l2cap_chan *l2cap_chan, struct net_buf *buf) struct channel *chan = CONTAINER_OF(l2cap_chan, struct channel, le); const uint32_t received_iterration = net_buf_pull_le32(buf); - LOG_DBG("received_iterration %i sdus_receied %i, chan_id: %d, data_length: %d", + LOG_DBG("received_iterration %i sdus_received %i, chan_id: %d, data_length: %d", received_iterration, chan->sdus_received, chan->chan_id, buf->len); if (!TEST_FLAG(unsequenced_data) && received_iterration != chan->sdus_received) { FAIL("Received out of sequence data."); @@ -97,7 +97,7 @@ static int chan_recv_cb(struct bt_l2cap_chan *l2cap_chan, struct net_buf *buf) FAIL("Payload received didn't match expected value memcmp returned %i", retval); } - /*By the time we rx on long msg channel we should have alrady rx on short msg channel*/ + /*By the time we rx on long msg channel we should have already rx on short msg channel*/ if (chan->chan_id == 0) { if (channels[SHORT_MSG_CHAN_IDX].sdus_received != (channels[LONG_MSG_CHAN_IDX].sdus_received + 1)) { @@ -239,7 +239,7 @@ static void disconnect_all_channels(void) const int err = bt_l2cap_chan_disconnect(&channels[i].le.chan); if (err) { - LOG_DBG("can't disconnnect channel (err: %d)", err); + LOG_DBG("can't disconnect channel (err: %d)", err); } channels[i].in_use = false; @@ -346,7 +346,7 @@ static void send_sdu(int iteration, int chan_idx, int bytes) sys_put_le32(iteration, channels[chan_idx].payload); if (channels[chan_idx].buf != 0) { - FAIL("Buf should have been dealocated by now"); + FAIL("Buf should have been deallocated by now"); return; } @@ -395,7 +395,7 @@ static void send_sdu_concurrently(void) &channels[k].work); if (err < 0) { - FAIL("Failed to submit work to the queque, error: %d", err); + FAIL("Failed to submit work to the queue, error: %d", err); } } diff --git a/tests/bluetooth/bsim_bt/bsim_test_mesh/src/settings_test_backend.c b/tests/bluetooth/bsim_bt/bsim_test_mesh/src/settings_test_backend.c index 9e03643d4f2..72455947558 100644 --- a/tests/bluetooth/bsim_bt/bsim_test_mesh/src/settings_test_backend.c +++ b/tests/bluetooth/bsim_bt/bsim_test_mesh/src/settings_test_backend.c @@ -120,7 +120,7 @@ static int settings_custom_load(struct settings_store *cs, const struct settings return fclose(fp); } -/* Entries are saved to optimize redability of the settings file for test development and +/* Entries are saved to optimize readability of the settings file for test development and * debugging purposes. Format: * =\n */ @@ -171,7 +171,7 @@ static int settings_custom_save(struct settings_store *cs, const char *name, (uint8_t)value[valcnt / 2]); }; - /* helps in making settings file redable */ + /* helps in making settings file readable */ bufval[valcnt++] = '\n'; bufval[valcnt] = 0; diff --git a/tests/bluetooth/bsim_bt/bsim_test_mesh/src/test_access.c b/tests/bluetooth/bsim_bt/bsim_test_mesh/src/test_access.c index 42fe1ec9a43..b3f62e0996e 100644 --- a/tests/bluetooth/bsim_bt/bsim_test_mesh/src/test_access.c +++ b/tests/bluetooth/bsim_bt/bsim_test_mesh/src/test_access.c @@ -560,7 +560,7 @@ static void recv_jitter_check(int32_t interval, uint8_t count) uint32_t jitter = 0; int err; - /* The measurment starts by the first received message. */ + /* The measurement starts by the first received message. */ err = k_sem_take(&publish_sem, K_SECONDS(20)); if (err) { FAIL("Recv timed out"); diff --git a/tests/bluetooth/bsim_bt/bsim_test_mesh/src/test_persistence.c b/tests/bluetooth/bsim_bt/bsim_test_mesh/src/test_persistence.c index 455c0f264e8..3e5d0d7c50f 100644 --- a/tests/bluetooth/bsim_bt/bsim_test_mesh/src/test_persistence.c +++ b/tests/bluetooth/bsim_bt/bsim_test_mesh/src/test_persistence.c @@ -843,7 +843,7 @@ static void test_cfg_save(void) current_stack_cfg->net_transmit, &transmit); if (err || transmit != current_stack_cfg->net_transmit) { - FAIL("Net transmit set failed (err %d, trasmit %x)", err, transmit); + FAIL("Net transmit set failed (err %d, transmit %x)", err, transmit); } err = bt_mesh_cfg_relay_set(test_netkey_idx, TEST_ADDR, diff --git a/tests/bluetooth/bsim_bt/bsim_test_mesh/src/test_transport.c b/tests/bluetooth/bsim_bt/bsim_test_mesh/src/test_transport.c index 175a94591bc..552d0f68fbd 100644 --- a/tests/bluetooth/bsim_bt/bsim_test_mesh/src/test_transport.c +++ b/tests/bluetooth/bsim_bt/bsim_test_mesh/src/test_transport.c @@ -293,7 +293,7 @@ static void test_tx_seg_concurrent(void) * Send another message, then end the IV update state before it's finished. * The IV index should change when this message finishes. * - * The IV update should not interfer with the segmented message, and the + * The IV update should not interfere with the segmented message, and the */ static void test_tx_seg_ivu(void) { diff --git a/tests/bluetooth/bsim_bt/bsim_test_mesh/tests_scripts/friendship/lpn_disable.sh b/tests/bluetooth/bsim_bt/bsim_test_mesh/tests_scripts/friendship/lpn_disable.sh index 15d1b62d87b..1769798e4e4 100755 --- a/tests/bluetooth/bsim_bt/bsim_test_mesh/tests_scripts/friendship/lpn_disable.sh +++ b/tests/bluetooth/bsim_bt/bsim_test_mesh/tests_scripts/friendship/lpn_disable.sh @@ -6,7 +6,7 @@ source $(dirname "${BASH_SOURCE[0]}")/../../_mesh_test.sh # Check that disabling LPN gives correct behaviour. # -# In this test the lpn node will enable the lpn feature, and then immediatley +# In this test the lpn node will enable the lpn feature, and then immediately # disables it again. Then we check that that the lpn node is actually in a # disabled state. This test ensures that a lpn disable call is not overwritten # by a subsequent lpn enable call, since the enable call is associated with diff --git a/tests/bluetooth/bsim_bt/bsim_test_mesh/tests_scripts/friendship/msg_group.sh b/tests/bluetooth/bsim_bt/bsim_test_mesh/tests_scripts/friendship/msg_group.sh index c092e01e665..75e87e9a804 100755 --- a/tests/bluetooth/bsim_bt/bsim_test_mesh/tests_scripts/friendship/msg_group.sh +++ b/tests/bluetooth/bsim_bt/bsim_test_mesh/tests_scripts/friendship/msg_group.sh @@ -4,7 +4,7 @@ source $(dirname "${BASH_SOURCE[0]}")/../../_mesh_test.sh -# Test receieves on group and virtual addresses in the LPN +# Test receives on group and virtual addresses in the LPN RunTest mesh_friendship_msg_group \ friendship_lpn_group \ friendship_other_group \ diff --git a/tests/bluetooth/bsim_bt/bsim_test_mesh/tests_scripts/persistence/reprovisioning.sh b/tests/bluetooth/bsim_bt/bsim_test_mesh/tests_scripts/persistence/reprovisioning.sh index f6154e31eb9..44624c53361 100755 --- a/tests/bluetooth/bsim_bt/bsim_test_mesh/tests_scripts/persistence/reprovisioning.sh +++ b/tests/bluetooth/bsim_bt/bsim_test_mesh/tests_scripts/persistence/reprovisioning.sh @@ -13,7 +13,7 @@ conf=prj_pst_conf RunTest mesh_persistence_reprovisioning persistence_reprovisioning_device \ persistence_reprovisioning_provisioner -- -argstest clear-settings=1 -# Repeate the test +# Repeat the test conf=prj_pst_conf RunTest mesh_persistence_reprovisioning persistence_reprovisioning_device \ persistence_reprovisioning_provisioner diff --git a/tests/bluetooth/bsim_bt/edtt_ble_test_app/README.txt b/tests/bluetooth/bsim_bt/edtt_ble_test_app/README.txt index 6c8203699e2..7443de17ab1 100644 --- a/tests/bluetooth/bsim_bt/edtt_ble_test_app/README.txt +++ b/tests/bluetooth/bsim_bt/edtt_ble_test_app/README.txt @@ -31,7 +31,7 @@ How to use it Assuming you have already `installed BabbleSim `_. -Add to your environment the variable EDTT_PATH poitining to the +Add to your environment the variable EDTT_PATH pointing to the EDTT folder. You can do this by adding it to your `~/.bashrc`, `~/.zephyrrc`, or similar something like: ``` diff --git a/tests/bluetooth/bsim_bt/edtt_ble_test_app/common/edtt_driver_bsim.c b/tests/bluetooth/bsim_bt/edtt_ble_test_app/common/edtt_driver_bsim.c index b866e24311a..ba73a058c64 100644 --- a/tests/bluetooth/bsim_bt/edtt_ble_test_app/common/edtt_driver_bsim.c +++ b/tests/bluetooth/bsim_bt/edtt_ble_test_app/common/edtt_driver_bsim.c @@ -179,7 +179,7 @@ static void edptd_create_fifo_if(void) if (pb_com_path == NULL) { bs_trace_error_line("Not connected to Phy." - "EDTT IF cannot be brough up\n"); + "EDTT IF cannot be brought up\n"); } /* At this point we have connected to the Phy so the COM folder does @@ -198,7 +198,7 @@ static void edptd_create_fifo_if(void) if ((pb_create_fifo_if_not_there(fifo_path[TO_DEVICE]) != 0) || (pb_create_fifo_if_not_there(fifo_path[TO_BRIDGE]) != 0)) { - bs_trace_error_line("Couldnt create FIFOs for EDTT IF\n"); + bs_trace_error_line("Couldn't create FIFOs for EDTT IF\n"); } /* we block here until the bridge opens its end */ diff --git a/tests/bluetooth/bsim_bt/edtt_ble_test_app/gatt_test_app/src/gatt/service_b_3_3.c b/tests/bluetooth/bsim_bt/edtt_ble_test_app/gatt_test_app/src/gatt/service_b_3_3.c index 87e20e2b687..1589821a1e0 100644 --- a/tests/bluetooth/bsim_bt/edtt_ble_test_app/gatt_test_app/src/gatt/service_b_3_3.c +++ b/tests/bluetooth/bsim_bt/edtt_ble_test_app/gatt_test_app/src/gatt/service_b_3_3.c @@ -151,7 +151,7 @@ static void value_v6_indicate_cb(struct bt_conn *conn, uint8_t err) { printk("Indication for attribute 'Value V6' %s\n", - (err) ? "failed" : "succeded"); + (err) ? "failed" : "succeeded"); } /** diff --git a/tests/bluetooth/bsim_bt/run_parallel.sh b/tests/bluetooth/bsim_bt/run_parallel.sh index 7f4fea6df13..49967c20f8c 100755 --- a/tests/bluetooth/bsim_bt/run_parallel.sh +++ b/tests/bluetooth/bsim_bt/run_parallel.sh @@ -12,7 +12,7 @@ function display_help(){ echo "run_parallel.sh [-help] [options]" echo " Execute all cases which do not start with an _ (underscore)" echo " [options] will be passed directly to the scripts" - echo " The results will be saved to \${RESULTS_FILE}, by deault" + echo " The results will be saved to \${RESULTS_FILE}, by default" echo " ../RunResults.xml" echo " Testcases are searched for in \${SEARCH_PATH}, by default this folder" } diff --git a/tests/bluetooth/controller/ctrl_cte_req/src/main.c b/tests/bluetooth/controller/ctrl_cte_req/src/main.c index b8c6be691ca..ca852e39539 100644 --- a/tests/bluetooth/controller/ctrl_cte_req/src/main.c +++ b/tests/bluetooth/controller/ctrl_cte_req/src/main.c @@ -50,7 +50,7 @@ static void setup(void) * +-----+ +-------+ +-----+ * | | | * | Start initiation | | - * | CTE Reqest Proc. | | + * | CTE Request Proc. | | * |--------------------------->| | * | | | * | | LL_LE_CTE_REQ | @@ -119,7 +119,7 @@ void test_cte_req_central_local(void) * +-----+ +-------+ +-----+ * | | | * | Start initiator | | - * | CTE Reqest Proc. | | + * | CTE Request Proc. | | * |--------------------------->| | * | | | * | | LL_LE_CTE_REQ | @@ -189,7 +189,7 @@ void test_cte_req_peripheral_local(void) * +-----+ +-------+ +-----+ * | | | * | Start responder | | - * | CTE Reqest Proc. | | + * | CTE Request Proc. | | * |--------------------------->| | * | | | * | | LL_LE_CTE_REQ | @@ -258,7 +258,7 @@ void test_cte_req_central_remote(void) * +-----+ +-------+ +-----+ * | | | * | Start responder | | - * | CTE Reqest Proc . | | + * | CTE Request Proc. | | * |--------------------------->| | * | | | * | | LL_LE_CTE_REQ | @@ -329,7 +329,7 @@ void test_cte_req_peripheral_remote(void) * +-----+ +-------+ +-----+ * | | | * | Start initiation | | - * | CTE Reqest Proc. | | + * | CTE Request Proc. | | * |--------------------------->| | * | | | * | | LL_LE_CTE_REQ | @@ -403,7 +403,7 @@ void test_cte_req_rejected_inv_ll_param_central_local(void) * +-----+ +-------+ +-----+ * | | | * | Start initiation | | - * | CTE Reqest Proc. | | + * | CTE Request Proc. | | * |--------------------------->| | * | | | * | | LL_LE_CTE_REQ | @@ -653,7 +653,7 @@ static bool is_instant_reached(struct ll_conn *conn, uint16_t instant) { /* Check if instant is in the past. * - * NOTE: If conn_event > instant then subtract operation will result in value greather than + * NOTE: If conn_event > instant then subtract operation will result in value greater than * 0x7FFF for uint16_t type. This is based on modulo 65536 math. The 0x7FFF is * maximum positive difference between actual value of connection event counter and * instant. @@ -768,7 +768,7 @@ void check_phy_update_and_cte_req_complete(bool is_local, struct pdu_data_llctrl event_prepare(&conn); if (!is_local && cte_req != NULL) { - /* Handle remote PHY update request completion and local CTE reques in the same + /* Handle remote PHY update request completion and local CTE request in the same * event. */ @@ -830,7 +830,7 @@ void check_phy_update_and_cte_req_complete(bool is_local, struct pdu_data_llctrl * @param is_local Flag informing if PHY request is local or remote. * @param cte_req Parameters of CTE request procedure. If it is NULL there were no CTE * request. - * @param phy_req Parameters of PHY update reques. + * @param phy_req Parameters of PHY update request. * @param events_at_start Number of connection events at function start. * @param ctx_num_at_end Expected number of free procedure contexts at function end. */ @@ -885,7 +885,7 @@ static void run_phy_update_central(bool is_local, struct pdu_data_llctrl_cte_req /* TX Ack */ event_tx_ack(&conn, tx); - /* Check that data tx is no lonnger paused */ + /* Check that data tx is no longer paused */ zassert_equal(conn.tx_q.pause_data, 0U, "Data tx is paused"); /* Done */ @@ -914,7 +914,7 @@ static void run_phy_update_central(bool is_local, struct pdu_data_llctrl_cte_req * @param is_local Flag informing if PHY request is local or remote. * @param cte_req Parameters of CTE request procedure. If it is NULL there were no CTE * request. - * @param phy_req Parameters of PHY update reques. + * @param phy_req Parameters of PHY update request. * @param events_at_start Number of connection events at function start. * @param ctx_num_at_end Expected number of free procedure contexts at function end. */ diff --git a/tests/bluetooth/controller/ctrl_hci/src/main.c b/tests/bluetooth/controller/ctrl_hci/src/main.c index 7006797112b..7f68a46be5a 100644 --- a/tests/bluetooth/controller/ctrl_hci/src/main.c +++ b/tests/bluetooth/controller/ctrl_hci/src/main.c @@ -390,7 +390,7 @@ void test_hci_conn_update(void) zassert_equal(err, BT_HCI_ERR_UNKNOWN_CMD, "Errorcode %d", err); } - /* Connection Update or Connecton Parameter Req. */ + /* Connection Update or Connection Parameter Req. */ conn_from_pool->llcp.fex.features_used |= BIT64(BT_LE_FEAT_BIT_CONN_PARAM_REQ); err = ll_conn_update(conn_handle, cmd, status, interval_min, interval_max, latency, timeout); @@ -401,14 +401,14 @@ void test_hci_conn_update(void) timeout); zassert_equal(err, BT_HCI_ERR_SUCCESS, "Errorcode %d", err); - /* Connecton Parameter Req. Reply */ + /* Connection Parameter Req. Reply */ cmd = 2U; conn_from_pool->llcp.fex.features_used |= BIT64(BT_LE_FEAT_BIT_CONN_PARAM_REQ); err = ll_conn_update(conn_handle, cmd, status, interval_min, interval_max, latency, timeout); zassert_equal(err, BT_HCI_ERR_SUCCESS, "Errorcode %d", err); - /* Connecton Parameter Req. Neg. Reply */ + /* Connection Parameter Req. Neg. Reply */ status = 0x01; conn_from_pool->llcp.fex.features_used |= BIT64(BT_LE_FEAT_BIT_CONN_PARAM_REQ); err = ll_conn_update(conn_handle, cmd, status, 0U, 0U, 0U, 0U); diff --git a/tests/bluetooth/controller/ctrl_phy_update/src/main.c b/tests/bluetooth/controller/ctrl_phy_update/src/main.c index d17a095c395..0d16a1cfc02 100644 --- a/tests/bluetooth/controller/ctrl_phy_update/src/main.c +++ b/tests/bluetooth/controller/ctrl_phy_update/src/main.c @@ -165,7 +165,7 @@ void test_phy_update_central_loc(void) /* TX Ack */ event_tx_ack(&conn, tx); - /* Check that data tx is no lonnger paused */ + /* Check that data tx is no longer paused */ zassert_equal(conn.tx_q.pause_data, 0U, "Data tx is paused"); /* Done */ diff --git a/tests/bluetooth/controller/ctrl_tx_buffer_alloc/src/main.c b/tests/bluetooth/controller/ctrl_tx_buffer_alloc/src/main.c index d9cb1214616..5769f1b6a23 100644 --- a/tests/bluetooth/controller/ctrl_tx_buffer_alloc/src/main.c +++ b/tests/bluetooth/controller/ctrl_tx_buffer_alloc/src/main.c @@ -134,7 +134,7 @@ void test_tx_buffer_alloc(void) tx_alloc_idx++; #else /* LLCP_TX_CTRL_BUF_QUEUE_ENABLE */ - /* Test that there are excactly LLCP_CONN * LLCP_TX_CTRL_BUF_NUM_MAX + /* Test that there are exactly LLCP_CONN * LLCP_TX_CTRL_BUF_NUM_MAX * buffers available */ for (i = 0; diff --git a/tests/bluetooth/ctrl_isoal/src/main.c b/tests/bluetooth/ctrl_isoal/src/main.c index 0d9c4184626..6995bd5ba19 100644 --- a/tests/bluetooth/ctrl_isoal/src/main.c +++ b/tests/bluetooth/ctrl_isoal/src/main.c @@ -269,7 +269,7 @@ isoal_status_t sink_sdu_emit_test(const struct isoal_sink *sink_ctx, zassert_equal(res, 0, "len=%u buf[0]=0x%x ref[0]=0x%0x", sink_ctx->sdu_production.sdu_written, buf[0], pdu_ref[0]); - /* Advnace reference pointer, this will be needed when a PDU is split over multiple SDUs */ + /* Advance reference pointer, this will be needed when a PDU is split over multiple SDUs */ pdu_ref += sink_ctx->sdu_production.sdu_written; zassert_true(sdu_emit_expected, ""); clear_sdu_buf(); @@ -629,7 +629,7 @@ void test_unframed_single_pdu_err(void) /* Test recombine */ err = isoal_rx_pdu_recombine(sink_hdl, &pdu_meta); zassert_equal(err, ISOAL_STATUS_OK, "err=0x%02x", err); - /* Expectig 0 data to be written but with error status */ + /* Expecting 0 data to be written but with error status */ zassert_equal(sink->sdu_production.sdu_written, 0, "written=%u", sink->sdu_production.sdu_written); zassert_equal(sink->sdu_production.sdu_status, ISOAL_SDU_STATUS_ERRORS, "sdu_status=0x%x", @@ -655,7 +655,7 @@ void test_unframed_seq_err(void) /* Test recombine, should now trigger emit since this is last PDU in SDU */ pdu_ref = &testdata[0]; err = isoal_rx_pdu_recombine(sink_hdl, &pdu_meta); - /* Expectig data to be written but with error status */ + /* Expecting data to be written but with error status */ zassert_equal(err, ISOAL_STATUS_OK, "err=0x%02x", err); zassert_equal(sink->sdu_production.sdu_written, 3+7, "written=%u", sink->sdu_production.sdu_written); @@ -684,7 +684,7 @@ void test_unframed_seq_pdu_err(void) /* Test recombine, should now trigger emit since this is last PDU in SDU */ pdu_ref = &testdata[0]; err = isoal_rx_pdu_recombine(sink_hdl, &pdu_meta); - /* Expectig no new data to be written but with error status */ + /* Expecting no new data to be written but with error status */ zassert_equal(err, ISOAL_STATUS_OK, "err=0x%02x", err); zassert_equal(sink->sdu_production.sdu_written, 3, "written=%u", sink->sdu_production.sdu_written); @@ -694,7 +694,7 @@ void test_unframed_seq_pdu_err(void) /** - * @brief Excercise padding pdu path + * @brief Exercise padding pdu path */ void test_unframed_padding(void) { @@ -727,7 +727,7 @@ void test_unframed_padding(void) payload_number++, 923749, 0); err = isoal_rx_pdu_recombine(sink_hdl, &pdu_meta); zassert_equal(err, ISOAL_STATUS_OK, "err=0x%02x", err); - /* Expectig 0 data to be written, with no error status */ + /* Expecting 0 data to be written, with no error status */ zassert_equal(sink->sdu_production.sdu_written, 5+7+0, "written=%u", sink->sdu_production.sdu_written); zassert_equal(sink->sdu_production.sdu_status, ISOAL_SDU_STATUS_VALID, "sdu_status=0x%x", @@ -739,7 +739,7 @@ void test_unframed_padding(void) payload_number++, 923750, 0); err = isoal_rx_pdu_recombine(sink_hdl, &pdu_meta); zassert_equal(err, ISOAL_STATUS_OK, "err=0x%02x", err); - /* Expectig 0 data to be written but with error status */ + /* Expecting 0 data to be written but with error status */ zassert_equal(sink->sdu_production.sdu_written, 5+7+0, "written=%u", sink->sdu_production.sdu_written); zassert_equal(sink->sdu_production.sdu_status, ISOAL_SDU_STATUS_VALID, "sdu_status=0x%x", @@ -761,7 +761,7 @@ void test_unframed_padding_no_end(void) payload_number++, 923749, 0); err = isoal_rx_pdu_recombine(sink_hdl, &pdu_meta); zassert_equal(err, ISOAL_STATUS_OK, "err=0x%02x", err); - /* Expectig 0 data to be written, with no error status */ + /* Expecting 0 data to be written, with no error status */ zassert_equal(sink->sdu_production.sdu_written, 0, "written=%u", sink->sdu_production.sdu_written); zassert_equal(sink->sdu_production.sdu_status, ISOAL_SDU_STATUS_VALID, "sdu_status=0x%x", @@ -773,7 +773,7 @@ void test_unframed_padding_no_end(void) payload_number++, 923750, 0); err = isoal_rx_pdu_recombine(sink_hdl, &pdu_meta); zassert_equal(err, ISOAL_STATUS_OK, "err=0x%02x", err); - /* Expectig 0 data to be written, with no error status */ + /* Expecting 0 data to be written, with no error status */ zassert_equal(sink->sdu_production.sdu_written, 0, "written=%u", sink->sdu_production.sdu_written); zassert_equal(sink->sdu_production.sdu_status, ISOAL_SDU_STATUS_VALID, "sdu_status=0x%x", @@ -785,7 +785,7 @@ void test_unframed_padding_no_end(void) payload_number++, 923751, 0); err = isoal_rx_pdu_recombine(sink_hdl, &pdu_meta); zassert_equal(err, ISOAL_STATUS_OK, "err=0x%02x", err); - /* Expectig 0 data to be written but with error status */ + /* Expecting 0 data to be written but with error status */ zassert_equal(sink->sdu_production.sdu_written, 0, "written=%u", sink->sdu_production.sdu_written); zassert_equal(sink->sdu_production.sdu_status, ISOAL_SDU_STATUS_ERRORS, "sdu_status=0x%x", @@ -822,7 +822,7 @@ void test_unframed_padding_error1(void) payload_number++, 923750, 0); err = isoal_rx_pdu_recombine(sink_hdl, &pdu_meta); zassert_equal(err, ISOAL_STATUS_OK, "err=0x%02x", err); - /* Expectig 0 data to be written, with no error status */ + /* Expecting 0 data to be written, with no error status */ zassert_equal(sink->sdu_production.sdu_written, 0, "written=%u", sink->sdu_production.sdu_written); zassert_equal(sink->sdu_production.sdu_status, ISOAL_SDU_STATUS_ERRORS, "sdu_status=0x%x", @@ -834,7 +834,7 @@ void test_unframed_padding_error1(void) payload_number++, 923751, 0); err = isoal_rx_pdu_recombine(sink_hdl, &pdu_meta); zassert_equal(err, ISOAL_STATUS_OK, "err=0x%02x", err); - /* Expectig 0 data to be written but with error status */ + /* Expecting 0 data to be written but with error status */ zassert_equal(sink->sdu_production.sdu_written, 0, "written=%u", sink->sdu_production.sdu_written); zassert_equal(sink->sdu_production.sdu_status, ISOAL_SDU_STATUS_ERRORS, "sdu_status=0x%x", @@ -883,7 +883,7 @@ void test_unframed_padding_error2(void) payload_number++, 923751, 0); err = isoal_rx_pdu_recombine(sink_hdl, &pdu_meta); zassert_equal(err, ISOAL_STATUS_OK, "err=0x%02x", err); - /* Expectig 0 data to be written but with error status */ + /* Expecting 0 data to be written but with error status */ zassert_equal(sink->sdu_production.sdu_written, 5, "written=%u", sink->sdu_production.sdu_written); zassert_equal(sink->sdu_production.sdu_status, ISOAL_SDU_STATUS_ERRORS, "sdu_status=0x%x", @@ -952,7 +952,7 @@ void test_unframed_zero_len_packet(void) payload_number++, 923751, 0); err = isoal_rx_pdu_recombine(sink_hdl, &pdu_meta); zassert_equal(err, ISOAL_STATUS_OK, "err=0x%02x", err); - /* Expectig 0 data to be written but with error status */ + /* Expecting 0 data to be written but with error status */ zassert_equal(sink->sdu_production.sdu_written, 0, "written=%u", sink->sdu_production.sdu_written); zassert_equal(sink->sdu_production.sdu_status, ISOAL_SDU_STATUS_VALID, "sdu_status=0x%x", @@ -964,7 +964,7 @@ void test_unframed_zero_len_packet(void) */ void test_unframed_dbl_packet_no_end(void) { - /* Test assumes two PDUs per SDU intyerval */ + /* Test assumes two PDUs per SDU interval */ clear_sdu_buf(); construct_pdu_unframed(PDU_BIS_LLID_START_CONTINUE, &testdata[2], 5, @@ -1178,7 +1178,7 @@ void test_framed_single_pdu_err(void) construct_pdu_framed_start(0, 1, pdu_ref, 10, payload_number++, 1000, 1 /* error */); err = isoal_rx_pdu_recombine(sink_hdl, &pdu_meta); zassert_equal(err, ISOAL_STATUS_OK, "err=0x%02x", err); - /* Expectig 0 data to be written but with error status */ + /* Expecting 0 data to be written but with error status */ zassert_equal(sink->sdu_production.sdu_written, 0, "written=%u", sink->sdu_production.sdu_written); zassert_equal(sink->sdu_production.sdu_status, ISOAL_SDU_STATUS_ERRORS, "sdu_status=0x%x", diff --git a/tests/bluetooth/ctrl_sw_privacy_unit/src/main.c b/tests/bluetooth/ctrl_sw_privacy_unit/src/main.c index fb7e875cf63..1b3d4fc67fc 100644 --- a/tests/bluetooth/ctrl_sw_privacy_unit/src/main.c +++ b/tests/bluetooth/ctrl_sw_privacy_unit/src/main.c @@ -74,7 +74,7 @@ void helper_privacy_add(int skew) ex_pos = (1 + skew) % CONFIG_BT_CTLR_RPA_CACHE_SIZE; zassert_equal(pos, ex_pos, ""); - /* check that a1 can no loger be found */ + /* check that a1 can no longer be found */ pos = prpa_cache_find(&a1); zassert_equal(pos, FILTER_IDX_NONE, ""); } diff --git a/tests/bluetooth/df/common/src/hci_vendor_stub.c b/tests/bluetooth/df/common/src/hci_vendor_stub.c index 277641cffe4..3bb71d56c25 100644 --- a/tests/bluetooth/df/common/src/hci_vendor_stub.c +++ b/tests/bluetooth/df/common/src/hci_vendor_stub.c @@ -10,7 +10,7 @@ /** * @brief This is a stub of a function that provides static address. * - * This function is defined to silent wanring printed by Host during BT stack initialization due + * This function is defined to silent warning printed by Host during BT stack initialization due * to lack of static address stored in controller. */ uint8_t hci_vendor_read_static_addr(struct bt_hci_vs_static_addr addrs[], uint8_t size) diff --git a/tests/bluetooth/df/connectionless_cte_chains/src/common.c b/tests/bluetooth/df/connectionless_cte_chains/src/common.c index c02669892c4..60a28a093ad 100644 --- a/tests/bluetooth/df/connectionless_cte_chains/src/common.c +++ b/tests/bluetooth/df/connectionless_cte_chains/src/common.c @@ -335,7 +335,7 @@ void common_validate_per_adv_pdu(struct pdu_adv *pdu, enum test_pdu_ext_adv_type } /* - * @brief Helper function to prepre CTE configuration for a given advertising set. + * @brief Helper function to prepare CTE configuration for a given advertising set. * * Note: There is a single instance of CTE configuration. In case there is a need * to use multiple advertising sets at once, all will use the same CTE configuration. diff --git a/tests/bluetooth/df/connectionless_cte_chains/src/test_add_cte_to_chain.c b/tests/bluetooth/df/connectionless_cte_chains/src/test_add_cte_to_chain.c index 79bb31ed1e6..4322730c9e0 100644 --- a/tests/bluetooth/df/connectionless_cte_chains/src/test_add_cte_to_chain.c +++ b/tests/bluetooth/df/connectionless_cte_chains/src/test_add_cte_to_chain.c @@ -58,7 +58,7 @@ void test_add_number_of_cte_to_sigle_pdu_chain(void) err = ll_df_set_cl_cte_tx_enable(handle, true); zassert_equal(err, 0, - "Unexpected error while enabling CTE for periodic avertising chain, err: %d", + "Unexpected error while enabling CTE for periodic advertising chain, err: %d", err); /* Validate result */ @@ -84,7 +84,7 @@ void test_add_cte_for_each_pdu_in_chain(void) err = ll_df_set_cl_cte_tx_enable(handle, true); zassert_equal(err, 0, - "Unexpected error while enabling CTE for periodic avertising chain, err: %d", + "Unexpected error while enabling CTE for periodic advertising chain, err: %d", err); /* Validate result */ @@ -110,7 +110,7 @@ void test_add_cte_for_not_all_pdu_in_chain(void) err = ll_df_set_cl_cte_tx_enable(handle, true); zassert_equal(err, 0, - "Unexpected error while enabling CTE for periodic avertising chain, err: %d", + "Unexpected error while enabling CTE for periodic advertising chain, err: %d", err); /* Validate result */ @@ -147,7 +147,7 @@ void test_add_cte_to_not_all_pdus_in_chain_enqueued_to_lll(void) err = ll_df_set_cl_cte_tx_enable(handle, true); zassert_equal(err, 0, - "Unexpected error while enabling CTE for periodic avertising chain, err: %d", + "Unexpected error while enabling CTE for periodic advertising chain, err: %d", err); /* Validate result */ @@ -173,7 +173,7 @@ void test_add_cte_for_single_pdu_chain(void) err = ll_df_set_cl_cte_tx_enable(handle, true); zassert_equal(err, 0, - "Unexpected error while enabling CTE for periodic avertising chain, err: %d", + "Unexpected error while enabling CTE for periodic advertising chain, err: %d", err); /* Validate result */ diff --git a/tests/bluetooth/df/connectionless_cte_chains/src/test_remove_cte_from_chain.c b/tests/bluetooth/df/connectionless_cte_chains/src/test_remove_cte_from_chain.c index 974ddee6744..831c1034e7c 100644 --- a/tests/bluetooth/df/connectionless_cte_chains/src/test_remove_cte_from_chain.c +++ b/tests/bluetooth/df/connectionless_cte_chains/src/test_remove_cte_from_chain.c @@ -61,7 +61,7 @@ void test_remove_cte_from_chain_extended_to_tx_all_cte(void) err = ll_df_set_cl_cte_tx_enable(handle, false); zassert_equal(err, 0, - "Unexpected error while disabling CTE for periodic avertising chain, err: %d", + "Unexpected error while disabling CTE for periodic advertising chain, err: %d", err); /* Validate result */ common_validate_per_adv_chain(adv, TEST_PER_ADV_SINGLE_PDU); @@ -85,12 +85,12 @@ void test_remove_cte_from_chain_where_each_pdu_includes_cte(void) err = ll_df_set_cl_cte_tx_enable(handle, true); zassert_equal(err, 0, - "Unexpected error while enabling CTE for periodic avertising chain, err: %d", + "Unexpected error while enabling CTE for periodic advertising chain, err: %d", err); err = ll_df_set_cl_cte_tx_enable(handle, false); zassert_equal(err, 0, - "Unexpected error while disabling CTE for periodic avertising chain, err: %d", + "Unexpected error while disabling CTE for periodic advertising chain, err: %d", err); /* Validate result */ common_validate_per_adv_chain(adv, TEST_CTE_COUNT); @@ -116,7 +116,7 @@ void test_remove_cte_from_chain_with_more_pdu_than_cte(void) err = ll_df_set_cl_cte_tx_enable(handle, false); zassert_equal(err, 0, - "Unexpected error while disabling CTE for periodic avertising chain, err: %d", + "Unexpected error while disabling CTE for periodic advertising chain, err: %d", err); /* Validate result */ common_validate_per_adv_chain(adv, TEST_PER_ADV_CHAIN_LENGTH); @@ -142,7 +142,7 @@ void test_remove_cte_from_single_pdu_chain(void) err = ll_df_set_cl_cte_tx_enable(handle, false); zassert_equal(err, 0, - "Unexpected error while disabling CTE for periodic avertising chain, err: %d", + "Unexpected error while disabling CTE for periodic advertising chain, err: %d", err); /* Validate result */ common_validate_per_adv_chain(adv, TEST_PER_ADV_SINGLE_PDU); @@ -180,7 +180,7 @@ void remove_cte_from_chain_after_enqueue_to_lll(uint8_t cte_count, uint8_t init_ err = ll_df_set_cl_cte_tx_enable(handle, true); zassert_equal(err, 0, - "Unexpected error while enabling CTE for periodic avertising chain, err: %d", + "Unexpected error while enabling CTE for periodic advertising chain, err: %d", err); /* Swap PDU double buffer and get new latest PDU data */ @@ -215,7 +215,7 @@ void remove_cte_from_chain_after_enqueue_to_lll(uint8_t cte_count, uint8_t init_ err = ll_df_set_cl_cte_tx_enable(handle, false); zassert_equal(err, 0, - "Unexpected error while disabling CTE for periodic avertising chain, err: %d", + "Unexpected error while disabling CTE for periodic advertising chain, err: %d", err); /* Validate result */ common_validate_per_adv_chain(adv, expected_pdu_in_chain_after_cte_disable); diff --git a/tests/bluetooth/shell/audio.conf b/tests/bluetooth/shell/audio.conf index b85a58e3dd6..9ec71920bcd 100644 --- a/tests/bluetooth/shell/audio.conf +++ b/tests/bluetooth/shell/audio.conf @@ -1,4 +1,4 @@ -# Incresed stack due to settings API usage +# Increased stack due to settings API usage CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048 CONFIG_TEST=y diff --git a/tests/bluetooth/shell/prj.conf b/tests/bluetooth/shell/prj.conf index 2e2284b2485..7267d236510 100644 --- a/tests/bluetooth/shell/prj.conf +++ b/tests/bluetooth/shell/prj.conf @@ -1,4 +1,4 @@ -# Incresed stack due to settings API usage +# Increased stack due to settings API usage CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048 CONFIG_TEST=y diff --git a/tests/boards/espressif_esp32/cache_coex/src/cache_coex.c b/tests/boards/espressif_esp32/cache_coex/src/cache_coex.c index 4b7ebdb0797..99ee8ac461f 100644 --- a/tests/boards/espressif_esp32/cache_coex/src/cache_coex.c +++ b/tests/boards/espressif_esp32/cache_coex/src/cache_coex.c @@ -247,7 +247,7 @@ void flash_init(void) { flash_dev = device_get_binding(DT_CHOSEN_ZEPHYR_FLASH_CONTROLLER_LABEL); if (!flash_dev) { - TC_ERROR("flash controller initialization failedi\n"); + TC_ERROR("flash controller initialization failed\n"); } flash_test(); } diff --git a/tests/boards/intel_s1000_crb/main/src/i2s_test.c b/tests/boards/intel_s1000_crb/main/src/i2s_test.c index 5479c9f7d64..33d3cbdb848 100644 --- a/tests/boards/intel_s1000_crb/main/src/i2s_test.c +++ b/tests/boards/intel_s1000_crb/main/src/i2s_test.c @@ -12,7 +12,7 @@ * The i2s_cavs driver is being used. * * In this test app, I2S transmission and reception are tested as follows: - * I2S port #3 of Intel S1000 is configured for birectional mode + * I2S port #3 of Intel S1000 is configured for bidirectional mode * i.e., I2S_DIR_TX and I2S_DIR_RX * After each frame is received, it is sent/looped back on the same I2S * The transmit direction is started after 2 frames are queued. This is done to diff --git a/tests/boards/mec15xxevb_assy6853/qspi/src/main.c b/tests/boards/mec15xxevb_assy6853/qspi/src/main.c index 09ed0ca65cd..6e69d8823af 100644 --- a/tests/boards/mec15xxevb_assy6853/qspi/src/main.c +++ b/tests/boards/mec15xxevb_assy6853/qspi/src/main.c @@ -48,7 +48,7 @@ struct spi_buf txb[MAX_TX_BUF], rxb; struct spi_config spi_cfg_single, spi_cfg_dual, spi_cfg_quad; /** - * @brief Test spi devcie + * @brief Test spi device * @details * - Find spi device * - Read flash jedec id @@ -237,7 +237,7 @@ void test_spi_single_read(void) spi_opcode = SPI_FAST_READ_DATA; /* read data using spi single mode */ - /* set the spi opreation code and address */ + /* set the spi operation code and address */ memset(safbuf, 0, TEST_BUF_SIZE); safbuf[0] = spi_opcode & 0xFFU; safbuf[1] = SPI_TEST_ADDRESS & 0xFFFFFFU; @@ -297,7 +297,7 @@ void test_spi_dual_read(void) spi_opcode = SPI_DUAL_FAST_READ_DATA; /* read data using spi dual mode */ - /* set the spi opreation code and address */ + /* set the spi operation code and address */ memset(safbuf, 0, TEST_BUF_SIZE); safbuf[0] = spi_opcode & 0xFFU; safbuf[1] = SPI_TEST_ADDRESS & 0xFFFFFFU; @@ -476,7 +476,7 @@ void test_spi_quad_write(void) spi_cfg_quad.cs = NULL; /* write data using spi quad mode */ - /* send quad wirte opcode and address using single mode */ + /* send quad write opcode and address using single mode */ memset(safbuf, 0, TEST_BUF_SIZE); safbuf[0] = SPI_QUAD_WRITE_DATA; safbuf[1] = SPI_TEST_ADDRESS_2 & 0xFFFFFFU; @@ -539,7 +539,7 @@ void test_spi_quad_read(void) spi_opcode = SPI_QUAD_FAST_READ_DATA; /* read data using spi quad mode */ - /* set the spi opreation code and address */ + /* set the spi operation code and address */ memset(safbuf, 0, TEST_BUF_SIZE); safbuf[0] = spi_opcode & 0xFFU; safbuf[1] = SPI_TEST_ADDRESS_2 & 0xFFFFFFU; diff --git a/tests/boards/native_posix/rtc/src/main.c b/tests/boards/native_posix/rtc/src/main.c index 5c53e035e85..3cc64757138 100644 --- a/tests/boards/native_posix/rtc/src/main.c +++ b/tests/boards/native_posix/rtc/src/main.c @@ -161,7 +161,7 @@ static void test_rtc_offset(void) diff = native_rtc_gettime_us(RTC_CLOCK_REALTIME) - start_rtc_time[0]; - zassert_true(diff == offset, "Offseting RTC failed\n"); + zassert_true(diff == offset, "Offsetting RTC failed\n"); } void test_main(void) diff --git a/tests/boards/native_posix/rtc/testcase.yaml b/tests/boards/native_posix/rtc/testcase.yaml index 162c5f1d5fa..1db296743f4 100644 --- a/tests/boards/native_posix/rtc/testcase.yaml +++ b/tests/boards/native_posix/rtc/testcase.yaml @@ -1,4 +1,4 @@ -# Test of the native_posix real timenes and RTC model +# Test of the native_posix real timeness and RTC model tests: boards.native_posix.rtc: platform_allow: native_posix native_posix_64 diff --git a/tests/crypto/tinycrypt/src/ccm_mode.c b/tests/crypto/tinycrypt/src/ccm_mode.c index ca48429ecc8..419fe0d9826 100644 --- a/tests/crypto/tinycrypt/src/ccm_mode.c +++ b/tests/crypto/tinycrypt/src/ccm_mode.c @@ -42,7 +42,7 @@ * - AES128 CCM mode encryption RFC 3610 test vector #8 * - AES128 CCM mode encryption RFC 3610 test vector #9 * - AES128 CCM mode encryption No associated data - * - AES128 CCM mode encryption No payhoad data + * - AES128 CCM mode encryption No payload data */ #include diff --git a/tests/drivers/adc/adc_api/src/test_adc.c b/tests/drivers/adc/adc_api/src/test_adc.c index 0e7b2084b58..a3599fea92c 100644 --- a/tests/drivers/adc/adc_api/src/test_adc.c +++ b/tests/drivers/adc/adc_api/src/test_adc.c @@ -335,7 +335,7 @@ #endif /* Invalid value that is not supposed to be written by the driver. It is used - * to mark the sample buffer entries as empty. If needed, it can be overriden + * to mark the sample buffer entries as empty. If needed, it can be overridden * for a particular board by providing a specific definition above. */ #if !defined(INVALID_ADC_VALUE) diff --git a/tests/drivers/adc/adc_emul/src/main.c b/tests/drivers/adc/adc_emul/src/main.c index 96d2b66441f..44c147f98fb 100644 --- a/tests/drivers/adc/adc_emul/src/main.c +++ b/tests/drivers/adc/adc_emul/src/main.c @@ -18,7 +18,7 @@ #define ADC_2ND_CHANNEL_ID 1 #define INVALID_ADC_VALUE SHRT_MIN -/* Raw to milivolt conversion doesn't handle rounding */ +/* Raw to millivolt conversion doesn't handle rounding */ #define MV_OUTPUT_EPS 2 #define SEQUENCE_STEP 100 @@ -494,7 +494,7 @@ static void test_adc_emul_input_higher_than_ref(void) /* * Check samples - returned value should max out on reference value. - * Raw value shoudn't exceed resolution. + * Raw value shouldn't exceed resolution. */ check_samples(samples, ADC_REF_INTERNAL_MV, 0 /* step */, 1 /* channels */, 0 /* first channel data */, @@ -538,7 +538,7 @@ static void test_adc_emul_reference(void) ret = adc_channel_setup(adc_dev, &channel_cfg); zassert_not_equal(ret, 0, - "Setting up of the %d channel shuldn't succeeded", + "Setting up of the %d channel shouldn't succeeded", ADC_2ND_CHANNEL_ID); channel_setup(adc_dev, ADC_REF_INTERNAL, ADC_GAIN_1, diff --git a/tests/drivers/can/api/src/main.c b/tests/drivers/can/api/src/main.c index c64b9952b16..e132accdd71 100644 --- a/tests/drivers/can/api/src/main.c +++ b/tests/drivers/can/api/src/main.c @@ -409,7 +409,7 @@ static void test_set_loopback(void) /* * Sending a message to the wild should work because we are in loopback mode - * and therfor ACK the frame ourselves + * and therefore ACK the frame ourselves */ static void test_send_and_forget(void) { diff --git a/tests/drivers/can/stm32/src/main.c b/tests/drivers/can/stm32/src/main.c index 8a592059a56..f240636e793 100644 --- a/tests/drivers/can/stm32/src/main.c +++ b/tests/drivers/can/stm32/src/main.c @@ -23,7 +23,7 @@ * of the first filter by 3 and tests the corner case of the last filter * is used. * -# Test message sending and receiving - * -# Remove first fillter (gets free) and add an extended filter. + * -# Remove first filter (gets free) and add an extended filter. * This shrinks bank 0 to 2 filters/bank which leads to a right shift * of the first buffer by two. * -# Test message sending and receiving. @@ -115,7 +115,7 @@ static void send_test_msg(const struct device *can_dev, } /* - * Test a more adcvanced filter handling. Add more than one filter at + * Test a more advanced filter handling. Add more than one filter at * the same time, remove and change the filters before the message. * This tests the internals filter handling of the driver itself. */ diff --git a/tests/drivers/clock_control/nrf_clock_calibration/src/mock_temp_nrf5.c b/tests/drivers/clock_control/nrf_clock_calibration/src/mock_temp_nrf5.c index f0cfdf4430e..93aca4b7099 100644 --- a/tests/drivers/clock_control/nrf_clock_calibration/src/mock_temp_nrf5.c +++ b/tests/drivers/clock_control/nrf_clock_calibration/src/mock_temp_nrf5.c @@ -6,7 +6,7 @@ #include #include -/* Mock of internal temperature sensore. */ +/* Mock of internal temperature sensor. */ #ifdef CONFIG_TEMP_NRF5 #error "Cannot be enabled because it is being mocked" #endif diff --git a/tests/drivers/clock_control/onoff/src/test_clock_control_onoff.c b/tests/drivers/clock_control/onoff/src/test_clock_control_onoff.c index 8918dec21da..79afd4d0f59 100644 --- a/tests/drivers/clock_control/onoff/src/test_clock_control_onoff.c +++ b/tests/drivers/clock_control/onoff/src/test_clock_control_onoff.c @@ -88,7 +88,7 @@ static void request_cb(struct onoff_manager *mgr, struct onoff_client *cli, zassert_true(err >= 0, "err: %d", err); } -/* Test checks if premature clock release works ok. If clock is released befure +/* Test checks if premature clock release works ok. If clock is released before * it is started it is the best to do that release from the callback to avoid * waiting until clock is started in the release context. */ diff --git a/tests/drivers/clock_control/stm32_clock_configuration/stm32u5/boards/pll_hse_160.overlay b/tests/drivers/clock_control/stm32_clock_configuration/stm32u5/boards/pll_hse_160.overlay index 2c37685624e..8cdd79dc7af 100644 --- a/tests/drivers/clock_control/stm32_clock_configuration/stm32u5/boards/pll_hse_160.overlay +++ b/tests/drivers/clock_control/stm32_clock_configuration/stm32u5/boards/pll_hse_160.overlay @@ -10,7 +10,7 @@ */ /* - * Warning: HSE is not implmeneted on available boards, hence: + * Warning: HSE is not implemented on available boards, hence: * This configuration is only available for build */ diff --git a/tests/drivers/counter/counter_basic_api/src/test_counter.c b/tests/drivers/counter/counter_basic_api/src/test_counter.c index 965887fabfb..e9caf50d6cc 100644 --- a/tests/drivers/counter/counter_basic_api/src/test_counter.c +++ b/tests/drivers/counter/counter_basic_api/src/test_counter.c @@ -215,7 +215,7 @@ void test_set_top_value_with_alarm_instance(const char *dev_name) counter_period_us = COUNTER_PERIOD_US_VAL; } else { /* if more counter drivers exist other than RTC, - the test vaule set to 20000 by default */ + the test value set to 20000 by default */ counter_period_us = 20000; } top_cfg.ticks = counter_us_to_ticks(dev, counter_period_us); @@ -271,7 +271,7 @@ void test_set_top_value_without_alarm_instance(const char *dev_name) counter_period_us = COUNTER_PERIOD_US_VAL; } else { /* if more counter drivers exist other than RTC, - the test vaule set to 20000 by default */ + the test value set to 20000 by default */ counter_period_us = 20000; } dev = device_get_binding(dev_name); @@ -370,7 +370,7 @@ void test_single_shot_alarm_instance(const char *dev_name, bool set_top) counter_period_us = COUNTER_PERIOD_US_VAL; } else { /* if more counter drivers exist other than RTC, - the test vaule set to 20000 by default */ + the test value set to 20000 by default */ counter_period_us = 20000; } dev = device_get_binding(dev_name); @@ -517,7 +517,7 @@ void test_multiple_alarms_instance(const char *dev_name) counter_period_us = COUNTER_PERIOD_US_VAL; } else { /* if more counter drivers exist other than RTC, - the test vaule set to 20000 by default */ + the test value set to 20000 by default */ counter_period_us = 20000; } dev = device_get_binding(dev_name); @@ -683,10 +683,10 @@ void test_late_alarm_instance(const char *dev_name) err = counter_set_guard_period(dev, guard, COUNTER_GUARD_PERIOD_LATE_TO_SET); - zassert_equal(0, err, "%s: Unexcepted error", dev_name); + zassert_equal(0, err, "%s: Unexpected error", dev_name); err = counter_start(dev); - zassert_equal(0, err, "%s: Unexcepted error", dev_name); + zassert_equal(0, err, "%s: Unexpected error", dev_name); k_busy_wait(2*tick_us); @@ -735,10 +735,10 @@ void test_late_alarm_error_instance(const char *dev_name) err = counter_set_guard_period(dev, guard, COUNTER_GUARD_PERIOD_LATE_TO_SET); - zassert_equal(0, err, "%s: Unexcepted error", dev_name); + zassert_equal(0, err, "%s: Unexpected error", dev_name); err = counter_start(dev); - zassert_equal(0, err, "%s: Unexcepted error", dev_name); + zassert_equal(0, err, "%s: Unexpected error", dev_name); k_busy_wait(2*tick_us); @@ -801,7 +801,7 @@ static void test_short_relative_alarm_instance(const char *dev_name) }; err = counter_start(dev); - zassert_equal(0, err, "%s: Unexcepted error", dev_name); + zassert_equal(0, err, "%s: Unexpected error", dev_name); alarm_cfg.ticks = 1; @@ -903,7 +903,7 @@ static void test_cancelled_alarm_does_not_expire_instance(const char *dev_name) }; err = counter_start(dev); - zassert_equal(0, err, "%s: Unexcepted error", dev_name); + zassert_equal(0, err, "%s: Unexpected error", dev_name); for (int i = 0; i < us/2; ++i) { diff --git a/tests/drivers/counter/maxim_ds3231_api/src/test_counter.c b/tests/drivers/counter/maxim_ds3231_api/src/test_counter.c index 053234235ed..be8708a88ba 100644 --- a/tests/drivers/counter/maxim_ds3231_api/src/test_counter.c +++ b/tests/drivers/counter/maxim_ds3231_api/src/test_counter.c @@ -554,10 +554,10 @@ void test_late_alarm_instance(const char *dev_name) err = counter_set_guard_period(dev, guard, COUNTER_GUARD_PERIOD_LATE_TO_SET); - zassert_equal(0, err, "%s: Unexcepted error", dev_name); + zassert_equal(0, err, "%s: Unexpected error", dev_name); err = counter_start(dev); - zassert_equal(0, err, "%s: Unexcepted error", dev_name); + zassert_equal(0, err, "%s: Unexpected error", dev_name); k_sleep(K_USEC(2 * tick_us)); @@ -604,10 +604,10 @@ void test_late_alarm_error_instance(const char *dev_name) err = counter_set_guard_period(dev, guard, COUNTER_GUARD_PERIOD_LATE_TO_SET); - zassert_equal(0, err, "%s: Unexcepted error", dev_name); + zassert_equal(0, err, "%s: Unexpected error", dev_name); err = counter_start(dev); - zassert_equal(0, err, "%s: Unexcepted error", dev_name); + zassert_equal(0, err, "%s: Unexpected error", dev_name); k_sleep(K_USEC(2 * tick_us)); @@ -666,7 +666,7 @@ static void test_short_relative_alarm_instance(const char *dev_name) }; err = counter_start(dev); - zassert_equal(0, err, "%s: Unexcepted error", dev_name); + zassert_equal(0, err, "%s: Unexpected error", dev_name); alarm_cfg.ticks = 1; @@ -761,7 +761,7 @@ static void test_cancelled_alarm_does_not_expire_instance(const char *dev_name) }; err = counter_start(dev); - zassert_equal(0, err, "%s: Unexcepted error", dev_name); + zassert_equal(0, err, "%s: Unexpected error", dev_name); for (int i = 0; i < us / 2; ++i) { diff --git a/tests/drivers/flash/src/main.c b/tests/drivers/flash/src/main.c index 8f9824776d6..6262851e391 100644 --- a/tests/drivers/flash/src/main.c +++ b/tests/drivers/flash/src/main.c @@ -27,7 +27,7 @@ #define TEST_AREA_MAX ((FLASH_AREA_SIZE(storage)) + (FLASH_TEST_REGION_OFFSET)) #else -/* SoC emebded NVM */ +/* SoC embedded NVM */ #define FLASH_DEVICE DT_CHOSEN_ZEPHYR_FLASH_CONTROLLER_LABEL #ifdef CONFIG_TRUSTED_EXECUTION_NONSECURE diff --git a/tests/drivers/flash_simulator/src/main.c b/tests/drivers/flash_simulator/src/main.c index c911fa497dc..d24d605e950 100644 --- a/tests/drivers/flash_simulator/src/main.c +++ b/tests/drivers/flash_simulator/src/main.c @@ -263,7 +263,7 @@ static void test_double_write(void) rc = flash_write(flash_dev, FLASH_SIMULATOR_BASE_OFFSET, &data, sizeof(data)); - zassert_equal(0, rc, "flash_write should succedd"); + zassert_equal(0, rc, "flash_write should succeed"); rc = flash_write(flash_dev, FLASH_SIMULATOR_BASE_OFFSET, &data, sizeof(data)); diff --git a/tests/drivers/i2c/i2c_slave_api/boards/nucleo_l476rg.overlay b/tests/drivers/i2c/i2c_slave_api/boards/nucleo_l476rg.overlay index 7a4d9e4c582..8363ab755dd 100644 --- a/tests/drivers/i2c/i2c_slave_api/boards/nucleo_l476rg.overlay +++ b/tests/drivers/i2c/i2c_slave_api/boards/nucleo_l476rg.overlay @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 Nordic Smiconductor ASA + * Copyright (c) 2020 Nordic Semiconductor ASA * SPDX-License-Identifier: Apache-2.0 */ diff --git a/tests/drivers/pwm/pwm_loopback/boards/nucleo_h743zi.overlay b/tests/drivers/pwm/pwm_loopback/boards/nucleo_h743zi.overlay index 1eb16eaa02a..23c9238e08f 100644 --- a/tests/drivers/pwm/pwm_loopback/boards/nucleo_h743zi.overlay +++ b/tests/drivers/pwm/pwm_loopback/boards/nucleo_h743zi.overlay @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Denx Software Enginerring GmbH + * Copyright (c) 2021 Denx Software Engineering GmbH * * SPDX-License-Identifier: Apache-2.0 */ diff --git a/tests/drivers/sensor/generic/src/main.c b/tests/drivers/sensor/generic/src/main.c index 05d4f4d87f8..fc9f476250e 100644 --- a/tests/drivers/sensor/generic/src/main.c +++ b/tests/drivers/sensor/generic/src/main.c @@ -236,9 +236,9 @@ void test_sensor_handle_triggers(void) /* check the result of the trigger channel */ zassert_equal(data.val1, trigger_elements[i].data.val1, - "retrived data is not match."); + "retrieved data is not match."); zassert_equal(data.val2, trigger_elements[i].data.val2, - "retrived data is not match."); + "retrieved data is not match."); /* set attributes for no trig dev */ zassert_equal(sensor_attr_set(dev_no_trig, @@ -263,7 +263,7 @@ void test_sensor_handle_triggers(void) } /** - * @brief Test unit coversion of sensor module + * @brief Test unit conversion of sensor module * @details Verify helper function to convert acceleration from * Gs to m/s^2 and from m/s^2 to Gs. Verify helper function * to convert radians to degrees and degrees to radians. Verify diff --git a/tests/kernel/common/multilib.txt b/tests/kernel/common/multilib.txt index acb711d9410..ac856fc6ae5 100644 --- a/tests/kernel/common/multilib.txt +++ b/tests/kernel/common/multilib.txt @@ -6,7 +6,7 @@ Some architectures support different ISA variants, each backed a different multilib in a same compiler. Selecting wrong multilib may have adverse effects on performance, or sometime produce broken executables altogether (for example, ARM Cortex-M requires thumb2 multilib and will be broken with -default ("arm") multilib or "thumb" multlib). This app is a smoke-test +default ("arm") multilib or "thumb" multilib). This app is a smoke-test for selecting non-wrong multilib - it uses operation(s) which guaranteedly will call support routine(s) in libgcc and checks for expected result. diff --git a/tests/kernel/common/src/atomic.c b/tests/kernel/common/src/atomic.c index c3dbb7f3e59..2587c2acfb5 100644 --- a/tests/kernel/common/src/atomic.c +++ b/tests/kernel/common/src/atomic.c @@ -306,7 +306,7 @@ void atomic_handler(void *p1, void *p2, void *p3) * @brief Verify atomic operation with threads * * @details Creat two preempt threads with equal priority to - * atomiclly access the same atomic value. Because these preempt + * atomically access the same atomic value. Because these preempt * threads are of equal priority, so enable time slice to make * them scheduled. The thread will execute for some time. * In this time, the two sub threads will be scheduled separately diff --git a/tests/kernel/common/src/bitarray.c b/tests/kernel/common/src/bitarray.c index 96c5467326c..65b4321168f 100644 --- a/tests/kernel/common/src/bitarray.c +++ b/tests/kernel/common/src/bitarray.c @@ -87,7 +87,7 @@ void test_bitarray_declare(void) SYS_BITARRAY_DEFINE(ba_128_bit, 128); SYS_BITARRAY_DEFINE(ba_129_bit, 129); - /* Test SYS_BITFIELD_DECLARE by asserting that a sufficent number of uint32_t + /* Test SYS_BITFIELD_DECLARE by asserting that a sufficient number of uint32_t * in the declared array are set as free to represent the number of bits */ @@ -381,7 +381,7 @@ void alloc_and_free_loop(int divisor) for (bit = 0U; bit < ba.num_bits; ++bit) { cur_popcnt = get_bitarray_popcnt(&ba); zassert_equal(cur_popcnt, expected_popcnt, - "bit count expeceted %u, got %u (at bit %u)", + "bit count expected %u, got %u (at bit %u)", expected_popcnt, cur_popcnt, bit); /* Allocate half of remaining bits */ @@ -405,7 +405,7 @@ void alloc_and_free_loop(int divisor) cur_popcnt = get_bitarray_popcnt(&ba); zassert_equal(cur_popcnt, expected_popcnt, - "bit count expeceted %u, got %u (at bit %u)", + "bit count expected %u, got %u (at bit %u)", expected_popcnt, cur_popcnt, bit); /* Free all but the first bit of allocated region */ @@ -459,14 +459,14 @@ void alloc_and_free_interval(void) ret, cnt); zassert_equal(offset, expected_offset, - "offset expeceted %u, got %u (cnt %u)", + "offset expected %u, got %u (cnt %u)", expected_offset, offset, cnt); expected_popcnt += 4; cur_popcnt = get_bitarray_popcnt(&ba); zassert_equal(cur_popcnt, expected_popcnt, - "bit count expeceted %u, got %u (cnt %u)", + "bit count expected %u, got %u (cnt %u)", expected_popcnt, cur_popcnt, cnt); @@ -618,8 +618,8 @@ void test_bitarray_region_set_clear(void) /** * @brief Test find MSB and LSB operations * - * @details Verify the functions that find out the most significiant - * bit and least significiant bit work as expected. + * @details Verify the functions that find out the most significant + * bit and least significant bit work as expected. * * @see find_msb_set(), find_lsb_set() */ diff --git a/tests/kernel/common/src/clock.c b/tests/kernel/common/src/clock.c index af515b30027..399677f40f1 100644 --- a/tests/kernel/common/src/clock.c +++ b/tests/kernel/common/src/clock.c @@ -86,7 +86,7 @@ void test_clock_uptime(void) * @brief Test 32-bit clock cycle functionality * * @details - * Test Objectve: + * Test Objective: * - The kernel architecture provide a 32bit monotonically increasing * cycle counter * - This routine tests the k_cycle_get_32() and k_uptime_get_32() @@ -109,9 +109,9 @@ void test_clock_uptime(void) * - Success if cycles increase monotonically, failure otherwise. * * Test Procedure: - * -# At mili-second boundary, get cycles repeatedly by k_cycle_get_32() + * -# At milli-second boundary, get cycles repeatedly by k_cycle_get_32() * till cycles increased - * -# At mili-second boundary, get cycles repeatedly by k_uptime_get_32() + * -# At milli-second boundary, get cycles repeatedly by k_uptime_get_32() * till cycles increased * -# Cross check cycles gotten by k_cycle_get_32() and k_uptime_get_32(), * the delta cycle should be greater than 1 milli-second. @@ -246,7 +246,7 @@ void test_ms_time_duration(void) zassert_true(tdata.stop_count == 0, "stop %u not 0", tdata.stop_count); - /** cleanup environemtn */ + /** cleanup environment */ k_timer_stop(&ktimer); } /** diff --git a/tests/kernel/context/README.txt b/tests/kernel/context/README.txt index ce012b6caf1..b719a54366e 100644 --- a/tests/kernel/context/README.txt +++ b/tests/kernel/context/README.txt @@ -86,7 +86,7 @@ Testing irq_disable() and irq_enable() Testing some kernel context routines Testing k_current_get() from an ISR and task Testing k_is_in_isr() from an ISR -Testing k_is_in_isr() from a preemtible thread +Testing k_is_in_isr() from a preemptible thread Spawning a thread from a task Thread to test k_current_get() and k_is_in_isr() Thread to test k_yield() diff --git a/tests/kernel/context/src/main.c b/tests/kernel/context/src/main.c index 4e1d06d6d03..d87553baf9c 100644 --- a/tests/kernel/context/src/main.c +++ b/tests/kernel/context/src/main.c @@ -143,7 +143,7 @@ static ISR_INFO isr_info; * @brief Test cpu idle function * * @details - * Test Objectve: + * Test Objective: * - The kernel architecture provide an idle function to be run when the system * has no work for the current CPU * - This routine tests the k_cpu_idle() routine @@ -182,7 +182,7 @@ static void test_kernel_cpu_idle(void); * @brief Test cpu idle function * * @details - * Test Objectve: + * Test Objective: * - The kernel architecture provide an idle function to be run when the system * has no work for the current CPU * - This routine tests the k_cpu_atomic_idle() routine @@ -198,7 +198,7 @@ static void test_kernel_cpu_idle(void); * - N/A * * Test Procedure: - * -# Record system time befor cpu enters idle state + * -# Record system time before cpu enters idle state * -# Enter cpu idle state by k_cpu_atomic_idle() * -# Record system time after cpu idle state is interrupted * -# Compare the two system time values. @@ -573,7 +573,7 @@ static void test_kernel_interrupts(void) * @details * Test Objective: * - To verify the kernel architecture layer shall provide a mechanism to - * simultenously mask all local CPU interrupts and return the previous mask + * simultaneously mask all local CPU interrupts and return the previous mask * state for restoration. * - This routine tests the routines for disabling and enabling interrupts. * These include irq_disable() and irq_enable(). @@ -634,7 +634,7 @@ static void test_kernel_timer_interrupts(void) * @brief Test some context routines * * @details - * Test Objectve: + * Test Objective: * - Thread context handles derived from context switches must be able to be * restored upon interrupt exit * @@ -967,7 +967,7 @@ static void delayed_thread(void *num, void *arg2, void *arg3) } /** - * @brief Test timouts + * @brief Test timeouts * * @ingroup kernel_context_tests * @@ -991,7 +991,7 @@ static void test_busy_wait(void) } /** - * @brief Test timouts + * @brief Test timeouts * * @ingroup kernel_context_tests * diff --git a/tests/kernel/device/src/abstract_driver.c b/tests/kernel/device/src/abstract_driver.c index 6028cae45d9..983e4e8b179 100644 --- a/tests/kernel/device/src/abstract_driver.c +++ b/tests/kernel/device/src/abstract_driver.c @@ -11,7 +11,7 @@ #define MY_DRIVER_A "my_driver_A" #define MY_DRIVER_B "my_driver_B" -/* define indivial driver A */ +/* define individual driver A */ static int my_driver_A_do_this(const struct device *device, int foo, int bar) { return foo + bar; @@ -33,7 +33,7 @@ int common_driver_init(const struct device *dev) return 0; } -/* define indivial driver B */ +/* define individual driver B */ static int my_driver_B_do_this(const struct device *device, int foo, int bar) { return foo - bar; diff --git a/tests/kernel/device/src/main.c b/tests/kernel/device/src/main.c index 0f22b9da52b..402d09258ee 100644 --- a/tests/kernel/device/src/main.c +++ b/tests/kernel/device/src/main.c @@ -235,7 +235,7 @@ static void test_device_list(void) zassert_false((devcount == 0), NULL); } -/* this is for storing sequence during initializtion */ +/* this is for storing sequence during initialization */ extern int init_level_sequence[4]; extern int init_priority_sequence[4]; extern unsigned int seq_level_cnt; diff --git a/tests/kernel/device/src/test_driver_init.c b/tests/kernel/device/src/test_driver_init.c index 693bfa3f0ee..0b3401f69b5 100644 --- a/tests/kernel/device/src/test_driver_init.c +++ b/tests/kernel/device/src/test_driver_init.c @@ -36,13 +36,13 @@ #define PRIORITY_4 4 -/* this is for storing sequence during initializtion */ +/* this is for storing sequence during initialization */ __pinned_bss int init_level_sequence[4] = {0}; __pinned_bss int init_priority_sequence[4] = {0}; __pinned_bss unsigned int seq_level_cnt; __pinned_bss unsigned int seq_priority_cnt; -/* define driver type 1: for testing initialize levels and priorites */ +/* define driver type 1: for testing initialize levels and priorities */ typedef int (*my_api_configure_t)(const struct device *dev, int dev_config); struct my_driver_api { @@ -130,7 +130,7 @@ static int my_driver_pri_4_init(const struct device *dev) * @brief Test providing control device driver initialization order * * @details Test that kernel shall provide control over device driver - * initalization order, using initialization level and priority for each + * initialization order, using initialization level and priority for each * instance. We use DEVICE_DEFINE to define device instances and set * it's level and priority here, then we run check function later after * all of this instance finish their initialization. @@ -154,7 +154,7 @@ DEVICE_DEFINE(my_driver_level_4, MY_DRIVER_LV_4, &my_driver_lv_4_init, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, &funcs_my_drivers); /* We use priority value of 20 to create a possible sorting conflict with - * priority value of 2. So if the linker sorting isn't woring correctly + * priority value of 2. So if the linker sorting isn't working correctly * we'll find out. */ DEVICE_DEFINE(my_driver_priority_4, MY_DRIVER_PRI_4, diff --git a/tests/kernel/interrupt/src/interrupt_offload.c b/tests/kernel/interrupt/src/interrupt_offload.c index d7bc80da546..c740ca0e414 100644 --- a/tests/kernel/interrupt/src/interrupt_offload.c +++ b/tests/kernel/interrupt/src/interrupt_offload.c @@ -71,10 +71,10 @@ void isr_handler(const void *param) orig_t_keep_run = 0; - /* If the work is busy, we don't sumbit it. */ + /* If the work is busy, we don't submit it. */ if (!k_work_busy_get(work)) { zassert_equal(k_work_submit_to_queue(&wq_queue, work), - 1, "kwork not sumbmitted or queued"); + 1, "kwork not submitted or queued"); atomic_inc(&submit_success); } @@ -104,7 +104,7 @@ static void init_dyn_interrupt(void) ztest_test_skip(); } - /* We just initialize dynamic interrput once, then reuse them */ + /* We just initialize dynamic interrupt once, then reuse them */ if (!vector_num) { vector_num = irq_connect_dynamic(TEST_IRQ_DYN_LINE, 1, isr_handler, (void *)&irq_param, 0); diff --git a/tests/kernel/mbox/mbox_api/src/test_mbox_api.c b/tests/kernel/mbox/mbox_api/src/test_mbox_api.c index afe118ac505..d9ddb224dcf 100644 --- a/tests/kernel/mbox/mbox_api/src/test_mbox_api.c +++ b/tests/kernel/mbox/mbox_api/src/test_mbox_api.c @@ -555,7 +555,7 @@ void test_mbox_get_put_block_data(void) * @brief Test mailbox enhance capabilities * * @details - * - Define and initilized a message queue and a mailbox + * - Define and initialized a message queue and a mailbox * - Verify the capability of message queue and mailbox * - with same data. * diff --git a/tests/kernel/mem_heap/shared_multi_heap/src/main.c b/tests/kernel/mem_heap/shared_multi_heap/src/main.c index 2eaa6b9ffa9..0aeecafe1ed 100644 --- a/tests/kernel/mem_heap/shared_multi_heap/src/main.c +++ b/tests/kernel/mem_heap/shared_multi_heap/src/main.c @@ -65,7 +65,7 @@ void test_shared_multi_heap(void) reg = get_reg_addr(block); zassert_equal(reg->addr, 0x42000000, "block in the wrong memory region"); - zassert_equal(reg->attr, SMH_REG_ATTR_CACHEABLE, "wrong memery attribute"); + zassert_equal(reg->attr, SMH_REG_ATTR_CACHEABLE, "wrong memory attribute"); /* * Request another small cacheable chunk. It should be allocated in the diff --git a/tests/kernel/mem_protect/futex/src/main.c b/tests/kernel/mem_protect/futex/src/main.c index 19072f45bdd..e6d2cb647d0 100644 --- a/tests/kernel/mem_protect/futex/src/main.c +++ b/tests/kernel/mem_protect/futex/src/main.c @@ -481,7 +481,7 @@ void futex_wake(void *p1, void *p2, void *p3) zassert_equal(ret_value, 0, NULL); /* Test user can write to the futex value - * Use assertion to verify substraction correctness + * Use assertion to verify subtraction correctness * Initial value was 13, after atomic_sub() must be 12 */ atomic_sub(&simple_futex.val, 1); diff --git a/tests/kernel/mem_protect/mem_map/src/main.c b/tests/kernel/mem_protect/mem_map/src/main.c index 5af06e69350..7309f14f268 100644 --- a/tests/kernel/mem_protect/mem_map/src/main.c +++ b/tests/kernel/mem_protect/mem_map/src/main.c @@ -92,7 +92,7 @@ static void transplanted_function(bool *executed) } /** - * Show that mapping with/withour K_MEM_PERM_EXEC works as expected + * Show that mapping with/without K_MEM_PERM_EXEC works as expected * * @ingroup kernel_memprotect_tests */ diff --git a/tests/kernel/mem_protect/mem_protect/src/inherit.c b/tests/kernel/mem_protect/mem_protect/src/inherit.c index 2246c6db3eb..da385c03492 100644 --- a/tests/kernel/mem_protect/mem_protect/src/inherit.c +++ b/tests/kernel/mem_protect/mem_protect/src/inherit.c @@ -90,7 +90,7 @@ static void test_thread_1_for_SU(void *p1, void *p2, void *p3) * - Then check child thread can't access to the parent thread object using API * command k_thread_priority_get() * - At the same moment that test verifies that child thread was granted - * permission on a kernel objects. That meanis child user thread caller + * permission on a kernel objects. That means child user thread caller * already has permission on the thread objects being granted. * @ingroup kernel_memprotect_tests diff --git a/tests/kernel/mem_protect/mem_protect/src/kobject.c b/tests/kernel/mem_protect/mem_protect/src/kobject.c index ba80981b78f..8a59b93efc5 100644 --- a/tests/kernel/mem_protect/mem_protect/src/kobject.c +++ b/tests/kernel/mem_protect/mem_protect/src/kobject.c @@ -138,7 +138,7 @@ static void syscall_invalid_kobject_user_part(void *p1, void *p2, void *p3) { k_sem_give(&kobject_sem); - /* should causdde a fault */ + /* should cause a fault */ set_fault_valid(true); /* should cause fault. typecasting to override compiler warning */ @@ -362,7 +362,7 @@ void test_kobject_release_from_user(void) } /** - * @brief Test release and access grant an invaild kobject + * @brief Test release and access grant an invalid kobject * * @details Validate release and access grant an invalid kernel object. * @@ -631,7 +631,7 @@ static void new_thread_from_user_child(void *p1, void *p2, void *p3) * - Test user thread can create new thread. * - Verify that given thread and thread stack permissions to the user thread, * allow to create new user thread. - * - Veify that new created user thread have access to its own thread object + * - Verify that new created user thread have access to its own thread object * by aborting itself. * * @ingroup kernel_memprotect_tests @@ -679,7 +679,7 @@ static void new_user_thrd_child_with_in_use_stack(void *p1, void *p2, void *p3) /** * @brief Test create new user thread from a user thread with in-use stack obj * - * @details The kernel must prevent new user threads to use initiliazed (in-use) + * @details The kernel must prevent new user threads to use initialized (in-use) * stack objects. In that case extra_thread is going to be create with in-use * stack object child_stack. That will generate error, showing that kernel * memory protection is working correctly. @@ -965,7 +965,7 @@ static void higher_prio_from_user_child(void *p1, void *p2, void *p3) zassert_unreachable("k_object validation failure in k thread create"); } /** - * @brief Thread creation with prority is higher than current thread + * @brief Thread creation with priority is higher than current thread * * @details _handler_k_thread_create validation. * @@ -1012,7 +1012,7 @@ static void invalid_prio_from_user_child(void *p1, void *p2, void *p3) zassert_unreachable("k_object validation failure in k thread create"); } /** - * @brief Create a new thread whose prority is invalid. + * @brief Create a new thread whose priority is invalid. * * @details _handler_k_thread_create validation. * @@ -1093,7 +1093,7 @@ void test_mark_thread_exit_uninitialized(void) } /****************************************************************************/ -/* object validatoin checks */ +/* object validation checks */ static void tThread_object_free_error(void *p1, void *p2, void *p3) { @@ -1131,7 +1131,7 @@ void test_kobject_free_error(void) /** * @brief Test alloc an invalid kernel object * - * @details Allocate invalid kernel objects, then no alloction + * @details Allocate invalid kernel objects, then no allocation * will be returned. * * @ingroup kernel_memprotect_tests @@ -1140,7 +1140,7 @@ void test_kobject_free_error(void) */ void test_kobject_init_error(void) { - /* invalid kernel object alloction */ + /* invalid kernel object allocation */ zassert_is_null(k_object_alloc(K_OBJ_ANY-1), "expected got NULL kobject"); zassert_is_null(k_object_alloc(K_OBJ_LAST), diff --git a/tests/kernel/mem_protect/mem_protect/src/mem_domain.c b/tests/kernel/mem_protect/mem_protect/src/mem_domain.c index 408341a949f..25939b47fc5 100644 --- a/tests/kernel/mem_protect/mem_protect/src/mem_domain.c +++ b/tests/kernel/mem_protect/mem_protect/src/mem_domain.c @@ -551,7 +551,7 @@ void test_mem_part_add_error_zerosize(void) /** * @brief Test error case of memory partition address wraparound * - * @details Try to add a partition whose adddress is wraparound. + * @details Try to add a partition whose address is wraparound. * k_mem_domain_add_partition() should return error. * * @ingroup kernel_memprotect_tests diff --git a/tests/kernel/mem_protect/sys_sem/src/main.c b/tests/kernel/mem_protect/sys_sem/src/main.c index 40fec6c8c02..195260df10e 100644 --- a/tests/kernel/mem_protect/sys_sem/src/main.c +++ b/tests/kernel/mem_protect/sys_sem/src/main.c @@ -166,7 +166,7 @@ void test_simple_sem_from_isr(void) signal_count = sys_sem_count_get(&simple_sem); zassert_true(signal_count == (i + 1), - "signal count missmatch Expected %d, got %d", + "signal count mismatch Expected %d, got %d", (i + 1), signal_count); } @@ -186,7 +186,7 @@ void test_simple_sem_from_task(void) signal_count = sys_sem_count_get(&simple_sem); zassert_true(signal_count == (i + 1), - "signal count missmatch Expected %d, got %d", + "signal count mismatch Expected %d, got %d", (i + 1), signal_count); } @@ -208,7 +208,7 @@ void test_sem_take_no_wait(void) signal_count = sys_sem_count_get(&simple_sem); zassert_true(signal_count == i, - "signal count missmatch Expected %d, got %d", + "signal count mismatch Expected %d, got %d", i, signal_count); } @@ -231,7 +231,7 @@ void test_sem_take_no_wait_fails(void) signal_count = sys_sem_count_get(&simple_sem); zassert_true(signal_count == 0U, - "signal count missmatch Expected 0, got %d", + "signal count mismatch Expected 0, got %d", signal_count); } @@ -444,7 +444,7 @@ void test_sem_give_take_from_isr(void) signal_count = sys_sem_count_get(&simple_sem); zassert_true(signal_count == i + 1, - "signal count missmatch Expected %d, got %d", + "signal count mismatch Expected %d, got %d", i + 1, signal_count); } @@ -454,7 +454,7 @@ void test_sem_give_take_from_isr(void) signal_count = sys_sem_count_get(&simple_sem); zassert_true(signal_count == (i - 1), - "signal count missmatch Expected %d, got %d", + "signal count mismatch Expected %d, got %d", (i - 1), signal_count); } } @@ -477,7 +477,7 @@ void test_sem_give_limit(void) signal_count = sys_sem_count_get(&simple_sem); zassert_true(signal_count == i + 1, - "signal count missmatch Expected %d, got %d", + "signal count mismatch Expected %d, got %d", i + 1, signal_count); } @@ -486,14 +486,14 @@ void test_sem_give_limit(void) if (ret_value == -EAGAIN) { signal_count = sys_sem_count_get(&simple_sem); zassert_true(signal_count == SEM_MAX_VAL, - "signal count missmatch Expected %d, got %d", + "signal count mismatch Expected %d, got %d", SEM_MAX_VAL, signal_count); sys_sem_take(&simple_sem, K_FOREVER); } else if (ret_value == 0) { signal_count = sys_sem_count_get(&simple_sem); zassert_true(signal_count == SEM_MAX_VAL, - "signal count missmatch Expected %d, got %d", + "signal count mismatch Expected %d, got %d", SEM_MAX_VAL, signal_count); } } while (ret_value == -EAGAIN); @@ -546,12 +546,12 @@ void test_sem_multiple_threads_wait(void) signal_count = sys_sem_count_get(&simple_sem); zassert_true(signal_count == 0U, - "signal count missmatch Expected 0, got %d", + "signal count mismatch Expected 0, got %d", signal_count); signal_count = sys_sem_count_get(&multiple_thread_sem); zassert_true(signal_count == 0U, - "signal count missmatch Expected 0, got %d", + "signal count mismatch Expected 0, got %d", signal_count); repeat_count++; diff --git a/tests/kernel/mem_protect/userspace/src/main.c b/tests/kernel/mem_protect/userspace/src/main.c index 71d539b6a6f..b1a93e9465b 100644 --- a/tests/kernel/mem_protect/userspace/src/main.c +++ b/tests/kernel/mem_protect/userspace/src/main.c @@ -364,7 +364,7 @@ K_APP_DMEM(default_part) int32_t size = (0 - CONFIG_PRIVILEGED_STACK_SIZE - #endif /** - * @brief Test to read provileged stack + * @brief Test to read privileged stack * * @ingroup kernel_memprotect_tests */ diff --git a/tests/kernel/mp/src/main.c b/tests/kernel/mp/src/main.c index 685c4972b19..908e8df0d6f 100644 --- a/tests/kernel/mp/src/main.c +++ b/tests/kernel/mp/src/main.c @@ -76,7 +76,7 @@ FUNC_NORETURN void cpu1_fn(void *arg) * -# Enter a while loop and wait for cpu_running equals to 1. * -# In target function, check if the address is &cpu_arg and its content * equal to 12345. - * -# Set the global flag varible cpu_running to 1. + * -# Set the global flag variable cpu_running to 1. * -# In main thread, check if the cpu_running equals to 1. * * Expected Test Result: diff --git a/tests/kernel/msgq/msgq_usage/src/main.c b/tests/kernel/msgq/msgq_usage/src/main.c index dccee4f6dd3..9efbb9457ae 100644 --- a/tests/kernel/msgq/msgq_usage/src/main.c +++ b/tests/kernel/msgq/msgq_usage/src/main.c @@ -267,7 +267,7 @@ void test_msgq_usage(void) /* waiting to continue */ k_sem_take(&test_continue, K_FOREVER); - /* rather than schedule this thread by k_msleep(), use semaphor with + /* rather than schedule this thread by k_msleep(), use semaphore with * a timeout value, so there is no give operation over service_sema */ TC_PRINT("try to kill service1\n"); diff --git a/tests/kernel/mutex/mutex_api/src/test_mutex_apis.c b/tests/kernel/mutex/mutex_api/src/test_mutex_apis.c index 913c9bdb4c4..ced5e0092d0 100644 --- a/tests/kernel/mutex/mutex_api/src/test_mutex_apis.c +++ b/tests/kernel/mutex/mutex_api/src/test_mutex_apis.c @@ -111,7 +111,7 @@ static void tThread_T1_priority_inheritance(void *p1, void *p2, void *p3) /* record its original priority */ int priority_origin = k_thread_priority_get((k_tid_t)p2); - /* wait for a time period to see if priority inheritance happended */ + /* wait for a time period to see if priority inheritance happened */ k_sleep(K_MSEC(500)); int priority = k_thread_priority_get((k_tid_t)p2); @@ -182,7 +182,7 @@ static void tThread_waiter(void *p1, void *p2, void *p3) zassert_true(k_mutex_lock((struct k_mutex *)p1, K_FOREVER) == 0, "Failed to get the test_mutex"); - /* keep the next waiter waitting for a while */ + /* keep the next waiter waiting for a while */ thread_ret = TC_PASS; k_mutex_unlock((struct k_mutex *)p1); } @@ -285,12 +285,12 @@ void test_mutex_recursive(void) /** * @brief Test mutex's priority inheritance mechanism - * @details To verify mutex provide priority inheritance to prevent prority + * @details To verify mutex provide priority inheritance to prevent priority * inversion, and there are 3 cases need to run. * The thread T1 hold the mutex first and cases list as below: - * - case 1. When prority T2 > T1, priority inheritance happened. - * - case 2. When prority T1 > T2, priority inheritance won't happened. - * - case 3. When prority T2 > T3 > T1, priority inheritance happened but T2 + * - case 1. When priority T2 > T1, priority inheritance happened. + * - case 2. When priority T1 > T2, priority inheritance won't happened. + * - case 3. When priority T2 > T3 > T1, priority inheritance happened but T2 * wait for timeout and T3 got the mutex. * @ingroup kernel_mutex_tests */ diff --git a/tests/kernel/mutex/mutex_error_case/src/test_mutex_error.c b/tests/kernel/mutex/mutex_error_case/src/test_mutex_error.c index f8d84b02aad..d49043e9be6 100644 --- a/tests/kernel/mutex/mutex_error_case/src/test_mutex_error.c +++ b/tests/kernel/mutex/mutex_error_case/src/test_mutex_error.c @@ -52,7 +52,7 @@ static void tThread_entry_negative(void *p1, void *p2, void *p3) TC_PRINT("current case is %d\n", choice); /* Set up the fault or assert are expected before we call - * the target tested funciton. + * the target tested function. */ switch (choice) { case MUTEX_INIT_NULL: diff --git a/tests/kernel/pending/src/main.c b/tests/kernel/pending/src/main.c index 581f23d084d..d1cbda1d69d 100644 --- a/tests/kernel/pending/src/main.c +++ b/tests/kernel/pending/src/main.c @@ -310,7 +310,7 @@ void test_pending_fifo(void) k_work_submit_to_queue(&offload_work_q, &offload1.work_item); /* - * Verify that preemiptible threads 'task_high' and 'task_low' do not + * Verify that preemptible threads 'task_high' and 'task_low' do not * busy-wait. If they are not busy-waiting, then they must be pending. */ diff --git a/tests/kernel/pipe/pipe/src/test_pipe.c b/tests/kernel/pipe/pipe/src/test_pipe.c index 6de2ba4c5ab..c481606b9fa 100644 --- a/tests/kernel/pipe/pipe/src/test_pipe.c +++ b/tests/kernel/pipe/pipe/src/test_pipe.c @@ -36,7 +36,7 @@ ZTEST_BMEM uint8_t rx_buffer[PIPE_SIZE + 1]; /* the pipe will always pass */ #define NO_CONSTRAINT (0U) -/* Pipe will atleast put one byte */ +/* Pipe will at least put one byte */ #define ATLEAST_1 (1U) /* Pipe must put all data on the buffer */ @@ -46,7 +46,7 @@ ZTEST_BMEM uint8_t rx_buffer[PIPE_SIZE + 1]; #define TIMEOUT_VAL (K_MSEC(10)) #define TIMEOUT_200MSEC (K_MSEC(200)) -/* encompasing structs */ +/* encompassing structs */ struct pipe_sequence { uint32_t size; uint32_t min_size; @@ -156,12 +156,12 @@ void pipe_put_single(void) zassert_true((return_value == single_elements[index].return_value), - " Return value of k_pipe_put missmatch at index = %d expected =%d received = %d\n", + " Return value of k_pipe_put mismatch at index = %d expected =%d received = %d\n", index, single_elements[index].return_value, return_value); zassert_true((written == single_elements[index].sent_bytes), - "Bytes written missmatch written is %d but expected is %d index = %d\n", + "Bytes written mismatch written is %d but expected is %d index = %d\n", written, single_elements[index].sent_bytes, index); @@ -194,12 +194,12 @@ void pipe_get_single(void *p1, void *p2, void *p3) zassert_true((return_value == single_elements[index].return_value), - "Return value of k_pipe_get missmatch at index = %d expected =%d received = %d\n", + "Return value of k_pipe_get mismatch at index = %d expected =%d received = %d\n", index, single_elements[index].return_value, return_value); zassert_true((read == single_elements[index].sent_bytes), - "Bytes read missmatch read is %d but expected is %d index = %d\n", + "Bytes read mismatch read is %d but expected is %d index = %d\n", read, single_elements[index].sent_bytes, index); zassert_true(rx_buffer_check(rx_buffer, read) == read, @@ -231,13 +231,13 @@ void pipe_put_multiple(void) zassert_true((return_value == multiple_elements[index].return_value), - "Return value of k_pipe_put missmatch at index = %d expected =%d received = %d\n", + "Return value of k_pipe_put mismatch at index = %d expected =%d received = %d\n", index, multiple_elements[index].return_value, return_value); zassert_true((written == multiple_elements[index].sent_bytes), - "Bytes written missmatch written is %d but expected is %d index = %d\n", + "Bytes written mismatch written is %d but expected is %d index = %d\n", written, multiple_elements[index].sent_bytes, index); if (return_value != RETURN_SUCCESS) { @@ -272,12 +272,12 @@ void pipe_get_multiple(void *p1, void *p2, void *p3) zassert_true((return_value == multiple_elements[index].return_value), - "Return value of k_pipe_get missmatch at index = %d expected =%d received = %d\n", + "Return value of k_pipe_get mismatch at index = %d expected =%d received = %d\n", index, multiple_elements[index].return_value, return_value); zassert_true((read == multiple_elements[index].sent_bytes), - "Bytes read missmatch read is %d but expected is %d index = %d\n", + "Bytes read mismatch read is %d but expected is %d index = %d\n", read, multiple_elements[index].sent_bytes, index); zassert_true(rx_buffer_check(rx_buffer, read) == read, @@ -591,12 +591,12 @@ void pipe_put_forever_timeout(void) zassert_true((return_value == wait_elements[index].return_value), - "Return value of k_pipe_put missmatch at index = %d expected =%d received = %d\n", + "Return value of k_pipe_put mismatch at index = %d expected =%d received = %d\n", index, wait_elements[index].return_value, return_value); zassert_true((written == wait_elements[index].sent_bytes), - "Bytes written missmatch written is %d but expected is %d index = %d\n", + "Bytes written mismatch written is %d but expected is %d index = %d\n", written, wait_elements[index].sent_bytes, index); } @@ -625,12 +625,12 @@ void pipe_get_forever_timeout(void *p1, void *p2, void *p3) zassert_true((return_value == wait_elements[index].return_value), - "Return value of k_pipe_get missmatch at index = %d expected =%d received = %d\n", + "Return value of k_pipe_get mismatch at index = %d expected =%d received = %d\n", index, wait_elements[index].return_value, return_value); zassert_true((read == wait_elements[index].sent_bytes), - "Bytes read missmatch read is %d but expected is %d index = %d\n", + "Bytes read mismatch read is %d but expected is %d index = %d\n", read, wait_elements[index].sent_bytes, index); @@ -659,12 +659,12 @@ void pipe_put_get_timeout(void) zassert_true((return_value == timeout_elements[index].return_value), - "Return value of k_pipe_get missmatch at index = %d expected =%d received = %d\n", + "Return value of k_pipe_get mismatch at index = %d expected =%d received = %d\n", index, timeout_elements[index].return_value, return_value); zassert_true((read == timeout_elements[index].sent_bytes), - "Bytes read missmatch read is %d but expected is %d index = %d\n", + "Bytes read mismatch read is %d but expected is %d index = %d\n", read, timeout_elements[index].sent_bytes, index); diff --git a/tests/kernel/pipe/pipe_api/src/test_pipe_avail.c b/tests/kernel/pipe/pipe_api/src/test_pipe_avail.c index 46749136d7e..29265a2e2be 100644 --- a/tests/kernel/pipe/pipe_api/src/test_pipe_avail.c +++ b/tests/kernel/pipe/pipe_api/src/test_pipe_avail.c @@ -143,7 +143,7 @@ void test_pipe_avail_w_lt_r(void) * @ref k_pipe.bytes_used is zero. * * In this case, @ref k_pipe.bytes_used is relevant because the read and - * write indeces are equal. + * write indices are equal. * * r * w @@ -186,7 +186,7 @@ void test_pipe_avail_r_eq_w_empty(void) * @ref k_pipe.bytes_used is equal to @ref k_pipe.size. * * In this case, @ref k_pipe.bytes_used is relevant because the read and - * write indeces are equal. + * write indices are equal. * * r * w diff --git a/tests/kernel/poll/src/test_poll.c b/tests/kernel/poll/src/test_poll.c index eddd8cebc2d..6cb3875bfa0 100644 --- a/tests/kernel/poll/src/test_poll.c +++ b/tests/kernel/poll/src/test_poll.c @@ -714,7 +714,7 @@ static void threadstate(void *p1, void *p2, void *p3) * - manipulating thread state to consider case where no polling thread * is available during event signalling. * - defined a signal poll as waitable events in poll and - * verify the result after siganl raised + * verify the result after signal raised * * @ingroup kernel_poll_tests * diff --git a/tests/kernel/queue/src/test_queue_fail.c b/tests/kernel/queue/src/test_queue_fail.c index a8609ff2e5e..9c51692ed8a 100644 --- a/tests/kernel/queue/src/test_queue_fail.c +++ b/tests/kernel/queue/src/test_queue_fail.c @@ -44,7 +44,7 @@ static void tThread_entry(void *p1, void *p2, void *p3) /** * @brief Test k_queue_append_list() failure scenario * - * @details Accroding to the API k_queue_append_list to + * @details According to the API k_queue_append_list to * design some error condition to verify error branch of * the API. * 1. Verify that the list's head is empty. diff --git a/tests/kernel/sched/deadline/src/main.c b/tests/kernel/sched/deadline/src/main.c index b8f9206b5bd..4f2c95396eb 100644 --- a/tests/kernel/sched/deadline/src/main.c +++ b/tests/kernel/sched/deadline/src/main.c @@ -169,7 +169,7 @@ void unqueue_worker(void *p1, void *p2, void *p3) } /** - * @brief Validate the behavior of dealine_set when the thread is not queued + * @brief Validate the behavior of deadline_set when the thread is not queued * * @details Create a bunch of threads with scheduling delay which make the * thread in unqueued state. The k_thread_deadline_set() call should not make diff --git a/tests/kernel/sched/preempt/src/main.c b/tests/kernel/sched/preempt/src/main.c index be38734d8b5..3d05b03f085 100644 --- a/tests/kernel/sched/preempt/src/main.c +++ b/tests/kernel/sched/preempt/src/main.c @@ -214,7 +214,7 @@ void validate_wakeup(int src, int target, k_tid_t last_thread) zassert_false(!preempted && target_wins, "higher priority thread should have preempted"); - /* The scheudler implements a 'first added to + /* The scheduler implements a 'first added to * queue' policy for threads within a single * priority, so the last thread woken up (the * target) must never run before the source @@ -227,7 +227,7 @@ void validate_wakeup(int src, int target, k_tid_t last_thread) * policy OR the opposite ("run newly woken * threads first"), and long term we may want * to revisit this particular check and maybe - * make the poilicy configurable. + * make the policy configurable. */ zassert_false(preempted && tie, "tied priority should not preempt"); diff --git a/tests/kernel/semaphore/sys_sem/src/main.c b/tests/kernel/semaphore/sys_sem/src/main.c index 4a44551f292..916f0330759 100644 --- a/tests/kernel/semaphore/sys_sem/src/main.c +++ b/tests/kernel/semaphore/sys_sem/src/main.c @@ -37,7 +37,7 @@ static void sem_thread_give_uninit(void *p1, void *p2, void *p3) { ztest_set_fault_valid(true); - /* use sem without initialse */ + /* use sem without initialise */ k_sem_give(&uninit_sem); ztest_test_fail(); @@ -70,7 +70,7 @@ static void thread_high_prio_sem_take(void *p1, void *p2, void *p3) * * @details Using semaphore with some situations * - Use a uninitialized semaphore - * - Use semphore normally + * - Use semaphore normally * - Use semaphore with different priority threads * * @ingroup kernel_sys_sem_tests diff --git a/tests/kernel/smp/src/main.c b/tests/kernel/smp/src/main.c index fd1f171f296..c5dcb16cfae 100644 --- a/tests/kernel/smp/src/main.c +++ b/tests/kernel/smp/src/main.c @@ -498,8 +498,8 @@ static void thread_get_cpu_entry(void *p1, void *p2, void *p3) * Test Objective: * - To verify architecture layer provides a mechanism to return a pointer to the * current kernel CPU record of the running CPU. - * We call arch_curr_cpu() and get it's member, both in main and spwaned thread - * speratively, and compare them. They shall be different in SMP enviornment. + * We call arch_curr_cpu() and get its member, both in main and spawned thread + * separately, and compare them. They shall be different in SMP environment. * * Testing techniques: * - Interface testing, function and block box testing, @@ -756,7 +756,7 @@ static void t2_mutex_lock(void *p1, void *p2, void *p3) } /** - * @brief Test scenairo that a thread release the global lock + * @brief Test scenario that a thread release the global lock * * @ingroup kernel_smp_tests * @@ -927,11 +927,11 @@ static int run_concurrency(int type, void *func) * @ingroup kernel_smp_tests * * @details Validate the global lock and unlock API of SMP are thread-safe. - * We make 3 thread to increase the global count in differenet cpu and + * We make 3 thread to increase the global count in different cpu and * they both do locking then unlocking for LOOP_COUNT times. It shall be no * deadlock happened and total global count shall be 3 * LOOP COUNT. * - * We show the 4 kinds of scenairo: + * We show the 4 kinds of scenario: * - No any lock used * - Use global irq lock * - Use semaphore diff --git a/tests/kernel/stack/stack/src/main.c b/tests/kernel/stack/stack/src/main.c index f0e4e488a10..fd6b2c03ff7 100644 --- a/tests/kernel/stack/stack/src/main.c +++ b/tests/kernel/stack/stack/src/main.c @@ -295,7 +295,7 @@ void thread_entry_wait(void *p1, void *p2, void *p3) /** * @brief Test that the stack pop can be waited - * if no item availablle + * if no item available * * @details Create and initialize a new stack * Set two timeout parameters to indicate @@ -325,9 +325,9 @@ void test_stack_pop_can_wait(void) k_stack_pop(&stack3, &rx_data[i], K_FOREVER); } - zassert_true(rx_data[2] == tx_data[2], "wait foreve and pop failed\n"); + zassert_true(rx_data[2] == tx_data[2], "wait forever and pop failed\n"); k_stack_pop(&stack3, &rx_data[3], K_MSEC(50)); - zassert_true(rx_data[3] == tx_data[3], "Wait maxmum time pop failed\n"); + zassert_true(rx_data[3] == tx_data[3], "Wait maximum time pop failed\n"); /* Clear the spawn thread to avoid side effect */ k_thread_abort(tid); /*free the buffer allocated*/ diff --git a/tests/kernel/stack/stack/src/test_stack_fail.c b/tests/kernel/stack/stack/src/test_stack_fail.c index 398024d1b4d..9ffcf6d9e06 100644 --- a/tests/kernel/stack/stack/src/test_stack_fail.c +++ b/tests/kernel/stack/stack/src/test_stack_fail.c @@ -85,7 +85,7 @@ void test_stack_push_full(void) for (int i = 0; i < STACK_LEN; i++) { zassert_true(k_stack_push(&stack, tx_data[i]) == 0, "push data into stack failed"); } - /* Verify that push a data in the full stack, a nagetive value will be met */ + /* Verify that push a data in the full stack, a negative value will be met */ zassert_true(k_stack_push(&stack, data_tmp) == -ENOMEM, "push data successful"); } diff --git a/tests/kernel/threads/thread_apis/src/main.c b/tests/kernel/threads/thread_apis/src/main.c index e1a5211ffb9..5f504fb5d9d 100644 --- a/tests/kernel/threads/thread_apis/src/main.c +++ b/tests/kernel/threads/thread_apis/src/main.c @@ -89,7 +89,7 @@ static void customdata_entry(void *p1, void *p2, void *p3) zassert_is_null(k_thread_custom_data_get(), NULL); while (1) { k_thread_custom_data_set((void *)data); - /* relinguish cpu for a while */ + /* relinquish cpu for a while */ k_msleep(50); /** TESTPOINT: custom data comparison */ zassert_equal(data, (long)k_thread_custom_data_get(), NULL); @@ -491,7 +491,7 @@ void test_thread_join_deadlock(void) /* * entry for a delayed thread, do nothing. After the thread is created, * just check how many ticks expires and how many ticks remain before - * the trhead start + * the thread start */ static void user_start_thread(void *p1, void *p2, void *p3) { @@ -546,7 +546,7 @@ static void foreach_callback(const struct k_thread *thread, void *user_data) ((k_thread_runtime_stats_t *)user_data)->execution_cycles += stats.execution_cycles; } -/* This case accumulates every threath's execution_cycles first, then +/* This case accumulates every thread's execution_cycles first, then * get the total execution_cycles from a global * k_thread_runtime_stats_t to see that all time is reflected in the * total. @@ -620,10 +620,10 @@ void test_k_busy_wait_user(void) #define INT_ARRAY_SIZE 128 int large_stack(size_t *space) { - /* use "volatile" to protect this varaible from being optimized out */ + /* use "volatile" to protect this variable from being optimized out */ volatile int a[INT_ARRAY_SIZE]; - /* to avoid unused varaible error */ + /* to avoid unused variable error */ a[0] = 1; return k_thread_stack_space_get(k_current_get(), space); @@ -635,7 +635,7 @@ int small_stack(size_t *space) } /* test k_thread_stack_sapce_get(), unused stack space in large_stack_space() - * is samller than that in small_stack() because the former function has a + * is smaller than that in small_stack() because the former function has a * large local variable */ void test_k_thread_stack_space_get_user(void) diff --git a/tests/kernel/threads/thread_apis/src/test_kthread_for_each.c b/tests/kernel/threads/thread_apis/src/test_kthread_for_each.c index c682570537f..04a92891586 100644 --- a/tests/kernel/threads/thread_apis/src/test_kthread_for_each.c +++ b/tests/kernel/threads/thread_apis/src/test_kthread_for_each.c @@ -180,7 +180,7 @@ void test_k_thread_foreach_unlocked(void) /** * @brief Test k_thread_foreach API with null callback * - * @details Call k_thread_foreach() with null callback will triger __ASSERT() + * @details Call k_thread_foreach() with null callback will trigger __ASSERT() * and this test thread will be aborted by z_fatal_error() * @see k_thread_foreach() * @ingroup kernel_thread_tests @@ -194,7 +194,7 @@ void test_k_thread_foreach_null_cb(void) /** * @brief Test k_thread_foreach_unlocked API with null callback * - * @details Call k_thread_foreach_unlocked() with null callback will triger + * @details Call k_thread_foreach_unlocked() with null callback will trigger * __ASSERT() and this test thread will be aborted by z_fatal_error() * * @see k_thread_foreach_unlocked() @@ -210,7 +210,7 @@ void test_k_thread_foreach_unlocked_null_cb(void) * @brief Test k_thread_state_str API with null callback * * @details It's impossible to sched a thread step by step manually to - * experence each state from _THREAD_PRESTART to _THREAD_DEAD. To cover each + * experience each state from _THREAD_PRESTART to _THREAD_DEAD. To cover each * line of function k_thread_state_str(), set thread_state of tdata1 and check * the string this function returns * diff --git a/tests/kernel/threads/thread_error_case/src/main.c b/tests/kernel/threads/thread_error_case/src/main.c index 0d14d054902..77fe6c74b06 100644 --- a/tests/kernel/threads/thread_error_case/src/main.c +++ b/tests/kernel/threads/thread_error_case/src/main.c @@ -41,7 +41,7 @@ static void tThread_entry_negative(void *p1, void *p2, void *p3) TC_PRINT("current case is %d\n", choice); /* Set up the fault or assert are expected before we call - * the target tested funciton. + * the target tested function. */ switch (choice) { case THREAD_START: diff --git a/tests/kernel/timer/cycle64/testcase.yaml b/tests/kernel/timer/cycle64/testcase.yaml index 622620518ed..7594a975f63 100644 --- a/tests/kernel/timer/cycle64/testcase.yaml +++ b/tests/kernel/timer/cycle64/testcase.yaml @@ -4,7 +4,7 @@ # complete these tests almost instantaneously because of qemu timer # quirks ("time warp") even though the test reports that it completes # in e.g. 14 s. We can take advantage of that for fast tests on each PR -# but we also want to excercise this code path during daily builds or +# but we also want to exercise this code path during daily builds or # otherwise when users specify "twister --enable-slow". # # As other platforms are added with varying timer frequencies, increase diff --git a/tests/kernel/timer/timer_api/src/main.c b/tests/kernel/timer/timer_api/src/main.c index 07c1812b8e4..c3e216c73f8 100644 --- a/tests/kernel/timer/timer_api/src/main.c +++ b/tests/kernel/timer/timer_api/src/main.c @@ -197,7 +197,7 @@ void test_timer_duration_period(void) k_timer_start(&duration_timer, K_FOREVER, K_MSEC(PERIOD)); TIMER_ASSERT(tdata.stop_cnt == 1, &duration_timer); - /* cleanup environemtn */ + /* cleanup environment */ k_timer_stop(&duration_timer); } @@ -267,7 +267,7 @@ void test_timer_period_0(void) && (tdata.expire_cnt == 0)), &period0_timer); TIMER_ASSERT(tdata.stop_cnt == 0, &period0_timer); - /* cleanup environemtn */ + /* cleanup environment */ k_timer_stop(&period0_timer); } @@ -306,7 +306,7 @@ void test_timer_period_k_forever(void) &period0_timer); TIMER_ASSERT(tdata.stop_cnt == 0, &period0_timer); - /* cleanup environemtn */ + /* cleanup environment */ k_timer_stop(&period0_timer); } @@ -406,7 +406,7 @@ void test_timer_periodicity(void) * * Please note, that expected firing time is not the * one requested, as the kernel uses the ticks to manage - * time. The actual perioid will be equal to [tick time] + * time. The actual period will be equal to [tick time] * multiplied by k_ms_to_ticks_ceil32(PERIOD). * * In the case of inexact conversion the delta will @@ -614,7 +614,7 @@ static void user_data_timer_handler(struct k_timer *timer) * Validate user-specific data associated with timer * * It creates prototype of K_TIMER_DEFINE and starts the timer using - * k_timer_start() with specific initial duration, alongwith associated + * k_timer_start() with specific initial duration, along with associated * user data using k_timer_user_data_set and k_timer_user_data_get(). * Stops the timer using k_timer_stop() and checks for correct data * retrieval after timer completion. @@ -719,7 +719,7 @@ void test_timer_remaining(void) "tick/busy slew %d larger than test threshold %u", delta_ticks, slew_ticks); - /* Note +1 tick precision: even though we're calcluating in + /* Note +1 tick precision: even though we're calculating in * ticks, we're waiting in k_busy_wait(), not for a timer * interrupt, so it's possible for that to take 1 tick longer * than expected on systems where the requested microsecond diff --git a/tests/kernel/timer/timer_monotonic/src/main.c b/tests/kernel/timer/timer_monotonic/src/main.c index 866e7ee0f23..a99372e8660 100644 --- a/tests/kernel/timer/timer_monotonic/src/main.c +++ b/tests/kernel/timer/timer_monotonic/src/main.c @@ -39,7 +39,7 @@ int test_frequency(void) * Validates monotonic timer's clock calibration. * * It reads the System clock’s h/w timer frequency value continuously - * using k_cycle_get_32() to verify its working and correctiveness. + * using k_cycle_get_32() to verify its working and correctness. * It also checks system tick frequency by checking the delta error * between generated and system clock provided HW cycles per sec values. * diff --git a/tests/kernel/workq/work/testcase.yaml b/tests/kernel/workq/work/testcase.yaml index 4845004dfcf..59811924185 100644 --- a/tests/kernel/workq/work/testcase.yaml +++ b/tests/kernel/workq/work/testcase.yaml @@ -2,7 +2,7 @@ tests: kernel.work.api: min_flash: 34 tags: kernel - # this patform fails to run due to #40376, all + # this platform fails to run due to #40376, all # the related CI checks got blocked, so exclude it. platform_exclude: hifive1 timeout: 70 diff --git a/tests/kernel/workq/work_queue/README.txt b/tests/kernel/workq/work_queue/README.txt index 96aa30d56e9..2e230e64b35 100644 --- a/tests/kernel/workq/work_queue/README.txt +++ b/tests/kernel/workq/work_queue/README.txt @@ -1,4 +1,4 @@ -Title: Test workqeue APIs +Title: Test workqueue APIs Description: diff --git a/tests/kernel/xip/src/main.c b/tests/kernel/xip/src/main.c index f60a30b23c1..36b98c0fa87 100644 --- a/tests/kernel/xip/src/main.c +++ b/tests/kernel/xip/src/main.c @@ -48,7 +48,7 @@ void test_globals(void) { int i; - /* Array should be filled with monotomically incrementing values */ + /* Array should be filled with monotonically incrementing values */ for (i = 0; i < XIP_TEST_ARRAY_SZ; i++) { /**TESTPOINT: Check if the array value is correct*/ diff --git a/tests/lib/cbprintf_package/src/main.c b/tests/lib/cbprintf_package/src/main.c index 89b706dad3c..0e5fe0006fc 100644 --- a/tests/lib/cbprintf_package/src/main.c +++ b/tests/lib/cbprintf_package/src/main.c @@ -113,7 +113,7 @@ void test_cbprintf_package(void) char *pstr = (char *)str; int rv; - /* tests to exercize different element alignments */ + /* tests to exercise different element alignments */ TEST_PACKAGING(0, "test long %x %lx %x", 0xb1b2b3b4, li, 0xe4e3e2e1); TEST_PACKAGING(0, "test long long %x %llx %x", 0xb1b2b3b4, lli, 0xe4e3e2e1); diff --git a/tests/lib/heap_align/src/main.c b/tests/lib/heap_align/src/main.c index 678ba2e1fcc..4b6376fc44f 100644 --- a/tests/lib/heap_align/src/main.c +++ b/tests/lib/heap_align/src/main.c @@ -17,7 +17,7 @@ uint8_t *heap_start, *heap_end; /* Note that this test is making whitebox assumptions about the * behavior of the heap in order to exercise coverage of the * underlying code: that chunk headers are 8 bytes, that heap chunks - * are returned low-adddress to high, and that freed blocks are merged + * are returned low-address to high, and that freed blocks are merged * immediately with adjacent free blocks. */ static void check_heap_align(struct sys_heap *h, diff --git a/tests/lib/mpsc_pbuf/src/main.c b/tests/lib/mpsc_pbuf/src/main.c index ebb4125d59f..7dd633e2315 100644 --- a/tests/lib/mpsc_pbuf/src/main.c +++ b/tests/lib/mpsc_pbuf/src/main.c @@ -1026,7 +1026,7 @@ void start_threads(struct mpsc_pbuf_buffer *buffer) } /* Test creates two threads which pends on the buffer until there is a space - * available. When engough buffers is released threads are waken up and they + * available. When enough buffers is released threads are woken up and they * allocate packets. */ void test_pending_alloc(void) diff --git a/tests/lib/onoff/src/main.c b/tests/lib/onoff/src/main.c index 4d34847e1fd..f5836de8135 100644 --- a/tests/lib/onoff/src/main.c +++ b/tests/lib/onoff/src/main.c @@ -818,7 +818,7 @@ static void test_multi_reset(void) int rc; struct onoff_client cli2 = {}; - /* Verify multiple reset requests are statisfied when reset + /* Verify multiple reset requests are satisfied when reset * transition completes. */ setup_test(); diff --git a/tests/lib/p4workq/src/main.c b/tests/lib/p4workq/src/main.c index 4754450e0ed..72ae1268fe9 100644 --- a/tests/lib/p4workq/src/main.c +++ b/tests/lib/p4workq/src/main.c @@ -244,7 +244,7 @@ void simple_handler(struct k_p4wq_work *work) has_run = true; } -/* Simple test that submited items run, and at the correct priority */ +/* Simple test that submitted items run, and at the correct priority */ static void test_p4wq_simple(void) { int prio = 2; diff --git a/tests/lib/ringbuffer/src/main.c b/tests/lib/ringbuffer/src/main.c index 3391386f56c..e19ea68742d 100644 --- a/tests/lib/ringbuffer/src/main.c +++ b/tests/lib/ringbuffer/src/main.c @@ -78,7 +78,7 @@ extern void test_ringbuffer_item_stress(void); * * Expected Test Result: * - Data items pushed shall be equal to what are gotten. And - * An error shall be shown up when an item is put into a full ringbutter or + * An error shall be shown up when an item is put into a full ringbuffer or * get some items from an empty ringbuffer. * * Pass/Fail Criteria: @@ -119,7 +119,7 @@ void test_ring_buffer_main(void) ret = ring_buf_item_get(&ring_buf1, &gettype, &getval, getdata, &getsize); if (ret != -EMSGSIZE) { - LOG_DBG("Allowed retreival with insufficient " + LOG_DBG("Allowed retrieval with insufficient " "destination buffer space"); zassert_true((getsize == INITIAL_SIZE), "Correct size wasn't reported back to the caller"); diff --git a/tests/lib/smf/src/test_lib_flat_smf.c b/tests/lib/smf/src/test_lib_flat_smf.c index 58634ec2237..eb4b09cc898 100644 --- a/tests/lib/smf/src/test_lib_flat_smf.c +++ b/tests/lib/smf/src/test_lib_flat_smf.c @@ -8,7 +8,7 @@ #include /* - * Flat Test Transtion: + * Flat Test Transition: * * A_ENTRY --> A_RUN --> A_EXIT --> B_ENTRY --> B_RUN --| * | @@ -221,7 +221,7 @@ static const struct smf_state test_states[] = { void test_smf_flat(void) { - /* A) Test transtions */ + /* A) Test transitions */ test_obj.transition_bits = 0; test_obj.terminate = NONE; diff --git a/tests/lib/smf/src/test_lib_hierarchical_5_ancestor_smf.c b/tests/lib/smf/src/test_lib_hierarchical_5_ancestor_smf.c index b5e88f40785..b8e31207824 100644 --- a/tests/lib/smf/src/test_lib_hierarchical_5_ancestor_smf.c +++ b/tests/lib/smf/src/test_lib_hierarchical_5_ancestor_smf.c @@ -8,7 +8,7 @@ #include /* - * Hierarchical 5 Ancestor State Test Transistion: + * Hierarchical 5 Ancestor State Test Transition: * * P05_ENTRY --> P04_ENTRY --> P03_ENTRY --> P02_ENTRY ---------| * | diff --git a/tests/lib/smf/src/test_lib_hierarchical_smf.c b/tests/lib/smf/src/test_lib_hierarchical_smf.c index 6d6565c8af8..ecf3e00cacb 100644 --- a/tests/lib/smf/src/test_lib_hierarchical_smf.c +++ b/tests/lib/smf/src/test_lib_hierarchical_smf.c @@ -26,7 +26,7 @@ */ /* - * Hierarchical 10 Ancestor State Test Transistion: + * Hierarchical 10 Ancestor State Test Transition: * * P10_ENTRY --> P09_ENTRY --> ... -- P02_ENTRY --> P01_ENTRY --| * | diff --git a/tests/net/6lo/src/main.c b/tests/net/6lo/src/main.c index fae46d2193f..c53f31d35d2 100644 --- a/tests/net/6lo/src/main.c +++ b/tests/net/6lo/src/main.c @@ -98,7 +98,7 @@ LOG_MODULE_REGISTER(net_test, CONFIG_NET_6LO_LOG_LEVEL); uint8_t src_mac[8] = { 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0xaa, 0xbb }; uint8_t dst_mac[8] = { 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0xbb, 0xaa }; -/* Source and Destination addresses are contect related addresses. */ +/* Source and Destination addresses are context related addresses. */ #if defined(CONFIG_NET_6LO_CONTEXT) /* CONFIG_NET_MAX_6LO_CONTEXTS=2, defined in prj.conf, If you want * to increase this value, then add extra contexts here. @@ -290,7 +290,7 @@ static bool compare_ipv6_hdr(struct net_pkt *pkt, struct net_6lo_data *data) res = memcmp((uint8_t *)ipv6_hdr, (uint8_t *)&data->ipv6, sizeof(struct net_ipv6_hdr)); if (res) { - TC_PRINT("Missmatch IPv6 HDR\n"); + TC_PRINT("Mismatch IPv6 HDR\n"); return false; } @@ -313,7 +313,7 @@ static bool compare_udp_hdr(struct net_pkt *pkt, struct net_6lo_data *data) res = memcmp((uint8_t *)udp_hdr, (uint8_t *)&data->nh.udp, sizeof(struct net_udp_hdr)); if (res) { - TC_PRINT("Missmatch UDP HDR\n"); + TC_PRINT("Mismatch UDP HDR\n"); return false; } @@ -336,7 +336,7 @@ static bool compare_icmp_hdr(struct net_pkt *pkt, struct net_6lo_data *data) res = memcmp((uint8_t *)icmp_hdr, (uint8_t *)&data->nh.icmp, sizeof(struct net_icmp_hdr)); if (res) { - TC_PRINT("Missmatch ICMP HDR\n"); + TC_PRINT("Mismatch ICMP HDR\n"); return false; } @@ -358,7 +358,7 @@ static bool compare_data_small(struct net_pkt *pkt, const char *data) res = memcmp(test_data->data, data, sizeof(struct user_data_small)); if (res) { - TC_PRINT("User data missmatch\n"); + TC_PRINT("User data mismatch\n"); return false; } @@ -380,7 +380,7 @@ static bool compare_data_large(struct net_pkt *pkt, const char *data) res = memcmp(test_data->data, data, sizeof(struct user_data_large)); if (res) { - TC_PRINT("User data missmatch\n"); + TC_PRINT("User data mismatch\n"); return false; } diff --git a/tests/net/checksum_offload/src/main.c b/tests/net/checksum_offload/src/main.c index 69edbcbbd32..d72b479e5c5 100644 --- a/tests/net/checksum_offload/src/main.c +++ b/tests/net/checksum_offload/src/main.c @@ -392,7 +392,7 @@ static void test_address_setup(void) zassert_not_null(ifaddr, "addr1"); } - /* For testing purposes we need to set the adddresses preferred */ + /* For testing purposes we need to set the addresses preferred */ ifaddr->addr_state = NET_ADDR_PREFERRED; ifaddr = net_if_ipv6_addr_add(iface1, &ll_addr, diff --git a/tests/net/hostname/src/main.c b/tests/net/hostname/src/main.c index 3f505365363..3cebc10e68b 100644 --- a/tests/net/hostname/src/main.c +++ b/tests/net/hostname/src/main.c @@ -252,7 +252,7 @@ static void test_iface_setup(void) zassert_not_null(ifaddr, "ipv4 addr1"); } - /* For testing purposes we need to set the adddresses preferred */ + /* For testing purposes we need to set the addresses preferred */ ifaddr->addr_state = NET_ADDR_PREFERRED; ifaddr = net_if_ipv6_addr_add(iface1, &ll_addr, diff --git a/tests/net/icmpv4/src/main.c b/tests/net/icmpv4/src/main.c index 2488f87519b..474e51a3bbd 100644 --- a/tests/net/icmpv4/src/main.c +++ b/tests/net/icmpv4/src/main.c @@ -263,7 +263,7 @@ static int verify_echo_reply_with_opts(struct net_pkt *pkt) payload_len = sizeof(icmpv4_echo_req_opt) - NET_IPV4H_LEN - NET_ICMPH_LEN - opts_len; if (payload_len != net_pkt_remaining_data(pkt)) { - zassert_true(false, "echo_reply_opts invalid paylaod len"); + zassert_true(false, "echo_reply_opts invalid payload len"); } ret = net_pkt_read(pkt, buf, payload_len); diff --git a/tests/net/iface/src/main.c b/tests/net/iface/src/main.c index 88130a657f0..220b1a3673f 100644 --- a/tests/net/iface/src/main.c +++ b/tests/net/iface/src/main.c @@ -363,7 +363,7 @@ static void test_iface_setup(void) zassert_not_null(ifaddr, "ipv4 addr1"); } - /* For testing purposes we need to set the adddresses preferred */ + /* For testing purposes we need to set the addresses preferred */ ifaddr->addr_state = NET_ADDR_PREFERRED; ifaddr = net_if_ipv6_addr_add(iface1, &ll_addr, diff --git a/tests/net/ipv6/src/main.c b/tests/net/ipv6/src/main.c index e6beb36bd8b..01e97664c50 100644 --- a/tests/net/ipv6/src/main.c +++ b/tests/net/ipv6/src/main.c @@ -245,7 +245,7 @@ static int tester_send(const struct device *dev, struct net_pkt *pkt) icmp = get_icmp_hdr(pkt); - /* Reply with RA messge */ + /* Reply with RA message */ if (icmp->type == NET_ICMPV6_RS) { if (expecting_ra) { prepare_ra_message(pkt); diff --git a/tests/net/ipv6_fragment/src/main.c b/tests/net/ipv6_fragment/src/main.c index 8b2677251e0..f4cc9d34720 100644 --- a/tests/net/ipv6_fragment/src/main.c +++ b/tests/net/ipv6_fragment/src/main.c @@ -1474,7 +1474,7 @@ static void test_setup(void) net_sprint_ipv6_addr(&ll_addr)); zassert_not_null(ifaddr, "ll_addr"); } else { - /* we need to set the adddresses preferred */ + /* we need to set the addresses preferred */ ifaddr->addr_state = NET_ADDR_PREFERRED; } diff --git a/tests/net/promiscuous/src/main.c b/tests/net/promiscuous/src/main.c index 20da8d66388..227c0f1bfb6 100644 --- a/tests/net/promiscuous/src/main.c +++ b/tests/net/promiscuous/src/main.c @@ -228,7 +228,7 @@ static void test_iface_setup(void) zassert_not_null(ifaddr, "addr1"); } - /* For testing purposes we need to set the adddresses preferred */ + /* For testing purposes we need to set the addresses preferred */ ifaddr->addr_state = NET_ADDR_PREFERRED; ifaddr = net_if_ipv6_addr_add(iface1, &ll_addr, diff --git a/tests/net/ptp/clock/src/main.c b/tests/net/ptp/clock/src/main.c index 8bbabb588f8..940c9a2ce70 100644 --- a/tests/net/ptp/clock/src/main.c +++ b/tests/net/ptp/clock/src/main.c @@ -337,11 +337,11 @@ static void test_check_interfaces(void) net_if_foreach(iface_cb, &ud); zassert_equal(ud.eth_if_count, MAX_NUM_INTERFACES, - "Invalid numer of ethernet interfaces %d vs %d\n", + "Invalid number of ethernet interfaces %d vs %d\n", ud.eth_if_count, MAX_NUM_INTERFACES); zassert_equal(ud.total_if_count, ud.eth_if_count, - "Invalid numer of interfaces %d vs %d\n", + "Invalid number of interfaces %d vs %d\n", ud.total_if_count, ud.eth_if_count); } @@ -370,7 +370,7 @@ static void test_address_setup(void) zassert_not_null(ifaddr, "addr1\n"); } - /* For testing purposes we need to set the adddresses preferred */ + /* For testing purposes we need to set the addresses preferred */ ifaddr->addr_state = NET_ADDR_PREFERRED; ifaddr = net_if_ipv6_addr_add(iface1, &ll_addr, diff --git a/tests/net/route/src/main.c b/tests/net/route/src/main.c index faa696076d3..8c7ec8f01b6 100644 --- a/tests/net/route/src/main.c +++ b/tests/net/route/src/main.c @@ -259,7 +259,7 @@ static void test_init(void) zassert_not_null(ifaddr, "Cannot add IPv6 address"); - /* For testing purposes we need to set the adddresses preferred */ + /* For testing purposes we need to set the addresses preferred */ ifaddr->addr_state = NET_ADDR_PREFERRED; ifaddr = net_if_ipv6_addr_add(my_iface, &ll_addr, diff --git a/tests/net/socket/misc/src/main.c b/tests/net/socket/misc/src/main.c index 4c4f5267d9f..1d4824e2f88 100644 --- a/tests/net/socket/misc/src/main.c +++ b/tests/net/socket/misc/src/main.c @@ -263,7 +263,7 @@ void test_so_bindtodevice(int sock_c, int sock_s, struct sockaddr *peer_addr, zassert_equal_ptr(dev1, current_dev, "invalid interface used"); - /* Server socket should now receive data from iterface 1 as well. */ + /* Server socket should now receive data from interface 1 as well. */ k_msleep(10); diff --git a/tests/net/socket/socketpair/src/test_socketpair_expected_failures.c b/tests/net/socket/socketpair/src/test_socketpair_expected_failures.c index c52201df868..656ae321be9 100644 --- a/tests/net/socket/socketpair/src/test_socketpair_expected_failures.c +++ b/tests/net/socket/socketpair/src/test_socketpair_expected_failures.c @@ -37,7 +37,7 @@ void test_socketpair_expected_failures(void) } zassert_equal(res, -1, "socketpair with fail with bad address family"); zassert_equal(errno, EAFNOSUPPORT, - "errno should be EAFNOSUPPORT with bad adddress family"); + "errno should be EAFNOSUPPORT with bad address family"); res = socketpair(AF_UNIX, 42, 0, sv); if (res != -1) { diff --git a/tests/net/socket/socketpair/src/test_socketpair_nonblock.c b/tests/net/socket/socketpair/src/test_socketpair_nonblock.c index f2f941350bd..ef9131dd6ee 100644 --- a/tests/net/socket/socketpair/src/test_socketpair_nonblock.c +++ b/tests/net/socket/socketpair/src/test_socketpair_nonblock.c @@ -49,7 +49,7 @@ void test_socketpair_write_nonblock(void) /* then, try to write one more byte */ res = write(sv[i], "x", 1); zassert_equal(res, -1, "expected write to fail"); - zassert_equal(errno, EAGAIN, "errno: exected: EAGAIN " + zassert_equal(errno, EAGAIN, "errno: expected: EAGAIN " "actual: %d", errno); } @@ -77,7 +77,7 @@ void test_socketpair_read_nonblock(void) /* then, try to read one byte */ res = read(sv[i], &c, 1); zassert_equal(res, -1, "expected read to fail"); - zassert_equal(errno, EAGAIN, "errno: exected: EAGAIN " + zassert_equal(errno, EAGAIN, "errno: expected: EAGAIN " "actual: %d", errno); } diff --git a/tests/net/socket/tls_ext/src/main.c b/tests/net/socket/tls_ext/src/main.c index 3ad84237b19..66dcba33ed2 100644 --- a/tests/net/socket/tls_ext/src/main.c +++ b/tests/net/socket/tls_ext/src/main.c @@ -42,7 +42,7 @@ LOG_MODULE_REGISTER(tls_test, CONFIG_NET_SOCKETS_LOG_LEVEL); * @brief Application-dependent TLS credential identifiers * * Since both the server and client exist in the same test - * application in this case, both the server and client credendtials + * application in this case, both the server and client credentials * are loaded together. * * The server would normally need diff --git a/tests/net/tcp/src/main.c b/tests/net/tcp/src/main.c index ce936409f9d..3aeefb52f6c 100644 --- a/tests/net/tcp/src/main.c +++ b/tests/net/tcp/src/main.c @@ -546,7 +546,7 @@ static void test_client_ipv4(void) zassert_true(false, "Failed to connect to peer"); } - /* Peer will release the semaphone after it receives + /* Peer will release the semaphore after it receives * proper ACK to SYN | ACK */ test_sem_take(K_MSEC(100), __LINE__); @@ -556,12 +556,12 @@ static void test_client_ipv4(void) zassert_true(false, "Failed to send data to peer"); } - /* Peer will release the semaphone after it sends ACK for data */ + /* Peer will release the semaphore after it sends ACK for data */ test_sem_take(K_MSEC(100), __LINE__); net_context_put(ctx); - /* Peer will release the semaphone after it receives + /* Peer will release the semaphore after it receives * proper ACK to FIN | ACK */ test_sem_take(K_MSEC(100), __LINE__); @@ -608,7 +608,7 @@ static void test_client_ipv6(void) zassert_true(false, "Failed to connect to peer"); } - /* Peer will release the semaphone after it receives + /* Peer will release the semaphore after it receives * proper ACK to SYN | ACK */ test_sem_take(K_MSEC(100), __LINE__); @@ -618,12 +618,12 @@ static void test_client_ipv6(void) zassert_true(false, "Failed to send data to peer"); } - /* Peer will release the semaphone after it sends ACK for data */ + /* Peer will release the semaphore after it sends ACK for data */ test_sem_take(K_MSEC(100), __LINE__); net_context_put(ctx); - /* Peer will release the semaphone after it receives + /* Peer will release the semaphore after it receives * proper ACK to FIN | ACK */ test_sem_take(K_MSEC(100), __LINE__); @@ -773,7 +773,7 @@ static void test_server_ipv4(void) zassert_true(false, "Failed to set accept on net_context"); } - /* test_tcp_accept_cb will release the semaphone after succesfull + /* test_tcp_accept_cb will release the semaphore after successful * connection. */ test_sem_take(K_MSEC(100), __LINE__); @@ -836,7 +836,7 @@ static void test_server_with_options_ipv4(void) zassert_true(false, "Failed to set accept on net_context"); } - /* test_tcp_accept_cb will release the semaphone after succesfull + /* test_tcp_accept_cb will release the semaphore after successful * connection. */ test_sem_take(K_MSEC(100), __LINE__); @@ -899,7 +899,7 @@ static void test_server_ipv6(void) zassert_true(false, "Failed to set accept on net_context"); } - /* test_tcp_accept_cb will release the semaphone after succesfull + /* test_tcp_accept_cb will release the semaphore after successful * connection. */ test_sem_take(K_MSEC(100), __LINE__); @@ -1061,7 +1061,7 @@ static void test_client_fin_wait_2_ipv4(void) zassert_true(false, "Failed to connect to peer"); } - /* Peer will release the semaphone after it receives + /* Peer will release the semaphore after it receives * proper ACK to SYN | ACK */ test_sem_take(K_MSEC(100), __LINE__); @@ -1071,12 +1071,12 @@ static void test_client_fin_wait_2_ipv4(void) zassert_true(false, "Failed to send data to peer"); } - /* Peer will release the semaphone after it sends ACK for data */ + /* Peer will release the semaphore after it sends ACK for data */ test_sem_take(K_MSEC(100), __LINE__); net_tcp_put(ctx); - /* Peer will release the semaphone after it receives + /* Peer will release the semaphore after it receives * proper ACK to FIN | ACK */ test_sem_take(K_MSEC(300), __LINE__); @@ -1182,7 +1182,7 @@ static void test_client_closing_ipv6(void) zassert_true(false, "Failed to connect to peer"); } - /* Peer will release the semaphone after it receives + /* Peer will release the semaphore after it receives * proper ACK to SYN | ACK */ test_sem_take(K_MSEC(100), __LINE__); @@ -1192,12 +1192,12 @@ static void test_client_closing_ipv6(void) zassert_true(false, "Failed to send data to peer"); } - /* Peer will release the semaphone after it sends ACK for data */ + /* Peer will release the semaphore after it sends ACK for data */ test_sem_take(K_MSEC(100), __LINE__); net_tcp_put(ctx); - /* Peer will release the semaphone after it receives + /* Peer will release the semaphore after it receives * proper ACK to FIN | ACK */ test_sem_take(K_MSEC(300), __LINE__); @@ -1243,7 +1243,7 @@ static struct net_context *create_server_socket(uint32_t my_seq, zassert_true(false, "Failed to set accept on net_context"); } - /* test_tcp_accept_cb will release the semaphone after succesfull + /* test_tcp_accept_cb will release the semaphore after successful * connection. */ test_sem_take(K_MSEC(100), __LINE__); @@ -1434,7 +1434,7 @@ static void test_server_recv_out_of_order_data(void) ret = net_recv_data(iface, pkt); zassert_true(ret == 0, "recv data failed (%d)", ret); - /* Peer will release the semaphone after it sends proper ACK to the + /* Peer will release the semaphore after it sends proper ACK to the * queued data. */ test_sem_take(K_MSEC(1000), __LINE__); diff --git a/tests/net/traffic_class/src/main.c b/tests/net/traffic_class/src/main.c index 2dca0005534..5ffb1f24ad9 100644 --- a/tests/net/traffic_class/src/main.c +++ b/tests/net/traffic_class/src/main.c @@ -288,7 +288,7 @@ static void address_setup(void) zassert_not_null(ifaddr, "addr1"); } - /* For testing purposes we need to set the adddresses preferred */ + /* For testing purposes we need to set the addresses preferred */ ifaddr->addr_state = NET_ADDR_PREFERRED; ifaddr = net_if_ipv6_addr_add(iface1, &ll_addr, diff --git a/tests/net/tx_timestamp/src/main.c b/tests/net/tx_timestamp/src/main.c index 28981d8c27a..c2a0865673a 100644 --- a/tests/net/tx_timestamp/src/main.c +++ b/tests/net/tx_timestamp/src/main.c @@ -364,7 +364,7 @@ static void test_address_setup(void) zassert_not_null(ifaddr, "addr1\n"); } - /* For testing purposes we need to set the adddresses preferred */ + /* For testing purposes we need to set the addresses preferred */ ifaddr->addr_state = NET_ADDR_PREFERRED; ifaddr = net_if_ipv6_addr_add(iface1, &ll_addr, diff --git a/tests/net/virtual/src/main.c b/tests/net/virtual/src/main.c index 3d22a79f988..6bd2d09de74 100644 --- a/tests/net/virtual/src/main.c +++ b/tests/net/virtual/src/main.c @@ -405,7 +405,7 @@ static void test_address_setup(void) zassert_not_null(ifaddr, "eth addr"); } - /* For testing purposes we need to set the adddresses preferred */ + /* For testing purposes we need to set the addresses preferred */ ifaddr->addr_state = NET_ADDR_PREFERRED; ifaddr = net_if_ipv4_addr_add(eth, &my_addr, NET_ADDR_MANUAL, 0); diff --git a/tests/net/vlan/src/main.c b/tests/net/vlan/src/main.c index 1889a4d9238..3e02a2bd373 100644 --- a/tests/net/vlan/src/main.c +++ b/tests/net/vlan/src/main.c @@ -376,7 +376,7 @@ static void test_address_setup(void) zassert_not_null(ifaddr, "addr1"); } - /* For testing purposes we need to set the adddresses preferred */ + /* For testing purposes we need to set the addresses preferred */ ifaddr->addr_state = NET_ADDR_PREFERRED; ifaddr = net_if_ipv6_addr_add(iface1, &ll_addr, diff --git a/tests/posix/common/src/clock.c b/tests/posix/common/src/clock.c index 01b6093bcf5..15704eebcfd 100644 --- a/tests/posix/common/src/clock.c +++ b/tests/posix/common/src/clock.c @@ -84,7 +84,7 @@ void test_posix_realtime(void) for (int i = 1; i <= 20; i++) { usleep(USEC_PER_MSEC * 90U); ret = clock_gettime(CLOCK_REALTIME, &rts); - zassert_equal(ret, 0, "Fail to read realitime clock"); + zassert_equal(ret, 0, "Fail to read realtime clock"); int64_t delta = ((int64_t)rts.tv_sec * NSEC_PER_SEC - diff --git a/tests/posix/common/src/mutex.c b/tests/posix/common/src/mutex.c index 46539200ec9..317b0bba07c 100644 --- a/tests/posix/common/src/mutex.c +++ b/tests/posix/common/src/mutex.c @@ -34,7 +34,7 @@ void *normal_mutex_entry(void *p1) zassert_false(rc, "try lock failed"); TC_PRINT("mutex lock is taken\n"); zassert_false(pthread_mutex_unlock(&mutex1), - "mutex unlock is falied"); + "mutex unlock is failed"); return NULL; } @@ -43,7 +43,7 @@ void *recursive_mutex_entry(void *p1) zassert_false(pthread_mutex_lock(&mutex2), "mutex is not taken"); zassert_false(pthread_mutex_lock(&mutex2), "mutex is not taken 2nd time"); - TC_PRINT("recrusive mutex lock is taken\n"); + TC_PRINT("recursive mutex lock is taken\n"); zassert_false(pthread_mutex_unlock(&mutex2), "mutex is not unlocked"); zassert_false(pthread_mutex_unlock(&mutex2), diff --git a/tests/posix/common/src/posix_rwlock.c b/tests/posix/common/src/posix_rwlock.c index 002fc82c861..dd38db5e9aa 100644 --- a/tests/posix/common/src/posix_rwlock.c +++ b/tests/posix/common/src/posix_rwlock.c @@ -80,7 +80,7 @@ void test_posix_rw_lock(void) zassert_false(pthread_rwlock_timedwrlock(&rwlock, &time), "Failed to acquire write lock"); - /* Creating N premptive threads in increasing order of priority */ + /* Creating N preemptive threads in increasing order of priority */ for (i = 0; i < N_THR; i++) { zassert_equal(pthread_attr_init(&attr[i]), 0, "Unable to create pthread object attrib"); diff --git a/tests/posix/common/src/pthread.c b/tests/posix/common/src/pthread.c index 9f6ce81abd8..779be16d281 100644 --- a/tests/posix/common/src/pthread.c +++ b/tests/posix/common/src/pthread.c @@ -428,7 +428,7 @@ void test_posix_pthread_error_condition(void) zassert_equal(pthread_attr_setdetachstate(NULL, 0), EINVAL, "pthread set detach state with NULL error"); zassert_equal(pthread_attr_getdetachstate(NULL, &detach), - EINVAL, "get datach state error"); + EINVAL, "get detach state error"); zassert_equal(pthread_detach(NULL), ESRCH, "detach with NULL error"); zassert_equal(pthread_attr_init(NULL), ENOMEM, "init with NULL error"); @@ -447,7 +447,7 @@ void test_posix_pthread_error_condition(void) attr.initialized = 0U; zassert_equal(pthread_attr_getdetachstate(&attr, &detach), - EINVAL, "get datach state error"); + EINVAL, "get detach state error"); /* Initialise thread attribute to ensure won't be return with init error */ zassert_false(pthread_attr_init(&attr), @@ -465,7 +465,7 @@ void test_posix_pthread_error_condition(void) zassert_equal(pthread_attr_setdetachstate(&attr, 3), EINVAL, "set detach state error"); zassert_false(pthread_attr_getdetachstate(&attr, &detach), - "get datach state error"); + "get detach state error"); } void test_posix_pthread_termination(void) diff --git a/tests/subsys/canbus/isotp/implementation/src/main.c b/tests/subsys/canbus/isotp/implementation/src/main.c index b0d48d353ff..87f205096d1 100644 --- a/tests/subsys/canbus/isotp/implementation/src/main.c +++ b/tests/subsys/canbus/isotp/implementation/src/main.c @@ -144,7 +144,7 @@ static void receive_test_data_net(struct isotp_recv_ctx *recv_ctx, remaining_len); received_len += buf->len; zassert_equal(received_len + remaining_len, len, - "Length missmatch"); + "Length mismatch"); data_ptr = check_frag(buf, data_ptr); diff --git a/tests/subsys/dfu/img_util/src/main.c b/tests/subsys/dfu/img_util/src/main.c index 48d59d8d565..532cfe5499e 100644 --- a/tests/subsys/dfu/img_util/src/main.c +++ b/tests/subsys/dfu/img_util/src/main.c @@ -78,7 +78,7 @@ void test_collecting(void) data[j] = k++; } ret = flash_img_buffered_write(&ctx, data, sizeof(data), false); - zassert_true(ret == 0, "image colletion fail: %d\n", ret); + zassert_true(ret == 0, "image collection fail: %d\n", ret); } zassert(flash_img_buffered_write(&ctx, data, 0, true) == 0, "pass", diff --git a/tests/subsys/fs/fs_api/src/main.c b/tests/subsys/fs/fs_api/src/main.c index 99726076cc4..0e768fac694 100644 --- a/tests/subsys/fs/fs_api/src/main.c +++ b/tests/subsys/fs/fs_api/src/main.c @@ -59,7 +59,7 @@ static void fs_teardown(void) * - unlink * - unmount * - unregister file system - * the order of test cases is critical, one case depend on ther + * the order of test cases is critical, one case depend on the * case before it. * * @ingroup filesystem diff --git a/tests/subsys/fs/fs_api/src/test_fs_dir_file.c b/tests/subsys/fs/fs_api/src/test_fs_dir_file.c index b786a74c3c1..f08daa13f6b 100644 --- a/tests/subsys/fs/fs_api/src/test_fs_dir_file.c +++ b/tests/subsys/fs/fs_api/src/test_fs_dir_file.c @@ -155,7 +155,7 @@ void test_mount(void) ret = fs_mount(&test_fs_mnt_no_op); zassert_not_equal(ret, 0, "Mount to a fs without op interface"); - /* mount an file system has no unmmount functionality */ + /* mount an file system has no unmount functionality */ null_fs.mount = temp_fs.mount; ret = fs_mount(&test_fs_mnt_no_op); zassert_equal(ret, 0, "fs has no unmount functionality can be mounted"); @@ -190,7 +190,7 @@ void test_unmount(void) TC_PRINT("unmount a file system has no unmount functionality\n"); ret = fs_unmount(&test_fs_mnt_no_op); - zassert_not_equal(ret, 0, "Unmount a fs has no unmount fuctionality"); + zassert_not_equal(ret, 0, "Unmount a fs has no unmount functionality"); /* TEST_FS_2 is registered in test_mount(), unregister it here */ fs_unregister(TEST_FS_2, &null_fs); } @@ -224,7 +224,7 @@ void test_file_statvfs(void) zassert_equal(ret, -ENOTSUP, "fs has no statvfs functionality"); ret = fs_statvfs(TEST_FS_MNTP, &stat); - zassert_equal(ret, 0, "Error getting voluem stats"); + zassert_equal(ret, 0, "Error getting volume stats"); TC_PRINT("\n"); TC_PRINT("Optimal transfer block size = %lu\n", stat.f_bsize); TC_PRINT("Allocation unit size = %lu\n", stat.f_frsize); @@ -256,7 +256,7 @@ void test_mkdir(void) zassert_not_equal(ret, 0, "Create dir in no fs mounted dir"); ret = fs_mkdir(TEST_FS_MNTP); - zassert_not_equal(ret, 0, "Shoult not create root dir"); + zassert_not_equal(ret, 0, "Should not create root dir"); ret = fs_mkdir(NOOP_MNTP"/testdir"); zassert_not_equal(ret, 0, "Filesystem has no mkdir interface"); @@ -502,7 +502,7 @@ void test_file_open(void) TC_PRINT("\nReopen the same file"); ret = fs_open(&filep, TEST_FILE, FS_O_READ); - zassert_not_equal(ret, 0, "Reopen an opend file"); + zassert_not_equal(ret, 0, "Reopen an opened file"); TC_PRINT("Opened file %s\n", TEST_FILE); } diff --git a/tests/subsys/fs/littlefs/Kconfig b/tests/subsys/fs/littlefs/Kconfig index cd15355dcca..e33f8ae0569 100644 --- a/tests/subsys/fs/littlefs/Kconfig +++ b/tests/subsys/fs/littlefs/Kconfig @@ -1,5 +1,5 @@ # SPDX-License-Identifier: Apache-2.0 -# Copyright (c) 2020 Nordic Semicondutor ASA +# Copyright (c) 2020 Nordic Semiconductor ASA mainmenu "littlefs core functionality test" diff --git a/tests/subsys/fs/littlefs/src/test_lfs_dirops.c b/tests/subsys/fs/littlefs/src/test_lfs_dirops.c index 4f3c7e13ee1..9a33424fd92 100644 --- a/tests/subsys/fs/littlefs/src/test_lfs_dirops.c +++ b/tests/subsys/fs/littlefs/src/test_lfs_dirops.c @@ -301,7 +301,7 @@ static int check_rename(struct fs_mount_t *mp) while (cp != to_end_bcmd) { if (cp->name) { - zassert_true(cp->matched, "foriegn file retained"); + zassert_true(cp->matched, "foreign file retained"); } ++cp; } diff --git a/tests/subsys/fs/multi-fs/src/test_fat_priv.h b/tests/subsys/fs/multi-fs/src/test_fat_priv.h index a64aa9905b3..4383450484a 100644 --- a/tests/subsys/fs/multi-fs/src/test_fat_priv.h +++ b/tests/subsys/fs/multi-fs/src/test_fat_priv.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 Nordic Seminconductor ASA + * Copyright (c) 2020 Nordic Semiconductor ASA * * SPDX-License-Identifier: Apache-2.0 */ diff --git a/tests/subsys/fs/nvs/src/main.c b/tests/subsys/fs/nvs/src/main.c index 3913b567538..e756bb0da86 100644 --- a/tests/subsys/fs/nvs/src/main.c +++ b/tests/subsys/fs/nvs/src/main.c @@ -7,7 +7,7 @@ /* * This test is designed to be run using flash-simulator which provide * functionality for flash property customization and emulating errors in - * flash opperation in parallel to regular flash API. + * flash operation in parallel to regular flash API. * Test should be run on qemu_x86 target. */ diff --git a/tests/subsys/logging/log_api/src/test.inc b/tests/subsys/logging/log_api/src/test.inc index 948d212e3cc..e79da219f17 100644 --- a/tests/subsys/logging/log_api/src/test.inc +++ b/tests/subsys/logging/log_api/src/test.inc @@ -128,7 +128,7 @@ static void log_setup(bool backend2_enable) } /** - * @brief Process and validate that backends got exepcted content. + * @brief Process and validate that backends got expected content. * * @param backend2_enable If true backend2 is also validated. * @param panic True means that logging is in panic mode, flushing is skipped. diff --git a/tests/subsys/logging/log_backend_fs/src/log_fs_test.c b/tests/subsys/logging/log_backend_fs/src/log_fs_test.c index f9b20af7f02..3005b205e54 100644 --- a/tests/subsys/logging/log_backend_fs/src/log_fs_test.c +++ b/tests/subsys/logging/log_backend_fs/src/log_fs_test.c @@ -91,7 +91,7 @@ static void test_log_fs_file_content(void) int rc; struct fs_file_t file; char log_read[MAX_PATH_LEN]; - uint8_t to_log[] = "Corect Log 1"; + uint8_t to_log[] = "Correct Log 1"; static char fname[MAX_PATH_LEN]; fs_file_t_init(&file); diff --git a/tests/subsys/logging/log_benchmark/src/main.c b/tests/subsys/logging/log_benchmark/src/main.c index f634a560a8f..a0743529301 100644 --- a/tests/subsys/logging/log_benchmark/src/main.c +++ b/tests/subsys/logging/log_benchmark/src/main.c @@ -164,7 +164,7 @@ void test_log_message_store_time_no_overwrite(void) uint32_t total_us = k_cyc_to_us_ceil32(total_cyc); - PRINT("%sAvarage logging a message: %u cycles (%u us)\n", + PRINT("%sAverage logging a message: %u cycles (%u us)\n", k_is_user_context() ? "USERSPACE: " : "", total_cyc / total_msg, total_us / total_msg); } @@ -204,7 +204,7 @@ void test_log_message_store_time_overwrite(void) uint32_t total_us = k_cyc_to_us_ceil32(total_cyc); - PRINT("Avarage overwrite logging a message: %u cycles (%u us)\n", + PRINT("Average overwrite logging a message: %u cycles (%u us)\n", total_cyc / total_msg, total_us / total_msg); } diff --git a/tests/subsys/logging/log_core_additional/src/log_test.c b/tests/subsys/logging/log_core_additional/src/log_test.c index 3589c21823e..a89d5c160d0 100644 --- a/tests/subsys/logging/log_core_additional/src/log_test.c +++ b/tests/subsys/logging/log_core_additional/src/log_test.c @@ -184,7 +184,7 @@ struct backend_cb backend2_cb; /* The logging system support user customize timestamping in log messages * by register a timestamp function, in timestamp_get() below, just return * a counter as timestamp for different messages. - * when install this timestamp function, timestamping frequence is set to + * when install this timestamp function, timestamping frequency is set to * 2000000, means 2 timestamp/us */ static uint32_t stamp; @@ -263,7 +263,7 @@ void test_log_domain_id(void) void test_log_sync(void) { - TC_PRINT("Logging synchronousely\n"); + TC_PRINT("Logging synchronously\n"); if (IS_ENABLED(CONFIG_LOG_MODE_IMMEDIATE)) { log_setup(false); diff --git a/tests/subsys/logging/log_msg2/src/main.c b/tests/subsys/logging/log_msg2/src/main.c index ccb9db54b3a..6324d9496fd 100644 --- a/tests/subsys/logging/log_msg2/src/main.c +++ b/tests/subsys/logging/log_msg2/src/main.c @@ -168,7 +168,7 @@ void validate_base_message_set(const struct log_source_const_data *source, int rv = memcmp(msg0, msg1, sizeof(int) * len0); - zassert_equal(rv, 0, "Unxecpted memcmp result: %d", rv); + zassert_equal(rv, 0, "Unexpected memcmp result: %d", rv); /* msg1 is not validated because it should be the same as msg0. */ basic_validate(&msg0->log, source, domain, level, diff --git a/tests/subsys/logging/log_output/src/log_output_test.c b/tests/subsys/logging/log_output/src/log_output_test.c index 441279c0daa..98460b38b8e 100644 --- a/tests/subsys/logging/log_output/src/log_output_test.c +++ b/tests/subsys/logging/log_output/src/log_output_test.c @@ -57,7 +57,7 @@ static void validate_output_string(const char *exp) zassert_equal(len, mock_len, "Unexpected string length"); zassert_equal(0, memcmp(exp, mock_buffer, mock_len), - "Unxpected string"); + "Unexpected string"); } static void log_output_string_varg(const struct log_output *log_output, diff --git a/tests/subsys/openthread/radio_test.c b/tests/subsys/openthread/radio_test.c index aea465d9576..9c6359eed02 100644 --- a/tests/subsys/openthread/radio_test.c +++ b/tests/subsys/openthread/radio_test.c @@ -345,7 +345,7 @@ static void test_energy_scan_immediate_test(void) /** * @brief Test for delayed energy scan * Tests for case when radio returns not being able to start energy scan and - * the scan should be sheduled for later. + * the scan should be scheduled for later. * */ static void test_energy_scan_delayed_test(void) @@ -701,7 +701,7 @@ static void test_get_rssi_test(void) ztest_returns_value(rssi_scan_mock, rssi); zassert_equal(otPlatRadioGetRssi(ot), rssi, - "Invalid RSSI value reveiced."); + "Invalid RSSI value received."); rapi.ed_scan = scan_mock; } @@ -724,7 +724,7 @@ static void test_radio_state_test(void) zassert_false(otPlatRadioIsEnabled(ot), "Radio reports as enabled."); zassert_equal(otPlatRadioSleep(ot), OT_ERROR_INVALID_STATE, - "Changed to sleep regardles being disabled."); + "Changed to sleep regardless being disabled."); zassert_equal(otPlatRadioEnable(ot), OT_ERROR_NONE, "Enabling radio failed."); diff --git a/tests/subsys/settings/fcb/src/settings_test_compress_deleted.c b/tests/subsys/settings/fcb/src/settings_test_compress_deleted.c index c635ae59cf4..0260c3c2b7e 100644 --- a/tests/subsys/settings/fcb/src/settings_test_compress_deleted.c +++ b/tests/subsys/settings/fcb/src/settings_test_compress_deleted.c @@ -118,7 +118,7 @@ void test_config_compress_deleted(void) if (cf.cf_fcb.f_active.fe_sector == &fcb_small_sectors[1]) { /* - * The commpresion should happened while the active + * The compression should happened while the active * sector was changing. */ break; diff --git a/tests/subsys/settings/fcb/src/settings_test_fcb.c b/tests/subsys/settings/fcb/src/settings_test_fcb.c index e82bb27ee62..4e47104797a 100644 --- a/tests/subsys/settings/fcb/src/settings_test_fcb.c +++ b/tests/subsys/settings/fcb/src/settings_test_fcb.c @@ -223,7 +223,7 @@ char *c2_var_find(char *name) idx = strtoul(&name[6], &eptr, 10); zassert_true(*eptr == '\0', "EOF"); zassert_true(idx < c2_var_count, - "var index greather than any exporter"); + "var index greater than any exporter"); return val_string[idx]; } diff --git a/tests/subsys/settings/fcb_init/src/settings_test_fcb_init.c b/tests/subsys/settings/fcb_init/src/settings_test_fcb_init.c index 025f9e58c38..a7385b1ff10 100644 --- a/tests/subsys/settings/fcb_init/src/settings_test_fcb_init.c +++ b/tests/subsys/settings/fcb_init/src/settings_test_fcb_init.c @@ -23,7 +23,7 @@ static uint32_t val32; #define ERASED_VAL 0xFF #endif -/* leverage that this area has to be embededd flash part */ +/* leverage that this area has to be embedded flash part */ #if FLASH_AREA_LABEL_EXISTS(image_0) #define FLASH_WRITE_BLOCK_SIZE \ DT_PROP(DT_CHOSEN(zephyr_flash), write_block_size) @@ -113,7 +113,7 @@ void test_prepare_storage(void) } #else TC_PRINT("Storage preparation can't be performed\r\n"); - TC_PRINT("Erase storage manually before test flashin\r\n"); + TC_PRINT("Erase storage manually before test flashing\r\n"); #endif } @@ -127,7 +127,7 @@ void test_init_setup(void) zassert_true(err == 0, "subsys init failed"); err = settings_register(&c1_settings); - zassert_true(err == 0, "can't regsister the settings handler"); + zassert_true(err == 0, "can't register the settings handler"); err = settings_load(); zassert_true(err == 0, "can't load settings"); @@ -144,7 +144,7 @@ void test_init_setup(void) void test_main(void) { /* Bellow call is not used as a test setup intentionally. */ - /* It causes device reboota at the first device run after it */ + /* It causes device reboot at the first device run after it */ /* was flashed. */ test_init_setup(); diff --git a/tests/subsys/settings/functional/src/settings_basic_test.c b/tests/subsys/settings/functional/src/settings_basic_test.c index e4677335de0..de44f07e85b 100644 --- a/tests/subsys/settings/functional/src/settings_basic_test.c +++ b/tests/subsys/settings/functional/src/settings_basic_test.c @@ -335,7 +335,7 @@ static void test_register_and_loading(void) err = (!data.en1) && (data.en2) && (!data.en3); zassert_true(err, "wrong data enable found"); - /* clean up by deregisterring settings_handler */ + /* clean up by deregistering settings_handler */ rc = settings_deregister(&val1_settings); zassert_true(rc, "deregistering val1_settings failed"); diff --git a/tests/subsys/shell/shell/shell_min.conf b/tests/subsys/shell/shell/shell_min.conf index 1d9bcb47779..8b5c618e02c 100644 --- a/tests/subsys/shell/shell/shell_min.conf +++ b/tests/subsys/shell/shell/shell_min.conf @@ -6,7 +6,7 @@ CONFIG_SHELL_BACKEND_DUMMY=y CONFIG_SHELL_BACKEND_SERIAL=n CONFIG_THREAD_NAME=y CONFIG_SHELL_STACK_SIZE=2048 -#using CBPRINTF_NANO decreases signigicantly Flash usage. +#using CBPRINTF_NANO decreases significantly Flash usage. CONFIG_CBPRINTF_NANO=y CONFIG_LOG=n CONFIG_THREAD_MONITOR=n diff --git a/tests/subsys/shell/shell/shell_min_cmds.conf b/tests/subsys/shell/shell/shell_min_cmds.conf index 5b321300e1f..351b6fb4e60 100644 --- a/tests/subsys/shell/shell/shell_min_cmds.conf +++ b/tests/subsys/shell/shell/shell_min_cmds.conf @@ -7,7 +7,7 @@ CONFIG_SHELL_BACKEND_SERIAL=n CONFIG_THREAD_NAME=y CONFIG_SHELL_STACK_SIZE=2048 -#using CBPRINTF_NANO decreases signigicantly Flash usage. +#using CBPRINTF_NANO decreases significantly Flash usage. CONFIG_CBPRINTF_NANO=y CONFIG_LOG=n diff --git a/tests/subsys/shell/shell/shell_min_cmds_all.conf b/tests/subsys/shell/shell/shell_min_cmds_all.conf index cf225789537..f81b9abd6f0 100644 --- a/tests/subsys/shell/shell/shell_min_cmds_all.conf +++ b/tests/subsys/shell/shell/shell_min_cmds_all.conf @@ -8,7 +8,7 @@ CONFIG_SHELL_BACKEND_SERIAL=n CONFIG_THREAD_NAME=y CONFIG_SHELL_STACK_SIZE=2048 -#using CBPRINTF_NANO decreases signigicantly Flash usage. +#using CBPRINTF_NANO decreases significantly Flash usage. CONFIG_CBPRINTF_NANO=y CONFIG_LOG=n diff --git a/tests/subsys/shell/shell/shell_min_cmds_resize.conf b/tests/subsys/shell/shell/shell_min_cmds_resize.conf index ff12228a8b7..2ab8fdbe521 100644 --- a/tests/subsys/shell/shell/shell_min_cmds_resize.conf +++ b/tests/subsys/shell/shell/shell_min_cmds_resize.conf @@ -8,7 +8,7 @@ CONFIG_SHELL_BACKEND_SERIAL=n CONFIG_THREAD_NAME=y CONFIG_SHELL_STACK_SIZE=2048 -#using CBPRINTF_NANO decreases signigicantly Flash usage. +#using CBPRINTF_NANO decreases significantly Flash usage. CONFIG_CBPRINTF_NANO=y CONFIG_LOG=n diff --git a/tests/subsys/shell/shell/shell_min_cmds_select.conf b/tests/subsys/shell/shell/shell_min_cmds_select.conf index 41dbef2818e..ae4f9b5ea7a 100644 --- a/tests/subsys/shell/shell/shell_min_cmds_select.conf +++ b/tests/subsys/shell/shell/shell_min_cmds_select.conf @@ -8,7 +8,7 @@ CONFIG_SHELL_BACKEND_SERIAL=n CONFIG_THREAD_NAME=y CONFIG_SHELL_STACK_SIZE=2048 -#using CBPRINTF_NANO decreases signigicantly Flash usage. +#using CBPRINTF_NANO decreases significantly Flash usage. CONFIG_CBPRINTF_NANO=y CONFIG_LOG=n diff --git a/tests/subsys/shell/shell/shell_min_colors.conf b/tests/subsys/shell/shell/shell_min_colors.conf index fe703abdc37..3281032781f 100644 --- a/tests/subsys/shell/shell/shell_min_colors.conf +++ b/tests/subsys/shell/shell/shell_min_colors.conf @@ -8,7 +8,7 @@ CONFIG_SHELL_BACKEND_SERIAL=n CONFIG_THREAD_NAME=y CONFIG_SHELL_STACK_SIZE=2048 -#using CBPRINTF_NANO decreases signigicantly Flash usage. +#using CBPRINTF_NANO decreases significantly Flash usage. CONFIG_CBPRINTF_NANO=y CONFIG_LOG=n diff --git a/tests/subsys/shell/shell/shell_min_help.conf b/tests/subsys/shell/shell/shell_min_help.conf index 55cc7765f23..1e10b709b34 100644 --- a/tests/subsys/shell/shell/shell_min_help.conf +++ b/tests/subsys/shell/shell/shell_min_help.conf @@ -8,7 +8,7 @@ CONFIG_SHELL_BACKEND_SERIAL=n CONFIG_THREAD_NAME=y CONFIG_SHELL_STACK_SIZE=2048 -#using CBPRINTF_NANO decreases signigicantly Flash usage. +#using CBPRINTF_NANO decreases significantly Flash usage. CONFIG_CBPRINTF_NANO=y CONFIG_LOG=n diff --git a/tests/subsys/shell/shell/shell_min_help_all.conf b/tests/subsys/shell/shell/shell_min_help_all.conf index d1d1578b1cd..d2c1802e263 100644 --- a/tests/subsys/shell/shell/shell_min_help_all.conf +++ b/tests/subsys/shell/shell/shell_min_help_all.conf @@ -9,7 +9,7 @@ CONFIG_THREAD_NAME=y CONFIG_SHELL_STACK_SIZE=2048 CONFIG_SHELL_CMD_BUFF_SIZE=128 -#using CBPRINTF_NANO decreases signigicantly Flash usage. +#using CBPRINTF_NANO decreases significantly Flash usage. CONFIG_CBPRINTF_NANO=y CONFIG_LOG=n diff --git a/tests/subsys/shell/shell/shell_min_history.conf b/tests/subsys/shell/shell/shell_min_history.conf index ea12c1cc391..03ad3188414 100644 --- a/tests/subsys/shell/shell/shell_min_history.conf +++ b/tests/subsys/shell/shell/shell_min_history.conf @@ -8,7 +8,7 @@ CONFIG_SHELL_BACKEND_SERIAL=n CONFIG_THREAD_NAME=y CONFIG_SHELL_STACK_SIZE=2048 -#using CBPRINTF_NANO decreases signigicantly Flash usage. +#using CBPRINTF_NANO decreases significantly Flash usage. CONFIG_CBPRINTF_NANO=y CONFIG_LOG=n diff --git a/tests/subsys/shell/shell/shell_min_log_backend.conf b/tests/subsys/shell/shell/shell_min_log_backend.conf index 3bbcb9e8574..2dfaac9a9dc 100644 --- a/tests/subsys/shell/shell/shell_min_log_backend.conf +++ b/tests/subsys/shell/shell/shell_min_log_backend.conf @@ -8,7 +8,7 @@ CONFIG_SHELL_BACKEND_SERIAL=n CONFIG_THREAD_NAME=y CONFIG_SHELL_STACK_SIZE=2048 -#using CBPRINTF_NANO decreases signigicantly Flash usage. +#using CBPRINTF_NANO decreases significantly Flash usage. CONFIG_CBPRINTF_NANO=y CONFIG_LOG=y diff --git a/tests/subsys/shell/shell/shell_min_metakeys.conf b/tests/subsys/shell/shell/shell_min_metakeys.conf index 693cfe78f66..5141e01d971 100644 --- a/tests/subsys/shell/shell/shell_min_metakeys.conf +++ b/tests/subsys/shell/shell/shell_min_metakeys.conf @@ -8,7 +8,7 @@ CONFIG_SHELL_BACKEND_SERIAL=n CONFIG_THREAD_NAME=y CONFIG_SHELL_STACK_SIZE=2048 -#using CBPRINTF_NANO decreases signigicantly Flash usage. +#using CBPRINTF_NANO decreases significantly Flash usage. CONFIG_CBPRINTF_NANO=y CONFIG_LOG=n diff --git a/tests/subsys/shell/shell/shell_min_tab.conf b/tests/subsys/shell/shell/shell_min_tab.conf index 7af9925adc5..b265e191869 100644 --- a/tests/subsys/shell/shell/shell_min_tab.conf +++ b/tests/subsys/shell/shell/shell_min_tab.conf @@ -8,7 +8,7 @@ CONFIG_SHELL_BACKEND_SERIAL=n CONFIG_THREAD_NAME=y CONFIG_SHELL_STACK_SIZE=2048 -#using CBPRINTF_NANO decreases signigicantly Flash usage. +#using CBPRINTF_NANO decreases significantly Flash usage. CONFIG_CBPRINTF_NANO=y CONFIG_LOG=n diff --git a/tests/subsys/shell/shell/shell_min_tab_auto.conf b/tests/subsys/shell/shell/shell_min_tab_auto.conf index 2095e69ccc6..4bac7c7b6fa 100644 --- a/tests/subsys/shell/shell/shell_min_tab_auto.conf +++ b/tests/subsys/shell/shell/shell_min_tab_auto.conf @@ -8,7 +8,7 @@ CONFIG_SHELL_BACKEND_SERIAL=n CONFIG_THREAD_NAME=y CONFIG_SHELL_STACK_SIZE=2048 -#using CBPRINTF_NANO decreases signigicantly Flash usage. +#using CBPRINTF_NANO decreases significantly Flash usage. CONFIG_CBPRINTF_NANO=y CONFIG_LOG=n diff --git a/tests/subsys/shell/shell/shell_min_wildcards.conf b/tests/subsys/shell/shell/shell_min_wildcards.conf index 2f92d3b55a5..e3fb21bd726 100644 --- a/tests/subsys/shell/shell/shell_min_wildcards.conf +++ b/tests/subsys/shell/shell/shell_min_wildcards.conf @@ -8,7 +8,7 @@ CONFIG_SHELL_BACKEND_SERIAL=n CONFIG_THREAD_NAME=y CONFIG_SHELL_STACK_SIZE=2048 -#using CBPRINTF_NANO decreases signigicantly Flash usage. +#using CBPRINTF_NANO decreases significantly Flash usage. CONFIG_CBPRINTF_NANO=y CONFIG_LOG=n diff --git a/tests/subsys/shell/shell_flash/src/shell_flash_test.c b/tests/subsys/shell/shell_flash/src/shell_flash_test.c index 38a6ea7bc74..775a6423e01 100644 --- a/tests/subsys/shell/shell_flash/src/shell_flash_test.c +++ b/tests/subsys/shell/shell_flash/src/shell_flash_test.c @@ -71,7 +71,7 @@ static void test_flash_read(void) void test_main(void) { - /* Let the shell backend intialize. */ + /* Let the shell backend initialize. */ k_usleep(10); ztest_test_suite(shell_flash_test_suite, diff --git a/tests/subsys/storage/stream/stream_flash/src/main.c b/tests/subsys/storage/stream/stream_flash/src/main.c index 0ea9fa177bc..25fe7ca86d3 100644 --- a/tests/subsys/storage/stream/stream_flash/src/main.c +++ b/tests/subsys/storage/stream/stream_flash/src/main.c @@ -240,7 +240,7 @@ static void test_stream_flash_bytes_written(void) init_target(); - /* Verify that the offset is retained across failed downolads */ + /* Verify that the offset is retained across failed downloads */ rc = stream_flash_buffered_write(&ctx, write_buf, BUF_LEN + 128, false); zassert_equal(rc, 0, "expected success"); @@ -338,7 +338,7 @@ static void test_stream_flash_buffered_write_callback(void) fake_api.write = fake_write; fake_dev.api = &fake_api; bad_ctx.fdev = &fake_dev; - /* Triger erase attempt */ + /* Trigger erase attempt */ cmp_ctx = bad_ctx; /* Just flush buffer */ rc = stream_flash_buffered_write(&bad_ctx, write_buf, 0, true); @@ -372,7 +372,7 @@ static void test_stream_flash_flush(void) init_target(); - /* Perform flush with NULL data pointer and 0 lentgth */ + /* Perform flush with NULL data pointer and 0 length */ rc = stream_flash_buffered_write(&ctx, NULL, 0, true); zassert_equal(rc, 0, "expected success"); } diff --git a/tests/subsys/tracing/tracing_api/src/main.c b/tests/subsys/tracing/tracing_api/src/main.c index 20cc87f1af9..422df00af09 100644 --- a/tests/subsys/tracing/tracing_api/src/main.c +++ b/tests/subsys/tracing/tracing_api/src/main.c @@ -199,7 +199,7 @@ void test_tracing_sys_api(void) tracing_format_string("tracing_format_string_testing"); k_sleep(K_MSEC(100)); - zassert_true(sync_string_format_found == true, "Failded to check output from backend"); + zassert_true(sync_string_format_found == true, "Failed to check output from backend"); } #endif /* CONFIG_TRACING_ASYNC */ @@ -225,11 +225,11 @@ void test_tracing_data_format(void) tracing_format_data(&tracing_data, 1); k_sleep(K_MSEC(100)); - zassert_true(data_format_found == true, "Failded to check output from backend"); + zassert_true(data_format_found == true, "Failed to check output from backend"); tracing_format_raw_data(tracing_raw_data.data, tracing_raw_data.length); k_sleep(K_MSEC(100)); - zassert_true(raw_data_format_found == true, "Failded to check output from backend"); + zassert_true(raw_data_format_found == true, "Failed to check output from backend"); } /** diff --git a/tests/subsys/usb/desc_sections/src/desc_sections.c b/tests/subsys/usb/desc_sections/src/desc_sections.c index 230f75ed425..2e460ddf852 100644 --- a/tests/subsys/usb/desc_sections/src/desc_sections.c +++ b/tests/subsys/usb/desc_sections/src/desc_sections.c @@ -227,7 +227,7 @@ static void test_desc_sections(void) LOG_HEXDUMP_DBG((uint8_t *)_usb_cfg_data_list_start, SYMBOL_SPAN(_usb_cfg_data_list_end, _usb_cfg_data_list_start), - "USB Configuratio structures section"); + "USB Configuration structures section"); head = (struct usb_desc_header *)__usb_descriptor_start; zassert_not_null(head, NULL); diff --git a/tests/subsys/usb/device/src/main.c b/tests/subsys/usb/device/src/main.c index 712107c8463..50a5dc0d2ce 100644 --- a/tests/subsys/usb/device/src/main.c +++ b/tests/subsys/usb/device/src/main.c @@ -101,10 +101,10 @@ static void test_usb_deconfig(void) zassert_equal(usb_deconfig(), TC_PASS, "usb_deconfig() failed"); } -/* Test USB Device Cotnroller API */ +/* Test USB Device Controller API */ static void test_usb_dc_api(void) { - /* Control endpoins are configured */ + /* Control endpoints are configured */ zassert_equal(usb_dc_ep_mps(0x0), 64, "usb_dc_ep_mps(0x00) failed"); zassert_equal(usb_dc_ep_mps(0x80), 64, @@ -115,7 +115,7 @@ static void test_usb_dc_api(void) "usb_dc_ep_mps(ENDP_BULK_IN) not configured"); } -/* Test USB Device Cotnroller API for invalid parameters */ +/* Test USB Device Controller API for invalid parameters */ static void test_usb_dc_api_invalid(void) { uint32_t size; diff --git a/tests/unit/cbprintf/main.c b/tests/unit/cbprintf/main.c index a8255809709..bf24790d85b 100644 --- a/tests/unit/cbprintf/main.c +++ b/tests/unit/cbprintf/main.c @@ -1299,7 +1299,7 @@ static int fsc_package_cb(int c, void *ctx) return c; } -/* Test for validating convesion to fully self-contained package. */ +/* Test for validating conversion to fully self-contained package. */ static void test_cbprintf_fsc_package(void) { if (!ENABLED_USE_PACKAGED) { diff --git a/tests/unit/intmath/main.c b/tests/unit/intmath/main.c index eb940de9de0..2dbe65c7ecb 100644 --- a/tests/unit/intmath/main.c +++ b/tests/unit/intmath/main.c @@ -13,7 +13,7 @@ */ /* Recent GCC's can detect integer overflow in static expressions and - * will warn about it heplfully. But obviously integer overflow is + * will warn about it helpfully. But obviously integer overflow is * the whole point here, so turn that warning off. */ #ifdef __GNUC__ diff --git a/tests/unit/list/dlist.c b/tests/unit/list/dlist.c index bbf162487ae..0ece0197931 100644 --- a/tests/unit/list/dlist.c +++ b/tests/unit/list/dlist.c @@ -167,7 +167,7 @@ static inline bool verify_tail_head(sys_dlist_t *list, */ /** - * @brief Verify doubly linked list funtionalities + * @brief Verify doubly linked list functionalities * * @see sys_dlist_append(), sys_dlist_remove(), sys_dlist_prepend(), * sys_dlist_remove(), sys_dlist_insert(), sys_dlist_peek_next() @@ -332,7 +332,7 @@ int cond(sys_dnode_t *node, void *data) return (node == data) ? 1 : 0; } /** - * @brief Verify doubly linked list funtionalities + * @brief Verify doubly linked list functionalities * * @see sys_dlist_is_head(),sys_dlist_is_tail(), * sys_dlist_has_multiple_nodes(),sys_dlist_get() diff --git a/tests/unit/rbtree/main.c b/tests/unit/rbtree/main.c index c07fd3c2495..38d3f6214b1 100644 --- a/tests/unit/rbtree/main.c +++ b/tests/unit/rbtree/main.c @@ -20,7 +20,7 @@ static struct rbnode nodes[MAX_NODES]; /* Bit is set if node is in the tree */ static unsigned int node_mask[(MAX_NODES + 31)/32]; -/* Array of nodes dumed via rb_walk */ +/* Array of nodes dumped via rb_walk */ static struct rbnode *walked_nodes[MAX_NODES]; /* Node currently being inserted, for testing lessthan() argument order */ diff --git a/tests/ztest/busy_sim/src/main.c b/tests/ztest/busy_sim/src/main.c index 7a09a4a6076..441a24498c8 100644 --- a/tests/ztest/busy_sim/src/main.c +++ b/tests/ztest/busy_sim/src/main.c @@ -27,7 +27,7 @@ static void test_busy_sim(void) busy_ms = (3 * ms) / 2; busy_sim_stop(); - /* due to clock imprecision, randomness and addtional cpu load overhead + /* due to clock imprecision, randomness and additional cpu load overhead * expected time range is increased. */ zassert_true((t > (busy_ms - 2 * delta)) && (t < (busy_ms + 4 * delta)), diff --git a/tests/ztest/error_hook/README.txt b/tests/ztest/error_hook/README.txt index fd6ea443b2e..de9292395b2 100644 --- a/tests/ztest/error_hook/README.txt +++ b/tests/ztest/error_hook/README.txt @@ -65,11 +65,11 @@ test_catch_assert_fail then catch it by the assert handler. test_catch_fatal_error - - start a thread to test triggerring a null address dereferencing, then catch + - start a thread to test triggering a null address dereferencing, then catch the (expected) fatal error. - - start a thread to test triggerring an illegal instruction, then catch + - start a thread to test triggering an illegal instruction, then catch the (expected) fatal error. - - start a thread to test triggerring a divide-by-zero error, then catch + - start a thread to test triggering a divide-by-zero error, then catch the (expected) fatal error. - start a thread to call k_oops() then catch the (expected) fatal error. - start a thread to call k_panel() then catch the (expected) fatal error. diff --git a/tests/ztest/error_hook/src/main.c b/tests/ztest/error_hook/src/main.c index 12b17c8d272..430d2d103ff 100644 --- a/tests/ztest/error_hook/src/main.c +++ b/tests/ztest/error_hook/src/main.c @@ -49,7 +49,7 @@ __no_optimization static void trigger_fault_illegal_instruction(void) { void *a = NULL; - /* execute an illeagal instruction */ + /* execute an illegal instruction */ ((void(*)(void))&a)(); } @@ -162,7 +162,7 @@ void ztest_post_fatal_error_hook(unsigned int reason, break; /* Unfortunately, the case of trigger a fatal error - * inside ISR context still cannot be dealed with, + * inside ISR context still cannot be dealt with, * So please don't use it this way. */ case ZTEST_CATCH_FATAL_IN_ISR: @@ -256,7 +256,7 @@ static int run_trigger_thread(int i) } /** - * @brief Test if a fatal error can be catched + * @brief Test if a fatal error can be caught * * @details Valid a fatal error we triggered in thread context works. * If the fatal error happened and the program enter assert_post_handler, diff --git a/zephyr-env.sh b/zephyr-env.sh index 9aaa72c1f18..d5036712a25 100644 --- a/zephyr-env.sh +++ b/zephyr-env.sh @@ -11,7 +11,7 @@ # original value of $0 in spite of the current FUNCTION_ARGZERO setting. # # Note: The version of zsh need to be 5.0.6 or above. Any versions below -# 5.0.6 maybe encoutner errors when sourcing this script. +# 5.0.6 maybe encounter errors when sourcing this script. if [ -n "${ZSH_VERSION:-}" ]; then dir="${(%):-%N}" if [ $options[posixargzero] != "on" ]; then