From 9713f0d47cfd7f39360b809df938424a6f7b3c48 Mon Sep 17 00:00:00 2001 From: Nazar Kazakov Date: Thu, 24 Feb 2022 12:00:55 +0000 Subject: [PATCH] everywhere: fix typos Fix a lot of typos Signed-off-by: Nazar Kazakov --- .github/ISSUE_TEMPLATE/ext-source.md | 2 +- arch/arc/core/mpu/arc_mpu_v4_internal.h | 2 +- arch/arc/core/secureshield/arc_sjli.c | 4 +-- arch/arc/include/kernel_arch_data.h | 2 +- arch/arm/core/aarch32/cortex_m/Kconfig | 4 +-- arch/arm/core/aarch32/cortex_m/timing.c | 2 +- arch/arm/core/aarch32/fatal.c | 2 +- .../core/aarch32/mpu/arm_mpu_v8_internal.h | 2 +- arch/posix/include/asm_inline_gcc.h | 2 +- arch/posix/include/posix_cheats.h | 2 +- arch/x86/core/ia32/gdbstub.c | 2 +- arch/x86/gen_gdt.py | 2 +- arch/x86/gen_mmu.py | 2 +- arch/x86/include/ia32/exception.h | 2 +- arch/x86/timing.c | 2 +- arch/x86/zefi/README.txt | 2 +- arch/xtensa/include/xtensa-asm2-s.h | 2 +- .../arduino_nano_33_ble.dts | 2 +- .../doc/bl654_sensor_board.rst | 2 +- boards/arm/ip_k66f/linker.ld | 2 +- .../lora_e5_dev_board/lora_e5_dev_board.dts | 2 +- boards/arm/npcx7m6fb_evb/npcx7m6fb_evb.dts | 2 +- boards/arm/npcx9m6f_evb/npcx9m6f_evb.dts | 2 +- .../nrf52840dongle_nrf52840/Kconfig.defconfig | 4 +-- boards/arm/nucleo_f746zg/nucleo_f746zg.dts | 2 +- boards/arm/nucleo_f756zg/nucleo_f756zg.dts | 2 +- boards/arm/nucleo_f767zi/nucleo_f767zi.dts | 2 +- boards/arm/thingy53_nrf5340/board.c | 2 +- .../intel_socfpga_agilex_socdk_defconfig | 2 +- boards/arm64/xenvm/xenvm.dts | 2 +- boards/posix/native_posix/board_soc.h | 2 +- boards/posix/native_posix/timer_model.c | 4 +-- boards/posix/native_posix/tracing.c | 2 +- .../riscv/m2gl025_miv/m2gl025_miv_defconfig | 2 +- .../x_nucleo_eeprma2/x_nucleo_eeprma2.overlay | 2 +- .../xtensa/intel_s1000_crb/support/device.py | 2 +- cmake/bintools/bintools_template.cmake | 2 +- cmake/bintools/host-gnu/target.cmake | 2 +- cmake/bintools/llvm/target.cmake | 2 +- cmake/compiler/arcmwdt/compiler_flags.cmake | 2 +- cmake/compiler/compiler_flags_template.cmake | 2 +- cmake/compiler/gcc/compiler_flags.cmake | 4 +-- cmake/compiler/gcc/target.cmake | 2 +- cmake/linker/ld/gcc/linker_flags.cmake | 2 +- cmake/linker/linker_flags_template.cmake | 2 +- cmake/linker/linker_script_common.cmake | 2 +- cmake/linker_script/arm/linker.cmake | 2 +- cmake/linker_script/common/common-rom.cmake | 2 +- cmake/modules/extensions.cmake | 26 +++++++++---------- cmake/modules/verify-toolchain.cmake | 2 +- cmake/target_toolchain_flags.cmake | 6 ++--- cmake/toolchain/cross-compile/generic.cmake | 2 +- doc/reference/api/design_guidelines.rst | 2 +- drivers/adc/adc_emul.c | 4 +-- drivers/adc/adc_ite_it8xxx2.c | 2 +- drivers/adc/adc_mcux_lpadc.c | 2 +- drivers/adc/adc_stm32.c | 2 +- drivers/audio/intel_dmic.c | 8 +++--- drivers/audio/tlv320dac310x.c | 2 +- drivers/bluetooth/hci/h5.c | 4 +-- drivers/can/Kconfig.rcar | 2 +- drivers/can/can_mcan.h | 4 +-- drivers/can/can_mcan_int.h | 2 +- drivers/can/can_stm32.c | 2 +- drivers/console/xtensa_sim_console.c | 2 +- drivers/counter/counter_cmos.c | 4 +-- drivers/counter/counter_mcux_pit.c | 2 +- drivers/counter/counter_xlnx_axi_timer.c | 2 +- drivers/counter/rtc_mcp7940n.c | 2 +- drivers/crypto/crypto_ataes132a_priv.h | 2 +- drivers/disk/sdmmc_sdhc.h | 6 ++--- drivers/disk/sdmmc_spi.c | 2 +- drivers/disk/usdhc.c | 12 ++++----- drivers/display/ssd1306_regs.h | 2 +- drivers/dma/dma_iproc_pax_v1.c | 2 +- drivers/dma/dma_iproc_pax_v2.c | 4 +-- drivers/dma/dma_stm32_v1.c | 2 +- drivers/dma/dmamux_stm32.c | 2 +- .../ec_host_cmd_periph_handlers.c | 2 +- drivers/eeprom/eeprom_lpc11u6x.c | 2 +- drivers/eeprom/eeprom_simulator.c | 2 +- drivers/entropy/entropy_cc13xx_cc26xx.c | 4 +-- drivers/espi/espi_mchp_xec.c | 8 +++--- drivers/espi/espi_mchp_xec_v2.c | 6 ++--- drivers/espi/espi_npcx.c | 4 +-- drivers/espi/espi_saf_mchp_xec.c | 2 +- drivers/ethernet/eth_dwmac.c | 2 +- drivers/ethernet/eth_gecko.c | 2 +- drivers/ethernet/eth_mcux.c | 2 +- drivers/ethernet/eth_sam_gmac.c | 2 +- drivers/ethernet/eth_xlnx_gem.c | 2 +- drivers/ethernet/phy_xlnx_gem.c | 2 +- drivers/flash/flash_ite_it8xxx2.c | 2 +- drivers/flash/flash_sam0.c | 4 +-- drivers/flash/flash_stm32.h | 2 +- drivers/flash/flash_stm32f4x.c | 2 +- drivers/flash/flash_stm32f7x.c | 2 +- drivers/flash/flash_stm32g4x.c | 2 +- drivers/flash/flash_stm32l4x.c | 2 +- drivers/flash/flash_stm32wbx.c | 8 +++--- drivers/flash/jesd216.c | 2 +- drivers/flash/soc_flash_nios2_qspi.c | 2 +- drivers/flash/soc_flash_nrf.h | 10 +++---- drivers/flash/soc_flash_nrf_ticker.c | 2 +- drivers/flash/spi_nor.c | 2 +- drivers/gpio/gpio_b91.c | 2 +- drivers/gpio/gpio_cmsdk_ahb.c | 2 +- drivers/gpio/gpio_dw.c | 2 +- drivers/gpio/gpio_emul.c | 8 +++--- drivers/gpio/gpio_ite_it8xxx2.c | 4 +-- drivers/gpio/gpio_litex.c | 2 +- drivers/gpio/gpio_lpc11u6x.c | 4 +-- drivers/gpio/gpio_mchp_xec.c | 2 +- drivers/gpio/gpio_mcux_lpc.c | 2 +- drivers/gpio/gpio_npcx.c | 4 +-- drivers/gpio/gpio_psoc6.c | 2 +- drivers/gpio/gpio_sam.c | 2 +- drivers/gpio/gpio_stm32.c | 2 +- drivers/gpio/gpio_xlnx_axi.c | 2 +- drivers/hwinfo/hwinfo_shell.c | 2 +- drivers/i2c/Kconfig.rcar | 2 +- drivers/i2c/i2c_npcx_controller.c | 4 +-- drivers/i2s/Kconfig.mcux | 2 +- drivers/i2s/i2s_cavs.c | 4 +-- drivers/i2s/i2s_litex.c | 8 +++--- drivers/i2s/i2s_mcux_flexcomm.c | 4 +-- drivers/i2s/i2s_mcux_sai.c | 2 +- drivers/ieee802154/ieee802154_b91.c | 2 +- drivers/ieee802154/ieee802154_cc1200.c | 2 +- drivers/ieee802154/ieee802154_dw1000.c | 4 +-- drivers/ieee802154/ieee802154_dw1000_regs.h | 2 +- drivers/ieee802154/ieee802154_kw41z.c | 10 +++---- drivers/ieee802154/ieee802154_mcr20a.c | 2 +- drivers/ieee802154/ieee802154_nrf5.c | 2 +- drivers/ieee802154/ieee802154_nrf5.h | 2 +- drivers/ieee802154/ieee802154_rf2xx_iface.h | 2 +- drivers/ieee802154/ieee802154_rf2xx_regs.h | 2 +- drivers/interrupt_controller/Kconfig.npcx | 2 +- .../interrupt_controller/intc_gicv3_priv.h | 2 +- .../interrupt_controller/intc_mchp_ecia_xec.c | 4 +-- drivers/interrupt_controller/intc_miwu.c | 4 +-- drivers/ipm/ipm_stm32_ipcc.c | 4 +-- drivers/kscan/kscan_ite_it8xxx2.c | 2 +- drivers/kscan/kscan_mchp_xec.c | 4 +-- drivers/led/lp5562.c | 2 +- drivers/led/pca9633.c | 2 +- drivers/led/tlc59108.c | 2 +- drivers/modem/Kconfig.simcom-sim7080 | 2 +- drivers/modem/hl7800.c | 6 ++--- drivers/modem/modem_cmd_handler.c | 2 +- drivers/modem/quectel-bg9x.c | 2 +- drivers/modem/simcom-sim7080.c | 6 ++--- drivers/modem/ublox-sara-r4.c | 2 +- drivers/modem/wncm14a2a.c | 2 +- drivers/neural_net/intel_gna.c | 2 +- drivers/pcie/endpoint/pcie_ep_common.c | 8 +++--- drivers/ps2/ps2_mchp_xec.c | 2 +- drivers/ps2/ps2_npcx_channel.c | 2 +- drivers/ps2/ps2_npcx_controller.h | 4 +-- drivers/pwm/pwm_litex.c | 2 +- drivers/pwm/pwm_mchp_xec.c | 2 +- drivers/pwm/pwm_npcx.c | 2 +- drivers/pwm/pwm_nrfx.c | 2 +- drivers/sensor/adxl372/adxl372.c | 2 +- drivers/sensor/amg88xx/amg88xx.h | 4 +-- drivers/sensor/bma280/bma280.h | 2 +- drivers/sensor/bmi160/bmi160.c | 2 +- drivers/sensor/bmp388/bmp388.c | 4 +-- drivers/sensor/bq274xx/bq274xx.c | 6 ++--- drivers/sensor/dht/Kconfig | 2 +- drivers/sensor/dps310/dps310.c | 2 +- drivers/sensor/fdc2x1x/fdc2x1x.c | 4 +-- drivers/sensor/hmc5883l/hmc5883l.c | 2 +- drivers/sensor/i3g4250d/i3g4250d.c | 2 +- drivers/sensor/iis2dh/iis2dh.h | 2 +- drivers/sensor/iis2dlpc/iis2dlpc.h | 2 +- drivers/sensor/lis2mdl/lis2mdl.c | 4 +-- drivers/sensor/lis3mdl/lis3mdl.c | 4 +-- drivers/sensor/max17055/max17055.h | 2 +- drivers/sensor/max17262/max17262.h | 2 +- drivers/sensor/mchp_tach_xec/tach_mchp_xec.c | 2 +- .../nuvoton_tach_npcx/tach_nuvoton_npcx.c | 2 +- drivers/sensor/opt3001/opt3001.c | 2 +- drivers/sensor/sgp40/sgp40.c | 2 +- drivers/sensor/sht3xd/sht3xd_trigger.c | 2 +- drivers/sensor/si7006/si7006.c | 2 +- drivers/sensor/si7210/si7210.c | 2 +- drivers/sensor/sm351lt/Kconfig | 2 +- drivers/sensor/vl53l0x/vl53l0x.c | 2 +- drivers/serial/Kconfig.rcar | 2 +- drivers/serial/uart_native_posix.c | 2 +- drivers/serial/uart_psoc6.c | 2 +- drivers/serial/uart_stellaris.c | 2 +- drivers/serial/uart_xlnx_ps.c | 2 +- drivers/spi/spi_b91.c | 4 +-- drivers/spi/spi_mcux_flexcomm.c | 2 +- drivers/spi/spi_sam.c | 2 +- drivers/spi/spi_xec_qmspi.c | 4 +-- drivers/timer/Kconfig.riscv_machine | 2 +- drivers/timer/ite_it8xxx2_timer.c | 12 ++++----- drivers/timer/mchp_xec_rtos_timer.c | 2 +- drivers/timer/nrf_rtc_timer.c | 2 +- drivers/usb/device/usb_dc_dw.c | 2 +- drivers/usb/device/usb_dc_kinetis.c | 2 +- drivers/usb/device/usb_dc_mcux.c | 4 +-- drivers/usb/device/usb_dc_nrfx.c | 8 +++--- drivers/usb/device/usb_dc_sam0.c | 2 +- drivers/usb/device/usb_dc_sam_usbc.c | 2 +- drivers/usb/device/usb_dc_sam_usbhs.c | 2 +- drivers/usb/device/usb_dc_stm32.c | 2 +- drivers/video/ov2640.c | 2 +- drivers/video/ov7725.c | 2 +- drivers/video/video_mcux_csi.c | 2 +- drivers/watchdog/wdt_wwdg_stm32.c | 6 ++--- drivers/wifi/esp32/Kconfig.esp32 | 2 +- drivers/wifi/eswifi/eswifi_offload.c | 2 +- drivers/wifi/simplelink/simplelink.c | 2 +- dts/arc/emsdp.dtsi | 2 +- dts/arm/nxp/nxp_rt1160_cm4.dtsi | 2 +- dts/arm/nxp/nxp_rt1160_cm7.dtsi | 2 +- dts/arm/nxp/nxp_rt1170_cm4.dtsi | 2 +- dts/arm/nxp/nxp_rt1170_cm7.dtsi | 2 +- dts/arm/nxp/nxp_rt11xx.dtsi | 2 +- dts/arm/st/h7/stm32h723.dtsi | 2 +- include/app_memory/mem_domain.h | 4 +-- include/arch/arc/arc_addr_types.h | 4 +-- include/arch/arm64/arm_mmu.h | 2 +- include/arch/arm64/cpu.h | 2 +- include/arch/riscv/arch.h | 2 +- include/arch/riscv/common/linker.ld | 4 +-- include/arch/x86/memory.ld | 2 +- include/arch/x86/thread_stack.h | 2 +- include/bluetooth/audio/media_proxy.h | 6 ++--- include/bluetooth/bluetooth.h | 2 +- include/bluetooth/conn.h | 2 +- include/bluetooth/gap.h | 4 +-- include/bluetooth/gatt.h | 6 ++--- include/bluetooth/hci.h | 2 +- include/bluetooth/hfp_hf.h | 2 +- include/bluetooth/l2cap.h | 4 +-- include/bluetooth/mesh/access.h | 2 +- include/bluetooth/mesh/cfg_cli.h | 2 +- include/data/json.h | 2 +- include/debug/gdbstub.h | 6 ++--- include/devicetree.h | 6 ++--- include/drivers/bbram.h | 2 +- include/drivers/bluetooth/hci_driver.h | 2 +- include/drivers/can.h | 4 +-- include/drivers/dma.h | 2 +- include/drivers/dma/dma_stm32.h | 2 +- include/drivers/espi.h | 4 +-- include/drivers/espi_saf.h | 2 +- include/drivers/flash/flash_simulator.h | 2 +- include/drivers/gpio/gpio_sx1509b.h | 2 +- .../drivers/interrupt_controller/exti_stm32.h | 4 +-- .../drivers/interrupt_controller/gd32_exti.h | 2 +- include/drivers/interrupt_controller/gic.h | 4 +-- include/drivers/misc/ft8xx/ft8xx.h | 2 +- include/drivers/modem/simcom-sim7080.h | 2 +- include/drivers/pcie/controller.h | 4 +-- include/drivers/pcie/pcie.h | 2 +- include/drivers/sensor.h | 2 +- include/drivers/sensor/ccs811.h | 2 +- include/drivers/sensor/sht4x.h | 2 +- include/drivers/spi_emul.h | 2 +- include/drivers/usb/usb_dc.h | 2 +- include/drivers/video.h | 2 +- include/dt-bindings/spi/spi.h | 2 +- include/fs/fcb.h | 2 +- include/kernel.h | 10 +++---- include/kernel_structs.h | 2 +- include/linker/linker-tool-gcc.h | 4 +-- include/logging/log_core.h | 8 +++--- include/logging/log_msg2.h | 4 +-- include/mgmt/ec_host_cmd.h | 8 +++--- include/mgmt/osdp.h | 2 +- include/modbus/modbus.h | 2 +- include/net/dns_sd.h | 8 +++--- include/net/http_parser.h | 2 +- include/net/ieee802154_radio.h | 4 +-- include/net/lwm2m_path.h | 2 +- include/net/net_mgmt.h | 2 +- include/net/openthread.h | 2 +- include/settings/settings.h | 2 +- include/shell/shell.h | 12 ++++----- include/shell/shell_log_backend.h | 2 +- include/smf.h | 4 +-- include/sys/heap_listener.h | 2 +- include/sys/kobject.h | 2 +- include/sys/mpsc_pbuf.h | 4 +-- include/sys/multi_heap.h | 2 +- include/sys/notify.h | 2 +- include/sys/onoff.h | 2 +- include/sys/util.h | 2 +- include/sys/util_macro.h | 4 +-- include/sys_clock.h | 2 +- include/toolchain/gcc.h | 2 +- include/toolchain/zephyr_stdint.h | 2 +- include/tracing/tracing.h | 4 +-- include/usb/class/usb_audio.h | 6 ++--- include/xen/public/arch-arm.h | 2 +- include/zephyr/types.h | 4 +-- kernel/init.c | 2 +- kernel/poll.c | 2 +- lib/libc/Kconfig | 2 +- lib/libc/armstdc/include/sys/types.h | 2 +- lib/libc/minimal/source/time/gmtime.c | 2 +- lib/os/Kconfig.cbprintf | 2 +- lib/os/cbprintf_complete.c | 2 +- lib/os/onoff.c | 2 +- lib/posix/mqueue.c | 2 +- lib/posix/timer.c | 2 +- modules/Kconfig.mcux | 4 +-- modules/Kconfig.stm32 | 2 +- modules/canopennode/canopen_storage.c | 2 +- .../nrf_802154_spinel_response_notifier.c | 4 +-- modules/hal_nordic/nrfx/nrfx_config_nrf51.h | 2 +- .../hal_nordic/nrfx/nrfx_config_nrf52805.h | 2 +- .../hal_nordic/nrfx/nrfx_config_nrf52810.h | 2 +- .../hal_nordic/nrfx/nrfx_config_nrf52811.h | 2 +- .../hal_nordic/nrfx/nrfx_config_nrf52820.h | 2 +- .../hal_nordic/nrfx/nrfx_config_nrf52832.h | 2 +- .../hal_nordic/nrfx/nrfx_config_nrf52833.h | 2 +- .../hal_nordic/nrfx/nrfx_config_nrf52840.h | 2 +- .../nrfx/nrfx_config_nrf5340_application.h | 2 +- .../nrfx/nrfx_config_nrf5340_network.h | 2 +- modules/hal_nordic/nrfx/nrfx_config_nrf9160.h | 2 +- modules/mbedtls/Kconfig | 2 +- modules/mbedtls/configs/config-no-entropy.h | 2 +- modules/mbedtls/configs/config-suite-b.h | 2 +- share/zephyr-package/cmake/ZephyrConfig.cmake | 4 +-- 331 files changed, 478 insertions(+), 478 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/ext-source.md b/.github/ISSUE_TEMPLATE/ext-source.md index 6291a6d003..a1681e88e3 100644 --- a/.github/ISSUE_TEMPLATE/ext-source.md +++ b/.github/ISSUE_TEMPLATE/ext-source.md @@ -18,7 +18,7 @@ Brief description of what this software does ## Mode of integration -Describe whether you'd like to integrate this exernal component in the main tree +Describe whether you'd like to integrate this external component in the main tree or as a module, and why. If the mode of integration is a module, suggest a repository name for the module diff --git a/arch/arc/core/mpu/arc_mpu_v4_internal.h b/arch/arc/core/mpu/arc_mpu_v4_internal.h index 7d407fd6b5..b8348130db 100644 --- a/arch/arc/core/mpu/arc_mpu_v4_internal.h +++ b/arch/arc/core/mpu/arc_mpu_v4_internal.h @@ -132,7 +132,7 @@ static inline bool _is_user_accessible_region(uint32_t r_index, int write) return false; } #else /* CONFIG_ARC_NORMAL_FIRMWARE */ -/* the following functions are prepared for SECURE_FRIMWARE */ +/* the following functions are prepared for SECURE_FIRMWARE */ static inline void _region_init(uint32_t index, uint32_t region_addr, uint32_t size, uint32_t region_attr) { diff --git a/arch/arc/core/secureshield/arc_sjli.c b/arch/arc/core/secureshield/arc_sjli.c index c82eab2ecf..215c1889bf 100644 --- a/arch/arc/core/secureshield/arc_sjli.c +++ b/arch/arc/core/secureshield/arc_sjli.c @@ -34,7 +34,7 @@ static void _default_sjli_entry(void) } /* - * @brief initializaiton of sjli related functions + * @brief initialization of sjli related functions * */ static void sjli_table_init(void) @@ -46,7 +46,7 @@ static void sjli_table_init(void) } /* - * @brief initializaiton of secureshield related functions. + * @brief initialization of secureshield related functions. */ static int arc_secureshield_init(const struct device *arg) { diff --git a/arch/arc/include/kernel_arch_data.h b/arch/arc/include/kernel_arch_data.h index 94c5f9f126..dfc5a688fa 100644 --- a/arch/arc/include/kernel_arch_data.h +++ b/arch/arc/include/kernel_arch_data.h @@ -159,7 +159,7 @@ struct _callee_saved_stack { #endif /* - * No need to save r31 (blink), it's either alread pushed as the pc or + * No need to save r31 (blink), it's either already pushed as the pc or * blink on an irq stack frame. */ }; diff --git a/arch/arm/core/aarch32/cortex_m/Kconfig b/arch/arm/core/aarch32/cortex_m/Kconfig index 12fe46b174..def72a7bb2 100644 --- a/arch/arm/core/aarch32/cortex_m/Kconfig +++ b/arch/arm/core/aarch32/cortex_m/Kconfig @@ -7,7 +7,7 @@ # if CPU_CORTEX_M block so that SoCs can select which core they are using # without having to select all the options related to that core. Everything # else is captured inside the if CPU_CORTEX_M block so they are not exposed -# if one select a differnet ARM Cortex Family (Cortex-A or Cortex-R) +# if one select a different ARM Cortex Family (Cortex-A or Cortex-R) config CPU_CORTEX_M0 bool @@ -409,7 +409,7 @@ config NULL_POINTER_EXCEPTION_DETECTION_MPU CORTEX_M_NULL_POINTER_EXCEPTION_PAGE_SIZE) is not unmapped (covered by an MPU region already). If it is unmapped null-pointer dereferencing may - still be idirectly detected (e.g. via a precise + still be indirectly detected (e.g. via a precise Bus access fault), but this is not guaranteed. A build-time message warns the user of this scenario. diff --git a/arch/arm/core/aarch32/cortex_m/timing.c b/arch/arm/core/aarch32/cortex_m/timing.c index 15a6ca3f83..a431a80597 100644 --- a/arch/arm/core/aarch32/cortex_m/timing.c +++ b/arch/arm/core/aarch32/cortex_m/timing.c @@ -63,7 +63,7 @@ static inline uint64_t z_arm_dwt_freq_get(void) /* * cycles are in 32-bit, and delta must be - * calculated in 32-bit percision. Or it would + * calculated in 32-bit precision. Or it would be * wrapping around in 64-bit. */ dcyc = (uint32_t)cyc_end - (uint32_t)cyc_start; diff --git a/arch/arm/core/aarch32/fatal.c b/arch/arm/core/aarch32/fatal.c index 43c840ebb7..9c57a6c26a 100644 --- a/arch/arm/core/aarch32/fatal.c +++ b/arch/arm/core/aarch32/fatal.c @@ -74,7 +74,7 @@ void z_arm_fatal_error(unsigned int reason, const z_arch_esf_t *esf) * - We expect the supplied exception stack frame to always be a valid * frame. That is because, if the ESF cannot be stacked during an SVC, * a processor fault (e.g. stacking error) will be generated, and the - * fault handler will executed insted of the SVC. + * fault handler will executed instead of the SVC. * * @param esf exception frame */ diff --git a/arch/arm/core/aarch32/mpu/arm_mpu_v8_internal.h b/arch/arm/core/aarch32/mpu/arm_mpu_v8_internal.h index 620c1ba699..2bf57d586f 100644 --- a/arch/arm/core/aarch32/mpu/arm_mpu_v8_internal.h +++ b/arch/arm/core/aarch32/mpu/arm_mpu_v8_internal.h @@ -583,7 +583,7 @@ static int mpu_configure_dynamic_mpu_regions(const struct z_arm_mpu_partition #else /* We are going to skip the full partition of the background areas. - * So we can disable MPU regions inside which dynamic memroy regions + * So we can disable MPU regions inside which dynamic memory regions * may be programmed. */ for (int i = 0; i < MPU_DYNAMIC_REGION_AREAS_NUM; i++) { diff --git a/arch/posix/include/asm_inline_gcc.h b/arch/posix/include/asm_inline_gcc.h index fe94bbc8d4..33c50584d5 100644 --- a/arch/posix/include/asm_inline_gcc.h +++ b/arch/posix/include/asm_inline_gcc.h @@ -1 +1 @@ -/* EMTPTY ON PURPOSE. Why do the intel and ARM arch have 2 versions of it? */ +/* EMPTY ON PURPOSE. Why do the intel and ARM arch have 2 versions of it? */ diff --git a/arch/posix/include/posix_cheats.h b/arch/posix/include/posix_cheats.h index 1a2ea798ad..830d989282 100644 --- a/arch/posix/include/posix_cheats.h +++ b/arch/posix/include/posix_cheats.h @@ -12,7 +12,7 @@ * * Most users will be normally unaware of this file existence, unless they have * a link issue in which their POSIX functions calls are reported in errors (as - * zap_). + * zap_). * If you do see a link error telling you that zap_something is undefined, it is * likely that you forgot to select the corresponding Zephyr POSIX API. * diff --git a/arch/x86/core/ia32/gdbstub.c b/arch/x86/core/ia32/gdbstub.c index 9639b992ad..9aa1b3dce5 100644 --- a/arch/x86/core/ia32/gdbstub.c +++ b/arch/x86/core/ia32/gdbstub.c @@ -196,7 +196,7 @@ size_t arch_gdb_reg_writeone(struct gdb_ctx *ctx, uint8_t *hex, size_t hexlen, if (regno == GDB_ORIG_EAX) { /* GDB requires orig_eax that seems to be - * Linux specific. Unfortunely if we just + * Linux specific. Unfortunately if we just * return error, GDB will stop working. * So just fake an OK response by saying * that we have processed the hex string. diff --git a/arch/x86/gen_gdt.py b/arch/x86/gen_gdt.py index aa857d469b..a58758358d 100755 --- a/arch/x86/gen_gdt.py +++ b/arch/x86/gen_gdt.py @@ -75,7 +75,7 @@ ACCESS_RW = 1 << 1 # read or write permission def create_gdt_pseudo_desc(addr, size): """Create pseudo GDT descriptor""" - debug("create pseudo decriptor: %x %x" % (addr, size)) + debug("create pseudo descriptor: %x %x" % (addr, size)) # ...and take back one byte for the Intel god whose Ark this is... size = size - 1 return struct.pack(GDT_PD_FMT, size, addr, 0) diff --git a/arch/x86/gen_mmu.py b/arch/x86/gen_mmu.py index 36783049fa..77d5ca1f91 100755 --- a/arch/x86/gen_mmu.py +++ b/arch/x86/gen_mmu.py @@ -608,7 +608,7 @@ def parse_args(): parser.add_argument("--map", action='append', help=textwrap.dedent('''\ Map extra memory: - ,[,[,]] + ,[,[,]] where flags can be empty or combination of: L - Large page (2MB or 4MB), U - Userspace accessible, diff --git a/arch/x86/include/ia32/exception.h b/arch/x86/include/ia32/exception.h index 4853f4e026..7baa76e077 100644 --- a/arch/x86/include/ia32/exception.h +++ b/arch/x86/include/ia32/exception.h @@ -33,7 +33,7 @@ /* Unfortunately, GCC extended asm doesn't work at toplevel so we need * to stringify stuff. * - * What we are doing here is generating entires in the .intList section + * What we are doing here is generating entries in the .intList section * and also the assembly language stubs for the exception. We use * .gnu.linkonce section prefix so that the linker only includes the * first one of these it encounters for a particular vector. In this diff --git a/arch/x86/timing.c b/arch/x86/timing.c index e54f31bdce..a7d5e07e27 100644 --- a/arch/x86/timing.c +++ b/arch/x86/timing.c @@ -30,7 +30,7 @@ void arch_timing_x86_init(void) /* * cycles are in 32-bit, and delta must be - * calculated in 32-bit percision. Or it would + * calculated in 32-bit precision. Or it would be * wrapping around in 64-bit. */ dcyc = (uint32_t)cyc_end - (uint32_t)cyc_start; diff --git a/arch/x86/zefi/README.txt b/arch/x86/zefi/README.txt index 85f0125829..661391d103 100644 --- a/arch/x86/zefi/README.txt +++ b/arch/x86/zefi/README.txt @@ -46,7 +46,7 @@ Linux toolchain. EFI binaries are relocatable PE-COFF files -- basically Windows DLLs. But our compiler only generates code for ELF targets. -These environments differ in the way they implemenqt position +These environments differ in the way they implement position independent code. Non-static global variables and function addresses in ELF get found via GOT and PLT tables that are populated at load time by a system binary (ld-linux.so). But there is no ld-linux.so in diff --git a/arch/xtensa/include/xtensa-asm2-s.h b/arch/xtensa/include/xtensa-asm2-s.h index a10c4446ba..06a2db90c5 100644 --- a/arch/xtensa/include/xtensa-asm2-s.h +++ b/arch/xtensa/include/xtensa-asm2-s.h @@ -38,7 +38,7 @@ * context. * * - If the WOE bit is not enabled (for example, in code written for - * the CALL0 ABI), this becomes a silent noop and operates compatbily. + * the CALL0 ABI), this becomes a silent noop and operates compatibly. * * - In memory protection situations, this relies on the existing * exception handlers (and thus their use of the L/S32E diff --git a/boards/arm/arduino_nano_33_ble/arduino_nano_33_ble.dts b/boards/arm/arduino_nano_33_ble/arduino_nano_33_ble.dts index c1b5016b45..c3f1741c1d 100644 --- a/boards/arm/arduino_nano_33_ble/arduino_nano_33_ble.dts +++ b/boards/arm/arduino_nano_33_ble/arduino_nano_33_ble.dts @@ -124,7 +124,7 @@ zephyr_udc0: &usbd { compatible = "nordic,nrf-usbd"; status = "okay"; }; -// All PWM's should be enaled +// All PWM's should be enabled &pwm0 { status = "okay"; }; diff --git a/boards/arm/bl654_sensor_board/doc/bl654_sensor_board.rst b/boards/arm/bl654_sensor_board/doc/bl654_sensor_board.rst index 570c8ad139..92783aa35f 100644 --- a/boards/arm/bl654_sensor_board/doc/bl654_sensor_board.rst +++ b/boards/arm/bl654_sensor_board/doc/bl654_sensor_board.rst @@ -121,7 +121,7 @@ The sensor can be powered directly from a coin cell or from a voltage supplied on the UART pins, the board accepts voltage from 1.8v-3.3v. Note that if using a battery with a UART/debugger connected, the voltage of the UART/debugger (if it does not automatically sense/adjust) must be within 0.3v of the voltage of the -coin cell to prevent supression diodes in the nRF52840 silicon being activated +coin cell to prevent suppression diodes in the nRF52840 silicon being activated or possible back-powering of the battery. To power the board from an external source via UART, the solder bridge SB1 must diff --git a/boards/arm/ip_k66f/linker.ld b/boards/arm/ip_k66f/linker.ld index 9a620d509b..338797f1f2 100644 --- a/boards/arm/ip_k66f/linker.ld +++ b/boards/arm/ip_k66f/linker.ld @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 DENX Software Engineeering GmbH + * Copyright (c) 2021 DENX Software Engineering GmbH * * SPDX-License-Identifier: Apache-2.0 */ diff --git a/boards/arm/lora_e5_dev_board/lora_e5_dev_board.dts b/boards/arm/lora_e5_dev_board/lora_e5_dev_board.dts index 7e8a72cc2b..e190eee2b2 100644 --- a/boards/arm/lora_e5_dev_board/lora_e5_dev_board.dts +++ b/boards/arm/lora_e5_dev_board/lora_e5_dev_board.dts @@ -161,7 +161,7 @@ /* LM75ADP temperature sensor on addr 0x48 */ }; -/* Attention!: the spi-sck pin is in confict with the boot_button on pb13 */ +/* Attention!: the spi-sck pin is in conflict with the boot_button on pb13 */ &spi2 { pinctrl-0 = <&spi2_nss_pb9 &spi2_sck_pb13 &spi2_miso_pb14 &spi2_mosi_pa10>; diff --git a/boards/arm/npcx7m6fb_evb/npcx7m6fb_evb.dts b/boards/arm/npcx7m6fb_evb/npcx7m6fb_evb.dts index 470166556b..e3f66fc603 100644 --- a/boards/arm/npcx7m6fb_evb/npcx7m6fb_evb.dts +++ b/boards/arm/npcx7m6fb_evb/npcx7m6fb_evb.dts @@ -65,7 +65,7 @@ flag = ; }; -/* Overwirte default device properties with overlays in board dt file here. */ +/* Overwrite default device properties with overlays in board dt file here. */ &uart1 { status = "okay"; current-speed = <115200>; diff --git a/boards/arm/npcx9m6f_evb/npcx9m6f_evb.dts b/boards/arm/npcx9m6f_evb/npcx9m6f_evb.dts index e949064b51..68e56dc701 100644 --- a/boards/arm/npcx9m6f_evb/npcx9m6f_evb.dts +++ b/boards/arm/npcx9m6f_evb/npcx9m6f_evb.dts @@ -77,7 +77,7 @@ flag = ; }; -/* Overwirte default device properties with overlays in board dt file here. */ +/* Overwrite default device properties with overlays in board dt file here. */ &uart1 { status = "okay"; current-speed = <115200>; diff --git a/boards/arm/nrf52840dongle_nrf52840/Kconfig.defconfig b/boards/arm/nrf52840dongle_nrf52840/Kconfig.defconfig index 185c4f2f21..afa76573ea 100644 --- a/boards/arm/nrf52840dongle_nrf52840/Kconfig.defconfig +++ b/boards/arm/nrf52840dongle_nrf52840/Kconfig.defconfig @@ -12,8 +12,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_f746zg/nucleo_f746zg.dts b/boards/arm/nucleo_f746zg/nucleo_f746zg.dts index 91bc078f22..36869aea44 100644 --- a/boards/arm/nucleo_f746zg/nucleo_f746zg.dts +++ b/boards/arm/nucleo_f746zg/nucleo_f746zg.dts @@ -12,7 +12,7 @@ /* * WARNING: The pin PA7 will conflict on selection of SPI_1 and ETH_STM32_HAL. * If you require both peripherals, and you do not need Arduino Uno v3 - * comaptability, the pin PB5 (also on ST Zio connector) can be used + * compatibility, the pin PB5 (also on ST Zio connector) can be used * for the SPI_1 MOSI signal. */ diff --git a/boards/arm/nucleo_f756zg/nucleo_f756zg.dts b/boards/arm/nucleo_f756zg/nucleo_f756zg.dts index 2099bb0f59..fd77ddf83d 100644 --- a/boards/arm/nucleo_f756zg/nucleo_f756zg.dts +++ b/boards/arm/nucleo_f756zg/nucleo_f756zg.dts @@ -12,7 +12,7 @@ /* * WARNING: The pin PA7 will conflict on selection of SPI_1 and ETH_STM32_HAL. * If you require both peripherals, and you do not need Arduino Uno v3 - * comaptability, the pin PB5 (also on ST Zio connector) can be used + * compatibility, the pin PB5 (also on ST Zio connector) can be used * for the SPI_1 MOSI signal. */ diff --git a/boards/arm/nucleo_f767zi/nucleo_f767zi.dts b/boards/arm/nucleo_f767zi/nucleo_f767zi.dts index 4d43e77f94..2c69a4357b 100644 --- a/boards/arm/nucleo_f767zi/nucleo_f767zi.dts +++ b/boards/arm/nucleo_f767zi/nucleo_f767zi.dts @@ -12,7 +12,7 @@ /* * WARNING: The pin PA7 will conflict on selection of SPI_1 and ETH_STM32_HAL. * If you require both peripherals, and you do not need Arduino Uno v3 - * comaptability, the pin PB5 (also on ST Zio connector) can be used + * compatibility, the pin PB5 (also on ST Zio connector) can be used * for the SPI_1 MOSI signal. */ diff --git a/boards/arm/thingy53_nrf5340/board.c b/boards/arm/thingy53_nrf5340/board.c index 9e1b62b976..d288da2e9f 100644 --- a/boards/arm/thingy53_nrf5340/board.c +++ b/boards/arm/thingy53_nrf5340/board.c @@ -103,7 +103,7 @@ static int setup(const struct device *dev) * sensors require, 2ms and 1ms power on delay respectively. In order not to sum * delays, common delay is introduced in the board start up file. This code is * executed after sensors are powered up and before their initialization. - * It's ensured by build asserts at the beggining of this file. + * It's ensured by build asserts at the beginning of this file. */ k_msleep(2); } diff --git a/boards/arm64/intel_socfpga_agilex_socdk/intel_socfpga_agilex_socdk_defconfig b/boards/arm64/intel_socfpga_agilex_socdk/intel_socfpga_agilex_socdk_defconfig index de7b626abb..e078752c87 100644 --- a/boards/arm64/intel_socfpga_agilex_socdk/intel_socfpga_agilex_socdk_defconfig +++ b/boards/arm64/intel_socfpga_agilex_socdk/intel_socfpga_agilex_socdk_defconfig @@ -1,7 +1,7 @@ # Copyright (c) 2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -# The Zephyr build from this defconfig is execpted to boot from +# The Zephyr build from this defconfig is expected to boot from # Intel Arm Trusted Firmware (ATF) # Boot Flow: BL21 -> BL31 -> Zephyr diff --git a/boards/arm64/xenvm/xenvm.dts b/boards/arm64/xenvm/xenvm.dts index 08ed885287..049acdb73c 100644 --- a/boards/arm64/xenvm/xenvm.dts +++ b/boards/arm64/xenvm/xenvm.dts @@ -7,7 +7,7 @@ * * # LIBXL_DEBUG_DUMP_DTB=domu-libxl.dtb xl create zephyr.conf * - * decompilling resulting domu-libxl.dtb and then manually aligning it + * decompiling resulting domu-libxl.dtb and then manually aligning it * with zephyr requirements. */ diff --git a/boards/posix/native_posix/board_soc.h b/boards/posix/native_posix/board_soc.h index 91b871e1d6..572617a073 100644 --- a/boards/posix/native_posix/board_soc.h +++ b/boards/posix/native_posix/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/posix/native_posix/timer_model.c b/boards/posix/native_posix/timer_model.c index f6e188ebc2..4ad2e2af11 100644 --- a/boards/posix/native_posix/timer_model.c +++ b/boards/posix/native_posix/timer_model.c @@ -174,7 +174,7 @@ void hwtimer_cleanup(void) } /** - * Enable the HW timer tick interrupts with a period in micoseconds + * Enable the HW timer tick interrupts with a period in microseconds */ void hwtimer_enable(uint64_t period) { @@ -373,7 +373,7 @@ void hwtimer_get_pseudohost_rtc_time(uint32_t *nsec, uint64_t *sec) /* * Note: long double has a 64bits mantissa in x86. * Therefore to avoid loss of precision after 500 odd years into - * the epoc, we first calculate the offset from the last adjustment + * the epoch, we first calculate the offset from the last adjustment * time split in us and ns. So we keep the full precision for 500 odd * years after the last clock ratio adjustment (or native_posix boot, * whichever is latest). diff --git a/boards/posix/native_posix/tracing.c b/boards/posix/native_posix/tracing.c index 73ef2c2d8d..8dc2bcbb3f 100644 --- a/boards/posix/native_posix/tracing.c +++ b/boards/posix/native_posix/tracing.c @@ -45,7 +45,7 @@ void posix_print_trace(const char *format, ...) } /** - * Are stdout and stderr connectd to a tty + * Are stdout and stderr connected to a tty * 0 = no * 1 = yes * -1 = we do not know yet diff --git a/boards/riscv/m2gl025_miv/m2gl025_miv_defconfig b/boards/riscv/m2gl025_miv/m2gl025_miv_defconfig index 93db3e3110..ef80951d51 100644 --- a/boards/riscv/m2gl025_miv/m2gl025_miv_defconfig +++ b/boards/riscv/m2gl025_miv/m2gl025_miv_defconfig @@ -12,5 +12,5 @@ CONFIG_RISCV_MACHINE_TIMER=y CONFIG_GPIO=n CONFIG_XIP=y -# Workaround for incorect SYS_CLOCK_HW_CYCLES_PER_SEC +# Workaround for incorrect SYS_CLOCK_HW_CYCLES_PER_SEC CONFIG_SYS_CLOCK_TICKS_PER_SEC=100 diff --git a/boards/shields/x_nucleo_eeprma2/x_nucleo_eeprma2.overlay b/boards/shields/x_nucleo_eeprma2/x_nucleo_eeprma2.overlay index c710d88d09..b20593f08a 100644 --- a/boards/shields/x_nucleo_eeprma2/x_nucleo_eeprma2.overlay +++ b/boards/shields/x_nucleo_eeprma2/x_nucleo_eeprma2.overlay @@ -71,7 +71,7 @@ /* * All chip select pins have an on board 10k pull-up resistor to VCC, * and are connected to their respective arduino pins via a normally - * closed solder brige. + * closed solder bridge. * * All hold pins are connected to VCC with a 10k pull-up, and * have a connection to arduino pin A3 on CN8 via an open solder bridge. diff --git a/boards/xtensa/intel_s1000_crb/support/device.py b/boards/xtensa/intel_s1000_crb/support/device.py index 06af65f3c5..f804164cf4 100644 --- a/boards/xtensa/intel_s1000_crb/support/device.py +++ b/boards/xtensa/intel_s1000_crb/support/device.py @@ -7,7 +7,7 @@ # Author: Sathish Kuttan # This file defines device class that contains functions to -# setup/cconfigure SPI master device and GPIO pins required +# setup/configure SPI master device and GPIO pins required # to communicate with the target. # Member functions are provided to send and receive messages # over the SPI bus diff --git a/cmake/bintools/bintools_template.cmake b/cmake/bintools/bintools_template.cmake index 39eac71540..9667075dff 100644 --- a/cmake/bintools/bintools_template.cmake +++ b/cmake/bintools/bintools_template.cmake @@ -10,7 +10,7 @@ # - disassembly : Tool for disassemble the target # - elfconvert : Tool for converting from elf into another format. # - readelf : Tool for elf file processing -# - strip : Tool for symnbol stripping +# - strip : Tool for symbol stripping # # Each tool will have the following minimum properties: # - _command : Name of executable to call diff --git a/cmake/bintools/host-gnu/target.cmake b/cmake/bintools/host-gnu/target.cmake index 37d5c942e6..57ff8d2f37 100644 --- a/cmake/bintools/host-gnu/target.cmake +++ b/cmake/bintools/host-gnu/target.cmake @@ -5,7 +5,7 @@ find_program(CMAKE_OBJCOPY objcopy) find_program(CMAKE_OBJDUMP objdump) find_program(CMAKE_AR ar ) -find_program(CMAKE_RANLILB ranlib ) +find_program(CMAKE_RANLIB ranlib ) find_program(CMAKE_READELF readelf) find_program(CMAKE_GDB gdb ) diff --git a/cmake/bintools/llvm/target.cmake b/cmake/bintools/llvm/target.cmake index 77287b92aa..d629f460c3 100644 --- a/cmake/bintools/llvm/target.cmake +++ b/cmake/bintools/llvm/target.cmake @@ -1,6 +1,6 @@ # SPDX-License-Identifier: Apache-2.0 -# Configures binary toos as llvm binary tool set +# Configures binary tools as llvm binary tool set if(DEFINED TOOLCHAIN_HOME) set(find_program_clang_args PATHS ${TOOLCHAIN_HOME} NO_DEFAULT_PATH) diff --git a/cmake/compiler/arcmwdt/compiler_flags.cmake b/cmake/compiler/arcmwdt/compiler_flags.cmake index 00e2233bff..99e43c9f4d 100644 --- a/cmake/compiler/arcmwdt/compiler_flags.cmake +++ b/cmake/compiler/arcmwdt/compiler_flags.cmake @@ -132,7 +132,7 @@ set_property(TARGET compiler-cpp PROPERTY dialect_cpp2a "") set_property(TARGET compiler-cpp PROPERTY dialect_cpp20 "") set_property(TARGET compiler-cpp PROPERTY dialect_cpp2b "") -# Disable exeptions flag in C++ +# Disable exceptions flag in C++ set_property(TARGET compiler-cpp PROPERTY no_exceptions "-fno-exceptions") # Disable rtti in C++ diff --git a/cmake/compiler/compiler_flags_template.cmake b/cmake/compiler/compiler_flags_template.cmake index 4900a75946..63e1a0df6a 100644 --- a/cmake/compiler/compiler_flags_template.cmake +++ b/cmake/compiler/compiler_flags_template.cmake @@ -65,7 +65,7 @@ set_property(TARGET compiler-cpp PROPERTY dialect_cpp2a) set_property(TARGET compiler-cpp PROPERTY dialect_cpp20) set_property(TARGET compiler-cpp PROPERTY dialect_cpp2b) -# Flag for disabling exeptions in C++ +# Flag for disabling exceptions in C++ set_property(TARGET compiler-cpp PROPERTY no_exceptions) # Flag for disabling rtti in C++ diff --git a/cmake/compiler/gcc/compiler_flags.cmake b/cmake/compiler/gcc/compiler_flags.cmake index bc3f37b2fc..495cd8f037 100644 --- a/cmake/compiler/gcc/compiler_flags.cmake +++ b/cmake/compiler/gcc/compiler_flags.cmake @@ -129,7 +129,7 @@ set_property(TARGET compiler-cpp PROPERTY dialect_cpp20 "-std=c++20" set_property(TARGET compiler-cpp PROPERTY dialect_cpp2b "-std=c++2b" "-Wno-register" "-Wno-volatile") -# Disable exeptions flag in C++ +# Disable exceptions flag in C++ set_property(TARGET compiler-cpp PROPERTY no_exceptions "-fno-exceptions") # Disable rtti in C++ @@ -159,7 +159,7 @@ endif() # gcc flag for a hosted (no-freestanding) application check_set_compiler_property(APPEND PROPERTY hosted -fno-freestanding) -# gcc flag for a freestandingapplication +# gcc flag for a freestanding application set_compiler_property(PROPERTY freestanding -ffreestanding) # Flag to enable debugging diff --git a/cmake/compiler/gcc/target.cmake b/cmake/compiler/gcc/target.cmake index 2bd1ffa47c..6c114355ac 100644 --- a/cmake/compiler/gcc/target.cmake +++ b/cmake/compiler/gcc/target.cmake @@ -96,7 +96,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/linker/ld/gcc/linker_flags.cmake b/cmake/linker/ld/gcc/linker_flags.cmake index 82a526a84e..bd5d1d2529 100644 --- a/cmake/linker/ld/gcc/linker_flags.cmake +++ b/cmake/linker/ld/gcc/linker_flags.cmake @@ -2,7 +2,7 @@ # Using a config check is ok for now, but in future it would be desired if # linker flags themselves are not depending on actual configurations. -# All flags should be described, and the caller should now the flag name to use. +# All flags should be described, and the caller should know the flag name to use. if (NOT CONFIG_COVERAGE_GCOV) set_property(TARGET linker PROPERTY coverage -lgcov) endif() diff --git a/cmake/linker/linker_flags_template.cmake b/cmake/linker/linker_flags_template.cmake index 6cb34fd284..7b7c3cca79 100644 --- a/cmake/linker/linker_flags_template.cmake +++ b/cmake/linker/linker_flags_template.cmake @@ -12,5 +12,5 @@ check_set_linker_property(TARGET linker APPEND PROPERTY sanitize_undefined) # Set this flag if the linker supports reporting of memusage as part of link, # such as ls --print-memory-usage flag. # If memory reporting is a post build command, please use -# cmake/bintools/bintools.cmake insted. +# cmake/bintools/bintools.cmake instead. check_set_linker_property(TARGET linker PROPERTY memusage) diff --git a/cmake/linker/linker_script_common.cmake b/cmake/linker/linker_script_common.cmake index 71811842ba..ef5ded66fd 100644 --- a/cmake/linker/linker_script_common.cmake +++ b/cmake/linker/linker_script_common.cmake @@ -495,7 +495,7 @@ endfunction() # Tasks: # - Apply missing settings, such as initial address for first section in a region. # - Symbol names on sections -# - Ordered list of all sections for easier retrival on printing and configuration. +# - Ordered list of all sections for easier retrieval on printing and configuration. function(process_region_common) cmake_parse_arguments(REGION_COMMON "" "OBJECT" "" ${ARGN}) diff --git a/cmake/linker_script/arm/linker.cmake b/cmake/linker_script/arm/linker.cmake index 4c41ea7b17..c557dfb57f 100644 --- a/cmake/linker_script/arm/linker.cmake +++ b/cmake/linker_script/arm/linker.cmake @@ -6,7 +6,7 @@ set_ifndef(region_min_align CONFIG_CUSTOM_SECTION_MIN_ALIGN_SIZE) # to make linker section alignment comply with MPU granularity. set_ifndef(region_min_align CONFIG_ARM_MPU_REGION_MIN_ALIGN_AND_SIZE) -# If building without MPU support, use default 4-byte alignment.. if not set abve. +# If building without MPU support, use default 4-byte alignment.. if not set above. set_ifndef(region_min_align 4) # Note, the `+ 0` in formulas below avoids errors in cases where a Kconfig diff --git a/cmake/linker_script/common/common-rom.cmake b/cmake/linker_script/common/common-rom.cmake index 8ba58df771..4a60daab9a 100644 --- a/cmake/linker_script/common/common-rom.cmake +++ b/cmake/linker_script/common/common-rom.cmake @@ -34,7 +34,7 @@ if(CONFIG_CPLUSPLUS) # # 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/cmake/modules/extensions.cmake b/cmake/modules/extensions.cmake index 0ccbe42078..875c96e1fa 100644 --- a/cmake/modules/extensions.cmake +++ b/cmake/modules/extensions.cmake @@ -307,7 +307,7 @@ function(process_flags lang input output) # $<$:something>> string(REGEX MATCH "(\\\$<)[^\\\$]*(\\\$<)[^\\\$]*(\\\$<)" IGNORE_RESULT ${flag}) if(CMAKE_MATCH_2) - # Nested generator expressions are used, just substitue `$` to `1` + # Nested generator expressions are used, just substitute `$` to `1` string(REGEX REPLACE "\\\$" "1" updated_flag ${flag}) endif() list(APPEND tmp_list ${updated_flag}) @@ -317,7 +317,7 @@ function(process_flags lang input output) endforeach() if(NOT is_compile_lang_generator_expression) - # SHELL is used to avoid de-deplucation, but when process flags + # SHELL is used to avoid de-duplication, but when process flags # then this tag must be removed to return real compile/linker flags. if(flag MATCHES "SHELL:[ ]*(.*)") separate_arguments(flag UNIX_COMMAND ${CMAKE_MATCH_1}) @@ -436,7 +436,7 @@ endmacro() # ZEPHYR_MODULE/drivers/entropy/CMakeLists.txt # with content: # zephyr_library_amend() -# zephyr_libray_add_sources(...) +# zephyr_library_add_sources(...) # # It is also possible to use generator expression when amending to Zephyr # libraries. @@ -524,7 +524,7 @@ endfunction() # Add the existing CMake library 'library' to the global list of # Zephyr CMake libraries. This is done automatically by the -# constructor but must called explicitly on CMake libraries that do +# constructor but must be called explicitly on CMake libraries that do # not use a zephyr library constructor. function(zephyr_append_cmake_library library) if(TARGET zephyr_prebuilt) @@ -555,7 +555,7 @@ endfunction() # The partition argument is the name of the partition where the library shall # be placed. # -# Note: Ensure the given partition has been define using +# Note: Ensure the given partition has been defined using # K_APPMEM_PARTITION_DEFINE in source code. function(zephyr_library_app_memory partition) set_property(TARGET zephyr_property_target @@ -595,7 +595,7 @@ endfunction() # files of this library will be accessible to the 'app' library. # # This is done because when a user uses Kconfig to enable a library he -# expects to be able to include it's header files and call it's +# expects to be able to include its header files and call its # functions out-of-the box. # # A Zephyr interface library should be used when there exists some @@ -2073,7 +2073,7 @@ endfunction() # zephyr_file( ...) # # Zephyr file function extension. -# This function currently support the following +# This function currently supports the following # # APPLICATION_ROOT : Check all paths in provided variable, and convert # those paths that are defined with `-D=` @@ -3798,8 +3798,8 @@ endfunction() # Configure an output section with additional input sections. # An output section can be configured with additional input sections besides its # default section. -# For example, adding the input section `foo` to the output section bar, with KEEP -# attribute, then call: +# For example, to add the input section `foo` to the output section bar, with KEEP +# attribute, call: # zephyr_linker_section_configure(SECTION bar INPUT foo KEEP) # # ALIGN : Will align the input section placement inside the load @@ -3808,14 +3808,14 @@ endfunction() # first section in output. # SORT : Sort the input sections according to . # Currently only `NAME` is supported. -# KEEP : Do no eliminate input section during linking +# KEEP : Do not eliminate input section during linking # PRIO : The priority of the input section. Per default, input # sections order is not guaranteed by all linkers, but -# using priority, then Zephyr CMake linker will create -# sections so order can be guaranteed. All unprioritized +# using priority Zephyr CMake linker will create sections +# such that order can be guaranteed. All unprioritized # sections will internally be given a CMake process order # priority counting from 100, so first unprioritized section -# is handles internal pri0 100, next 101, and so on. +# is handled internal prio 100, next 101, and so on. # To ensure a specific input section come before those, # you may use `PRIO 50`, `PRIO 20` and so on. # To ensure an input section is at the end, it is advised diff --git a/cmake/modules/verify-toolchain.cmake b/cmake/modules/verify-toolchain.cmake index 114c7dd94e..0b18db4121 100644 --- a/cmake/modules/verify-toolchain.cmake +++ b/cmake/modules/verify-toolchain.cmake @@ -100,7 +100,7 @@ if(NOT DEFINED ZEPHYR_TOOLCHAIN_VARIANT) set(error_msg "ZEPHYR_TOOLCHAIN_VARIANT not specified and no Zephyr SDK is installed.\n") string(APPEND error_msg "Please set ZEPHYR_TOOLCHAIN_VARIANT to the toolchain to use or install the Zephyr SDK.") else() - # Note: When CMake mimimun version becomes >= 3.17, change this loop into: + # Note: When CMake minimum version becomes >= 3.17, change this loop into: # foreach(version config IN ZIP_LISTS Zephyr-sdk_CONSIDERED_VERSIONS Zephyr-sdk_CONSIDERED_CONFIGS) set(error_msg "The Zephyr SDK version you are using is not supported, please update your SDK.\n") set(missing_version "You need SDK version ${TOOLCHAIN_ZEPHYR_MINIMUM_REQUIRED_VERSION} or newer.") diff --git a/cmake/target_toolchain_flags.cmake b/cmake/target_toolchain_flags.cmake index 686ef73a8c..1df7e5eddc 100644 --- a/cmake/target_toolchain_flags.cmake +++ b/cmake/target_toolchain_flags.cmake @@ -1,4 +1,4 @@ -# Uniquely identify the toolchain wrt. it's capabilities. +# Uniquely identify the toolchain wrt. its capabilities. # # What we are looking for, is a signature definition that is defined # like this: @@ -29,9 +29,9 @@ set(TOOLCHAIN_SIGNATURE ${TOOLCHAIN_SIGNATURE}_${COMPILER_SIGNATURE}) # Zephyr Kconfig settings or the CSTD global property. include(${CMAKE_CURRENT_LIST_DIR}/compiler/compiler_features.cmake) -# Loading of templates are strictly not needed as they does not set any +# Loading of templates are strictly not needed as they do not set any # properties. -# They purely provides an overview as well as a starting point for supporting +# They purely provide an overview as well as a starting point for supporting # a new toolchain. include(${CMAKE_CURRENT_LIST_DIR}/compiler/compiler_flags_template.cmake) include(${CMAKE_CURRENT_LIST_DIR}/linker/linker_flags_template.cmake) diff --git a/cmake/toolchain/cross-compile/generic.cmake b/cmake/toolchain/cross-compile/generic.cmake index e8cea57a2f..8dc4bc3555 100644 --- a/cmake/toolchain/cross-compile/generic.cmake +++ b/cmake/toolchain/cross-compile/generic.cmake @@ -4,7 +4,7 @@ # toolchain with a single environment variable. # # It is a legacy mechanism that will in Zephyr translate to -# specififying ZEPHYR_TOOLCHAIN_VARIANT to 'cross-compile' with the location +# specifying ZEPHYR_TOOLCHAIN_VARIANT to 'cross-compile' with the location # 'CROSS_COMPILE'. # # New users should set the env var 'ZEPHYR_TOOLCHAIN_VARIANT' to diff --git a/doc/reference/api/design_guidelines.rst b/doc/reference/api/design_guidelines.rst index d8cf67b12e..ec5de1f3e4 100644 --- a/doc/reference/api/design_guidelines.rst +++ b/doc/reference/api/design_guidelines.rst @@ -118,5 +118,5 @@ not implemented or optional: - When an API is implemented, but the particular combination of options requested in the call cannot be satisfied by the implementation the call shall - return -ENOTSUP. (For example, a request for a level-triggered GPIO interrupt on + return ``-ENOTSUP``. (For example, a request for a level-triggered GPIO interrupt on hardware that supports only edge-triggered interrupts) diff --git a/drivers/adc/adc_emul.c b/drivers/adc/adc_emul.c index 909e80bb9c..c55e81e06f 100644 --- a/drivers/adc/adc_emul.c +++ b/drivers/adc/adc_emul.c @@ -37,7 +37,7 @@ enum adc_emul_input_source { /** * @brief Channel of emulated ADC config * - * This structure contains configuration of one channel of emualted ADC. + * This structure contains configuration of one channel of emulated ADC. */ struct adc_emul_chan_cfg { /** Pointer to function used to obtain input mV */ @@ -94,7 +94,7 @@ struct adc_emul_data { struct adc_emul_chan_cfg *chan_cfg; /** Structure used for acquisition thread */ struct k_thread thread; - /** Semaphore used to control acquisiton thread */ + /** Semaphore used to control acquisition thread */ struct k_sem sem; /** Mutex used to control access to channels config and ref voltages */ struct k_mutex cfg_mtx; diff --git a/drivers/adc/adc_ite_it8xxx2.c b/drivers/adc/adc_ite_it8xxx2.c index b657e57728..483843ad48 100644 --- a/drivers/adc/adc_ite_it8xxx2.c +++ b/drivers/adc/adc_ite_it8xxx2.c @@ -64,7 +64,7 @@ struct adc_it8xxx2_data { }; /* - * Strcture adc_it8xxx2_cfg is about the setting of adc + * Structure adc_it8xxx2_cfg is about the setting of adc * this config will be used at initial time */ struct adc_it8xxx2_cfg { diff --git a/drivers/adc/adc_mcux_lpadc.c b/drivers/adc/adc_mcux_lpadc.c index fdbcda2ab1..06d322c03f 100644 --- a/drivers/adc/adc_mcux_lpadc.c +++ b/drivers/adc/adc_mcux_lpadc.c @@ -401,7 +401,7 @@ static const struct adc_driver_api mcux_lpadc_driver_api = { "Invalid voltage reference source"); \ ASSERT_LPADC_CALIBRATION_AVERAGE_VALID( \ DT_INST_PROP(n, calibration_average), \ - "Invalid converion average number for auto-calibration time"); \ + "Invalid conversion average number for auto-calibration time"); \ ASSERT_WITHIN_RANGE(DT_INST_PROP(n, power_level), 1, 4, \ "Invalid power level"); \ static const struct mcux_lpadc_config mcux_lpadc_config_##n = { \ diff --git a/drivers/adc/adc_stm32.c b/drivers/adc/adc_stm32.c index 327773f06f..7c6857d23b 100644 --- a/drivers/adc/adc_stm32.c +++ b/drivers/adc/adc_stm32.c @@ -757,7 +757,7 @@ static int adc_stm32_check_acq_time(uint16_t acq_time) return 0; } - LOG_ERR("Conversion time not supportted."); + LOG_ERR("Conversion time not supported."); return -EINVAL; } diff --git a/drivers/audio/intel_dmic.c b/drivers/audio/intel_dmic.c index 652e5e5961..2ab139e13a 100644 --- a/drivers/audio/intel_dmic.c +++ b/drivers/audio/intel_dmic.c @@ -86,7 +86,7 @@ struct dmic_configuration { #define DMIC_HIGH_RATE_MIN_FS 64000 #define DMIC_HIGH_RATE_OSR_MIN 40 -/* Used for scaling FIR coeffcients for HW */ +/* Used for scaling FIR coefficients for HW */ #define DMIC_HW_FIR_COEF_MAX ((1 << (DMIC_HW_BITS_FIR_COEF - 1)) - 1) #define DMIC_HW_FIR_COEF_Q (DMIC_HW_BITS_FIR_COEF - 1) @@ -218,7 +218,7 @@ int norm_int32(int32_t val) /* This function returns a raw list of potential microphone clock and decimation * modes for achieving requested sample rates. The search is constrained by - * decimation HW capabililies and setup parameters. The parameters such as + * decimation HW capabilities and setup parameters. The parameters such as * microphone clock min/max and duty cycle requirements need be checked from * used microphone component datasheet. */ @@ -518,7 +518,7 @@ static int fir_coef_scale(int32_t *fir_scale, int *fir_shift, int add_shift, * Note: If there is no filter available an error is returned. The parameters * should be reviewed for such case. If still a filter is missing it should be * added into the included set. FIR decimation with a high factor usually - * needs compromizes into specifications and is not desirable. + * needs compromises into specifications and is not desirable. */ static int select_mode(struct dmic_configuration *cfg, struct matched_modes *modes) @@ -676,7 +676,7 @@ static int source_ipm_helper(struct pdm_chan_cfg *config, uint32_t *source_mask, * is checked whether the controller should operate as stereo or mono * left (A) or mono right (B) mode. Mono right mode is setup as channel * swapped mono left. The function returns also in array source[] the - * indice of enabled pdm controllers to be used for IPM configuration. + * indices of enabled pdm controllers to be used for IPM configuration. */ for (chan_ix = 0U; chan_ix < config->req_num_chan; chan_ix++) { diff --git a/drivers/audio/tlv320dac310x.c b/drivers/audio/tlv320dac310x.c index b4a9df9ca9..99e597e40a 100644 --- a/drivers/audio/tlv320dac310x.c +++ b/drivers/audio/tlv320dac310x.c @@ -268,7 +268,7 @@ static int codec_configure_clocks(const struct device *dev, i2s->frame_clk_freq); if (cfg->mclk_freq <= DAC_PROC_CLK_FREQ_MAX) { - /* use MCLK frequecy as the DAC processing clock */ + /* use MCLK frequency as the DAC processing clock */ ndac = 1; } else { ndac = cfg->mclk_freq / DAC_PROC_CLK_FREQ_MAX; diff --git a/drivers/bluetooth/hci/h5.c b/drivers/bluetooth/hci/h5.c index ac8ebcced3..f10073ab92 100644 --- a/drivers/bluetooth/hci/h5.c +++ b/drivers/bluetooth/hci/h5.c @@ -335,7 +335,7 @@ static void retx_timeout(struct k_work *work) k_fifo_init(&tmp_queue); - /* Queue to temperary queue */ + /* Queue to temporary queue */ while ((buf = net_buf_get(&h5.tx_queue, K_NO_WAIT))) { net_buf_put(&tmp_queue, buf); } @@ -446,7 +446,7 @@ static void bt_uart_isr(const struct device *unused, void *user_data) } break; case HEADER: - /* In a case we confuse ending slip delimeter + /* In a case we confuse ending slip delimiter * with starting one. */ if (byte == SLIP_DELIMITER) { diff --git a/drivers/can/Kconfig.rcar b/drivers/can/Kconfig.rcar index 1b3dae59ba..6954c3fe11 100644 --- a/drivers/can/Kconfig.rcar +++ b/drivers/can/Kconfig.rcar @@ -1,4 +1,4 @@ -# Reneas R-Car CAN configuration options +# Renesas R-Car CAN configuration options # Copyright (c) 2021 IoT.bzh # SPDX-License-Identifier: Apache-2.0 diff --git a/drivers/can/can_mcan.h b/drivers/can/can_mcan.h index dd8cce64a1..35d3afaece 100644 --- a/drivers/can/can_mcan.h +++ b/drivers/can/can_mcan.h @@ -77,7 +77,7 @@ struct can_mcan_tx_buffer_hdr { union { struct { volatile uint32_t ext_id : 29; /* Identifier */ - volatile uint32_t rtr : 1; /* Retmote Transmission Request*/ + volatile uint32_t rtr : 1; /* Remote Transmission Request*/ volatile uint32_t xtd : 1; /* Extended identifier */ volatile uint32_t esi : 1; /* Error state indicator */ }; @@ -109,7 +109,7 @@ struct can_mcan_tx_buffer { struct can_mcan_tx_event_fifo { volatile uint32_t id : 29; /* Identifier */ - volatile uint32_t rtr : 1; /* Retmote Transmission Request*/ + volatile uint32_t rtr : 1; /* Remote Transmission Request*/ volatile uint32_t xtd : 1; /* Extended identifier */ volatile uint32_t esi : 1; /* Error state indicator */ diff --git a/drivers/can/can_mcan_int.h b/drivers/can/can_mcan_int.h index 9bfe3ead82..734a1bbe52 100644 --- a/drivers/can/can_mcan_int.h +++ b/drivers/can/can_mcan_int.h @@ -42,7 +42,7 @@ #define CAN_MCAN_CREL_REL CAN_MCAN_CREL_REL_MSK /**************** Bit definition for CAN_MCAN_ENDN register *****************/ -/* Endiannes Test Value */ +/* Endianness Test Value */ #define CAN_MCAN_ENDN_ETV_POS (0U) #define CAN_MCAN_ENDN_ETV_MSK (0xFFFFFFFFUL << CAN_MCAN_ENDN_ETV_POS) #define CAN_MCAN_ENDN_ETV CAN_MCAN_ENDN_ETV_MSK diff --git a/drivers/can/can_stm32.c b/drivers/can/can_stm32.c index c554bed93f..5e43afe58b 100644 --- a/drivers/can/can_stm32.c +++ b/drivers/can/can_stm32.c @@ -1123,7 +1123,7 @@ void can_stm32_remove_rx_filter(const struct device *dev, int filter_id) if (!CAN_BANK_IS_EMPTY(data->filter_usage, bank_nr)) { can->FA1R |= bank_bit; } else { - LOG_DBG("Bank number %d is empty -> deakivate", bank_nr); + LOG_DBG("Bank number %d is empty -> deactivate", bank_nr); } can->FMR &= ~(CAN_FMR_FINIT); diff --git a/drivers/console/xtensa_sim_console.c b/drivers/console/xtensa_sim_console.c index 9a4036201d..d2ee2142cf 100644 --- a/drivers/console/xtensa_sim_console.c +++ b/drivers/console/xtensa_sim_console.c @@ -69,7 +69,7 @@ static int xt_sim_console_init(const struct device *arg) return 0; } -/* UART consloe initializes after the UART device itself */ +/* UART console initializes after the UART device itself */ SYS_INIT(xt_sim_console_init, #if defined(CONFIG_EARLY_CONSOLE) PRE_KERNEL_1, diff --git a/drivers/counter/counter_cmos.c b/drivers/counter/counter_cmos.c index b2029fac55..7fc01d259f 100644 --- a/drivers/counter/counter_cmos.c +++ b/drivers/counter/counter_cmos.c @@ -23,7 +23,7 @@ /* * A snapshot of the RTC state, or at least the state we're * interested in. This struct should not be modified without - * serious consideraton, for two reasons: + * serious consideration, for two reasons: * * 1. Order of the element is important, and must correlate * with addrs[] and NR_BCD_VALS (see below), and @@ -44,7 +44,7 @@ struct state { /* * If the clock is in BCD mode, the first NR_BCD_VALS - * valies in 'struct state' are BCD-encoded. + * values in 'struct state' are BCD-encoded. */ #define NR_BCD_VALS 6 diff --git a/drivers/counter/counter_mcux_pit.c b/drivers/counter/counter_mcux_pit.c index b54f2c2d2c..ae98dcbe62 100644 --- a/drivers/counter/counter_mcux_pit.c +++ b/drivers/counter/counter_mcux_pit.c @@ -149,7 +149,7 @@ static int mcux_pit_set_alarm(const struct device *dev, uint8_t chan_id, } if (ticks > mcux_pit_get_top_value(dev)) { - LOG_ERR("Invalid tciks"); + LOG_ERR("Invalid ticks"); return -EINVAL; } diff --git a/drivers/counter/counter_xlnx_axi_timer.c b/drivers/counter/counter_xlnx_axi_timer.c index 8489900951..fcb4d9db16 100644 --- a/drivers/counter/counter_xlnx_axi_timer.c +++ b/drivers/counter/counter_xlnx_axi_timer.c @@ -292,7 +292,7 @@ static int xlnx_axi_timer_init(const struct device *dev) const struct xlnx_axi_timer_config *config = dev->config; LOG_DBG("max top value = 0x%08x", config->info.max_top_value); - LOG_DBG("freqency = %d", config->info.freq); + LOG_DBG("frequency = %d", config->info.freq); LOG_DBG("channels = %d", config->info.channels); xlnx_axi_timer_write32(dev, config->info.max_top_value, TLR0_OFFSET); diff --git a/drivers/counter/rtc_mcp7940n.c b/drivers/counter/rtc_mcp7940n.c index 738b338ae3..ea1ac984bc 100644 --- a/drivers/counter/rtc_mcp7940n.c +++ b/drivers/counter/rtc_mcp7940n.c @@ -204,7 +204,7 @@ static int read_register(const struct device *dev, uint8_t addr, uint8_t *val) * * @param dev the MCP7940N device pointer. * @param unix_time pointer to time_t value that will contain unix time if - * sucessful. + * successful. * * @retval return 0 on success, or a negative error code from an I2C * transaction. diff --git a/drivers/crypto/crypto_ataes132a_priv.h b/drivers/crypto/crypto_ataes132a_priv.h index 15a8c02f07..51392b43e1 100644 --- a/drivers/crypto/crypto_ataes132a_priv.h +++ b/drivers/crypto/crypto_ataes132a_priv.h @@ -24,7 +24,7 @@ #define ATAES_MANUFACTID_REG 0xF02B #define ATAES_PERMCONFIG_REG 0xF02D -/* Configuarion Pre-Lock Writable Registers */ +/* Configuration Pre-Lock Writable Registers */ #define ATAES_I2CADDR_REG 0xF040 #define ATAES_CHIPCONFIG_REG 0xF042 #define ATAES_FREESPACE_ADDR 0xF180 diff --git a/drivers/disk/sdmmc_sdhc.h b/drivers/disk/sdmmc_sdhc.h index 533984a160..b0a0d056ff 100644 --- a/drivers/disk/sdmmc_sdhc.h +++ b/drivers/disk/sdmmc_sdhc.h @@ -324,13 +324,13 @@ enum sd_max_current { enum sd_voltage { SD_VOL_NONE = 0U, - /*!< indicate current voltage setting is not setting bu suser*/ + /*!< indicate current voltage setting is not set by user*/ SD_VOL_3_3_V = 1U, /*!< card operation voltage around 3.3v */ SD_VOL_3_0_V = 2U, /*!< card operation voltage around 3.0v */ SD_VOL_1_8_V = 3U, - /*!< card operation voltage around 31.8v */ + /*!< card operation voltage around 1.8v */ }; #define SDMMC_DEFAULT_BLOCK_SIZE (512U) @@ -529,7 +529,7 @@ static inline int sdhc_map_r1_status(int status) return sdhc_map_flags(sdhc_r1_flags, status); } -/* Converts an eary stage idle mode R1 code into an error code */ +/* Converts an early stage idle mode R1 code into an error code */ static inline int sdhc_map_r1_idle_status(int status) { if (status < 0) { diff --git a/drivers/disk/sdmmc_spi.c b/drivers/disk/sdmmc_spi.c index 66c2b10152..b3f5cb8d81 100644 --- a/drivers/disk/sdmmc_spi.c +++ b/drivers/disk/sdmmc_spi.c @@ -661,7 +661,7 @@ static int sdhc_spi_detect(const struct device *dev) buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], buf[7], buf[8], sys_get_be32(&buf[9])); - /* Initilisation complete */ + /* Initialisation complete */ sdhc_spi_set_status(dev, DISK_STATUS_OK); return 0; diff --git a/drivers/disk/usdhc.c b/drivers/disk/usdhc.c index 95547ea899..d2fea1551d 100644 --- a/drivers/disk/usdhc.c +++ b/drivers/disk/usdhc.c @@ -762,7 +762,7 @@ static int usdhc_adma2_descriptor_cfg( min_entries = ((data_size / USDHC_ADMA2_DESCRIPTOR_MAX_LENGTH_PER_ENTRY) + 1U); } - /* calcucate the start entry for multiple descriptor mode, + /* calculate the start entry for multiple descriptor mode, * ADMA engine is not stop, so update the descriptor * data address and data size is enough */ @@ -1537,7 +1537,7 @@ int usdhc_adjust_tuning_timing(USDHC_Type *base, uint32_t delay) /* load the delay setting */ base->CLK_TUNE_CTRL_STATUS = clk_tune_ctrl; - /* check delat setting error */ + /* check delay setting error */ if (base->CLK_TUNE_CTRL_STATUS & (USDHC_CLK_TUNE_CTRL_STATUS_PRE_ERR_MASK | USDHC_CLK_TUNE_CTRL_STATUS_NXT_ERR_MASK)) @@ -1628,7 +1628,7 @@ static int usdhc_vol_switch(struct usdhc_priv *priv) /*enable force clock on*/ usdhc_force_clk_on(base, true); - /* dealy 1ms,not exactly correct when use while */ + /* delay 1ms,not exactly correct when use while */ usdhc_millsec_delay(20000U); /*disable force clock on*/ usdhc_force_clk_on(base, false); @@ -1834,7 +1834,7 @@ uint32_t usdhc_set_sd_clk(USDHC_Type *base, uint32_t src_clk_hz, uint32_t sd_clk } } } else { - /* in this situation , divsior and SDCLKFS + /* in this situation , divisor and SDCLKFS * can generate same clock * use SDCLKFS */ @@ -1851,7 +1851,7 @@ uint32_t usdhc_set_sd_clk(USDHC_Type *base, uint32_t src_clk_hz, uint32_t sd_clk } else { /* in this condition , src_clk_hz = busClock_Hz, */ /* in DDR mode , set SDCLKFS to 0, divisor = 0, actually the - * totoal divider = 2U + * total divider = 2U */ divisor = 0U; prescaler = 0U; @@ -2676,7 +2676,7 @@ APP_SEND_OP_COND_AGAIN: } if (ret) { - LOG_ERR("USDHC bus device initalization failed!"); + LOG_ERR("USDHC bus device initialization failed!"); } return ret; diff --git a/drivers/display/ssd1306_regs.h b/drivers/display/ssd1306_regs.h index 2c4f628376..33961e129c 100644 --- a/drivers/display/ssd1306_regs.h +++ b/drivers/display/ssd1306_regs.h @@ -78,7 +78,7 @@ /* - * Timming and Driving Scheme Setting Command Table + * Timing and Driving Scheme Setting Command Table */ #define SSD1306_SET_CLOCK_DIV_RATIO 0xd5 /* double byte command */ diff --git a/drivers/dma/dma_iproc_pax_v1.c b/drivers/dma/dma_iproc_pax_v1.c index d01bdc0d85..dba2107c0d 100644 --- a/drivers/dma/dma_iproc_pax_v1.c +++ b/drivers/dma/dma_iproc_pax_v1.c @@ -62,7 +62,7 @@ static inline void rm_write_header_desc(void *desc, uint32_t toggle, struct rm_header *r = (struct rm_header *)desc; r->opq = opq; - /* DMA descriptor count init vlaue */ + /* DMA descriptor count init value */ r->bdcount = bdcount; r->prot = 0x0; /* No packet extension, start and end set to '1' */ diff --git a/drivers/dma/dma_iproc_pax_v2.c b/drivers/dma/dma_iproc_pax_v2.c index 9a9d41df3f..24e3ce9f72 100644 --- a/drivers/dma/dma_iproc_pax_v2.c +++ b/drivers/dma/dma_iproc_pax_v2.c @@ -65,7 +65,7 @@ static inline void rm_write_header_desc(void *desc, uint32_t toggle, r->opq = opq; r->bdf = 0x0; r->res1 = 0x0; - /* DMA descriptor count init vlaue */ + /* DMA descriptor count init value */ r->bdcount = bdcount; r->prot = 0x0; r->res2 = 0x0; @@ -105,7 +105,7 @@ static inline void rm_write_pcie_desc(void *desc, } /** - * @brief Populate src/destionation descriptor + * @brief Populate src/destination descriptor */ static inline void rm_write_src_dst_desc(void *desc_ptr, bool is_mega, diff --git a/drivers/dma/dma_stm32_v1.c b/drivers/dma/dma_stm32_v1.c index 52ec3b3498..085bbd7bee 100644 --- a/drivers/dma/dma_stm32_v1.c +++ b/drivers/dma/dma_stm32_v1.c @@ -399,7 +399,7 @@ uint32_t stm32_dma_get_pburst(struct dma_config *config, bool source_periph) /* * This function checks if the msize, mburst and fifo level is - * compitable. If they are not compitable, refer to the 'FIFO' + * compatible. If they are not compatible, refer to the 'FIFO' * section in the 'DMA' chapter in the Reference Manual for more * information. * break is emitted since every path of the code has 'return'. diff --git a/drivers/dma/dmamux_stm32.c b/drivers/dma/dmamux_stm32.c index 3087d0d743..d007c06a71 100644 --- a/drivers/dma/dmamux_stm32.c +++ b/drivers/dma/dmamux_stm32.c @@ -247,7 +247,7 @@ static const struct dma_driver_api dma_funcs = { }; /* - * Each dmamux channel is hardwired to one dma controlers dma channel. + * Each dmamux channel is hardwired to one dma controllers dma channel. * DMAMUX_CHANNEL_INIT_X macros resolve this mapping at build time for each * dmamux channel using the dma dt properties dma_offset and dma_requests, * such that it can be stored in dmamux_stm32_channels_X configuration. diff --git a/drivers/ec_host_cmd_periph/ec_host_cmd_periph_handlers.c b/drivers/ec_host_cmd_periph/ec_host_cmd_periph_handlers.c index 00f0672f4e..0d462950f7 100644 --- a/drivers/ec_host_cmd_periph/ec_host_cmd_periph_handlers.c +++ b/drivers/ec_host_cmd_periph/ec_host_cmd_periph_handlers.c @@ -30,7 +30,7 @@ z_vrfy_ec_host_cmd_periph_send(const struct device *dev, Z_OOPS(Z_SYSCALL_OBJ(dev, K_OBJ_DRIVER_EC_HOST_CMD_PERIPH_API)); Z_OOPS(z_user_from_copy(&local_tx_buf, tx_buf, sizeof(*tx_buf))); - /* Ensure that user thread has acces to read buffer since + /* Ensure that user thread has access to read buffer since * device will read from this memory location. */ Z_OOPS(Z_SYSCALL_MEMORY_READ(local_tx_buf.buf, local_tx_buf.size)); diff --git a/drivers/eeprom/eeprom_lpc11u6x.c b/drivers/eeprom/eeprom_lpc11u6x.c index 61a7b355e2..9a5b72f459 100644 --- a/drivers/eeprom/eeprom_lpc11u6x.c +++ b/drivers/eeprom/eeprom_lpc11u6x.c @@ -13,7 +13,7 @@ * This driver supports the on-chip EEPROM found on NXP LPC11U6x MCUs. * * @note This driver is only a wrapper for the IAP (In-Application Programming) - * EEPROM funcions. + * EEPROM functions. */ #include diff --git a/drivers/eeprom/eeprom_simulator.c b/drivers/eeprom/eeprom_simulator.c index de14eaeb76..322b54a1ef 100644 --- a/drivers/eeprom/eeprom_simulator.c +++ b/drivers/eeprom/eeprom_simulator.c @@ -51,7 +51,7 @@ static struct k_sem sem_lock; #define SYNC_UNLOCK() #endif -/* simulator statistcs */ +/* simulator statistics */ STATS_SECT_START(eeprom_sim_stats) STATS_SECT_ENTRY32(bytes_read) /* total bytes read */ STATS_SECT_ENTRY32(bytes_written) /* total bytes written */ diff --git a/drivers/entropy/entropy_cc13xx_cc26xx.c b/drivers/entropy/entropy_cc13xx_cc26xx.c index cc5187a7de..4bd653264f 100644 --- a/drivers/entropy/entropy_cc13xx_cc26xx.c +++ b/drivers/entropy/entropy_cc13xx_cc26xx.c @@ -158,8 +158,8 @@ static void entropy_cc13xx_cc26xx_isr(const void *arg) k_sem_give(&data->sync); } - /* Change the shutdown FROs' oscillating frequncy in an attempt to - * prevent further locking on to the sampling clock frequncy. + /* Change the shutdown FROs' oscillating frequency in an attempt to + * prevent further locking on to the sampling clock frequency. */ if (src & TRNG_FRO_SHUTDOWN) { handle_shutdown_ovf(); diff --git a/drivers/espi/espi_mchp_xec.c b/drivers/espi/espi_mchp_xec.c index 51517d534a..331c59af4c 100644 --- a/drivers/espi/espi_mchp_xec.c +++ b/drivers/espi/espi_mchp_xec.c @@ -17,7 +17,7 @@ #define ESPI_XEC_VWIRE_ACK_DELAY 10ul /* Maximum timeout to transmit a virtual wire packet. - * 10 ms expresed in multiples of 100us + * 10 ms expressed in multiples of 100us */ #define ESPI_XEC_VWIRE_SEND_TIMEOUT 100ul @@ -109,7 +109,7 @@ enum mchp_smvw_regs { MCHP_SMVW08, }; -/* Microchip cannonical virtual wire mapping +/* Microchip canonical virtual wire mapping * ------------------------------------------------------------------------| * VW Idx | VW reg | SRC_ID3 | SRC_ID2 | SRC_ID1 | SRC_ID0 | * ------------------------------------------------------------------------| @@ -255,7 +255,7 @@ static int espi_xec_configure(const struct device *dev, struct espi_cfg *cfg) cap1 |= (iomode << MCHP_ESPI_GBL_CAP1_IO_MODE_POS); } - /* Validdate and translate eSPI API channels to MEC capabilities */ + /* Validate and translate eSPI API channels to MEC capabilities */ cap0 &= ~MCHP_ESPI_GBL_CAP0_MASK; if (cfg->channel_caps & ESPI_CHANNEL_PERIPHERAL) { if (IS_ENABLED(CONFIG_ESPI_PERIPHERAL_CHANNEL)) { @@ -1209,7 +1209,7 @@ static void ibf_kbc_isr(const struct device *dev) struct espi_xec_data *data = (struct espi_xec_data *)(dev->data); /* The high byte contains information from the host, - * and the lower byte speficies if the host sent + * and the lower byte specifies if the host sent * a command or data. 1 = Command. */ uint32_t isr_data = ((KBC_REGS->EC_DATA & 0xFF) << E8042_ISR_DATA_POS) | diff --git a/drivers/espi/espi_mchp_xec_v2.c b/drivers/espi/espi_mchp_xec_v2.c index bfdbc56c26..af4c4b4c8d 100644 --- a/drivers/espi/espi_mchp_xec_v2.c +++ b/drivers/espi/espi_mchp_xec_v2.c @@ -24,7 +24,7 @@ #define ESPI_XEC_VWIRE_ACK_DELAY 10ul /* Maximum timeout to transmit a virtual wire packet. - * 10 ms expresed in multiples of 100us + * 10 ms expressed in multiples of 100us */ #define ESPI_XEC_VWIRE_SEND_TIMEOUT 100ul @@ -72,7 +72,7 @@ LOG_MODULE_REGISTER(espi, CONFIG_ESPI_LOG_LEVEL); #define XEC_PCR_REG_BASE \ ((struct pcr_regs *)(DT_REG_ADDR(DT_NODELABEL(pcr)))) -/* Microchip cannonical virtual wire mapping +/* Microchip canonical virtual wire mapping * ------------------------------------------------------------------------| * VW Idx | VW reg | SRC_ID3 | SRC_ID2 | SRC_ID1 | SRC_ID0 | * ------------------------------------------------------------------------| @@ -236,7 +236,7 @@ static int espi_xec_configure(const struct device *dev, struct espi_cfg *cfg) cap1 |= (iomode << MCHP_ESPI_GBL_CAP1_IO_MODE_POS); } - /* Validdate and translate eSPI API channels to MEC capabilities */ + /* Validate and translate eSPI API channels to MEC capabilities */ cap0 &= ~MCHP_ESPI_GBL_CAP0_MASK; if (cfg->channel_caps & ESPI_CHANNEL_PERIPHERAL) { if (IS_ENABLED(CONFIG_ESPI_PERIPHERAL_CHANNEL)) { diff --git a/drivers/espi/espi_npcx.c b/drivers/espi/espi_npcx.c index 20d29c229a..fd1c8545f4 100644 --- a/drivers/espi/espi_npcx.c +++ b/drivers/espi/espi_npcx.c @@ -171,7 +171,7 @@ static void espi_init_wui_callback(const struct device *dev, npcx_miwu_init_dev_callback(callback, wui, handler, dev); npcx_miwu_manage_dev_callback(callback, 1); - /* Congiure MIWU setting and enable its interrupt */ + /* Configure MIWU setting and enable its interrupt */ npcx_miwu_interrupt_configure(wui, NPCX_MIWU_MODE_EDGE, NPCX_MIWU_TRIG_BOTH); npcx_miwu_irq_enable(wui); @@ -390,7 +390,7 @@ static void espi_vw_notify_plt_rst(const struct device *dev) if (wire) { /* Set Peripheral Channel ready when PLTRST is de-asserted */ inst->ESPICFG |= BIT(NPCX_ESPICFG_PCHANEN); - /* Configure all host sub-modules in host doamin */ + /* Configure all host sub-modules in host domain */ npcx_host_init_subs_host_domain(); } diff --git a/drivers/espi/espi_saf_mchp_xec.c b/drivers/espi/espi_saf_mchp_xec.c index 1ce31863dd..d36ab312bd 100644 --- a/drivers/espi/espi_saf_mchp_xec.c +++ b/drivers/espi/espi_saf_mchp_xec.c @@ -659,7 +659,7 @@ static int check_ecp_access_size(uint32_t reqlen) } /* - * EC access (read/erase/write) to SAF atttached flash array + * EC access (read/erase/write) to SAF attached flash array * cmd 0 = read * 1 = write * 2 = erase diff --git a/drivers/ethernet/eth_dwmac.c b/drivers/ethernet/eth_dwmac.c index 2b4a04e7a5..e3f5868a3d 100644 --- a/drivers/ethernet/eth_dwmac.c +++ b/drivers/ethernet/eth_dwmac.c @@ -45,7 +45,7 @@ LOG_MODULE_REGISTER(LOG_MODULE_NAME); */ #define TX_AVAIL_WAIT K_MSEC(1) -/* descriptor index itterators */ +/* descriptor index iterators */ #define INC_WRAP(idx, size) ({ idx = (idx + 1) % size; }) #define DEC_WRAP(idx, size) ({ idx = (idx + size - 1) % size; }) diff --git a/drivers/ethernet/eth_gecko.c b/drivers/ethernet/eth_gecko.c index 7bfee90cd7..7def151569 100644 --- a/drivers/ethernet/eth_gecko.c +++ b/drivers/ethernet/eth_gecko.c @@ -148,7 +148,7 @@ static struct net_pkt *frame_get(const struct device *dev) __ASSERT_NO_MSG(dev_data != NULL); __ASSERT_NO_MSG(cfg != NULL); - /* Preset indeces and total frame length */ + /* Preset indices and total frame length */ sofIdx = UINT32_MAX; eofIdx = UINT32_MAX; total_len = 0; diff --git a/drivers/ethernet/eth_mcux.c b/drivers/ethernet/eth_mcux.c index cd6019af35..1ae1b42ac7 100644 --- a/drivers/ethernet/eth_mcux.c +++ b/drivers/ethernet/eth_mcux.c @@ -421,7 +421,7 @@ void eth_mcux_phy_stop(struct eth_context *context) break; case eth_mcux_phy_state_wait: k_work_cancel_delayable(&context->delayed_phy_work); - /* @todo, actually power downt he PHY ? */ + /* @todo, actually power down the PHY ? */ context->phy_state = eth_mcux_phy_state_initial; break; case eth_mcux_phy_state_closing: diff --git a/drivers/ethernet/eth_sam_gmac.c b/drivers/ethernet/eth_sam_gmac.c index 177859f87e..3c425d296f 100644 --- a/drivers/ethernet/eth_sam_gmac.c +++ b/drivers/ethernet/eth_sam_gmac.c @@ -1,6 +1,6 @@ /* * Copyright (c) 2016 Piotr Mienkowski - * Copyringt (c) 2018 Antmicro Ltd + * Copyright (c) 2018 Antmicro Ltd * * SPDX-License-Identifier: Apache-2.0 */ diff --git a/drivers/ethernet/eth_xlnx_gem.c b/drivers/ethernet/eth_xlnx_gem.c index e65f2fa7a3..7ed2ff3e1e 100644 --- a/drivers/ethernet/eth_xlnx_gem.c +++ b/drivers/ethernet/eth_xlnx_gem.c @@ -768,7 +768,7 @@ static void eth_xlnx_gem_configure_clocks(const struct device *dev) } /* - * Caclculate the divisors for the target frequency. + * Calculate the divisors for the target frequency. * The frequency of the PLL to which the divisors shall be applied are * provided in the respective GEM's device tree data. */ diff --git a/drivers/ethernet/phy_xlnx_gem.c b/drivers/ethernet/phy_xlnx_gem.c index 9407bd7d3c..4facd53c7c 100644 --- a/drivers/ethernet/phy_xlnx_gem.c +++ b/drivers/ethernet/phy_xlnx_gem.c @@ -250,7 +250,7 @@ static void phy_xlnx_gem_marvell_alaska_cfg(const struct device *dev) if ((dev_data->phy_id & PHY_MRVL_PHY_ID_MODEL_MASK) == PHY_MRVL_PHY_ID_MODEL_88E151X) { /* - * 88E151x only: onfigure the system interface and media type + * 88E151x only: configure the system interface and media type * (i.e. "RGMII to Copper", 0x0). On the 88E1111, this setting * is configured using I/O pins on the device. * TODO: Make this value configurable via KConfig or DT? diff --git a/drivers/flash/flash_ite_it8xxx2.c b/drivers/flash/flash_ite_it8xxx2.c index fdbe844f73..f27e2f5e65 100644 --- a/drivers/flash/flash_ite_it8xxx2.c +++ b/drivers/flash/flash_ite_it8xxx2.c @@ -60,7 +60,7 @@ struct flash_it8xxx2_dev_data { /* page program command */ #define FLASH_CMD_PAGE_WRITE 0x2 -/* ector erase command (erase size is 4KB) */ +/* sector erase command (erase size is 4KB) */ #define FLASH_CMD_SECTOR_ERASE 0x20 /* command for flash write */ #define FLASH_CMD_WRITE FLASH_CMD_PAGE_WRITE diff --git a/drivers/flash/flash_sam0.c b/drivers/flash/flash_sam0.c index 74e2d45e0e..c90e35ba1d 100644 --- a/drivers/flash/flash_sam0.c +++ b/drivers/flash/flash_sam0.c @@ -291,7 +291,7 @@ static int flash_sam0_write(const struct device *dev, off_t offset, } if ((offset % FLASH_PAGE_SIZE) != 0) { - LOG_WRN("0x%lx: not on a write block boundrary", (long)offset); + LOG_WRN("0x%lx: not on a write block boundary", (long)offset); return -EINVAL; } @@ -352,7 +352,7 @@ static int flash_sam0_erase(const struct device *dev, off_t offset, } if ((offset % ROW_SIZE) != 0) { - LOG_WRN("0x%lx: not on a page boundrary", (long)offset); + LOG_WRN("0x%lx: not on a page boundary", (long)offset); return -EINVAL; } diff --git a/drivers/flash/flash_stm32.h b/drivers/flash/flash_stm32.h index b023347a8d..7576f9a7a1 100644 --- a/drivers/flash/flash_stm32.h +++ b/drivers/flash/flash_stm32.h @@ -52,7 +52,7 @@ struct flash_stm32_priv { #define FLASH_STM32_REGS(dev) (FLASH_STM32_PRIV(dev)->regs) -/* Redefintions of flags and masks to harmonize stm32 series: */ +/* Redefinitions of flags and masks to harmonize stm32 series: */ #if defined(CONFIG_SOC_SERIES_STM32G0X) #if defined(FLASH_FLAG_BSY2) #define FLASH_STM32_SR_BUSY (FLASH_FLAG_BSY1 | FLASH_FLAG_BSY2); diff --git a/drivers/flash/flash_stm32f4x.c b/drivers/flash/flash_stm32f4x.c index 0a6998e647..b524a8fa67 100644 --- a/drivers/flash/flash_stm32f4x.c +++ b/drivers/flash/flash_stm32f4x.c @@ -38,7 +38,7 @@ static inline void flush_cache(FLASH_TypeDef *regs) if (regs->ACR & FLASH_ACR_DCEN) { regs->ACR &= ~FLASH_ACR_DCEN; /* Datasheet: DCRST: Data cache reset - * This bit can be written only when thes data cache is disabled + * This bit can be written only when the data cache is disabled */ regs->ACR |= FLASH_ACR_DCRST; regs->ACR &= ~FLASH_ACR_DCRST; diff --git a/drivers/flash/flash_stm32f7x.c b/drivers/flash/flash_stm32f7x.c index 5cd27badb8..1f82ff6d5a 100644 --- a/drivers/flash/flash_stm32f7x.c +++ b/drivers/flash/flash_stm32f7x.c @@ -27,7 +27,7 @@ static inline void flush_cache(FLASH_TypeDef *regs) { if (regs->ACR & FLASH_ACR_ARTEN) { regs->ACR &= ~FLASH_ACR_ARTEN; - /* Refernce manual: + /* Reference manual: * The ART cache can be flushed only if the ART accelerator * is disabled (ARTEN = 0). */ diff --git a/drivers/flash/flash_stm32g4x.c b/drivers/flash/flash_stm32g4x.c index 7b098739c2..bb442d68e1 100644 --- a/drivers/flash/flash_stm32g4x.c +++ b/drivers/flash/flash_stm32g4x.c @@ -51,7 +51,7 @@ static inline void flush_cache(FLASH_TypeDef *regs) if (regs->ACR & FLASH_ACR_DCEN) { regs->ACR &= ~FLASH_ACR_DCEN; /* Datasheet: DCRST: Data cache reset - * This bit can be written only when thes data cache is disabled + * This bit can be written only when the data cache is disabled */ regs->ACR |= FLASH_ACR_DCRST; regs->ACR &= ~FLASH_ACR_DCRST; diff --git a/drivers/flash/flash_stm32l4x.c b/drivers/flash/flash_stm32l4x.c index fde5a7296c..8d313f06e0 100644 --- a/drivers/flash/flash_stm32l4x.c +++ b/drivers/flash/flash_stm32l4x.c @@ -45,7 +45,7 @@ static inline void flush_cache(FLASH_TypeDef *regs) if (regs->ACR & FLASH_ACR_DCEN) { regs->ACR &= ~FLASH_ACR_DCEN; /* Datasheet: DCRST: Data cache reset - * This bit can be written only when thes data cache is disabled + * This bit can be written only when the data cache is disabled */ regs->ACR |= FLASH_ACR_DCRST; regs->ACR &= ~FLASH_ACR_DCRST; diff --git a/drivers/flash/flash_stm32wbx.c b/drivers/flash/flash_stm32wbx.c index 780fb35a07..c55a8515f2 100644 --- a/drivers/flash/flash_stm32wbx.c +++ b/drivers/flash/flash_stm32wbx.c @@ -50,7 +50,7 @@ static inline void flush_cache(FLASH_TypeDef *regs) if (regs->ACR & FLASH_ACR_DCEN) { regs->ACR &= ~FLASH_ACR_DCEN; /* Datasheet: DCRST: Data cache reset - * This bit can be written only when thes data cache is disabled + * This bit can be written only when the data cache is disabled */ regs->ACR |= FLASH_ACR_DCRST; regs->ACR &= ~FLASH_ACR_DCRST; @@ -145,7 +145,7 @@ static int write_dword(const struct device *dev, off_t offset, uint64_t val) * get/release the semaphore. * * However, keeping that code make it compatible with - * bothmechanisms. + * both mechanisms. * The protection by semaphore is enabled on CPU2 side * with the command SHCI_C2_SetFlashActivityControl() * @@ -281,7 +281,7 @@ static int erase_page(const struct device *dev, uint32_t page) * get/release the semaphore. * * However, keeping that code make it compatible with - * bothmechanisms. + * both mechanisms. * The protection by semaphore is enabled on CPU2 side * with the command SHCI_C2_SetFlashActivityControl() * @@ -418,7 +418,7 @@ int flash_stm32_check_status(const struct device *dev) error = (regs->SR & FLASH_FLAG_SR_ERRORS); error |= (regs->ECCR & FLASH_FLAG_ECCC); - /* Clear systematic Option and Enginneering bits validity error */ + /* Clear systematic Option and Engineering bits validity error */ if (error & FLASH_FLAG_OPTVERR) { regs->SR |= FLASH_FLAG_SR_ERRORS; return 0; diff --git a/drivers/flash/jesd216.c b/drivers/flash/jesd216.c index 93787af7d0..36a38b7089 100644 --- a/drivers/flash/jesd216.c +++ b/drivers/flash/jesd216.c @@ -167,7 +167,7 @@ int jesd216_bfp_erase_type_times(const struct jesd216_param_header *php, * * The entries start with ET1 at bit 4. The low four bits * encode a value that is offset and scaled to produce a - * multipler to convert from typical time to maximum time. + * multiplier to convert from typical time to maximum time. */ unsigned int count = 1 + ((dw10 >> (4 + (idx - 1) * 7)) & 0x1F); unsigned int units = ((dw10 >> (4 + 5 + (idx - 1) * 7)) & 0x03); diff --git a/drivers/flash/soc_flash_nios2_qspi.c b/drivers/flash/soc_flash_nios2_qspi.c index a4f94a080f..3ffb289ac9 100644 --- a/drivers/flash/soc_flash_nios2_qspi.c +++ b/drivers/flash/soc_flash_nios2_qspi.c @@ -233,7 +233,7 @@ static int flash_nios2_qspi_write_block(const struct device *dev, } } - /* Check memcpy lentgh is with in NIOS2_WRITE_BLOCK_SIZE */ + /* Check memcpy length is within NIOS2_WRITE_BLOCK_SIZE */ if (padding + bytes_to_copy > NIOS2_WRITE_BLOCK_SIZE) { rc = -EINVAL; goto qspi_write_block_err; diff --git a/drivers/flash/soc_flash_nrf.h b/drivers/flash/soc_flash_nrf.h index b5e6df0de6..481144b395 100644 --- a/drivers/flash/soc_flash_nrf.h +++ b/drivers/flash/soc_flash_nrf.h @@ -81,7 +81,7 @@ int nrf_flash_sync_init(void); void nrf_flash_sync_set_context(uint32_t duration); /** - * Check if the operation need to be run synchonous with radio. + * Check if the operation need to be run synchronous with radio. * * @retval True if operation need to be run synchronously, otherwise False */ @@ -90,10 +90,10 @@ bool nrf_flash_sync_is_required(void); /** * Execute the flash operation synchronously along the radio operations. * - * Function executes calbacks op_desc->handler() in execution windows according + * Function executes callbacks op_desc->handler() in execution windows according * to timing settings requested by nrf_flash_sync_set_context(). * This routine need to be called the handler as many time as it returns - * FLASH_OP_ONGOING, howewer an operation timeot should be implemented. + * FLASH_OP_ONGOING, however an operation timeout should be implemented. * When the handler() returns FLASH_OP_DONE or an error code, no further * execution windows are needed so function should return as the handler() * finished its operation. @@ -173,7 +173,7 @@ int nrf_flash_sync_exe(struct flash_op_desc *op_desc); /** * Get timestamp and store it in synchronization backend * context data as operation beginning time reference. - * This timestapm will be used by @ref nrf_flash_sync_check_time_limit() + * This timestamp will be used by @ref nrf_flash_sync_check_time_limit() * as the execution window begin reference. */ void nrf_flash_sync_get_timestamp_begin(void); @@ -181,7 +181,7 @@ void nrf_flash_sync_get_timestamp_begin(void); /** * Estimate whether next iteration will fit in time constraints. * This function fetch current timestamp and compare it with the operation - * beginning timestamp referene stored by + * beginning timestamp reference stored by * @ref nrf_flash_sync_get_timestamp_begin() in the synchronization backend * context data. * diff --git a/drivers/flash/soc_flash_nrf_ticker.c b/drivers/flash/soc_flash_nrf_ticker.c index 6d6a8526cc..d90038002d 100644 --- a/drivers/flash/soc_flash_nrf_ticker.c +++ b/drivers/flash/soc_flash_nrf_ticker.c @@ -160,7 +160,7 @@ int nrf_flash_sync_init(void) void nrf_flash_sync_set_context(uint32_t duration) { - /* FLASH_SYNC_SWITCHING_TIME is delay which is allways added by + /* FLASH_SYNC_SWITCHING_TIME is delay which is always added by * the slot calling mechanism */ _ticker_sync_context.interval = duration - FLASH_SYNC_SWITCHING_TIME; diff --git a/drivers/flash/spi_nor.c b/drivers/flash/spi_nor.c index c4bb5ce5e6..db5632c68a 100644 --- a/drivers/flash/spi_nor.c +++ b/drivers/flash/spi_nor.c @@ -31,7 +31,7 @@ LOG_MODULE_REGISTER(spi_nor, CONFIG_FLASH_LOG_LEVEL); * * Some devices support a Deep Power-Down mode which reduces current * to as little as 0.1% of standby. * - * The power reduction from DPD is sufficent to warrant allowing its + * The power reduction from DPD is sufficient to warrant allowing its * use even in cases where Zephyr's device power management is not * available. This is selected through the SPI_NOR_IDLE_IN_DPD * Kconfig option. diff --git a/drivers/gpio/gpio_b91.c b/drivers/gpio/gpio_b91.c index 2eaab62658..573bc28db7 100644 --- a/drivers/gpio/gpio_b91.c +++ b/drivers/gpio/gpio_b91.c @@ -166,7 +166,7 @@ void gpio_b91_irq_set(const struct device *dev, gpio_pin_t pin, uint8_t irq_prioriy = GET_IRQ_PRIORITY(dev); volatile struct gpio_b91_t *gpio = GET_GPIO(dev); - /* Get level and mask bsed on IRQ number */ + /* Get level and mask based on IRQ number */ if (irq_num == IRQ_GPIO) { irq_lvl = FLD_GPIO_IRQ_LVL_GPIO; irq_mask = FLD_GPIO_IRQ_MASK_GPIO; diff --git a/drivers/gpio/gpio_cmsdk_ahb.c b/drivers/gpio/gpio_cmsdk_ahb.c index 32bf11c52a..d696beda22 100644 --- a/drivers/gpio/gpio_cmsdk_ahb.c +++ b/drivers/gpio/gpio_cmsdk_ahb.c @@ -178,7 +178,7 @@ static int gpio_cmsdk_ahb_pin_interrupt_configure(const struct device *dev, cfg->port->inttypeclr = BIT(pin); } - /* Level High or Edge Risising */ + /* Level High or Edge Rising */ if (trig == GPIO_INT_TRIG_HIGH) { cfg->port->intpolset = BIT(pin); } else { diff --git a/drivers/gpio/gpio_dw.c b/drivers/gpio/gpio_dw.c index d8e511083b..2296f429cf 100644 --- a/drivers/gpio/gpio_dw.c +++ b/drivers/gpio/gpio_dw.c @@ -511,7 +511,7 @@ static int gpio_dw_initialize(const struct device *port) return 0; } -/* Bindings to the plaform */ +/* Bindings to the platform */ #ifdef CONFIG_GPIO_DW_0 static void gpio_config_0_irq(const struct device *port); diff --git a/drivers/gpio/gpio_emul.c b/drivers/gpio/gpio_emul.c index 231acafd7e..36b9895c4f 100644 --- a/drivers/gpio/gpio_emul.c +++ b/drivers/gpio/gpio_emul.c @@ -486,7 +486,7 @@ static int gpio_emul_port_set_masked_raw(const struct device *port, k_mutex_unlock(&drv_data->mu); __ASSERT_NO_MSG(rv == 0); - /* for output-wiring, so the user can take action based on ouput */ + /* for output-wiring, so the user can take action based on output */ if (prev_values ^ values) { gpio_fire_callbacks(&drv_data->callbacks, port, mask & ~get_input_pins(port)); } @@ -510,7 +510,7 @@ static int gpio_emul_port_set_bits_raw(const struct device *port, __ASSERT_NO_MSG(rv == 0); k_mutex_unlock(&drv_data->mu); - /* for output-wiring, so the user can take action based on ouput */ + /* for output-wiring, so the user can take action based on output */ gpio_fire_callbacks(&drv_data->callbacks, port, pins & ~get_input_pins(port)); return 0; @@ -530,7 +530,7 @@ static int gpio_emul_port_clear_bits_raw(const struct device *port, rv = gpio_emul_input_set_masked(port, pins & get_input_pins(port), drv_data->output_vals); k_mutex_unlock(&drv_data->mu); __ASSERT_NO_MSG(rv == 0); - /* for output-wiring, so the user can take action based on ouput */ + /* for output-wiring, so the user can take action based on output */ gpio_fire_callbacks(&drv_data->callbacks, port, pins & ~get_input_pins(port)); return 0; @@ -549,7 +549,7 @@ static int gpio_emul_port_toggle_bits(const struct device *port, gpio_port_pins_ drv_data->output_vals, false); k_mutex_unlock(&drv_data->mu); __ASSERT_NO_MSG(rv == 0); - /* for output-wiring, so the user can take action based on ouput */ + /* for output-wiring, so the user can take action based on output */ gpio_fire_callbacks(&drv_data->callbacks, port, pins); return 0; diff --git a/drivers/gpio/gpio_ite_it8xxx2.c b/drivers/gpio/gpio_ite_it8xxx2.c index b79d620501..0dfe7f1ee6 100644 --- a/drivers/gpio/gpio_ite_it8xxx2.c +++ b/drivers/gpio/gpio_ite_it8xxx2.c @@ -18,7 +18,7 @@ #define DT_DRV_COMPAT ite_it8xxx2_gpio /* - * Strcture gpio_ite_cfg is about the setting of gpio + * Structure gpio_ite_cfg is about the setting of gpio * this config will be used at initial time */ struct gpio_ite_cfg { @@ -38,7 +38,7 @@ struct gpio_ite_cfg { uint8_t gpio_irq[8]; }; -/* Strcture gpio_ite_data is about callback function */ +/* Structure gpio_ite_data is about callback function */ struct gpio_ite_data { struct gpio_driver_data common; sys_slist_t callbacks; diff --git a/drivers/gpio/gpio_litex.c b/drivers/gpio/gpio_litex.c index e7bb0bbf05..7109aef312 100644 --- a/drivers/gpio/gpio_litex.c +++ b/drivers/gpio/gpio_litex.c @@ -100,7 +100,7 @@ static int gpio_litex_configure(const struct device *dev, /* Pin cannot be configured as input and output */ return -ENOTSUP; } else if (!(flags & (GPIO_INPUT | GPIO_OUTPUT))) { - /* Pin has to be configuread as input or output */ + /* Pin has to be configured as input or output */ return -ENOTSUP; } diff --git a/drivers/gpio/gpio_lpc11u6x.c b/drivers/gpio/gpio_lpc11u6x.c index 6d5ddf1d26..fcce47ffe5 100644 --- a/drivers/gpio/gpio_lpc11u6x.c +++ b/drivers/gpio/gpio_lpc11u6x.c @@ -120,7 +120,7 @@ static int gpio_lpc11u6x_pin_configure(const struct device *port, /* * PIO0_4 and PIO0_5 are "true" open drain pins muxed with the I2C port * 0. They still can be configured as GPIOs but only in open drain mode - * and with no pull-down or pull-up resitor enabled. + * and with no pull-down or pull-up resistor enabled. */ if (port_num == 0 && (pin == 4 || pin == 5) && ((flags & GPIO_OPEN_DRAIN) == 0 || @@ -330,7 +330,7 @@ static int gpio_lpc11u6x_pin_interrupt_configure(const struct device *port, /* * Because the PINTSEL register only have 6 bits to encode a pin - * number, then PIO2_8 to PIO2_23 can't be attacehd to an interrupt + * number, then PIO2_8 to PIO2_23 can't be attached to an interrupt * line. */ if (config->port_num == 2 && pin > 7) { diff --git a/drivers/gpio/gpio_mchp_xec.c b/drivers/gpio/gpio_mchp_xec.c index ef11b06fbf..a4fa9b51f2 100644 --- a/drivers/gpio/gpio_mchp_xec.c +++ b/drivers/gpio/gpio_mchp_xec.c @@ -173,7 +173,7 @@ static int gpio_xec_pin_interrupt_configure(const struct device *dev, /* Disable interrupt in the EC aggregator */ MCHP_GIRQ_ENCLR(config->girq_id) = BIT(pin); - /* Assemble mask for level/edge triggered interrrupts */ + /* Assemble mask for level/edge triggered interrupts */ mask |= MCHP_GPIO_CTRL_IDET_MASK; if (mode == GPIO_INT_MODE_DISABLED) { diff --git a/drivers/gpio/gpio_mcux_lpc.c b/drivers/gpio/gpio_mcux_lpc.c index 165f28e80d..c2267dc086 100644 --- a/drivers/gpio/gpio_mcux_lpc.c +++ b/drivers/gpio/gpio_mcux_lpc.c @@ -236,7 +236,7 @@ static uint32_t attach_pin_to_isr(uint32_t port, uint32_t pin, uint32_t isr_no) /* Connect trigger sources to PINT */ INPUTMUX_Init(INPUTMUX); - /* Code asumes PIN_INT values are grouped [0..3] and [4..7]. + /* Code assumes PIN_INT values are grouped [0..3] and [4..7]. * This scenario is true in LPC54xxx/LPC55xxx. */ if (isr_no < PIN_INT4_IRQn) { diff --git a/drivers/gpio/gpio_npcx.c b/drivers/gpio/gpio_npcx.c index 598c2e3ad1..3f62aa2e27 100644 --- a/drivers/gpio/gpio_npcx.c +++ b/drivers/gpio/gpio_npcx.c @@ -61,7 +61,7 @@ void npcx_gpio_enable_io_pads(const struct device *dev, int pin) const struct npcx_wui *io_wui = &config->wui_maps[pin]; /* - * If this pin is configurred as a GPIO interrupt source, do not + * If this pin is configured as a GPIO interrupt source, do not * implement bypass. Or ec cannot wake up via this event. */ if (pin < NPCX_GPIO_PORT_PIN_NUM && !npcx_miwu_irq_get_state(io_wui)) { @@ -75,7 +75,7 @@ void npcx_gpio_disable_io_pads(const struct device *dev, int pin) const struct npcx_wui *io_wui = &config->wui_maps[pin]; /* - * If this pin is configurred as a GPIO interrupt source, do not + * If this pin is configured as a GPIO interrupt source, do not * implement bypass. Or ec cannot wake up via this event. */ if (pin < NPCX_GPIO_PORT_PIN_NUM && !npcx_miwu_irq_get_state(io_wui)) { diff --git a/drivers/gpio/gpio_psoc6.c b/drivers/gpio/gpio_psoc6.c index e31a0b3f93..f22de5a6da 100644 --- a/drivers/gpio/gpio_psoc6.c +++ b/drivers/gpio/gpio_psoc6.c @@ -178,7 +178,7 @@ static int gpio_psoc6_pin_interrupt_configure(const struct device *dev, Cy_GPIO_SetInterruptEdge(port, pin, lv_trg); Cy_GPIO_SetInterruptMask(port, pin, is_enabled); /** - * The driver will set 50ns glich free filter for any interrupt. + * The driver will set 50ns glitch free filter for any interrupt. */ Cy_GPIO_SetFilter(port, pin); diff --git a/drivers/gpio/gpio_sam.c b/drivers/gpio/gpio_sam.c index f50c53c58d..51713b580c 100644 --- a/drivers/gpio/gpio_sam.c +++ b/drivers/gpio/gpio_sam.c @@ -67,7 +67,7 @@ static int gpio_sam_port_configure(const struct device *dev, uint32_t mask, return 0; } - /* Setup the pin direcion. */ + /* Setup the pin direction. */ if (flags & GPIO_OUTPUT) { if (flags & GPIO_OUTPUT_INIT_HIGH) { /* Set the pin. */ diff --git a/drivers/gpio/gpio_stm32.c b/drivers/gpio/gpio_stm32.c index 3d9de328c9..6e5406f24d 100644 --- a/drivers/gpio/gpio_stm32.c +++ b/drivers/gpio/gpio_stm32.c @@ -84,7 +84,7 @@ static int gpio_stm32_flags_to_conf(int flags, int *pincfg) *pincfg |= STM32_PINCFG_FLOATING; } } else { - /* Desactivated: Analog */ + /* Deactivated: Analog */ *pincfg = STM32_PINCFG_MODE_ANALOG; } diff --git a/drivers/gpio/gpio_xlnx_axi.c b/drivers/gpio/gpio_xlnx_axi.c index 0442523647..cbd7c36811 100644 --- a/drivers/gpio/gpio_xlnx_axi.c +++ b/drivers/gpio/gpio_xlnx_axi.c @@ -12,7 +12,7 @@ #include "gpio_utils.h" -/* AXI GPIO v2 register offsetd (See Xilinx PG144 for details) */ +/* AXI GPIO v2 register offsets (See Xilinx PG144 for details) */ #define GPIO_DATA_OFFSET 0x0000 #define GPIO_TRI_OFFSET 0x0004 #define GPIO2_DATA_OFFSET 0x0008 diff --git a/drivers/hwinfo/hwinfo_shell.c b/drivers/hwinfo/hwinfo_shell.c index 72ef4aaf39..58cf71077a 100644 --- a/drivers/hwinfo/hwinfo_shell.c +++ b/drivers/hwinfo/hwinfo_shell.c @@ -160,7 +160,7 @@ static int cmd_supported_reset_cause(const struct shell *sh, size_t argc, shell_print(sh, "supported reset causes:"); print_all_reset_causes(sh, cause); } else { - shell_print(sh, "No causes supporte"); + shell_print(sh, "No causes supported"); } return 0; diff --git a/drivers/i2c/Kconfig.rcar b/drivers/i2c/Kconfig.rcar index 9c4185e16b..e997306483 100644 --- a/drivers/i2c/Kconfig.rcar +++ b/drivers/i2c/Kconfig.rcar @@ -1,4 +1,4 @@ -# Reneas R-Car Gen3 I2C configuration options +# Renesas R-Car Gen3 I2C configuration options # Copyright (c) 2021 IoT.bzh # SPDX-License-Identifier: Apache-2.0 diff --git a/drivers/i2c/i2c_npcx_controller.c b/drivers/i2c/i2c_npcx_controller.c index b640c6d853..e26bd1836f 100644 --- a/drivers/i2c/i2c_npcx_controller.c +++ b/drivers/i2c/i2c_npcx_controller.c @@ -143,7 +143,7 @@ struct i2c_ctrl_data { struct i2c_msg *msg; /* cache msg for transaction state machine */ int is_write; /* direction of current msg */ uint8_t *ptr_msg; /* current msg pointer for FIFO read/write */ - uint16_t addr; /* slave address of transcation */ + uint16_t addr; /* slave address of transaction */ uint8_t port; /* current port used the controller */ bool is_configured; /* is port configured? */ const struct npcx_i2c_timing_cfg *ptr_speed_confs; @@ -921,7 +921,7 @@ static int i2c_ctrl_init(const struct device *dev) /* Initialize i2c module */ i2c_ctrl_init_module(dev); - /* initialize mutux and semaphore for i2c/smb controller */ + /* initialize mutex and semaphore for i2c/smb controller */ k_sem_init(&data->lock_sem, 1, 1); k_sem_init(&data->sync_sem, 0, K_SEM_MAX_LIMIT); diff --git a/drivers/i2s/Kconfig.mcux b/drivers/i2s/Kconfig.mcux index 70329ace6b..0b83d73026 100644 --- a/drivers/i2s/Kconfig.mcux +++ b/drivers/i2s/Kconfig.mcux @@ -24,6 +24,6 @@ config I2S_EDMA_BURST_SIZE int "I2S EDMA BURST SIZE" default 2 help - I2S EDMA burse size in byte. + I2S EDMA burst size in bytes. endif # I2S_MCUX_SAI diff --git a/drivers/i2s/i2s_cavs.c b/drivers/i2s/i2s_cavs.c index 0397df6e6e..d36b7c2d36 100644 --- a/drivers/i2s/i2s_cavs.c +++ b/drivers/i2s/i2s_cavs.c @@ -147,7 +147,7 @@ static void i2s_dma_tx_callback(const struct device *dma_dev, void *arg, /* * DMA encountered an error (status != 0) * or - * No bufers in input queue + * No buffers in input queue */ LOG_ERR("DMA status %08x channel %u k_msgq_get ret %d", status, channel, ret); @@ -588,7 +588,7 @@ static void i2s_tx_stream_disable(struct i2s_cavs_dev_data *dev_data, unsigned int key; /* - * Enable transmit undderrun interrupt to allow notification + * Enable transmit underrun interrupt to allow notification * upon transmit FIFO being emptied. * Defer disabling of TX to the underrun processing in ISR */ diff --git a/drivers/i2s/i2s_litex.c b/drivers/i2s/i2s_litex.c index f55d617bfd..88a8584c37 100644 --- a/drivers/i2s/i2s_litex.c +++ b/drivers/i2s/i2s_litex.c @@ -157,7 +157,7 @@ static void i2s_clear_pending_irq(uintptr_t reg) * * @param dst memory destination where fifo data will be copied to * @param size amount of data to be copied - * @param sample_width width of signle sample in bits + * @param sample_width width of single sample in bits * @param channels number of received channels */ static void i2s_copy_from_fifo(uint8_t *dst, size_t size, int sample_width, @@ -169,7 +169,7 @@ static void i2s_copy_from_fifo(uint8_t *dst, size_t size, int sample_width, if (channels == 2) { for (size_t i = 0; i < size / chan_size; i += 4) { /* using sys_read function, as fifo is not a csr, - * but a contignous memory space + * but a contiguous memory space */ *(dst + i) = sys_read32(I2S_RX_FIFO_ADDR); } @@ -210,7 +210,7 @@ static void i2s_copy_from_fifo(uint8_t *dst, size_t size, int sample_width, * * @param src memory from which data will be copied to fifo * @param size amount of data to be copied in bytes - * @param sample_width width of signle sample in bits + * @param sample_width width of single sample in bits * @param channels number of received channels */ static void i2s_copy_to_fifo(uint8_t *src, size_t size, int sample_width, @@ -369,7 +369,7 @@ static int i2s_litex_configure(const struct device *dev, enum i2s_dir dir, (cfg->fifo_depth * (i2s_cfg->word_size / 8)) / channel_div; if (i2s_cfg->block_size < req_buf_s) { - LOG_ERR("not enough space to allocate signle buffer"); + LOG_ERR("not enough space to allocate single buffer"); LOG_ERR("fifo requires at least %i bytes", req_buf_s); return -EINVAL; } else if (i2s_cfg->block_size != req_buf_s) { diff --git a/drivers/i2s/i2s_mcux_flexcomm.c b/drivers/i2s/i2s_mcux_flexcomm.c index 0c9a220e2e..4cd096f932 100644 --- a/drivers/i2s/i2s_mcux_flexcomm.c +++ b/drivers/i2s/i2s_mcux_flexcomm.c @@ -453,7 +453,7 @@ static void i2s_mcux_dma_tx_callback(const struct device *dma_dev, void *arg, /* * DMA encountered an error (status != 0) * or - * No bufers in input queue + * No buffers in input queue */ LOG_DBG("DMA status %08x channel %u k_msgq_get ret %d", status, channel, ret); @@ -591,7 +591,7 @@ static int i2s_mcux_rx_stream_start(const struct device *dev) num_of_bufs = k_mem_slab_num_free_get(stream->cfg.mem_slab); /* - * Need at least two bffers on the RX memory slab for + * Need at least two buffers on the RX memory slab for * reliable DMA reception. */ if (num_of_bufs <= 1) { diff --git a/drivers/i2s/i2s_mcux_sai.c b/drivers/i2s/i2s_mcux_sai.c index 5692b03595..06ec0fe542 100644 --- a/drivers/i2s/i2s_mcux_sai.c +++ b/drivers/i2s/i2s_mcux_sai.c @@ -232,7 +232,7 @@ static void i2s_dma_tx_callback(const struct device *dma_dev, if (ret || status) { /* * DMA encountered an error (status != 0) - * or No bufers in input queue + * or No buffers in input queue */ LOG_ERR("DMA status %08x chan %u get ret %d", status, channel, ret); diff --git a/drivers/ieee802154/ieee802154_b91.c b/drivers/ieee802154/ieee802154_b91.c index f373234c1b..52385713fd 100644 --- a/drivers/ieee802154/ieee802154_b91.c +++ b/drivers/ieee802154/ieee802154_b91.c @@ -313,7 +313,7 @@ static void b91_rf_rx_isr(void) goto exit; } - /* update RSSI and LQI prameters */ + /* update RSSI and LQI parameters */ b91_update_rssi_and_lqi(pkt); /* transfer data to NET stack */ diff --git a/drivers/ieee802154/ieee802154_cc1200.c b/drivers/ieee802154/ieee802154_cc1200.c index 93214be8a7..8514fd34ae 100644 --- a/drivers/ieee802154/ieee802154_cc1200.c +++ b/drivers/ieee802154/ieee802154_cc1200.c @@ -242,7 +242,7 @@ static bool write_reg_freq(const struct device *dev, uint32_t freq) * limits us to unsigned integers of 32 bits. Instead, "slicing" it to * parts that fits in such limit is a solution which is applied below. * - * The original formula being (freqoff is neglegted): + * The original formula being (freqoff is neglected): * Freq = ( RF * Lo_Div * 2^16 ) / Xtal * * RF and Xtal are, from here, expressed in KHz. diff --git a/drivers/ieee802154/ieee802154_dw1000.c b/drivers/ieee802154/ieee802154_dw1000.c index c39c2fe282..d49c707741 100644 --- a/drivers/ieee802154/ieee802154_dw1000.c +++ b/drivers/ieee802154/ieee802154_dw1000.c @@ -439,7 +439,7 @@ static inline void dwt_irq_handle_rx(const struct device *dev, uint32_t sys_stat */ ttcki = sys_get_le32(rx_inf_reg.rx_ttcki); ttcko = sys_get_le32(rx_inf_reg.rx_ttcko) & DWT_RX_TTCKO_RXTOFS_MASK; - /* Traking offset value is a 19-bit signed integer */ + /* Tracking offset value is a 19-bit signed integer */ if (ttcko & BIT(18)) { ttcko |= ~DWT_RX_TTCKO_RXTOFS_MASK; } @@ -1210,7 +1210,7 @@ static int dwt_initialise_dev(const struct device *dev) * - On wake-up load configurations from the AON memory * - preserve sleep mode configuration * - On Wake-up load the LDE microcode - * - When avaiable, on wake-up load the LDO tune value + * - When available, on wake-up load the LDO tune value */ ctx->sleep_mode |= DWT_AON_WCFG_ONW_LDC | DWT_AON_WCFG_PRES_SLEEP; diff --git a/drivers/ieee802154/ieee802154_dw1000_regs.h b/drivers/ieee802154/ieee802154_dw1000_regs.h index c201c1462f..e1766279a6 100644 --- a/drivers/ieee802154/ieee802154_dw1000_regs.h +++ b/drivers/ieee802154/ieee802154_dw1000_regs.h @@ -1483,7 +1483,7 @@ #define DWT_AON_CFG0_SLEEP_TIM_OFFSET 2 #define DWT_AON_CFG1_OFFSET 0x0A #define DWT_AON_CFG1_LEN 2 -/* aceess mask to AON_CFG1 */ +/* access mask to AON_CFG1 */ #define DWT_AON_CFG1_MASK 0x0007 /* This bit enables the sleep counter */ #define DWT_AON_CFG1_SLEEP_CEN 0x0001 diff --git a/drivers/ieee802154/ieee802154_kw41z.c b/drivers/ieee802154/ieee802154_kw41z.c index 372be0a25a..6761105d04 100644 --- a/drivers/ieee802154/ieee802154_kw41z.c +++ b/drivers/ieee802154/ieee802154_kw41z.c @@ -98,7 +98,7 @@ int kw41_dbg_idx; ZLL_IRQSTS_TMR4MSK_MASK) /* - * Clear channel assement types. Note that there is an extra one when + * Clear channel assessment types. Note that there is an extra one when * bit 26 is included for "No CCA before transmit" if we are handling * ACK frames but we will let the hardware handle that automatically. */ @@ -328,7 +328,7 @@ static void kw41z_tmr3_set_timeout(uint32_t timeout) ZLL->PHY_CTRL &= ~ZLL_PHY_CTRL_TMR3CMP_EN_MASK; ZLL->T3CMP = timeout & ZLL_T3CMP_T3CMP_MASK; - /* aknowledge TMR3 IRQ */ + /* acknowledge TMR3 IRQ */ irqsts = ZLL->IRQSTS & BM_ZLL_IRQSTS_TMRxMSK; irqsts |= ZLL_IRQSTS_TMR3IRQ_MASK; ZLL->IRQSTS = irqsts; @@ -350,7 +350,7 @@ static void kw41z_tmr3_disable(void) /* mask TMR3 interrupt (do not change other IRQ status) */ irqsts = ZLL->IRQSTS & BM_ZLL_IRQSTS_TMRxMSK; irqsts |= ZLL_IRQSTS_TMR3MSK_MASK; - /* aknowledge TMR3 IRQ */ + /* acknowledge TMR3 IRQ */ irqsts |= ZLL_IRQSTS_TMR3IRQ_MASK; ZLL->IRQSTS = irqsts; @@ -948,7 +948,7 @@ static inline uint8_t *get_mac(const struct device *dev) /* * Clear bit 0 to ensure it isn't a multicast address and set - * bit 1 to indicate address is locally administrered and may + * bit 1 to indicate address is locally administered and may * not be globally unique. */ kw41z->mac_addr[0] = (kw41z->mac_addr[0] & ~0x01) | 0x02; @@ -1002,7 +1002,7 @@ static int kw41z_init(const struct device *dev) ZLL_RX_FRAME_FILTER_ACK_FT_MASK | ZLL_RX_FRAME_FILTER_BEACON_FT_MASK; - /* Set prescaller to obtain 1 symbol (16us) timebase */ + /* Set prescaler to obtain 1 symbol (16us) timebase */ ZLL->TMR_PRESCALE = 0x05; kw41z_tmr3_disable(); diff --git a/drivers/ieee802154/ieee802154_mcr20a.c b/drivers/ieee802154/ieee802154_mcr20a.c index c3ad663df4..af57116936 100644 --- a/drivers/ieee802154/ieee802154_mcr20a.c +++ b/drivers/ieee802154/ieee802154_mcr20a.c @@ -38,7 +38,7 @@ LOG_MODULE_REGISTER(LOG_MODULE_NAME); #include "MCR20Overwrites.h" /* - * max. TX duraton = (PR + SFD + FLI + PDU + FCS) + * max. TX duration = (PR + SFD + FLI + PDU + FCS) * + RX_warmup + cca + TX_warmup * TODO: Calculate the value from frame length. * Invalid for the SLOTTED mode. diff --git a/drivers/ieee802154/ieee802154_nrf5.c b/drivers/ieee802154/ieee802154_nrf5.c index 6ee25c4825..ee8a154a30 100644 --- a/drivers/ieee802154/ieee802154_nrf5.c +++ b/drivers/ieee802154/ieee802154_nrf5.c @@ -62,7 +62,7 @@ static struct nrf5_802154_data nrf5_data; #define DRX_SLOT_RX 1 /* Actual delayed reception window ID */ #define PH_DURATION 10 /* Duration of the placeholder window, in microseconds */ /* When scheduling the actual delayed reception window an adjustment of - * 800 us is required to match the CSL tranmission timing for unknown + * 800 us is required to match the CSL transmission timing for unknown * reasons. This is a temporary workaround until the root cause is found. */ #define DRX_ADJUST 800 diff --git a/drivers/ieee802154/ieee802154_nrf5.h b/drivers/ieee802154/ieee802154_nrf5.h index 3662eec5f2..aa3686cb48 100644 --- a/drivers/ieee802154/ieee802154_nrf5.h +++ b/drivers/ieee802154/ieee802154_nrf5.h @@ -47,7 +47,7 @@ struct nrf5_802154_data { /* Frame pending bit value in ACK sent for the last received frame. */ bool last_frame_ack_fpb; - /* CCA complete sempahore. Unlocked when CCA is complete. */ + /* CCA complete semaphore. Unlocked when CCA is complete. */ struct k_sem cca_wait; /* CCA result. Holds information whether channel is free or not. */ diff --git a/drivers/ieee802154/ieee802154_rf2xx_iface.h b/drivers/ieee802154/ieee802154_rf2xx_iface.h index 0befb66396..bf9b9b6c1d 100644 --- a/drivers/ieee802154/ieee802154_rf2xx_iface.h +++ b/drivers/ieee802154/ieee802154_rf2xx_iface.h @@ -17,7 +17,7 @@ void rf2xx_iface_phy_rst(const struct device *dev); /** - * @brief Start TX transmition + * @brief Start TX transmission * * @param[in] dev Transceiver device instance */ diff --git a/drivers/ieee802154/ieee802154_rf2xx_regs.h b/drivers/ieee802154/ieee802154_rf2xx_regs.h index 7bf448229e..7f1bd776d1 100644 --- a/drivers/ieee802154/ieee802154_rf2xx_regs.h +++ b/drivers/ieee802154/ieee802154_rf2xx_regs.h @@ -1,4 +1,4 @@ -/* ieee802154_rf2xx_regs.h - ATMEL RF2XX transceicer registers */ +/* ieee802154_rf2xx_regs.h - ATMEL RF2XX transceiver registers */ /* * Copyright (c) 2019 Gerson Fernando Budke diff --git a/drivers/interrupt_controller/Kconfig.npcx b/drivers/interrupt_controller/Kconfig.npcx index 4e15180410..dc1e91bbdc 100644 --- a/drivers/interrupt_controller/Kconfig.npcx +++ b/drivers/interrupt_controller/Kconfig.npcx @@ -9,5 +9,5 @@ config NPCX_MIWU depends on SOC_FAMILY_NPCX help This option enables the Multi-Input Wake-Up Unit (MIWU) driver - for NPCX family ofprocessors. + for NPCX family of processors. This is required for GPIO, RTC, LPC/eSPI interrupt support. diff --git a/drivers/interrupt_controller/intc_gicv3_priv.h b/drivers/interrupt_controller/intc_gicv3_priv.h index 43ef514648..c3b7d249e4 100644 --- a/drivers/interrupt_controller/intc_gicv3_priv.h +++ b/drivers/interrupt_controller/intc_gicv3_priv.h @@ -43,7 +43,7 @@ #define GICR_PROPBASER 0x0070 #define GICR_PENDBASER 0x0078 -/* Register bit definations */ +/* Register bit definitions */ /* GICD_CTLR Interrupt group definitions */ #define GICD_CTLR_ENABLE_G0 0 diff --git a/drivers/interrupt_controller/intc_mchp_ecia_xec.c b/drivers/interrupt_controller/intc_mchp_ecia_xec.c index 7e9ed693c7..485d4959ec 100644 --- a/drivers/interrupt_controller/intc_mchp_ecia_xec.c +++ b/drivers/interrupt_controller/intc_mchp_ecia_xec.c @@ -76,7 +76,7 @@ struct xec_girq_src_data { ((struct xec_girq_src_data *const)(girq_dev)->data) /* - * Enable/disable specified GIRQ's aggregated output. Aggrated output is the + * Enable/disable specified GIRQ's aggregated output. Aggregated output is the * bit-wise or of all the GIRQ's result bits. */ void mchp_xec_ecia_girq_aggr_en(uint8_t girq_num, uint8_t enable) @@ -229,7 +229,7 @@ uint32_t mchp_xec_ecia_info_girq_result(int ecia_info) /* * Clear NVIC pending status given GIRQ source information encoded by macro - * MCHP_XEC_ECIA. For aggregated only sources the ecoding sets direct NVIC + * MCHP_XEC_ECIA. For aggregated only sources the encoding sets direct NVIC * number equal to aggregated NVIC number. */ void mchp_xec_ecia_info_nvic_clr_pend(int ecia_info) diff --git a/drivers/interrupt_controller/intc_miwu.c b/drivers/interrupt_controller/intc_miwu.c index 8b954d870f..9285925f00 100644 --- a/drivers/interrupt_controller/intc_miwu.c +++ b/drivers/interrupt_controller/intc_miwu.c @@ -18,7 +18,7 @@ * MIWU2. Together, they support a total of over 140 internal and/or external * wake-up input (WUI) sources. * - * This driver uses device tree files to present the relationship bewteen + * This driver uses device tree files to present the relationship between * MIWU and the other devices in different npcx series. For npcx7 series, * it include: * 1. npcxn-miwus-wui-map.dtsi: it presents relationship between wake-up inputs @@ -143,7 +143,7 @@ static void intc_miwu_isr_pri(int wui_table, int wui_group) if (mask & BIT(wui_bit)) { LOG_DBG("miwu_isr %d %d %d!\n", wui_table, wui_group, wui_bit); - /* Dispatch registed gpio and generic isrs */ + /* Dispatch registered gpio and generic isrs */ intc_miwu_dispatch_gpio_isr(wui_table, wui_group, wui_bit); intc_miwu_dispatch_generic_isr(wui_table, diff --git a/drivers/ipm/ipm_stm32_ipcc.c b/drivers/ipm/ipm_stm32_ipcc.c index f1a9e4c6dc..7b913f52be 100644 --- a/drivers/ipm/ipm_stm32_ipcc.c +++ b/drivers/ipm/ipm_stm32_ipcc.c @@ -120,7 +120,7 @@ static void stm32_ipcc_mailbox_rx_isr(const struct device *dev) /* Only one MAILBOX, id is unused and set to 0 */ data->callback(dev, data->user_data, i, &value); } - /* clear status to acknoledge message reception */ + /* clear status to acknowledge message reception */ IPCC_ClearFlag_CHx(cfg->ipcc, i); IPCC_EnableReceiveChannel(cfg->ipcc, i); } @@ -157,7 +157,7 @@ static int stm32_ipcc_mailbox_ipm_send(const struct device *dev, int wait, ARG_UNUSED(wait); ARG_UNUSED(buff); - /* No data transmition, only doorbell */ + /* No data transmission, only doorbell */ if (size) { return -EMSGSIZE; } diff --git a/drivers/kscan/kscan_ite_it8xxx2.c b/drivers/kscan/kscan_ite_it8xxx2.c index 1fc025a515..8e0e5ee9a2 100644 --- a/drivers/kscan/kscan_ite_it8xxx2.c +++ b/drivers/kscan/kscan_ite_it8xxx2.c @@ -130,7 +130,7 @@ static uint8_t read_keyboard_row(const struct device *dev) static bool is_matrix_ghosting(const uint8_t *state) { /* - * Matrix keyboard designs are suceptible to ghosting. + * Matrix keyboard designs are susceptible to ghosting. * An extra key appears to be pressed when 3 keys * belonging to the same block are pressed. * for example, in the following block diff --git a/drivers/kscan/kscan_mchp_xec.c b/drivers/kscan/kscan_mchp_xec.c index 661ffd9abb..a5ca6d5bbb 100644 --- a/drivers/kscan/kscan_mchp_xec.c +++ b/drivers/kscan/kscan_mchp_xec.c @@ -162,7 +162,7 @@ static uint8_t read_keyboard_row(const struct device *dev) static bool is_matrix_ghosting(const uint8_t *state) { - /* matrix keyboard designs are suceptible to ghosting. + /* matrix keyboard designs are susceptible to ghosting. * An extra key appears to be pressed when 3 keys * belonging to the same block are pressed. * for example, in the following block @@ -186,7 +186,7 @@ static bool is_matrix_ghosting(const uint8_t *state) * flowing from a key which was never pressed. in our * case, current flowing is a bit set to 1 as we * flipped the bits when the matrix was scanned. - * now we or the colums using z&(z-1) which is + * now we or the columns using z&(z-1) which is * non-zero only if z has more than one bit set. */ uint8_t common_row_bits = state[c] & state[c_n]; diff --git a/drivers/led/lp5562.c b/drivers/led/lp5562.c index 53609cb702..3ef8fe48d0 100644 --- a/drivers/led/lp5562.c +++ b/drivers/led/lp5562.c @@ -66,7 +66,7 @@ LOG_MODULE_REGISTER(lp5562); /* * The wait command has six bits for the number of steps (max 63) with up to * 15.6ms per step if the prescaler is set to 1. We round the step length - * however to 16ms for easier handliung, so the maximum blinking period is + * however to 16ms for easier handling, so the maximum blinking period is * therefore (16 * 63) = 1008ms. We round it down to 1000ms to be on the safe * side. */ diff --git a/drivers/led/pca9633.c b/drivers/led/pca9633.c index 73d74e01f8..339ead8907 100644 --- a/drivers/led/pca9633.c +++ b/drivers/led/pca9633.c @@ -103,7 +103,7 @@ static int pca9633_led_blink(const struct device *dev, uint32_t led, return -EIO; } - /* Select the GRPPWM source to drive the LED outpout */ + /* Select the GRPPWM source to drive the LED output */ if (i2c_reg_update_byte_dt(&config->i2c, PCA9633_LEDOUT, PCA9633_MASK << (led << 1), diff --git a/drivers/led/tlc59108.c b/drivers/led/tlc59108.c index 84b63bf46a..0fe6fb8286 100644 --- a/drivers/led/tlc59108.c +++ b/drivers/led/tlc59108.c @@ -140,7 +140,7 @@ static int tlc59108_led_blink(const struct device *dev, uint32_t led, return -EIO; } - /* Select the GRPPWM source to drive the LED outpout */ + /* Select the GRPPWM source to drive the LED output */ return tlc59108_set_ledout(dev, led, TLC59108_LED_GRP_PWM); } diff --git a/drivers/modem/Kconfig.simcom-sim7080 b/drivers/modem/Kconfig.simcom-sim7080 index d70aa756b0..e8cee8f5fc 100644 --- a/drivers/modem/Kconfig.simcom-sim7080 +++ b/drivers/modem/Kconfig.simcom-sim7080 @@ -33,7 +33,7 @@ config MODEM_SIMCOM_SIM7080_INIT_PRIORITY int "simcom sim7080 driver init priority" default 80 help - simcom sim7080 druver initialization priority. + simcom sim7080 driver initialization priority. config MODEM_SIMCOM_SIM7080_LTE_BANDS string "LTE bands the driver can use" diff --git a/drivers/modem/hl7800.c b/drivers/modem/hl7800.c index c4cae66cef..9f01f33bdf 100644 --- a/drivers/modem/hl7800.c +++ b/drivers/modem/hl7800.c @@ -384,7 +384,7 @@ static const char TIME_STRING_FORMAT[] = "\"yy/MM/dd,hh:mm:ss?zz\""; } while (0) /* Complex has "no_id_resp" set to true because the sending command - * is the command used to process the respone + * is the command used to process the response */ #define SEND_COMPLEX_AT_CMD(c) \ do { \ @@ -5275,7 +5275,7 @@ reboot: } /* Query PDP authentication context to get APN username/password. - * Temporary Workaroud - Ignore error + * Temporary Workaround - Ignore error * On some modules this is returning an error and the response data. */ SEND_AT_CMD_IGNORE_ERROR("AT+WPPP?"); @@ -5435,7 +5435,7 @@ static int connect_TCP_socket(struct hl7800_socket *sock) goto done; } /* Now wait for +KTCP_IND or +KTCP_NOTIF to ensure - * the connection succeded or failed. + * the connection succeeded or failed. */ ret = k_sem_take(&sock->sock_send_sem, MDM_CMD_CONN_TIMEOUT); if (ret == 0) { diff --git a/drivers/modem/modem_cmd_handler.c b/drivers/modem/modem_cmd_handler.c index d98cf5c7a6..5b5bd31be9 100644 --- a/drivers/modem/modem_cmd_handler.c +++ b/drivers/modem/modem_cmd_handler.c @@ -151,7 +151,7 @@ static int parse_params(struct modem_cmd_handler_data *data, size_t match_len, argv[*argc] = &data->match_buf[begin]; /* end parameter with NUL char * NOTE: if this is at the end of match_len will probably - * be overwriting a NUL that's already ther + * be overwriting a NUL that's already there */ data->match_buf[end] = '\0'; (*argc)++; diff --git a/drivers/modem/quectel-bg9x.c b/drivers/modem/quectel-bg9x.c index f38a756bdd..626a3e54a1 100644 --- a/drivers/modem/quectel-bg9x.c +++ b/drivers/modem/quectel-bg9x.c @@ -930,7 +930,7 @@ static const struct setup_cmd setup_cmds[] = { /* Func: modem_pdp_context_active * Desc: This helper function is called from modem_setup, and is * used to open the PDP context. If there is trouble activating the - * PDP context, we try to deactive and reactive MDM_PDP_ACT_RETRY_COUNT times. + * PDP context, we try to deactivate and reactivate MDM_PDP_ACT_RETRY_COUNT times. * If it fails, we return an error. */ static int modem_pdp_context_activate(void) diff --git a/drivers/modem/simcom-sim7080.c b/drivers/modem/simcom-sim7080.c index dc9c4e5a26..b81acd9954 100644 --- a/drivers/modem/simcom-sim7080.c +++ b/drivers/modem/simcom-sim7080.c @@ -918,7 +918,7 @@ MODEM_CMD_DEFINE(on_urc_ftpget) } /* - * Read manufacurer identification. + * Read manufacturer identification. */ MODEM_CMD_DEFINE(on_cmd_cgmi) { @@ -1283,7 +1283,7 @@ static int modem_autobaud(void) * Get the next parameter from the gnss phrase. * * @param src The source string supported on first call. - * @param delim The delimeter of the parameter list. + * @param delim The delimiter of the parameter list. * @param saveptr Pointer for subsequent parses. * @return On success a pointer to the parameter. On failure * or end of string NULL is returned. @@ -1873,7 +1873,7 @@ static int mdm_decode_pdu(const char *pdu, size_t pdu_len, struct sim7080_sms *t return -1; } - /* read protocol idenifier */ + /* read protocol identifier */ target_buf->tp_pid = mdm_pdu_read_byte(pdu, index++); if (index >= pdu_len) { diff --git a/drivers/modem/ublox-sara-r4.c b/drivers/modem/ublox-sara-r4.c index 381187442b..912749169d 100644 --- a/drivers/modem/ublox-sara-r4.c +++ b/drivers/modem/ublox-sara-r4.c @@ -2053,7 +2053,7 @@ static int net_offload_dummy_get(sa_family_t family, return -ENOTSUP; } -/* placeholders, until Zepyr IP stack updated to handle a NULL net_offload */ +/* placeholders, until Zephyr IP stack updated to handle a NULL net_offload */ static struct net_offload modem_net_offload = { .get = net_offload_dummy_get, }; diff --git a/drivers/modem/wncm14a2a.c b/drivers/modem/wncm14a2a.c index ef2b86de41..5af634ced6 100644 --- a/drivers/modem/wncm14a2a.c +++ b/drivers/modem/wncm14a2a.c @@ -1251,7 +1251,7 @@ static int modem_pin_init(void) pinconfig[SHLD_3V3_1V8_SIG_TRANS_ENA].pin, SHLD_3V3_1V8_SIG_TRANS_DISABLED); - /* While the level translator is disabled and ouptut pins + /* While the level translator is disabled and output pins * are tristated, make sure the inputs are in the same state * as the WNC Module pins so that when the level translator is * enabled, there are no differences. diff --git a/drivers/neural_net/intel_gna.c b/drivers/neural_net/intel_gna.c index 35f18f2b71..e55bcf2b06 100644 --- a/drivers/neural_net/intel_gna.c +++ b/drivers/neural_net/intel_gna.c @@ -82,7 +82,7 @@ static void intel_gna_interrupt_handler(const struct device *dev) } else { SOC_DCACHE_INVALIDATE(pending_req.model->output, pending_req.output_len); - /* copy output from the model buffer to applciation buffer */ + /* copy output from the model buffer to application buffer */ memcpy(pending_req.output, pending_req.model->output, pending_req.output_len); pending_resp.response.output = pending_req.output; diff --git a/drivers/pcie/endpoint/pcie_ep_common.c b/drivers/pcie/endpoint/pcie_ep_common.c index 5a8a90d4d3..0a79946df8 100644 --- a/drivers/pcie/endpoint/pcie_ep_common.c +++ b/drivers/pcie/endpoint/pcie_ep_common.c @@ -126,11 +126,11 @@ int pcie_ep_xfer_data_memcpy(const struct device *dev, uint64_t pcie_addr, * So, even though translation window size is good enough for * size of Host buffer, we may not be able to map entire Host buffer * to given outbound window in one time, and we may need to map - * ramaining size and complete remaining data transfer + * remaining size and complete remaining data transfer */ pcie_ep_unmap_addr(dev, mapped_addr); /* unmap previous Host buffer */ - xfer_size = mapped_size; /* save already tranferred data size */ + xfer_size = mapped_size; /* save already transferred data size */ unmapped_size = size - mapped_size; mapped_size = pcie_ep_map_addr(dev, pcie_addr + xfer_size, @@ -221,9 +221,9 @@ int pcie_ep_xfer_data_dma(const struct device *dev, uint64_t pcie_addr, return 0; } - /* map ramaining size and complete remaining data transfer */ + /* map remaining size and complete remaining data transfer */ - xfer_size = mapped_size; /* save already tranferred data size */ + xfer_size = mapped_size; /* save already transferred data size */ unmapped_size = size - mapped_size; mapped_size = pcie_ep_map_addr(dev, pcie_addr + xfer_size, diff --git a/drivers/ps2/ps2_mchp_xec.c b/drivers/ps2/ps2_mchp_xec.c index c316ce2ce1..9618ff7ca4 100644 --- a/drivers/ps2/ps2_mchp_xec.c +++ b/drivers/ps2/ps2_mchp_xec.c @@ -174,7 +174,7 @@ static void ps2_xec_isr(const struct device *dev) } /* The control register reverts to RX automatically after - * transmiting the data + * transmitting the data */ base->CTRL = MCHP_PS2_CTRL_EN; } diff --git a/drivers/ps2/ps2_npcx_channel.c b/drivers/ps2/ps2_npcx_channel.c index 00ae916692..9fc6057007 100644 --- a/drivers/ps2/ps2_npcx_channel.c +++ b/drivers/ps2/ps2_npcx_channel.c @@ -11,7 +11,7 @@ * @brief Nuvoton NPCX PS/2 driver * * This file contains the driver of PS/2 buses (channels) which provides the - * connection between Zephyr PS/2 API fucntions and NPCX PS/2 controller driver + * connection between Zephyr PS/2 API functions and NPCX PS/2 controller driver * to support PS/2 transactions. * */ diff --git a/drivers/ps2/ps2_npcx_controller.h b/drivers/ps2/ps2_npcx_controller.h index 10eed41bd1..d8e57e8823 100644 --- a/drivers/ps2/ps2_npcx_controller.h +++ b/drivers/ps2/ps2_npcx_controller.h @@ -21,7 +21,7 @@ extern "C" { * @param value the data write to the PS/2 device. * * @retval 0 If successful. - * @retval -EINVAL Channel ID is invlaid. + * @retval -EINVAL Channel ID is invalid. * @retval -ETIMEDOUT Timeout occurred for a PS/2 write transaction. */ int ps2_npcx_ctrl_write(const struct device *dev, uint8_t channel_id, @@ -35,7 +35,7 @@ int ps2_npcx_ctrl_write(const struct device *dev, uint8_t channel_id, * @param enable True to enable channel, false to disable channel. * * @retval 0 If successful. - * @retval -EINVAL Channel ID is invlaid. + * @retval -EINVAL Channel ID is invalid. */ int ps2_npcx_ctrl_enable_interface(const struct device *dev, uint8_t channel, bool enable); diff --git a/drivers/pwm/pwm_litex.c b/drivers/pwm/pwm_litex.c index e684fdc2a7..e81b098af6 100644 --- a/drivers/pwm/pwm_litex.c +++ b/drivers/pwm/pwm_litex.c @@ -84,7 +84,7 @@ static const struct pwm_driver_api pwm_litex_driver_api = { /* Device Instantiation */ -/* LiteX regisers use only first byte from 4-bytes register, that's why they +/* LiteX registers use only first byte from 4-bytes register, that's why they * occupy larger space in memory. We need to know the size that is * actually used, that is why the register size from dts is divided by 4. */ diff --git a/drivers/pwm/pwm_mchp_xec.c b/drivers/pwm/pwm_mchp_xec.c index 3b639f54fe..88aa29937e 100644 --- a/drivers/pwm/pwm_mchp_xec.c +++ b/drivers/pwm/pwm_mchp_xec.c @@ -32,7 +32,7 @@ LOG_MODULE_REGISTER(pwm_mchp_xec, CONFIG_PWM_LOG_LEVEL); #define XEC_PWM_MAX_LOW_CLK_FREQ \ (MCHP_PWM_INPUT_FREQ_LO / XEC_PWM_LOWEST_ON_OFF) /* Precision factor for frequency calculation - * To mitigate frequency comparision up to the firt digit after 0. + * To mitigate frequency comparision up to the first digit after 0. */ #define XEC_PWM_FREQ_PF 10U /* Precision factor for DC calculation diff --git a/drivers/pwm/pwm_npcx.c b/drivers/pwm/pwm_npcx.c index e20dc91f22..7f09b9a5a4 100644 --- a/drivers/pwm/pwm_npcx.c +++ b/drivers/pwm/pwm_npcx.c @@ -190,7 +190,7 @@ static int pwm_npcx_init(const struct device *dev) int ret; /* - * NPCX PWM modulee mixes byte and word registers together. Make sure + * NPCX PWM module mixes byte and word registers together. Make sure * word reg access via structure won't break into two byte reg accesses * unexpectedly by toolchains options or attributes. If so, stall here. */ diff --git a/drivers/pwm/pwm_nrfx.c b/drivers/pwm/pwm_nrfx.c index 7f931f5382..a3f0c54a44 100644 --- a/drivers/pwm/pwm_nrfx.c +++ b/drivers/pwm/pwm_nrfx.c @@ -142,7 +142,7 @@ static int pwm_nrfx_pin_set(const struct device *dev, uint32_t pwm, return -ENOTSUP; } - /* Check if PWM pin is one of the predefiend DTS config pins. + /* Check if PWM pin is one of the predefined DTS config pins. * Return its array index (channel number), * or NRF_PWM_CHANNEL_COUNT if not initialized through DTS. */ diff --git a/drivers/sensor/adxl372/adxl372.c b/drivers/sensor/adxl372/adxl372.c index 61bab73e7c..c72c7bd3cf 100644 --- a/drivers/sensor/adxl372/adxl372.c +++ b/drivers/sensor/adxl372/adxl372.c @@ -275,7 +275,7 @@ static int adxl372_set_bandwidth(const struct device *dev, } /** - * Select the desired high-pass filter coner. + * Select the desired high-pass filter corner. * @param dev - The device structure. * @param bw - bandwidth. * Accepted values: ADXL372_HPF_CORNER_0 diff --git a/drivers/sensor/amg88xx/amg88xx.h b/drivers/sensor/amg88xx/amg88xx.h index e15d1a5958..abff46e881 100644 --- a/drivers/sensor/amg88xx/amg88xx.h +++ b/drivers/sensor/amg88xx/amg88xx.h @@ -17,7 +17,7 @@ #define AMG88XX_INTC 0x03 /* Setting interrupt control register */ #define AMG88XX_STAT 0x04 /* Status register */ #define AMG88XX_SCLR 0x05 /* Status clear register */ -#define AMG88XX_AVE 0x07 /* Setting verage register */ +#define AMG88XX_AVE 0x07 /* Setting average register */ #define AMG88XX_INTHL 0x08 /* Interrupt level upper limit [7:0] */ #define AMG88XX_INTHH 0x09 /* Interrupt level upper limit [11:8] */ #define AMG88XX_INTLL 0x0a /* Interrupt level lower limit [7:0] */ @@ -38,7 +38,7 @@ #define AMG88XX_OUTPUT_BASE 0x80 /* Base address for the output values */ #define AMG88XX_PCLT_NORMAL_MODE 0x00 -#define AMG88XX_PCLT_SLEEEP_MODE 0x10 +#define AMG88XX_PCLT_SLEEP_MODE 0x10 #define AMG88XX_PCLT_STAND_BY_60S_MODE 0x20 #define AMG88XX_PCLT_STAND_BY_10S_MODE 0x21 diff --git a/drivers/sensor/bma280/bma280.h b/drivers/sensor/bma280/bma280.h index e0f0ff0eaf..08176b32cd 100644 --- a/drivers/sensor/bma280/bma280.h +++ b/drivers/sensor/bma280/bma280.h @@ -41,7 +41,7 @@ #endif /* - * BMA280_PMU_FULL_RANGE measured in mili-m/s^2 instead + * BMA280_PMU_FULL_RANGE measured in milli-m/s^2 instead * of m/s^2 to avoid using struct sensor_value for it */ #define BMA280_REG_PMU_RANGE 0x0F diff --git a/drivers/sensor/bmi160/bmi160.c b/drivers/sensor/bmi160/bmi160.c index 4b8e76cf22..778d66829d 100644 --- a/drivers/sensor/bmi160/bmi160.c +++ b/drivers/sensor/bmi160/bmi160.c @@ -424,7 +424,7 @@ static int bmi160_acc_ofs_set(const struct device *dev, } for (i = 0; i < BMI160_AXES; i++, ofs++) { - /* convert ofset to micro m/s^2 */ + /* convert offset to micro m/s^2 */ ofs_u = ofs->val1 * 1000000ULL + ofs->val2; reg_val = ofs_u / BMI160_ACC_OFS_LSB; diff --git a/drivers/sensor/bmp388/bmp388.c b/drivers/sensor/bmp388/bmp388.c index 690dd31d36..bc5ea1c58f 100644 --- a/drivers/sensor/bmp388/bmp388.c +++ b/drivers/sensor/bmp388/bmp388.c @@ -483,7 +483,7 @@ static uint64_t bmp388_compensate_press(struct bmp388_data *data) comp_press = (((uint64_t)partial_data4 * 25) / (uint64_t)1099511627776); - /* returned value is in hundreths of Pa. */ + /* returned value is in hundredths of Pa. */ return comp_press; } @@ -498,7 +498,7 @@ static int bmp388_press_channel_get(const struct device *dev, uint64_t tmp = bmp388_compensate_press(data); - /* tmp is in hundreths of Pa. Convert to kPa as specified in sensor + /* tmp is in hundredths of Pa. Convert to kPa as specified in sensor * interface. */ val->val1 = tmp / 100000; diff --git a/drivers/sensor/bq274xx/bq274xx.c b/drivers/sensor/bq274xx/bq274xx.c index b8f46054d6..2f09d15b8b 100644 --- a/drivers/sensor/bq274xx/bq274xx.c +++ b/drivers/sensor/bq274xx/bq274xx.c @@ -530,7 +530,7 @@ static int bq274xx_gauge_configure(const struct device *dev) BQ274XX_EXTENDED_BLOCKDATA_DESIGN_CAP_LOW, designcap_lsb); if (status < 0) { - LOG_ERR("Failed to erite designCAP LSB"); + LOG_ERR("Failed to write designCAP LSB"); return -EIO; } @@ -546,7 +546,7 @@ static int bq274xx_gauge_configure(const struct device *dev) BQ274XX_EXTENDED_BLOCKDATA_DESIGN_ENR_LOW, designenergy_lsb); if (status < 0) { - LOG_ERR("Failed to erite designEnergy LSB"); + LOG_ERR("Failed to write designEnergy LSB"); return -EIO; } @@ -580,7 +580,7 @@ static int bq274xx_gauge_configure(const struct device *dev) BQ274XX_EXTENDED_BLOCKDATA_TAPERRATE_LOW, taperrate_lsb); if (status < 0) { - LOG_ERR("Failed to erite taperRate LSB"); + LOG_ERR("Failed to write taperRate LSB"); return -EIO; } diff --git a/drivers/sensor/dht/Kconfig b/drivers/sensor/dht/Kconfig index a95230c49b..e75258b43f 100644 --- a/drivers/sensor/dht/Kconfig +++ b/drivers/sensor/dht/Kconfig @@ -1,4 +1,4 @@ -# DHT Temperature and Himidity Sensor configuration options +# DHT Temperature and Humidity Sensor configuration options # Copyright (c) 2016 Intel Corporation # SPDX-License-Identifier: Apache-2.0 diff --git a/drivers/sensor/dps310/dps310.c b/drivers/sensor/dps310/dps310.c index 24d344e88b..6ab25f5639 100644 --- a/drivers/sensor/dps310/dps310.c +++ b/drivers/sensor/dps310/dps310.c @@ -419,7 +419,7 @@ static void dps310_scale_temperature(int32_t tmp_raw, struct dps310_data *data) /* first term, rescaled to micro °C */ int32_t tmp_p0 = (1000000 / 2) * comp->c0; - /* second term, rescaled to mirco °C */ + /* second term, rescaled to micro °C */ int32_t tmp_p1 = (((int64_t)1000000) * comp->c1 * tmp_raw) / IFX_DPS310_SF_TMP; diff --git a/drivers/sensor/fdc2x1x/fdc2x1x.c b/drivers/sensor/fdc2x1x/fdc2x1x.c index 106052a858..85de44c78e 100644 --- a/drivers/sensor/fdc2x1x/fdc2x1x.c +++ b/drivers/sensor/fdc2x1x/fdc2x1x.c @@ -256,7 +256,7 @@ static int fdc2x1x_set_offset(const struct device *dev, /** * Set the Auto-Scan Mode. * @param dev - The device structure. - * @param en - Enable/disable auto-acan mode. + * @param en - Enable/disable auto-scan mode. * @return 0 in case of success, negative error code otherwise. */ static int fdc2x1x_set_autoscan_mode(const struct device *dev, bool en) @@ -874,7 +874,7 @@ static int fdc2x1x_probe(const struct device *dev) } if (man_id != FDC2X1X_MANUFACTURER_ID_VAL) { - LOG_ERR("Wrong manufaturer id"); + LOG_ERR("Wrong manufacturer id"); return -ENODEV; } diff --git a/drivers/sensor/hmc5883l/hmc5883l.c b/drivers/sensor/hmc5883l/hmc5883l.c index bc50869581..d60256f13c 100644 --- a/drivers/sensor/hmc5883l/hmc5883l.c +++ b/drivers/sensor/hmc5883l/hmc5883l.c @@ -65,7 +65,7 @@ static int hmc5883l_sample_fetch(const struct device *dev, if (i2c_burst_read(drv_data->i2c, DT_INST_REG_ADDR(0), HMC5883L_REG_DATA_START, (uint8_t *)buf, 6) < 0) { - LOG_ERR("Failed to fetch megnetometer sample."); + LOG_ERR("Failed to fetch magnetometer sample."); return -EIO; } diff --git a/drivers/sensor/i3g4250d/i3g4250d.c b/drivers/sensor/i3g4250d/i3g4250d.c index d41990579c..11d2a43a67 100644 --- a/drivers/sensor/i3g4250d/i3g4250d.c +++ b/drivers/sensor/i3g4250d/i3g4250d.c @@ -181,7 +181,7 @@ static int i3g4250d_init(const struct device *dev) } if (wai != I3G4250D_ID) { - LOG_ERR("Inavild chip ID: %02x", wai); + LOG_ERR("Invalid chip ID: %02x", wai); return -EIO; } diff --git a/drivers/sensor/iis2dh/iis2dh.h b/drivers/sensor/iis2dh/iis2dh.h index 5c55bddf07..870a78a3a8 100644 --- a/drivers/sensor/iis2dh/iis2dh.h +++ b/drivers/sensor/iis2dh/iis2dh.h @@ -38,7 +38,7 @@ * @bus_name: Pointer to bus master identifier. * @pm: Power mode (lis2dh_powermode). * @int_gpio_port: Pointer to GPIO PORT identifier. - * @int_gpio_pin: GPIO pin number connecter to sensor int pin. + * @int_gpio_pin: GPIO pin number connected to sensor int pin. */ struct iis2dh_device_config { const char *bus_name; diff --git a/drivers/sensor/iis2dlpc/iis2dlpc.h b/drivers/sensor/iis2dlpc/iis2dlpc.h index ea2d4c6f87..093a8ff2e2 100644 --- a/drivers/sensor/iis2dlpc/iis2dlpc.h +++ b/drivers/sensor/iis2dlpc/iis2dlpc.h @@ -54,7 +54,7 @@ * @bus_name: Pointer to bus master identifier. * @pm: Power mode (lis2dh_powermode). * @irq_dev_name: Pointer to GPIO PORT identifier. - * @irq_pin: GPIO pin number connecter to sensor int pin. + * @irq_pin: GPIO pin number connected to sensor int pin. * @drdy_int: Sensor drdy int (int1/int2). */ struct iis2dlpc_config { diff --git a/drivers/sensor/lis2mdl/lis2mdl.c b/drivers/sensor/lis2mdl/lis2mdl.c index e07ad94a5e..0817eae32f 100644 --- a/drivers/sensor/lis2mdl/lis2mdl.c +++ b/drivers/sensor/lis2mdl/lis2mdl.c @@ -238,7 +238,7 @@ static int lis2mdl_sample_fetch_mag(const struct device *dev) * cancellation is enabled in the single mode. Then the * average of the first measurement done above and this * one would be the final value. This process is not - * needed in continuous mode since it has beed taken + * needed in continuous mode since it has been taken * care by lis2mdl itself automatically. Please refer * to the application note for more details. */ @@ -398,7 +398,7 @@ static int lis2mdl_init(const struct device *dev) rc = lis2mdl_set_rst_sensor_single_set(ctx, PROPERTY_ENABLE); if (rc) { - LOG_ERR("Set offset cancelaltion failed"); + LOG_ERR("Set offset cancellation failed"); return rc; } } diff --git a/drivers/sensor/lis3mdl/lis3mdl.c b/drivers/sensor/lis3mdl/lis3mdl.c index f9534eb4e2..c8461ff342 100644 --- a/drivers/sensor/lis3mdl/lis3mdl.c +++ b/drivers/sensor/lis3mdl/lis3mdl.c @@ -33,7 +33,7 @@ static int lis3mdl_channel_get(const struct device *dev, struct lis3mdl_data *drv_data = dev->data; if (chan == SENSOR_CHAN_MAGN_XYZ) { - /* magn_val = sample / mang_gain */ + /* magn_val = sample / magn_gain */ lis3mdl_convert(val, drv_data->x_sample, lis3mdl_magn_gain[LIS3MDL_FS_IDX]); lis3mdl_convert(val + 1, drv_data->y_sample, @@ -68,7 +68,7 @@ int lis3mdl_sample_fetch(const struct device *dev, enum sensor_channel chan) /* fetch magnetometer sample */ if (i2c_burst_read(drv_data->i2c, DT_INST_REG_ADDR(0), LIS3MDL_REG_SAMPLE_START, (uint8_t *)buf, 8) < 0) { - LOG_DBG("Failed to fetch megnetometer sample."); + LOG_DBG("Failed to fetch magnetometer sample."); return -EIO; } diff --git a/drivers/sensor/max17055/max17055.h b/drivers/sensor/max17055/max17055.h index 7d717cd72e..9dade31eb0 100644 --- a/drivers/sensor/max17055/max17055.h +++ b/drivers/sensor/max17055/max17055.h @@ -66,7 +66,7 @@ struct max17055_data { struct max17055_config { char *bus_name; - /* Value of Rsense resistor in milliohms (typicallly 5 or 10) */ + /* Value of Rsense resistor in milliohms (typically 5 or 10) */ uint16_t rsense_mohms; /* The design capacity (aka label capacity) of the cell in mAh */ uint16_t design_capacity; diff --git a/drivers/sensor/max17262/max17262.h b/drivers/sensor/max17262/max17262.h index ed7aaa8294..05a0512c86 100644 --- a/drivers/sensor/max17262/max17262.h +++ b/drivers/sensor/max17262/max17262.h @@ -75,7 +75,7 @@ struct max17262_data { struct max17262_config { const struct device *i2c; uint16_t i2c_addr; - /* Value of Rsense resistor in milliohms (typicallly 5 or 10) */ + /* Value of Rsense resistor in milliohms (typically 5 or 10) */ uint16_t rsense_mohms; /* Design voltage of cell in mV */ uint16_t design_voltage; diff --git a/drivers/sensor/mchp_tach_xec/tach_mchp_xec.c b/drivers/sensor/mchp_tach_xec/tach_mchp_xec.c index 054686e20b..85777c3e2f 100644 --- a/drivers/sensor/mchp_tach_xec/tach_mchp_xec.c +++ b/drivers/sensor/mchp_tach_xec/tach_mchp_xec.c @@ -68,7 +68,7 @@ int tach_xec_sample_fetch(const struct device *dev, enum sensor_channel chan) return -EINVAL; } - /* We interprept a fan stopped or jammed as 0 */ + /* We interpret a fan stopped or jammed as 0 */ if (data->count == FAN_STOPPED) { data->count = 0U; } diff --git a/drivers/sensor/nuvoton_tach_npcx/tach_nuvoton_npcx.c b/drivers/sensor/nuvoton_tach_npcx/tach_nuvoton_npcx.c index 0725572db9..340832169e 100644 --- a/drivers/sensor/nuvoton_tach_npcx/tach_nuvoton_npcx.c +++ b/drivers/sensor/nuvoton_tach_npcx/tach_nuvoton_npcx.c @@ -293,7 +293,7 @@ static int tach_npcx_channel_get(const struct device *dev, /* * RPM = (f * 60) / (n * TACH) * n = Pulses per round - * f = Tachometer operation freqency (Hz) + * f = Tachometer operation frequency (Hz) * TACH = Captured counts of tachometer */ val->val1 = (config->sample_clk * 60) / diff --git a/drivers/sensor/opt3001/opt3001.c b/drivers/sensor/opt3001/opt3001.c index cfc06cc2f0..a1605644eb 100644 --- a/drivers/sensor/opt3001/opt3001.c +++ b/drivers/sensor/opt3001/opt3001.c @@ -97,7 +97,7 @@ static int opt3001_channel_get(const struct device *dev, * bits 11 to 0 are the mantissa bits * * lux is the integer obtained using the following formula: - * (2^(exponent value)) * 0.01 * mantisa value + * (2^(exponent value)) * 0.01 * mantissa value */ uval = (1 << (drv_data->sample >> OPT3001_SAMPLE_EXPONENT_SHIFT)) * (drv_data->sample & OPT3001_MANTISSA_MASK); diff --git a/drivers/sensor/sgp40/sgp40.c b/drivers/sensor/sgp40/sgp40.c index 656b75f383..4f573ff3b7 100644 --- a/drivers/sensor/sgp40/sgp40.c +++ b/drivers/sensor/sgp40/sgp40.c @@ -225,7 +225,7 @@ static int sgp40_init(const struct device *dev) LOG_ERR("Selftest failed!"); return rc; } - LOG_DBG("Selftest succeded!"); + LOG_DBG("Selftest succeeded!"); } comp_data.val1 = SGP40_COMP_DEFAULT_T; diff --git a/drivers/sensor/sht3xd/sht3xd_trigger.c b/drivers/sensor/sht3xd/sht3xd_trigger.c index ad5fee9b7e..9867c86518 100644 --- a/drivers/sensor/sht3xd/sht3xd_trigger.c +++ b/drivers/sensor/sht3xd/sht3xd_trigger.c @@ -212,7 +212,7 @@ int sht3xd_init_interrupt(const struct device *dev) return -EIO; } - /* set alert thresholds to match reamsurement ranges */ + /* set alert thresholds to match measurement ranges */ data->t_low = 0U; data->rh_low = 0U; data->t_high = 0xFFFF; diff --git a/drivers/sensor/si7006/si7006.c b/drivers/sensor/si7006/si7006.c index 2df4dfc6c7..3e89e13571 100644 --- a/drivers/sensor/si7006/si7006.c +++ b/drivers/sensor/si7006/si7006.c @@ -141,7 +141,7 @@ static const struct sensor_driver_api si7006_api = { }; /** - * @brief initiasize the sensor + * @brief initialize the sensor * * @return 0 for success */ diff --git a/drivers/sensor/si7210/si7210.c b/drivers/sensor/si7210/si7210.c index 459c0158ff..6f1e51ab98 100644 --- a/drivers/sensor/si7210/si7210.c +++ b/drivers/sensor/si7210/si7210.c @@ -512,7 +512,7 @@ static int si7210_init(const struct device *dev) data->scale = (part_variant == 5 || part_variant == 15) ? si7210_scale_2000G : si7210_scale_200G; - /* Read temperature adjustement values */ + /* Read temperature adjustment values */ rc = si7210_otp_reg_read_byte(dev, SI7210_OTPREG_TEMP_OFFSET, &data->otp_temp_offset); if (rc < 0) { return rc; diff --git a/drivers/sensor/sm351lt/Kconfig b/drivers/sensor/sm351lt/Kconfig index 2e5979772f..60301bc0d6 100644 --- a/drivers/sensor/sm351lt/Kconfig +++ b/drivers/sensor/sm351lt/Kconfig @@ -1,4 +1,4 @@ -# SM351LT Magnetoresitive Sensor configuration options +# SM351LT Magnetoresistive Sensor configuration options # Copyright (c) 2020, Laird Connectivity # SPDX-License-Identifier: Apache-2.0 diff --git a/drivers/sensor/vl53l0x/vl53l0x.c b/drivers/sensor/vl53l0x/vl53l0x.c index 7f6638d552..bd3a06cd6e 100644 --- a/drivers/sensor/vl53l0x/vl53l0x.c +++ b/drivers/sensor/vl53l0x/vl53l0x.c @@ -58,7 +58,7 @@ static int vl53l0x_sample_fetch(const struct device *dev, ret = VL53L0X_PerformSingleRangingMeasurement(&drv_data->vl53l0x, &drv_data->RangingMeasurementData); if (ret < 0) { - LOG_ERR("Could not perform measurment (error=%d)", ret); + LOG_ERR("Could not perform measurement (error=%d)", ret); return -EINVAL; } diff --git a/drivers/serial/Kconfig.rcar b/drivers/serial/Kconfig.rcar index ecf5f80465..4691d40c90 100644 --- a/drivers/serial/Kconfig.rcar +++ b/drivers/serial/Kconfig.rcar @@ -1,4 +1,4 @@ -# Reneas R-Car UART configuration options +# Renesas R-Car UART configuration options # Copyright (c) 2021 IoT.bzh # SPDX-License-Identifier: Apache-2.0 diff --git a/drivers/serial/uart_native_posix.c b/drivers/serial/uart_native_posix.c index b4fb43fbba..42867d04c5 100644 --- a/drivers/serial/uart_native_posix.c +++ b/drivers/serial/uart_native_posix.c @@ -310,7 +310,7 @@ static int np_uart_stdin_poll_in(const struct device *dev, if (disconnected || feof(stdin)) { /* * The stdinput is fed from a file which finished or the user - * pressed Crtl+D + * pressed Ctrl+D */ disconnected = true; return -1; diff --git a/drivers/serial/uart_psoc6.c b/drivers/serial/uart_psoc6.c index 070fb43c18..8d6ee7822d 100644 --- a/drivers/serial/uart_psoc6.c +++ b/drivers/serial/uart_psoc6.c @@ -99,7 +99,7 @@ static const cy_stc_scb_uart_config_t uartConfig = { /** * Function Name: uart_psoc6_init() * - * Peforms hardware initialization: debug UART. + * Performs hardware initialization: debug UART. * */ static int uart_psoc6_init(const struct device *dev) diff --git a/drivers/serial/uart_stellaris.c b/drivers/serial/uart_stellaris.c index 0417f83b38..32065f0b15 100644 --- a/drivers/serial/uart_stellaris.c +++ b/drivers/serial/uart_stellaris.c @@ -128,7 +128,7 @@ static void baudrate_set(const struct device *dev, const struct uart_stellaris_config *config = dev->config; uint32_t brdi, brdf, div, rem; - /* upon reset, the system clock uses the intenal OSC @ 12MHz */ + /* upon reset, the system clock uses the internal OSC @ 12MHz */ div = (baudrate * 16U); rem = sys_clk_freq_hz % div; diff --git a/drivers/serial/uart_xlnx_ps.c b/drivers/serial/uart_xlnx_ps.c index 4d1cf1915f..914f6010cc 100644 --- a/drivers/serial/uart_xlnx_ps.c +++ b/drivers/serial/uart_xlnx_ps.c @@ -9,7 +9,7 @@ #define DT_DRV_COMPAT xlnx_xuartps /** - * @brief Xilnx Zynq Family Serial Driver + * @brief Xilinx Zynq Family Serial Driver * * This is the driver for the Xilinx Zynq family cadence serial device. * diff --git a/drivers/spi/spi_b91.c b/drivers/spi/spi_b91.c index 7803f9a87e..126541c50f 100644 --- a/drivers/spi/spi_b91.c +++ b/drivers/spi/spi_b91.c @@ -232,7 +232,7 @@ static void spi_b91_txrx(const struct device *dev, uint32_t len) while (spi_is_busy(cfg->peripheral_id)) { }; - /* context complate */ + /* context complete */ spi_context_complete(ctx, 0); } @@ -263,7 +263,7 @@ static bool spi_b91_is_config_supported(const struct spi_config *config, return false; } - /* check for CS active hich */ + /* check for CS active high */ if (config->operation & SPI_CS_ACTIVE_HIGH) { LOG_ERR("CS active high not supported for HW flow control"); return false; diff --git a/drivers/spi/spi_mcux_flexcomm.c b/drivers/spi/spi_mcux_flexcomm.c index f25527e670..b2277b44a1 100644 --- a/drivers/spi/spi_mcux_flexcomm.c +++ b/drivers/spi/spi_mcux_flexcomm.c @@ -187,7 +187,7 @@ static int spi_mcux_configure(const struct device *dev, } /* - * Do master or slave initializastion, depending on the + * Do master or slave initialisation, depending on the * mode requested. */ if (SPI_OP_MODE_GET(spi_cfg->operation) == SPI_OP_MODE_MASTER) { diff --git a/drivers/spi/spi_sam.c b/drivers/spi/spi_sam.c index 70c8aef702..61b732a7ba 100644 --- a/drivers/spi/spi_sam.c +++ b/drivers/spi/spi_sam.c @@ -36,7 +36,7 @@ static int spi_slave_to_mr_pcs(int slave) { int pcs[SAM_SPI_CHIP_SELECT_COUNT] = {0x0, 0x1, 0x3, 0x7}; - /* SPI worked in fixed perieral mode(SPI_MR.PS = 0) and disabled chip + /* SPI worked in fixed peripheral mode(SPI_MR.PS = 0) and disabled chip * select decode(SPI_MR.PCSDEC = 0), based on Atmel | SMART ARM-based * Flash MCU DATASHEET 40.8.2 SPI Mode Register: * PCS = xxx0 NPCS[3:0] = 1110 diff --git a/drivers/spi/spi_xec_qmspi.c b/drivers/spi/spi_xec_qmspi.c index 7f751d0f7f..5662c521a1 100644 --- a/drivers/spi/spi_xec_qmspi.c +++ b/drivers/spi/spi_xec_qmspi.c @@ -89,7 +89,7 @@ static void qmspi_set_frequency(QMSPI_Type *regs, uint32_t freq_hz) * SPI signalling mode: CPOL and CPHA * CPOL = 0 is clock idles low, 1 is clock idle high * CPHA = 0 Transmitter changes data on trailing of preceding clock cycle. - * Receiver samples data on leading edge of clock cyle. + * Receiver samples data on leading edge of clock cycle. * 1 Transmitter changes data on leading edge of current clock cycle. * Receiver samples data on the trailing edge of clock cycle. * SPI Mode nomenclature: @@ -239,7 +239,7 @@ static int qmspi_configure(const struct device *dev, * SPI clocks with I/O pins tri-stated. * Single mode: 1 bit per clock -> IFM field = 00b. Max 0x7fff clocks * Dual mode: 2 bits per clock -> IFM field = 01b. Max 0x3fff clocks - * Quad mode: 4 bits per clock -> IFM fiels = 1xb. Max 0x1fff clocks + * Quad mode: 4 bits per clock -> IFM field = 1xb. Max 0x1fff clocks * QMSPI unit size set to bits. */ static int qmspi_tx_dummy_clocks(QMSPI_Type *regs, uint32_t nclocks) diff --git a/drivers/timer/Kconfig.riscv_machine b/drivers/timer/Kconfig.riscv_machine index 2095d95ade..fa67b2bee3 100644 --- a/drivers/timer/Kconfig.riscv_machine +++ b/drivers/timer/Kconfig.riscv_machine @@ -26,5 +26,5 @@ config RISCV_MACHINE_TIMER_SYSTEM_CLOCK_DIVIDER This parameter usually depends on the hardware configuration. The division ratio should define in devicetree, - and it is desireble usage that references it with using a function such as + and it is desirable usage that references it with using a function such as dt_node_int_prop_int from Kconfig. (Tune in the conf file is not preferable.) diff --git a/drivers/timer/ite_it8xxx2_timer.c b/drivers/timer/ite_it8xxx2_timer.c index 64091ba872..721632cb18 100644 --- a/drivers/timer/ite_it8xxx2_timer.c +++ b/drivers/timer/ite_it8xxx2_timer.c @@ -41,13 +41,13 @@ LOG_MODULE_REGISTER(timer, LOG_LEVEL_ERR); * One system (kernel) tick is as how much HW timer counts * * NOTE: Event and free run timer individually select the same clock source - * frequency, so they can use the same HW_CNT_PER_SYS_TICK to tranform + * frequency, so they can use the same HW_CNT_PER_SYS_TICK to transform * unit between HW count and system tick. If clock source frequency is - * different, then we should define another to tranform. + * different, then we should define another to transform. */ #define HW_CNT_PER_SYS_TICK (CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC \ / CONFIG_SYS_CLOCK_TICKS_PER_SEC) -/* Event timer max count is as how much system (kernal) tick */ +/* Event timer max count is as how much system (kernel) tick */ #define EVEN_TIMER_MAX_CNT_SYS_TICK (EVENT_TIMER_MAX_CNT \ / HW_CNT_PER_SYS_TICK) @@ -141,7 +141,7 @@ static void evt_timer_isr(const void *unused) if (IS_ENABLED(CONFIG_TICKLESS_KERNEL)) { /* * Get free run observer count from last time announced and - * trnaform unit to system tick + * transform unit to system tick */ uint32_t dticks = (~(IT8XXX2_EXT_CNTOX(FREE_RUN_TIMER)) - last_announced_hw_cnt) / HW_CNT_PER_SYS_TICK; @@ -238,7 +238,7 @@ uint32_t sys_clock_elapsed(void) /* Critical section */ k_spinlock_key_t key = k_spin_lock(&lock); /* - * Get free run observer count from last time announced and trnaform + * Get free run observer count from last time announced and transform * unit to system tick */ uint32_t dticks = (~(IT8XXX2_EXT_CNTOX(FREE_RUN_TIMER)) - @@ -251,7 +251,7 @@ uint32_t sys_clock_elapsed(void) uint32_t sys_clock_cycle_get_32(void) { /* - * Get free run observer count and trnaform unit to system tick + * Get free run observer count and transform unit to system tick * * NOTE: Timer is counting down from 0xffffffff. In not combined * mode, the observer count value is the same as count, so after diff --git a/drivers/timer/mchp_xec_rtos_timer.c b/drivers/timer/mchp_xec_rtos_timer.c index e3307d0c1d..e094bf08b3 100644 --- a/drivers/timer/mchp_xec_rtos_timer.c +++ b/drivers/timer/mchp_xec_rtos_timer.c @@ -42,7 +42,7 @@ BUILD_ASSERT(CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC == 32768, * * CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC= must be set to 32768. * - * To reduce truncation errors from accumalating due to conversion + * To reduce truncation errors from accumulating due to conversion * to/from time, ticks, and HW cycles set ticks per second equal to * the frequency. With tickless kernel mode enabled the kernel will not * program a periodic timer at this fast rate. diff --git a/drivers/timer/nrf_rtc_timer.c b/drivers/timer/nrf_rtc_timer.c index e5170f87bb..dc4976cb8f 100644 --- a/drivers/timer/nrf_rtc_timer.c +++ b/drivers/timer/nrf_rtc_timer.c @@ -266,7 +266,7 @@ static uint32_t set_absolute_alarm(int32_t chan, uint32_t abs_val) /* Rerun the algorithm if counter progressed during execution * and cc_val is in the past or one tick from now. In such * scenario, it is possible that event will not be generated. - * Reruning the algorithm will delay the alarm but ensure that + * Rerunning the algorithm will delay the alarm but ensure that * event will be generated at the moment indicated by value in * CC register. */ diff --git a/drivers/usb/device/usb_dc_dw.c b/drivers/usb/device/usb_dc_dw.c index b427342dab..77e2ba98ea 100644 --- a/drivers/usb/device/usb_dc_dw.c +++ b/drivers/usb/device/usb_dc_dw.c @@ -695,7 +695,7 @@ static void usb_dw_isr_handler(const void *unused) if (int_status & USB_DW_GINTSTS_OEP_INT) { /* No OUT interrupt expected in FIFO mode, - * just clear interruot + * just clear interrupt */ usb_dw_int_oep_handler(); } diff --git a/drivers/usb/device/usb_dc_kinetis.c b/drivers/usb/device/usb_dc_kinetis.c index 24cef35624..b5c3ce7443 100644 --- a/drivers/usb/device/usb_dc_kinetis.c +++ b/drivers/usb/device/usb_dc_kinetis.c @@ -267,7 +267,7 @@ int usb_dc_set_address(const uint8_t addr) /* * The device stack tries to set the address before * sending the ACK with ZLP, which is totally stupid, - * as workaround the addresse will be buffered and + * as workaround the address will be buffered and * placed later inside isr handler (see KINETIS_IN_TOKEN). */ dev_data.address = 0x80 | (addr & 0x7f); diff --git a/drivers/usb/device/usb_dc_mcux.c b/drivers/usb/device/usb_dc_mcux.c index 8fa73e4d2b..c02018ef8f 100644 --- a/drivers/usb/device/usb_dc_mcux.c +++ b/drivers/usb/device/usb_dc_mcux.c @@ -42,7 +42,7 @@ static void usb_mcux_thread_main(void *arg1, void *arg2, void *arg3); * MCUX EHCI USB device controller supports a specific * number of bidirectional endpoints. Bidirectional means * that an endpoint object is represented to the outside - * as an OUT and an IN Eindpoint with its own buffers + * as an OUT and an IN Endpoint with its own buffers * and control structures. * * EP_ABS_IDX refers to the corresponding control @@ -406,7 +406,7 @@ int usb_dc_ep_enable(const uint8_t ep) dev_data.eps[ep_abs_idx].ep_occupied = true; } else { /* - * control enpoint just be enabled before enumeration, + * control endpoint just be enabled before enumeration, * when running here, setup has been primed. */ dev_data.eps[ep_abs_idx].ep_occupied = true; diff --git a/drivers/usb/device/usb_dc_nrfx.c b/drivers/usb/device/usb_dc_nrfx.c index dab0b8448e..8004dd5529 100644 --- a/drivers/usb/device/usb_dc_nrfx.c +++ b/drivers/usb/device/usb_dc_nrfx.c @@ -1134,7 +1134,7 @@ static void usbd_event_handler(nrfx_usbd_evt_t const *const p_event) if ((drv_setup.bRequest != USB_SREQ_SET_ADDRESS) || (USB_REQTYPE_GET_TYPE(drv_setup.bmRequestType) != USB_REQTYPE_TYPE_STANDARD)) { - /* SetAddress is habdled by USBD hardware. + /* SetAddress is handled by USBD hardware. * No software action required. */ @@ -1191,11 +1191,11 @@ static inline void usbd_reinit(void) } /** - * @brief funciton to generate fake receive request for + * @brief function to generate fake receive request for * ISO OUT EP. * * ISO OUT endpoint does not generate irq by itself and reading - * from ISO OUT ep is sunchronized with SOF frame. For more details + * from ISO OUT ep is synchronized with SOF frame. For more details * refer to Nordic usbd specification. */ static void usbd_sof_trigger_iso_read(void) @@ -1702,7 +1702,7 @@ int usb_dc_ep_write(const uint8_t ep, const uint8_t *const data, /** If writing to a Control Endpoint there might be a need to transfer * ZLP. If the Hosts asks for more data that the device may return and * the last packet is wMaxPacketSize long. The driver must send ZLP. - * For consistance with the Zephyr USB stack sending ZLP must be issued + * For consistence with the Zephyr USB stack sending ZLP must be issued * from the stack level. Making trans_zlp flag true results in blocking * the driver from starting setup stage without required ZLP. */ diff --git a/drivers/usb/device/usb_dc_sam0.c b/drivers/usb/device/usb_dc_sam0.c index 911ab7995b..ed121f39d9 100644 --- a/drivers/usb/device/usb_dc_sam0.c +++ b/drivers/usb/device/usb_dc_sam0.c @@ -304,7 +304,7 @@ int usb_dc_reset(void) } /* Queue a change in address. This is processed later when the - * current transfers are compelete. + * current transfers are complete. */ int usb_dc_set_address(const uint8_t addr) { diff --git a/drivers/usb/device/usb_dc_sam_usbc.c b/drivers/usb/device/usb_dc_sam_usbc.c index 63a263ccd5..360880ce55 100644 --- a/drivers/usb/device/usb_dc_sam_usbc.c +++ b/drivers/usb/device/usb_dc_sam_usbc.c @@ -24,7 +24,7 @@ LOG_MODULE_REGISTER(usb_dc_sam_usbc, CONFIG_USB_DRIVER_LOG_LEVEL); /** * @brief USB Driver Control Endpoint Finite State Machine states * - * FSM states to keep tracking of control endpoint hiden states. + * FSM states to keep tracking of control endpoint hidden states. */ enum usb_dc_epctrl_state { /* Wait a SETUP packet */ diff --git a/drivers/usb/device/usb_dc_sam_usbhs.c b/drivers/usb/device/usb_dc_sam_usbhs.c index 55e5377341..b01a6a3f50 100644 --- a/drivers/usb/device/usb_dc_sam_usbhs.c +++ b/drivers/usb/device/usb_dc_sam_usbhs.c @@ -542,7 +542,7 @@ int usb_dc_ep_configure(const struct usb_dc_ep_cfg_data *const cfg) /* Check that the endpoint is correctly configured */ if (!usb_dc_ep_is_configured(ep_idx)) { - LOG_ERR("endpoint configurationf failed"); + LOG_ERR("endpoint configuration failed"); return -EINVAL; } diff --git a/drivers/usb/device/usb_dc_stm32.c b/drivers/usb/device/usb_dc_stm32.c index 3ced502422..74a792f1d9 100644 --- a/drivers/usb/device/usb_dc_stm32.c +++ b/drivers/usb/device/usb_dc_stm32.c @@ -865,7 +865,7 @@ int usb_dc_ep_read_wait(uint8_t ep, uint8_t *data, uint32_t max_data_len, return -EINVAL; } - /* When both buffer and max data to read are zero, just ingore reading + /* When both buffer and max data to read are zero, just ignore reading * and return available data in buffer. Otherwise, return data * previously stored in the buffer. */ diff --git a/drivers/video/ov2640.c b/drivers/video/ov2640.c index 795d16abdd..bdad2cf74d 100644 --- a/drivers/video/ov2640.c +++ b/drivers/video/ov2640.c @@ -343,7 +343,7 @@ static const struct ov2640_reg default_regs[] = { static const struct ov2640_reg uxga_regs[] = { { BANK_SEL, BANK_SEL_SENSOR }, - /* DSP input image resoultion and window size control */ + /* DSP input image resolution and window size control */ { COM7, COM7_RES_UXGA}, { COM1, 0x0F }, /* UXGA=0x0F, SVGA=0x0A, CIF=0x06 */ { REG32, REG32_UXGA }, /* UXGA=0x36, SVGA/CIF=0x09 */ diff --git a/drivers/video/ov7725.c b/drivers/video/ov7725.c index 7f94f58846..14e05fd711 100644 --- a/drivers/video/ov7725.c +++ b/drivers/video/ov7725.c @@ -269,7 +269,7 @@ static const struct ov7725_reg ov7725_init_reg_tb[] = { { OV7725_AWB_CTRL3, 0xaa }, { OV7725_COM8, 0xff }, - /*matrix shapness brightness contrast*/ + /*matrix sharpness brightness contrast*/ { OV7725_EDGE1, 0x08 }, { OV7725_DNSOFF, 0x01 }, { OV7725_EDGE2, 0x03 }, diff --git a/drivers/video/video_mcux_csi.c b/drivers/video/video_mcux_csi.c index c2d2a38f56..3eedc019b0 100644 --- a/drivers/video/video_mcux_csi.c +++ b/drivers/video/video_mcux_csi.c @@ -230,7 +230,7 @@ static int video_mcux_csi_flush(const struct device *dev, k_sleep(K_MSEC(1)); } while (!k_fifo_is_empty(&data->fifo_in)); } else { - /* Flush driver ouput queue */ + /* Flush driver output queue */ do { ret = CSI_TransferGetFullBuffer(config->base, &(data->csi_handle), diff --git a/drivers/watchdog/wdt_wwdg_stm32.c b/drivers/watchdog/wdt_wwdg_stm32.c index 14fad642ca..e82db7b33d 100644 --- a/drivers/watchdog/wdt_wwdg_stm32.c +++ b/drivers/watchdog/wdt_wwdg_stm32.c @@ -35,7 +35,7 @@ LOG_MODULE_REGISTER(wdt_wwdg_stm32); #endif /* - * additinally to the internal divider, the clock is divided by a + * additionally to the internal divider, the clock is divided by a * programmable prescaler. */ #if defined(LL_WWDG_PRESCALER_128) @@ -66,7 +66,7 @@ LOG_MODULE_REGISTER(wdt_wwdg_stm32); * The minimum timeout is calculated with: * - counter = 0x40 * - prescaler = 1 - * The maximim timeout is calculated with: + * The maximum timeout is calculated with: * - counter = 0x7F * - prescaler = 8 * @@ -104,7 +104,7 @@ static uint32_t wwdg_stm32_get_pclk(const struct device *dev) * @brief Calculates the timeout in microseconds. * * @param dev Pointer to device structure. - * @param prescaler_exp The prescaler exponend value(Base 2). + * @param prescaler_exp The prescaler exponent value(Base 2). * @param counter The counter value. * @return The timeout calculated in microseconds. */ diff --git a/drivers/wifi/esp32/Kconfig.esp32 b/drivers/wifi/esp32/Kconfig.esp32 index 3f2092e5d4..299841bce2 100644 --- a/drivers/wifi/esp32/Kconfig.esp32 +++ b/drivers/wifi/esp32/Kconfig.esp32 @@ -196,7 +196,7 @@ config ESP32_WIFI_RX_BA_WIN we should NOT change the default value unless special reason, e.g. test the maximum UDP RX throughput with iperf etc. For iperf test in shieldbox, the recommended value is 9~12. If PSRAM is used and WiFi memory - is preferred to allocat in PSRAM first, the default and minimum value + is preferred to be allocated in PSRAM first, the default and minimum value should be 16 to achieve better throughput and compatibility with both stations and APs. diff --git a/drivers/wifi/eswifi/eswifi_offload.c b/drivers/wifi/eswifi/eswifi_offload.c index ab699a1ace..bc64b3ce39 100644 --- a/drivers/wifi/eswifi/eswifi_offload.c +++ b/drivers/wifi/eswifi/eswifi_offload.c @@ -374,7 +374,7 @@ static int eswifi_off_recv(struct net_context *context, err = k_sem_take(&socket->read_sem, K_MSEC(timeout)); - /* Unregister cakkback */ + /* Unregister callback */ eswifi_lock(eswifi); socket->recv_cb = NULL; eswifi_unlock(eswifi); diff --git a/drivers/wifi/simplelink/simplelink.c b/drivers/wifi/simplelink/simplelink.c index cc213ab433..07af865331 100644 --- a/drivers/wifi/simplelink/simplelink.c +++ b/drivers/wifi/simplelink/simplelink.c @@ -199,7 +199,7 @@ static int simplelink_dummy_get(sa_family_t family, return -1; } -/* Placeholders, until Zepyr IP stack updated to handle a NULL net_offload */ +/* Placeholders, until Zephyr IP stack updated to handle a NULL net_offload */ static struct net_offload simplelink_offload = { .get = simplelink_dummy_get, .bind = NULL, diff --git a/dts/arc/emsdp.dtsi b/dts/arc/emsdp.dtsi index 220771b309..4d24accc44 100644 --- a/dts/arc/emsdp.dtsi +++ b/dts/arc/emsdp.dtsi @@ -39,7 +39,7 @@ reg = <0x80000000 0x20000>; }; - /* this is (Psuedo SRAM), so treat it like mmio-sram */ + /* this is (Pseudo SRAM), so treat it like mmio-sram */ sram0: memory@10000000 { compatible = "mmio-sram"; reg = <0x10000000 0x1000000>; diff --git a/dts/arm/nxp/nxp_rt1160_cm4.dtsi b/dts/arm/nxp/nxp_rt1160_cm4.dtsi index fef17f0c5f..c86eba8bbf 100644 --- a/dts/arm/nxp/nxp_rt1160_cm4.dtsi +++ b/dts/arm/nxp/nxp_rt1160_cm4.dtsi @@ -15,7 +15,7 @@ * SRAM0 & SRAM1 are available only to the M4 core. EDMA_LPSR interrupts are connected * to the M4 core alone, hence this EDMA controller has been designated M4 only. * GPIO's 9, 11 are available to both M4 and M7 cores, however the GPIO interrupts are - * only accesssible to the M4. + * only accessible to the M4. * * Refer to Chapter 3 of the Reference Manual */ diff --git a/dts/arm/nxp/nxp_rt1160_cm7.dtsi b/dts/arm/nxp/nxp_rt1160_cm7.dtsi index 51dce16868..a70aa16804 100644 --- a/dts/arm/nxp/nxp_rt1160_cm7.dtsi +++ b/dts/arm/nxp/nxp_rt1160_cm7.dtsi @@ -14,7 +14,7 @@ * ITCM & DTCM are available only to the M7 core. EDMA interrupts are connected * to the M7 core alone, hence this EDMA controller has been designated M7 only. * GPIO 6 is available to both M4 and M7 cores, however the GPIO interrupt is - * only accesssible to the M7. + * only accessible to the M7. * * Refer to Chapter 3 of the Reference Manual */ diff --git a/dts/arm/nxp/nxp_rt1170_cm4.dtsi b/dts/arm/nxp/nxp_rt1170_cm4.dtsi index 1e8fee4a56..e5beafc252 100644 --- a/dts/arm/nxp/nxp_rt1170_cm4.dtsi +++ b/dts/arm/nxp/nxp_rt1170_cm4.dtsi @@ -15,7 +15,7 @@ * SRAM0 & SRAM1 are available only to the M4 core. EDMA_LPSR interrupts are connected * to the M4 core alone, hence this EDMA controller has been designated M4 only. * GPIO's 9, 11 are available to both M4 and M7 cores, however the GPIO interrupts are - * only accesssible to the M4. + * only accessible to the M4. * * Refer to Chapter 3 of the Reference Manual */ diff --git a/dts/arm/nxp/nxp_rt1170_cm7.dtsi b/dts/arm/nxp/nxp_rt1170_cm7.dtsi index 71b863ec62..becf8ab46d 100644 --- a/dts/arm/nxp/nxp_rt1170_cm7.dtsi +++ b/dts/arm/nxp/nxp_rt1170_cm7.dtsi @@ -14,7 +14,7 @@ * ITCM & DTCM are available only to the M7 core. EDMA interrupts are connected * to the M7 core alone, hence this EDMA controller has been designated M7 only. * GPIO 6 is available to both M4 and M7 cores, however the GPIO interrupt is - * only accesssible to the M7. + * only accessible to the M7. * * Refer to Chapter 3 of the Reference Manual */ diff --git a/dts/arm/nxp/nxp_rt11xx.dtsi b/dts/arm/nxp/nxp_rt11xx.dtsi index 82be80ff7d..fe7e33c7cc 100644 --- a/dts/arm/nxp/nxp_rt11xx.dtsi +++ b/dts/arm/nxp/nxp_rt11xx.dtsi @@ -183,7 +183,7 @@ /* * Note that CM7 and CM4 cores do not have the same memory addresses - * for GPIO2 and GPIO3, so those periperals are defined in the SOC + * for GPIO2 and GPIO3, so those peripherals are defined in the SOC * specific DTS files */ diff --git a/dts/arm/st/h7/stm32h723.dtsi b/dts/arm/st/h7/stm32h723.dtsi index d513d5bebf..f85743ba62 100644 --- a/dts/arm/st/h7/stm32h723.dtsi +++ b/dts/arm/st/h7/stm32h723.dtsi @@ -42,7 +42,7 @@ }; }; - /* DTCM memory directly coppled to CPU */ + /* DTCM memory directly coupled to CPU */ dtcm: memory@20000000 { compatible = "zephyr,memory-region", "arm,dtcm"; reg = <0x20000000 DT_SIZE_K(128)>; diff --git a/include/app_memory/mem_domain.h b/include/app_memory/mem_domain.h index 9069595daa..1dd7ccc33d 100644 --- a/include/app_memory/mem_domain.h +++ b/include/app_memory/mem_domain.h @@ -5,8 +5,8 @@ * SPDX-License-Identifier: Apache-2.0 */ -#ifndef INCLUDE_APP_MEMPORY_MEM_DOMAIN_H -#define INCLUDE_APP_MEMPORY_MEM_DOMAIN_H +#ifndef INCLUDE_APP_MEMORY_MEM_DOMAIN_H +#define INCLUDE_APP_MEMORY_MEM_DOMAIN_H #include #include diff --git a/include/arch/arc/arc_addr_types.h b/include/arch/arc/arc_addr_types.h index a6073cdd4b..92498b12ba 100644 --- a/include/arch/arc/arc_addr_types.h +++ b/include/arch/arc/arc_addr_types.h @@ -9,12 +9,12 @@ #ifndef _ASMLANGUAGE /* - * MWDT provides paddr_t type and it conflicts witn Zephyr definition: + * MWDT provides paddr_t type and it conflicts with Zephyr definition: * - Zephyr defines paddr_t as a uintptr_t * - MWDT defines paddr_t as a unsigned long * This causes extra warnings. However we can safely define * paddr_t as a unsigned long for the case when MWDT toolchain is used as - * they are both unsighned, have same size and aligning. + * they are both unsigned, have same size and aligning. */ #ifdef __CCAC__ typedef unsigned long paddr_t; diff --git a/include/arch/arm64/arm_mmu.h b/include/arch/arm64/arm_mmu.h index 6a754e7f31..50f29cb7b8 100644 --- a/include/arch/arm64/arm_mmu.h +++ b/include/arch/arm64/arm_mmu.h @@ -28,7 +28,7 @@ (0xffUL << (MT_NORMAL * 8)) | \ (0xbbUL << (MT_NORMAL_WT * 8))) -/* More flags from user's perpective are supported using remaining bits +/* More flags from user's perspective are supported using remaining bits * of "attrs" field, i.e. attrs[31:3], underlying code will take care * of setting PTE fields correctly. * diff --git a/include/arch/arm64/cpu.h b/include/arch/arm64/cpu.h index 9ef6d89e76..408a26b5e0 100644 --- a/include/arch/arm64/cpu.h +++ b/include/arch/arm64/cpu.h @@ -181,7 +181,7 @@ (((_aff1) & SGIR_AFF_MASK) << SGIR_AFF1_SHIFT) | \ ((_tgt) & SGIR_TGT_MASK)) -/* Implementation defined register definations */ +/* Implementation defined register definitions */ #if defined(CONFIG_CPU_CORTEX_A72) #define CORTEX_A72_L2CTLR_EL1 S3_1_C11_C0_2 diff --git a/include/arch/riscv/arch.h b/include/arch/riscv/arch.h index 7a889d1366..2497519a58 100644 --- a/include/arch/riscv/arch.h +++ b/include/arch/riscv/arch.h @@ -343,7 +343,7 @@ static ALWAYS_INLINE bool arch_irq_unlocked(unsigned int key) * to just testing that key is nonzero (because it should only * have the single bit set). But there is a mask applied to * the argument in arch_irq_unlock() that has me worried - * that something elseswhere might try to set a bit? Do it + * that something elsewhere might try to set a bit? Do it * the safe way for now. */ return (key & MSTATUS_IEN) == MSTATUS_IEN; diff --git a/include/arch/riscv/common/linker.ld b/include/arch/riscv/common/linker.ld index 61d65d18a5..b2725593a2 100644 --- a/include/arch/riscv/common/linker.ld +++ b/include/arch/riscv/common/linker.ld @@ -188,7 +188,7 @@ SECTIONS /* For non-XIP system, __rom_region_end symbol should be set to * the end of common ROMABLE_REGIONs (text and rodata) instead of - * the linker script end, so it wouldn't mistakely contain + * the linker script end, so it wouldn't mistakenly contain * RAMABLE_REGION in it. */ #ifndef CONFIG_XIP @@ -377,7 +377,7 @@ GROUP_END(DTCM) /* Because ROMABLE_REGION != RAMABLE_REGION in XIP-system, it is valid * to set __rom_region_end symbol at the end of linker script and - * doesn't mistakely contain the RAMABLE_REGION in it. + * doesn't mistakenly contain the RAMABLE_REGION in it. */ #ifdef CONFIG_XIP /* Must be last in romable region */ diff --git a/include/arch/x86/memory.ld b/include/arch/x86/memory.ld index 68a0145f40..63ad49dd28 100644 --- a/include/arch/x86/memory.ld +++ b/include/arch/x86/memory.ld @@ -96,7 +96,7 @@ MEMORY #else /* * On 32-bit x86, fake memory area for build-time IDT generation data. - * 64-bit doesn't use this, interrupts are all manaaged at runtime. + * 64-bit doesn't use this, interrupts are all managed at runtime. * * It doesn't matter where this region goes as it is stripped from the * final ELF image. The address doesn't even have to be valid on the diff --git a/include/arch/x86/thread_stack.h b/include/arch/x86/thread_stack.h index c54e4a4ea0..03aac49b4d 100644 --- a/include/arch/x86/thread_stack.h +++ b/include/arch/x86/thread_stack.h @@ -53,7 +53,7 @@ * privilege elevation stack is also marked read-only. * * If a thread starts in, or drops down to user mode, the privilege stack page - * will be marked as present, supervior-only. + * will be marked as present, supervisor-only. * * If KPTI is not enabled, the _main_tss.esp0 field will always be updated * updated to point to the top of the privilege elevation stack. Otherwise diff --git a/include/bluetooth/audio/media_proxy.h b/include/bluetooth/audio/media_proxy.h index 1005d60891..e788c07ced 100644 --- a/include/bluetooth/audio/media_proxy.h +++ b/include/bluetooth/audio/media_proxy.h @@ -834,7 +834,7 @@ int media_proxy_ctrl_set_playback_speed(struct media_player *player, int8_t spee * the real-time playback speed. Positive values are for * forward seeking, negative values for backwards seeking. * - * The seeking speed is not setable - a non-zero seeking speed + * The seeking speed is not settable - a non-zero seeking speed * is the result of "fast rewind" of "fast forward" commands. * * @param player Media player instance pointer @@ -1097,7 +1097,7 @@ uint8_t media_proxy_ctrl_get_content_ctrl_id(struct media_player *player); /* PUBLIC API FOR PLAYERS */ -/** @brief Availalable calls in a player, that the media proxy can call +/** @brief Available calls in a player, that the media proxy can call * * Given by a player when registering. */ @@ -1217,7 +1217,7 @@ struct media_proxy_pl_calls { * the real-time playback speed. Positive values are for * forward seeking, negative values for backwards seeking. * - * The seeking speed is not setable - a non-zero seeking speed + * The seeking speed is not settable - a non-zero seeking speed * is the result of "fast rewind" of "fast forward" commands. * * @return The seeking speed factor diff --git a/include/bluetooth/bluetooth.h b/include/bluetooth/bluetooth.h index 0f4987606c..40327c5f9c 100644 --- a/include/bluetooth/bluetooth.h +++ b/include/bluetooth/bluetooth.h @@ -1462,7 +1462,7 @@ int bt_le_per_adv_sync_delete(struct bt_le_per_adv_sync *per_adv_sync); * @brief Register periodic advertising sync callbacks. * * Adds the callback structure to the list of callback structures for periodic - * adverising syncs. + * advertising syncs. * * This callback will be called for all periodic advertising sync activity, * such as synced, terminated and when data is received. diff --git a/include/bluetooth/conn.h b/include/bluetooth/conn.h index 861f1b594b..b9978a9978 100644 --- a/include/bluetooth/conn.h +++ b/include/bluetooth/conn.h @@ -1053,7 +1053,7 @@ int bt_le_oob_get_sc_data(struct bt_conn *conn, * configuration option has been enabled. * * Sets a fixed passkey to be used for pairing. If set, the - * pairing_confim() callback will be called for all incoming pairings. + * pairing_confirm() callback will be called for all incoming pairings. * * @param passkey A valid passkey (0 - 999999) or BT_PASSKEY_INVALID * to disable a previously set fixed passkey. diff --git a/include/bluetooth/gap.h b/include/bluetooth/gap.h index e9df294118..7f7ec044f4 100644 --- a/include/bluetooth/gap.h +++ b/include/bluetooth/gap.h @@ -315,11 +315,11 @@ enum { (((w64) >> 0) & 0xFF) /** - * @brief Validate wheather LE Supported Features value does not use bits that are reserved for + * @brief Validate whether LE Supported Features value does not use bits that are reserved for * future use. * * Helper macro to check if @p w64 has zeros as bits 40-63. The macro is compliant with BT 5.3 - * Core Specifiaction where bits 0-40 has assigned values. In case of invalid value, build time + * Core Specification where bits 0-40 has assigned values. In case of invalid value, build time * error is reported. */ #define BT_LE_SUPP_FEAT_VALIDATE(w64) \ diff --git a/include/bluetooth/gatt.h b/include/bluetooth/gatt.h index 38532f6d67..7121b1548a 100644 --- a/include/bluetooth/gatt.h +++ b/include/bluetooth/gatt.h @@ -311,7 +311,7 @@ struct bt_gatt_ccc { */ #define BT_GATT_SCC_BROADCAST 0x0001 -/** Server Characterestic Configuration Attribute Value */ +/** Server Characteristic Configuration Attribute Value */ struct bt_gatt_scc { /** Server Characteristic Configuration flags */ uint16_t flags; @@ -555,7 +555,7 @@ ssize_t bt_gatt_attr_read_service(struct bt_conn *conn, * attribute callbacks. * @param _instance_num Number of elements in instance array. * @param _attrs_def Macro provided by the user that defines attribute - * array for the serivce. This macro should accept single + * array for the service. This macro should accept single * parameter which is the instance context. */ #define BT_GATT_SERVICE_INSTANCE_DEFINE( \ @@ -1303,7 +1303,7 @@ enum { BT_GATT_DISCOVER_ATTRIBUTE, /** @brief Discover standard characteristic descriptor values. * - * Discover standard characterestic descriptor values and their + * Discover standard characteristic descriptor values and their * properties. * Supported descriptors: * - Characteristic Extended Properties diff --git a/include/bluetooth/hci.h b/include/bluetooth/hci.h index ae36df1f47..34858f60c2 100644 --- a/include/bluetooth/hci.h +++ b/include/bluetooth/hci.h @@ -2506,7 +2506,7 @@ struct bt_hci_evt_le_connection_iq_report { struct bt_hci_evt_le_cte_req_failed { /* According to BT 5.3 Core Spec the status field may have following * values: - * - BT_HCI_CTE_REQ_STATUS_RSP_WIHOUT_CTE when received LL_CTE_RSP_PDU without CTE. + * - BT_HCI_CTE_REQ_STATUS_RSP_WITHOUT_CTE when received LL_CTE_RSP_PDU without CTE. * - Other Controller error code for peer rejected request. */ uint8_t status; diff --git a/include/bluetooth/hfp_hf.h b/include/bluetooth/hfp_hf.h index 1925fcc9b0..64b5c982b2 100644 --- a/include/bluetooth/hfp_hf.h +++ b/include/bluetooth/hfp_hf.h @@ -59,7 +59,7 @@ struct bt_hfp_hf_cb { * * If this callback is provided it will be called whenever the * connection gets disconnected, including when a connection gets - * rejected or cancelled or any error in SLC establisment. + * rejected or cancelled or any error in SLC establishment. * * @param conn Connection object. */ diff --git a/include/bluetooth/l2cap.h b/include/bluetooth/l2cap.h index 2ab29259de..d9b834e974 100644 --- a/include/bluetooth/l2cap.h +++ b/include/bluetooth/l2cap.h @@ -50,7 +50,7 @@ extern "C" { /** @brief Maximum Transmission Unit for an unsegmented outgoing L2CAP SDU. * * The Maximum Transmission Unit for an outgoing L2CAP SDU when sent without - * segmentation, i.e a single L2CAP SDU will fit inside a single L2CAP PDU. + * segmentation, i.e. a single L2CAP SDU will fit inside a single L2CAP PDU. * * The MTU for outgoing L2CAP SDUs with segmentation is defined by the * size of the application buffer pool. @@ -60,7 +60,7 @@ extern "C" { /** @brief Maximum Transmission Unit for an unsegmented incoming L2CAP SDU. * * The Maximum Transmission Unit for an incoming L2CAP SDU when sent without - * segmentation, i.e a single L2CAP SDU will fit inside a single L2CAP PDU. + * segmentation, i.e. a single L2CAP SDU will fit inside a single L2CAP PDU. * * The MTU for incoming L2CAP SDUs with segmentation is defined by the * size of the application buffer pool. The application will have to define diff --git a/include/bluetooth/mesh/access.h b/include/bluetooth/mesh/access.h index 3f6b780586..6bd2388718 100644 --- a/include/bluetooth/mesh/access.h +++ b/include/bluetooth/mesh/access.h @@ -434,7 +434,7 @@ struct bt_mesh_model_pub { * When @ref bt_mesh_model_pub.retr_update is set to 1, * the callback will be called on every retransmission. * - * @param mod The Model the Publication Context belogs to. + * @param mod The Model the Publication Context belongs to. * * @return Zero on success or (negative) error code otherwise. */ diff --git a/include/bluetooth/mesh/cfg_cli.h b/include/bluetooth/mesh/cfg_cli.h index fe52babffb..d7b6f1d7b4 100644 --- a/include/bluetooth/mesh/cfg_cli.h +++ b/include/bluetooth/mesh/cfg_cli.h @@ -1073,7 +1073,7 @@ struct bt_mesh_cfg_hb_sub { int bt_mesh_cfg_hb_sub_set(uint16_t net_idx, uint16_t addr, struct bt_mesh_cfg_hb_sub *sub, uint8_t *status); -/** @brief Get the target node's Heartbeta subscription parameters. +/** @brief Get the target node's Heartbeat subscription parameters. * * This method can be used asynchronously by setting @p status * and @p sub as NULL. This way the method will not wait for response diff --git a/include/data/json.h b/include/data/json.h index c12c89913c..7a8e1a4adb 100644 --- a/include/data/json.h +++ b/include/data/json.h @@ -351,7 +351,7 @@ typedef int (*json_append_bytes_t)(const char *bytes, size_t len, * * struct json_obj_descr person_height_array_descr[] = { * JSON_OBJ_DESCR_OBJECT(struct person_heights_array, - * heights, person_heigth_descr), + * heights, person_height_descr), * }; * * struct json_obj_descr array_array[] = { diff --git a/include/debug/gdbstub.h b/include/debug/gdbstub.h index d809d11307..7ab333b89e 100644 --- a/include/debug/gdbstub.h +++ b/include/debug/gdbstub.h @@ -7,7 +7,7 @@ #ifndef ZEPHYR_INCLUDE_DEBUG_GDBSTUB_H_ #define ZEPHYR_INCLUDE_DEBUG_GDBSTUB_H_ -/* Map from CPU excpetions to GDB */ +/* Map from CPU exceptions to GDB */ #define GDB_EXCEPTION_INVALID_INSTRUCTION 4UL #define GDB_EXCEPTION_BREAKPOINT 5UL #define GDB_EXCEPTION_MEMORY_FAULT 7UL @@ -45,7 +45,7 @@ struct gdb_mem_region { * Memory region descriptions used for GDB memory access. * * This array specifies which region of memory GDB can access - * with read/write attribites. This is used to restrict + * with read/write attributes. This is used to restrict * memory read/write in GDB stub to memory that can be * legally accessed without resulting in memory faults. */ @@ -62,7 +62,7 @@ extern const size_t gdb_mem_num_regions; * @brief Convert a binary array into string representation. * * Note that this is similar to bin2hex() but does not force - * a null character at the end of the hexadeciaml output buffer. + * a null character at the end of the hexadecimal output buffer. * * @param buf The binary array to convert * @param buflen The length of the binary array to convert diff --git a/include/devicetree.h b/include/devicetree.h index 8e5c899d1e..5f761ecb68 100644 --- a/include/devicetree.h +++ b/include/devicetree.h @@ -484,7 +484,7 @@ * The expansion evaluates to 0 or 1, but may not be a literal integer * 0 or 1. * - * @param node_id1 first node identifer + * @param node_id1 first node identifier * @param node_id2 second node identifier * @return an expression that evaluates to 1 if the node identifiers * refer to the same node, and evaluates to 0 otherwise @@ -738,7 +738,7 @@ * @param prop lowercase-and-underscores property name * @param default_idx_value a fallback index value to expand to * @return zero-based index of the property's value in its enum if present, - * default_idx_value ohterwise + * default_idx_value otherwise */ #define DT_ENUM_IDX_OR(node_id, prop, default_idx_value) \ COND_CODE_1(DT_NODE_HAS_PROP(node_id, prop), \ @@ -2400,7 +2400,7 @@ * @param prop lowercase-and-underscores property name * @param default_idx_value a fallback index value to expand to * @return zero-based index of the property's value in its enum if present, - * default_idx_value ohterwise + * default_idx_value otherwise */ #define DT_INST_ENUM_IDX_OR(inst, prop, default_idx_value) \ DT_ENUM_IDX_OR(DT_DRV_INST(inst), prop, default_idx_value) diff --git a/include/drivers/bbram.h b/include/drivers/bbram.h index 23382a46ef..0009b760be 100644 --- a/include/drivers/bbram.h +++ b/include/drivers/bbram.h @@ -16,7 +16,7 @@ extern "C" { /** * API template to check if the BBRAM is invalid. * - * @see bbram_check_invlaid + * @see bbram_check_invalid */ typedef int (*bbram_api_check_invalid)(const struct device *dev); diff --git a/include/drivers/bluetooth/hci_driver.h b/include/drivers/bluetooth/hci_driver.h index 1b977a3f68..b5181f4b2c 100644 --- a/include/drivers/bluetooth/hci_driver.h +++ b/include/drivers/bluetooth/hci_driver.h @@ -243,7 +243,7 @@ int bt_hci_transport_setup(const struct device *dev); /** Allocate an HCI event buffer. * * This function allocates a new buffer for an HCI event. It is given the - * avent code and the total length of the parameters. Upon successful return + * event code and the total length of the parameters. Upon successful return * the buffer is ready to have the parameters encoded into it. * * @param evt Event OpCode. diff --git a/include/drivers/can.h b/include/drivers/can.h index 8ecf8bf74e..535a906568 100644 --- a/include/drivers/can.h +++ b/include/drivers/can.h @@ -629,7 +629,7 @@ static inline int z_impl_can_get_core_clock(const struct device *dev, uint32_t * * * Calculate the timing parameters from a given bitrate in bits/s and the * sampling point in permill (1/1000) of the entire bit time. The bitrate must - * alway match perfectly. If no result can be reached for the given parameters, + * always match perfectly. If no result can be reached for the given parameters, * -EINVAL is returned. * * @note The requested ``sample_pnt`` will not always be matched perfectly. The @@ -676,7 +676,7 @@ int can_calc_timing_data(const struct device *dev, struct can_timing *res, * Fill the prescaler value in the timing struct. The sjw, prop_seg, phase_seg1 * and phase_seg2 must be given. * - * The returned bitrate error is reminder of the devision of the clock rate by + * The returned bitrate error is remainder of the division of the clock rate by * the bitrate times the timing segments. * * @param dev Pointer to the device structure for the driver instance. diff --git a/include/drivers/dma.h b/include/drivers/dma.h index 14fbc07daf..f9301a3d01 100644 --- a/include/drivers/dma.h +++ b/include/drivers/dma.h @@ -63,7 +63,7 @@ enum dma_addr_adj { /* channel attributes */ enum dma_channel_filter { DMA_CHANNEL_NORMAL, /* normal DMA channel */ - DMA_CHANNEL_PERIODIC, /* can be triggerred by periodic sources */ + DMA_CHANNEL_PERIODIC, /* can be triggered by periodic sources */ }; /** diff --git a/include/drivers/dma/dma_stm32.h b/include/drivers/dma/dma_stm32.h index 8ccc98cc6c..f92a99cc3f 100644 --- a/include/drivers/dma/dma_stm32.h +++ b/include/drivers/dma/dma_stm32.h @@ -41,7 +41,7 @@ #define STM32_DMA_CONFIG_PERIPHERAL_ADDR_INC(config) ((config >> 9) & 0x1) /* mem increment defined on bit 10 as true/false */ #define STM32_DMA_CONFIG_MEMORY_ADDR_INC(config) ((config >> 10) & 0x1) -/* perih data size defined on bits 11-12 */ +/* periph data size defined on bits 11-12 */ /* 0 -> 1 byte, 1 -> 2 bytes, 2 -> 4 bytes */ #define STM32_DMA_CONFIG_PERIPHERAL_DATA_SIZE(config) \ (1 << ((config >> 11) & 0x3)) diff --git a/include/drivers/espi.h b/include/drivers/espi.h index 7bbeeb4426..43f3410c2a 100644 --- a/include/drivers/espi.h +++ b/include/drivers/espi.h @@ -199,7 +199,7 @@ enum espi_vwire_signal { ESPI_VWIRE_SIGNAL_SLP_LAN, ESPI_VWIRE_SIGNAL_HOST_C10, ESPI_VWIRE_SIGNAL_DNX_WARN, - /* Virtual wires that can only be send from slave to master */ + /* Virtual wires that can only be sent from slave to master */ ESPI_VWIRE_SIGNAL_PME, ESPI_VWIRE_SIGNAL_WAKE, ESPI_VWIRE_SIGNAL_OOB_RST_ACK, @@ -757,7 +757,7 @@ static inline int z_impl_espi_receive_oob(const struct device *dev, * component shared between the eSPI master and eSPI slaves. * * @param dev Pointer to the device structure for the driver instance. - * @param pckt Adddress of the representation of read flash transaction. + * @param pckt Address of the representation of read flash transaction. * * @retval -ENOTSUP eSPI flash logical channel transactions not supported. * @retval -EBUSY eSPI flash channel is not ready or disabled by master. diff --git a/include/drivers/espi_saf.h b/include/drivers/espi_saf.h index 508d8ffc56..33357c92cf 100644 --- a/include/drivers/espi_saf.h +++ b/include/drivers/espi_saf.h @@ -299,7 +299,7 @@ static inline bool z_impl_espi_saf_get_channel_status( * component shared between the eSPI master and eSPI slaves. * * @param dev Pointer to the device structure for the driver instance. - * @param pckt Adddress of the representation of read flash transaction. + * @param pckt Address of the representation of read flash transaction. * * @retval -ENOTSUP eSPI flash logical channel transactions not supported. * @retval -EBUSY eSPI flash channel is not ready or disabled by master. diff --git a/include/drivers/flash/flash_simulator.h b/include/drivers/flash/flash_simulator.h index 25f64550bb..0f7e3c5760 100644 --- a/include/drivers/flash/flash_simulator.h +++ b/include/drivers/flash/flash_simulator.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Noric Semiconductor ASA + * Copyright (c) 2021 Nordic Semiconductor ASA * * SPDX-License-Identifier: Apache-2.0 */ diff --git a/include/drivers/gpio/gpio_sx1509b.h b/include/drivers/gpio/gpio_sx1509b.h index fcca8f29dd..4b8aa4d475 100644 --- a/include/drivers/gpio/gpio_sx1509b.h +++ b/include/drivers/gpio/gpio_sx1509b.h @@ -15,7 +15,7 @@ * * Configure a pin to be controlled by SX1509B LED driver using * the LED intensity functionality. - * To get back normal GPIO funcionality, configure the pin using + * To get back normal GPIO functionality, configure the pin using * the standard GPIO API. * * @param dev Pointer to the device structure for the driver instance. diff --git a/include/drivers/interrupt_controller/exti_stm32.h b/include/drivers/interrupt_controller/exti_stm32.h index 2deadf7eb9..d88150126d 100644 --- a/include/drivers/interrupt_controller/exti_stm32.h +++ b/include/drivers/interrupt_controller/exti_stm32.h @@ -45,9 +45,9 @@ enum stm32_exti_trigger { STM32_EXTI_TRIG_NONE = 0x0, /* trigger on rising edge */ STM32_EXTI_TRIG_RISING = 0x1, - /* trigger on falling endge */ + /* trigger on falling edge */ STM32_EXTI_TRIG_FALLING = 0x2, - /* trigger on falling endge */ + /* trigger on falling edge */ STM32_EXTI_TRIG_BOTH = 0x3, }; diff --git a/include/drivers/interrupt_controller/gd32_exti.h b/include/drivers/interrupt_controller/gd32_exti.h index 860707eff6..a5652987c9 100644 --- a/include/drivers/interrupt_controller/gd32_exti.h +++ b/include/drivers/interrupt_controller/gd32_exti.h @@ -21,7 +21,7 @@ #define GD32_EXTI_TRIG_NONE 0U /** Trigger on rising edge */ #define GD32_EXTI_TRIG_RISING BIT(0) -/** Trigger on falling endge */ +/** Trigger on falling edge */ #define GD32_EXTI_TRIG_FALLING BIT(1) /** Trigger on rising and falling edge */ #define GD32_EXTI_TRIG_BOTH (GD32_EXTI_TRIG_RISING | GD32_EXTI_TRIG_FALLING) diff --git a/include/drivers/interrupt_controller/gic.h b/include/drivers/interrupt_controller/gic.h index a46bc6c9c4..41e3ad29b5 100644 --- a/include/drivers/interrupt_controller/gic.h +++ b/include/drivers/interrupt_controller/gic.h @@ -56,7 +56,7 @@ #define GICD_IGROUPRn (GIC_DIST_BASE + 0x80) /* - * 0x100 Interrupt Set-Enable Reigsters + * 0x100 Interrupt Set-Enable Registers * v1 ICDISERn * v2/v3 GICD_ISENABLERn */ @@ -249,7 +249,7 @@ #define GIC_PRI_MASK 0xff /* - * '0xa0'is used to initialize each interrtupt default priority. + * '0xa0'is used to initialize each interrupt default priority. * This is an arbitrary value in current context. * Any value '0x80' to '0xff' will work for both NS and S state. * The values of individual interrupt and default has to be chosen diff --git a/include/drivers/misc/ft8xx/ft8xx.h b/include/drivers/misc/ft8xx/ft8xx.h index 59eaee5c66..5b9dc589fb 100644 --- a/include/drivers/misc/ft8xx/ft8xx.h +++ b/include/drivers/misc/ft8xx/ft8xx.h @@ -51,7 +51,7 @@ typedef void (*ft8xx_int_callback)(void); /** * @brief Calibrate touchscreen * - * Run touchscreen calibration procedure that collectw three touches from touch + * Run touchscreen calibration procedure that collects three touches from touch * screen. Computed calibration result is automatically applied to the * touchscreen processing and returned with @p data. * diff --git a/include/drivers/modem/simcom-sim7080.h b/include/drivers/modem/simcom-sim7080.h index 1117f1d33d..d018d2eb49 100644 --- a/include/drivers/modem/simcom-sim7080.h +++ b/include/drivers/modem/simcom-sim7080.h @@ -209,7 +209,7 @@ int mdm_sim7080_ftp_get_start(const char *server, const char *user, const char * * Read data from a ftp get session. * * @param dst The destination buffer. - * @param size Initialize to the size of dst. Gets set to the nuber + * @param size Initialize to the size of dst. Gets set to the number * of bytes actually read. * @return According sim7080_ftp_rc. */ diff --git a/include/drivers/pcie/controller.h b/include/drivers/pcie/controller.h index 0d5af5f64e..8ebd21d9c9 100644 --- a/include/drivers/pcie/controller.h +++ b/include/drivers/pcie/controller.h @@ -101,7 +101,7 @@ typedef bool (*pcie_ctrl_region_get_allocate_base_t)(const struct device *dev, p * When enumerating PCIe Endpoints, Type0 endpoints can require up to 6 memory zones * via the Base Address Registers from I/O or Memory types. * - * The bus-centric address set in this BAR register is not necessarely accessible from the CPU, + * The bus-centric address set in this BAR register is not necessarily accessible from the CPU, * thus must be translated by using the PCI Express Controller memory regions translation * ranges to permit mapping from the CPU. * @@ -268,7 +268,7 @@ static inline bool pcie_ctrl_region_get_allocate_base(const struct device *dev, * When enumerating PCIe Endpoints, Type0 endpoints can require up to 6 memory zones * via the Base Address Registers from I/O or Memory types. * - * The bus-centric address set in this BAR register is not necessarely accessible from the CPU, + * The bus-centric address set in this BAR register is not necessarily accessible from the CPU, * thus must be translated by using the PCI Express Controller memory regions translation * ranges to permit mapping from the CPU. * diff --git a/include/drivers/pcie/pcie.h b/include/drivers/pcie/pcie.h index c94c54902f..8e666ddc5d 100644 --- a/include/drivers/pcie/pcie.h +++ b/include/drivers/pcie/pcie.h @@ -215,7 +215,7 @@ extern bool pcie_connect_dynamic_irq(pcie_bdf_t bdf, #define PCIE_CONF_CAP_NEXT(w) (((w) >> 10) & 0x3FU) /* - * The extended PCI Express capabilies lies at the end of the PCI configuration space + * The extended PCI Express capabilities lie at the end of the PCI configuration space */ #define PCIE_CONF_EXT_CAPPTR 64U diff --git a/include/drivers/sensor.h b/include/drivers/sensor.h index 55d00eeebf..7f37e3e677 100644 --- a/include/drivers/sensor.h +++ b/include/drivers/sensor.h @@ -144,7 +144,7 @@ enum sensor_channel { SENSOR_CHAN_GAUGE_VOLTAGE, /** Average current, in amps **/ SENSOR_CHAN_GAUGE_AVG_CURRENT, - /** Standy current, in amps **/ + /** Standby current, in amps **/ SENSOR_CHAN_GAUGE_STDBY_CURRENT, /** Max load current, in amps **/ SENSOR_CHAN_GAUGE_MAX_LOAD_CURRENT, diff --git a/include/drivers/sensor/ccs811.h b/include/drivers/sensor/ccs811.h index 165cc9ee9e..052fc9eccc 100644 --- a/include/drivers/sensor/ccs811.h +++ b/include/drivers/sensor/ccs811.h @@ -50,7 +50,7 @@ struct ccs811_result_type { uint16_t co2; /** - * Equivalent total volatile organic compounts in + * Equivalent total volatile organic compounds in * parts-per-billion volume. */ uint16_t voc; diff --git a/include/drivers/sensor/sht4x.h b/include/drivers/sensor/sht4x.h index 898c01dbfb..6a575331e4 100644 --- a/include/drivers/sensor/sht4x.h +++ b/include/drivers/sensor/sht4x.h @@ -22,7 +22,7 @@ extern "C" { #include -/* Maximum teperature above which the heater should not be used */ +/* Maximum temperature above which the heater should not be used */ #define SHT4X_HEATER_MAX_TEMP 65 enum sensor_attribute_sht4x { diff --git a/include/drivers/spi_emul.h b/include/drivers/spi_emul.h index d62dc00d87..fdfe94cc6d 100644 --- a/include/drivers/spi_emul.h +++ b/include/drivers/spi_emul.h @@ -41,7 +41,7 @@ struct spi_emul { /* API provided for this device */ const struct spi_emul_api *api; - /* SPI chip-slect of the emulated device */ + /* SPI chip-select of the emulated device */ uint16_t chipsel; }; diff --git a/include/drivers/usb/usb_dc.h b/include/drivers/usb/usb_dc.h index 6037e812ec..42c60c8d5c 100644 --- a/include/drivers/usb/usb_dc.h +++ b/include/drivers/usb/usb_dc.h @@ -424,7 +424,7 @@ int usb_dc_ep_read_continue(uint8_t ep); * @param[in] ep Endpoint address corresponding to the one * listed in the device configuration table * - * @return Enpoint max packet size (mps) + * @return Endpoint max packet size (mps) */ int usb_dc_ep_mps(uint8_t ep); diff --git a/include/drivers/video.h b/include/drivers/video.h index df328dee64..736184ae84 100644 --- a/include/drivers/video.h +++ b/include/drivers/video.h @@ -329,7 +329,7 @@ static inline int video_enqueue(const struct device *dev, * @brief Dequeue a video buffer. * * Dequeue a filled (capturing) or displayed (output) buffer from the driver’s - * enpoint outgoing queue. + * endpoint outgoing queue. * * @param dev Pointer to the device structure for the driver instance. * @param ep Endpoint ID. diff --git a/include/dt-bindings/spi/spi.h b/include/dt-bindings/spi/spi.h index f6854fb62d..2d9709d946 100644 --- a/include/dt-bindings/spi/spi.h +++ b/include/dt-bindings/spi/spi.h @@ -29,7 +29,7 @@ * @{ * * 2 frame formats are exposed: Motorola and TI. - * The main difference is the behavior of the CS line. In Motorala it stays + * The main difference is the behavior of the CS line. In Motorola it stays * active the whole transfer. In TI, it's active only one serial clock period * prior to actually make the transfer, it is thus inactive during the transfer, * which ends when the clocks ends as well. diff --git a/include/fs/fcb.h b/include/fs/fcb.h index 4b006b7216..6410c954c4 100644 --- a/include/fs/fcb.h +++ b/include/fs/fcb.h @@ -299,7 +299,7 @@ int fcb_clear(struct fcb *fcb); /** * @brief Flash Circular internal - * @defgroup fcb_internall fcb non-API prototypes + * @defgroup fcb_internal fcb non-API prototypes * @ingroup fcb * @{ */ diff --git a/include/kernel.h b/include/kernel.h index d6da2eb23b..53f60de931 100644 --- a/include/kernel.h +++ b/include/kernel.h @@ -2818,7 +2818,7 @@ __syscall int k_condvar_broadcast(struct k_condvar *condvar); /** * @brief Waits on the condition variable releasing the mutex lock * - * Automically releases the currently owned mutex, blocks the current thread + * Atomically releases the currently owned mutex, blocks the current thread * waiting on the condition variable specified by @a condvar, * and finally acquires the mutex again. * @@ -3392,7 +3392,7 @@ int k_work_schedule_for_queue(struct k_work_q *queue, * delay. * * This is a thin wrapper around k_work_schedule_for_queue(), with all the API - * characteristcs of that function. + * characteristics of that function. * * @param dwork pointer to the delayable work item. * @@ -3447,7 +3447,7 @@ int k_work_reschedule_for_queue(struct k_work_q *queue, * delay. * * This is a thin wrapper around k_work_reschedule_for_queue(), with all the - * API characteristcs of that function. + * API characteristics of that function. * * @param dwork pointer to the delayable work item. * @@ -5244,7 +5244,7 @@ void k_heap_free(struct k_heap *h, void *mem); * @brief Define a static k_heap in uncached memory * * This macro defines and initializes a static memory region and - * k_heap of the requested size in uncache memory. After kernel + * k_heap of the requested size in uncached memory. After kernel * start, &name can be used as if k_heap_init() had been called. * * Note that this macro enforces a minimum size on the memory region @@ -5273,7 +5273,7 @@ void k_heap_free(struct k_heap *h, void *mem); * This routine provides semantics similar to aligned_alloc(); memory is * allocated from the heap with a specified alignment. However, one minor * difference is that k_aligned_alloc() accepts any non-zero @p size, - * wherase aligned_alloc() only accepts a @p size that is an integral + * whereas aligned_alloc() only accepts a @p size that is an integral * multiple of @p align. * * Above, aligned_alloc() refers to: diff --git a/include/kernel_structs.h b/include/kernel_structs.h index c846071963..8258a47f68 100644 --- a/include/kernel_structs.h +++ b/include/kernel_structs.h @@ -38,7 +38,7 @@ extern "C" { /* * Bitmask definitions for the struct k_thread.thread_state field. * - * Must be before kerneL_arch_data.h because it might need them to be already + * Must be before kernel_arch_data.h because it might need them to be already * defined. */ diff --git a/include/linker/linker-tool-gcc.h b/include/linker/linker-tool-gcc.h index 3c1f9eabbb..c7018ab0f0 100644 --- a/include/linker/linker-tool-gcc.h +++ b/include/linker/linker-tool-gcc.h @@ -165,7 +165,7 @@ * On MMU systems where VMA != LMA there is an implicit ALIGN_WITH_INPUT * specified. * - * @param name Name of the output sectio + * @param name Name of the output section * @param options Section options, such as (NOLOAD), or left blank * @param align Alignment directives, such as SUBALIGN(). ALIGN() itself is * not allowed. May be blank. @@ -191,7 +191,7 @@ * This is equivalent to SECTION_PROLOGUE() on non-XIP systems. * On XIP systems there is an implicit ALIGN_WITH_INPUT specified. * - * @param name Name of the output sectio + * @param name Name of the output section * @param options Section options, or left blank * @param align Alignment directives, such as SUBALIGN(). ALIGN() itself is * not allowed. May be blank. diff --git a/include/logging/log_core.h b/include/logging/log_core.h index 2b8698c87f..626a614e66 100644 --- a/include/logging/log_core.h +++ b/include/logging/log_core.h @@ -678,7 +678,7 @@ void log_hexdump_sync(struct log_msg_ids src_level, const char *metadata, * * @param src_level Log identification. * @param fmt String to format. - * @param ap Poiner to arguments list. + * @param ap Pointer to arguments list. * @param strdup_action Manages strdup activity. */ void log_generic(struct log_msg_ids src_level, const char *fmt, va_list ap, @@ -691,7 +691,7 @@ void log_generic(struct log_msg_ids src_level, const char *fmt, va_list ap, * * @param level Log level.. * @param fmt String to format. - * @param ap Poiner to arguments list. + * @param ap Pointer to arguments list. */ static inline void log2_generic(uint8_t level, const char *fmt, va_list ap) { @@ -743,7 +743,7 @@ void __printf_like(2, 3) log_from_user(struct log_msg_ids src_level, __syscall void z_log_string_from_user(uint32_t src_level_val, const char *str); /** - * @brief Create mask with occurences of a string format specifiers (%s). + * @brief Create mask with occurrences of a string format specifiers (%s). * * Result is stored as the mask (argument n is n'th bit). Bit is set if string * format specifier was found. @@ -774,7 +774,7 @@ __syscall void z_log_hexdump_from_user(uint32_t src_level_val, const uint8_t *data, uint32_t len); /******************************************************************************/ -/********** Mocros _VA operate on var-args parameters. ***************/ +/********** Macros _VA operate on var-args parameters. ***************/ /********* Intended to be used when porting other log systems. ***************/ /********* Shall be used in the log entry interface function. ***************/ /********* Speed optimized for up to three arguments number. ***************/ diff --git a/include/logging/log_msg2.h b/include/logging/log_msg2.h index 7e94b861da..4a5597a7ad 100644 --- a/include/logging/log_msg2.h +++ b/include/logging/log_msg2.h @@ -245,8 +245,8 @@ do { \ #define Z_LOG_MSG2_SIMPLE_CREATE(...) #endif -/* Macro handles case when local variable with log message string is created.It - * replaces origing string literal with that variable. +/* Macro handles case when local variable with log message string is created. It + * replaces original string literal with that variable. */ #define Z_LOG_FMT_ARGS_2(_name, ...) \ COND_CODE_1(CONFIG_LOG2_FMT_SECTION, \ diff --git a/include/mgmt/ec_host_cmd.h b/include/mgmt/ec_host_cmd.h index 1f874bc8d8..c5760a683d 100644 --- a/include/mgmt/ec_host_cmd.h +++ b/include/mgmt/ec_host_cmd.h @@ -45,11 +45,11 @@ typedef enum ec_host_cmd_status (*ec_host_cmd_handler_cb)( struct ec_host_cmd_handler { /** Callback routine to process commands that match @a id. */ ec_host_cmd_handler_cb handler; - /** The numberical command id used as the lookup for commands. */ + /** The numerical command id used as the lookup for commands. */ uint16_t id; /** The bitfield of all versions that the @a handler supports, where * each bit value represents that the @a handler supports that version. - * E.g. BIT(0) corresponse to version 0. + * E.g. BIT(0) corresponds to version 0. */ uint16_t version_mask; /** The minimum @a input_buf_size enforced by the framework before @@ -72,7 +72,7 @@ struct ec_host_cmd_handler { * @param _function Name of handler function. * @param _id Id of host command to handle request for. * @param _version_mask The bitfield of all versions that the @a _function - * supports. E.g. BIT(0) corresponse to version 0. + * supports. E.g. BIT(0) corresponds to version 0. * @param _request_type The datatype of the request parameters for @a _function. * @param _response_type The datatype of the response parameters for * @a _function. @@ -97,7 +97,7 @@ struct ec_host_cmd_handler { * @param _function Name of handler function. * @param _id Id of host command to handle request for. * @param _version_mask The bitfield of all versions that the @a _function - * supports. E.g. BIT(0) corresponse to version 0. + * supports. E.g. BIT(0) corresponds to version 0. */ #define EC_HOST_CMD_HANDLER_UNBOUND(_function, _id, _version_mask) \ const STRUCT_SECTION_ITERABLE(ec_host_cmd_handler, __cmd##_id) = { \ diff --git a/include/mgmt/osdp.h b/include/mgmt/osdp.h index c901b52d5f..a7da66078c 100644 --- a/include/mgmt/osdp.h +++ b/include/mgmt/osdp.h @@ -122,7 +122,7 @@ struct osdp_cmd_buzzer { }; /** - * @brief Command to manuplate any display units that the PD supports. + * @brief Command to manipulate any display units that the PD supports. * * @param reader 0 = First Reader, 1 = Second Reader, etc. * @param control_code One of the following: diff --git a/include/modbus/modbus.h b/include/modbus/modbus.h index 7823494549..b4fc37a63c 100644 --- a/include/modbus/modbus.h +++ b/include/modbus/modbus.h @@ -419,7 +419,7 @@ struct modbus_server_param { }; /** - * @brief User parameter structure to configure Modbus interfase + * @brief User parameter structure to configure Modbus interface * as client or server. */ struct modbus_iface_param { diff --git a/include/net/dns_sd.h b/include/net/dns_sd.h index e5f0b09881..3e866d1fd7 100644 --- a/include/net/dns_sd.h +++ b/include/net/dns_sd.h @@ -22,7 +22,7 @@ extern "C" { * @brief DNS Service Discovery * * @details This API enables services to be advertised via DNS. To - * advvertise a service, system or application code should use + * advertise a service, system or application code should use * @ref DNS_SD_REGISTER_TCP_SERVICE or * @ref DNS_SD_REGISTER_UDP_SERVICE. * @@ -53,7 +53,7 @@ extern "C" { /** * Minimum number of segments in a fully-qualified name * - * This reqpresents FQN's of the form below + * This represents FQN's of the form below * ``` * ._tcp.. * ``` @@ -68,7 +68,7 @@ extern "C" { /** * Maximum number of segments in a fully-qualified name * - * This reqpresents FQN's of the form below + * This represents FQN's of the form below * ``` * .._tcp.. * ``` @@ -207,7 +207,7 @@ extern "C" { * need to be accessed directly from application code. * * The @a port pointer must be non-NULL. When the value in @a port - * is non-zero, the service is advertized as being on that particular + * is non-zero, the service is advertised as being on that particular * port. When the value in @a port is zero, then the service is not * advertised. * diff --git a/include/net/http_parser.h b/include/net/http_parser.h index 6f1bbd8f92..e799ad77a9 100644 --- a/include/net/http_parser.h +++ b/include/net/http_parser.h @@ -52,7 +52,7 @@ typedef unsigned __int64 uint64_t; extern "C" { #endif -/* Maximium header size allowed. If the macro is not defined +/* Maximum header size allowed. If the macro is not defined * before including this header then the default is used. To * change the maximum header size, define the macro in the build * environment (e.g. -DHTTP_MAX_HEADER_SIZE=). To remove diff --git a/include/net/ieee802154_radio.h b/include/net/ieee802154_radio.h index 40f38551f5..f7d3ae87f2 100644 --- a/include/net/ieee802154_radio.h +++ b/include/net/ieee802154_radio.h @@ -55,7 +55,7 @@ enum ieee802154_hw_caps { IEEE802154_HW_ENERGY_SCAN = BIT(7), /* Energy scan supported */ IEEE802154_HW_TXTIME = BIT(8), /* TX at specified time supported */ IEEE802154_HW_SLEEP_TO_TX = BIT(9), /* TX directly from sleep supported */ - IEEE802154_HW_TX_SEC = BIT(10), /* TX security hadling supported */ + IEEE802154_HW_TX_SEC = BIT(10), /* TX security handling supported */ IEEE802154_HW_RXTIME = BIT(11), /* RX at specified time supported */ }; @@ -309,7 +309,7 @@ struct ieee802154_radio_api { /** Get the device capabilities */ enum ieee802154_hw_caps (*get_capabilities)(const struct device *dev); - /** Clear Channel Assesment - Check channel's activity */ + /** Clear Channel Assessment - Check channel's activity */ int (*cca)(const struct device *dev); /** Set current channel */ diff --git a/include/net/lwm2m_path.h b/include/net/lwm2m_path.h index 15c7b00168..e1705099da 100644 --- a/include/net/lwm2m_path.h +++ b/include/net/lwm2m_path.h @@ -22,7 +22,7 @@ * int x = 3; * LWM2M_PATH(x, 0, 1) * - * evalutes to "x/0/1". + * evaluates to "x/0/1". */ #define LWM2M_PATH(...) \ LWM2M_PATH_MACRO(__VA_ARGS__, LWM2M_PATH4, LWM2M_PATH3, \ diff --git a/include/net/net_mgmt.h b/include/net/net_mgmt.h index 5345f889f4..74bf5353e5 100644 --- a/include/net/net_mgmt.h +++ b/include/net/net_mgmt.h @@ -130,7 +130,7 @@ struct net_mgmt_event_callback { /** Actual callback function being used to notify the owner */ net_mgmt_event_handler_t handler; - /** Semaphore meant to be used internaly for the synchronous + /** Semaphore meant to be used internally for the synchronous * net_mgmt_event_wait() function. */ struct k_sem *sync_call; diff --git a/include/net/openthread.h b/include/net/openthread.h index 15a8da6e29..0199630ce1 100644 --- a/include/net/openthread.h +++ b/include/net/openthread.h @@ -118,7 +118,7 @@ int openthread_start(struct openthread_context *ot_context); * * @details OpenThread API is not thread-safe, therefore before accessing any * API function, it's needed to lock the internal mutex, to prevent the - * OpenThread thread from prempting the API call. + * OpenThread thread from preempting the API call. * * @param ot_context Context to lock. */ diff --git a/include/settings/settings.h b/include/settings/settings.h index 4127ecc5de..a04483820a 100644 --- a/include/settings/settings.h +++ b/include/settings/settings.h @@ -36,7 +36,7 @@ extern "C" { #define SETTINGS_NAME_SEPARATOR '/' #define SETTINGS_NAME_END '=' -/* pleace for settings additions: +/* place for settings additions: * up to 7 separators, '=', '\0' */ #define SETTINGS_EXTRA_LEN ((SETTINGS_MAX_DIR_DEPTH - 1) + 2) diff --git a/include/shell/shell.h b/include/shell/shell.h index ddc54b0028..0a36806600 100644 --- a/include/shell/shell.h +++ b/include/shell/shell.h @@ -54,7 +54,7 @@ extern "C" { #define SHELL_OPT_ARG_RAW (0xFE) /** - * @brief Flag indicateding that number of optional arguments is not limited. + * @brief Flag indicating that number of optional arguments is not limited. */ #define SHELL_OPT_ARG_CHECK_SKIP (0xFF) @@ -180,7 +180,7 @@ struct shell_static_entry { * @param[in] subcmd Pointer to a subcommands array. * @param[in] help Pointer to a command help string. * @param[in] handler Pointer to a function handler. - * @param[in] mandatory Number of mandatory arguments includig command name. + * @param[in] mandatory Number of mandatory arguments including command name. * @param[in] optional Number of optional arguments. */ #define SHELL_CMD_ARG_REGISTER(syntax, subcmd, help, handler, \ @@ -212,7 +212,7 @@ struct shell_static_entry { * @param[in] subcmd Pointer to a subcommands array. * @param[in] help Pointer to a command help string. * @param[in] handler Pointer to a function handler. - * @param[in] mandatory Number of mandatory arguments includig command name. + * @param[in] mandatory Number of mandatory arguments including command name. * @param[in] optional Number of optional arguments. */ #define SHELL_COND_CMD_ARG_REGISTER(flag, syntax, subcmd, help, handler, \ @@ -313,7 +313,7 @@ struct shell_static_entry { * @param[in] subcmd Pointer to a subcommands array. * @param[in] help Pointer to a command help string. * @param[in] handler Pointer to a function handler. - * @param[in] mand Number of mandatory arguments includig command name. + * @param[in] mand Number of mandatory arguments including command name. * @param[in] opt Number of optional arguments. */ #define SHELL_CMD_ARG(syntax, subcmd, help, handler, mand, opt) \ @@ -335,7 +335,7 @@ struct shell_static_entry { * @param[in] subcmd Pointer to a subcommands array. * @param[in] help Pointer to a command help string. * @param[in] handler Pointer to a function handler. - * @param[in] mand Number of mandatory arguments includig command name. + * @param[in] mand Number of mandatory arguments including command name. * @param[in] opt Number of optional arguments. */ #define SHELL_COND_CMD_ARG(flag, syntax, subcmd, help, handler, mand, opt) \ @@ -358,7 +358,7 @@ struct shell_static_entry { * @param[in] _subcmd Pointer to a subcommands array. * @param[in] _help Pointer to a command help string. * @param[in] _handler Pointer to a function handler. - * @param[in] _mand Number of mandatory arguments includig command name. + * @param[in] _mand Number of mandatory arguments including command name. * @param[in] _opt Number of optional arguments. */ #define SHELL_EXPR_CMD_ARG(_expr, _syntax, _subcmd, _help, _handler, \ diff --git a/include/shell/shell_log_backend.h b/include/shell/shell_log_backend.h index 86e172ff70..9dc2ad63b4 100644 --- a/include/shell/shell_log_backend.h +++ b/include/shell/shell_log_backend.h @@ -49,7 +49,7 @@ struct shell_log_backend_msg { uint32_t timestamp; }; -/** @brief Prototype of function outputing processed data. */ +/** @brief Prototype of function outputting processed data. */ int z_shell_log_backend_output_func(uint8_t *data, size_t length, void *ctx); /** @def Z_SHELL_LOG_BACKEND_DEFINE diff --git a/include/smf.h b/include/smf.h index a59b2860db..edad345333 100644 --- a/include/smf.h +++ b/include/smf.h @@ -128,7 +128,7 @@ void smf_set_initial(struct smf_ctx *ctx, const struct smf_state *init_state); void smf_set_state(struct smf_ctx *ctx, const struct smf_state *new_state); /** - * @brief Termate a state machine + * @brief Terminate a state machine * * @param ctx State machine context * @param val Non-Zero termination value that's returned by the smf_run_state @@ -141,7 +141,7 @@ void smf_set_terminate(struct smf_ctx *ctx, int32_t val); * * @param ctx State machine context * @return A non-zero value should terminate the state machine. This - * non-zero value could represet a terminal state being reached + * non-zero value could represent a terminal state being reached * or the detection of an error that should result in the * termination of the state machine. */ diff --git a/include/sys/heap_listener.h b/include/sys/heap_listener.h index 816e31652a..b8badd9f65 100644 --- a/include/sys/heap_listener.h +++ b/include/sys/heap_listener.h @@ -173,7 +173,7 @@ void heap_listener_notify_resize(uintptr_t heap_id, void *old_heap_end, void *ne /** * @brief Construct heap identifier from heap pointer * - * Construct a heap identifer from a pointer to the heap object, such as + * Construct a heap identifier from a pointer to the heap object, such as * sys_heap. * * @param heap_pointer Pointer to the heap object diff --git a/include/sys/kobject.h b/include/sys/kobject.h index de04c16fc7..c64e5452cf 100644 --- a/include/sys/kobject.h +++ b/include/sys/kobject.h @@ -29,7 +29,7 @@ enum k_objects { /** @cond * Doxygen should ignore this build-time generated include file - * when genrating API documentation. Enumeration values are + * when generating API documentation. Enumeration values are * generated during build by gen_kobject_list.py. It includes * basic kernel objects (e.g. pipes and mutexes) and driver types. */ diff --git a/include/sys/mpsc_pbuf.h b/include/sys/mpsc_pbuf.h index 06ef735e51..565df1f57c 100644 --- a/include/sys/mpsc_pbuf.h +++ b/include/sys/mpsc_pbuf.h @@ -33,7 +33,7 @@ extern "C" { * If buffer is full and packet cannot be allocated then null is returned unless * overwrite mode is selected. In that mode, oldest entry are dropped (user is * notified) until allocation succeeds. It can happen that candidate for - * dropping is currently being claimed. In that case, it is ommited and next + * dropping is currently being claimed. In that case, it is omitted and next * packet is dropped and claimed packet is marked as invalid when freeing. * * Reading packets is performed in two steps. First packet is claimed. Claiming @@ -137,7 +137,7 @@ struct mpsc_pbuf_buffer_config { uint32_t flags; }; -/** @brief Initnialize a packet buffer. +/** @brief Initialize a packet buffer. * * @param buffer Buffer. * diff --git a/include/sys/multi_heap.h b/include/sys/multi_heap.h index ab1e7a0ad4..1eebc1c150 100644 --- a/include/sys/multi_heap.h +++ b/include/sys/multi_heap.h @@ -74,7 +74,7 @@ struct sys_multi_heap { * @note In general a multiheap is likely to be instantiated * semi-statically from system configuration (for example, via * linker-provided bounds on available memory in different regions, or - * from devicetree definitions of hardware-provided addressible + * from devicetree definitions of hardware-provided addressable * memory, etc...). The general expectation is that a soc- or * board-level platform device will be initialized at system boot from * these upstream configuration sources and not that an application diff --git a/include/sys/notify.h b/include/sys/notify.h index ff6a9a365b..edcdf2ea5c 100644 --- a/include/sys/notify.h +++ b/include/sys/notify.h @@ -193,7 +193,7 @@ static inline uint32_t sys_notify_get_method(const struct sys_notify *notify) * async notify API init functions like sys_notify_init_callback()). * It may fail to recognize that an uninitialized structure has been * passed because only method bits of flags are tested against method - * settings. To reduce the chance of accepting an uninititalized + * settings. To reduce the chance of accepting an uninitialized * operation service validation of structures that contain an * sys_notify instance should confirm that the extension bits are * set or cleared as expected. diff --git a/include/sys/onoff.h b/include/sys/onoff.h index 8852a73d71..aa36bca64a 100644 --- a/include/sys/onoff.h +++ b/include/sys/onoff.h @@ -258,7 +258,7 @@ typedef void (*onoff_client_callback)(struct onoff_manager *mgr, * * Objects of this type are allocated by a client, which is * responsible for zero-initializing the node field and invoking the - * approprite sys_notify init function to configure notification. + * appropriate sys_notify init function to configure notification. * * Control of the object content transfers to the service provider * when a pointer to the object is passed to any on-off manager diff --git a/include/sys/util.h b/include/sys/util.h index f76303442c..3b50712cbd 100644 --- a/include/sys/util.h +++ b/include/sys/util.h @@ -101,7 +101,7 @@ extern "C" { * * In C++, due to language limitations, this will accept as @p array * any type that implements operator[]. The results may not be - * particulary meaningful in this case. + * particularly meaningful in this case. * * In C, passing a pointer as @p array causes a compile error. */ diff --git a/include/sys/util_macro.h b/include/sys/util_macro.h index 214cad5529..27fcf9f83f 100644 --- a/include/sys/util_macro.h +++ b/include/sys/util_macro.h @@ -292,7 +292,7 @@ extern "C" { * @brief Get nth argument from argument list. * * @param N Argument index to fetch. Counter from 1. - * @param ... Variable list of argments from which one argument is returned. + * @param ... Variable list of arguments from which one argument is returned. * * @return Nth argument. */ @@ -302,7 +302,7 @@ extern "C" { * @brief Strips n first arguments from the argument list. * * @param N Number of arguments to discard. - * @param ... Variable list of argments. + * @param ... Variable list of arguments. * * @return argument list without N first arguments. */ diff --git a/include/sys_clock.h b/include/sys_clock.h index 01ca2cf0d3..4de2391afa 100644 --- a/include/sys_clock.h +++ b/include/sys_clock.h @@ -102,7 +102,7 @@ typedef struct { /* Converts between absolute timeout expiration values (packed into * the negative space below K_TICKS_FOREVER) and (non-negative) delta * timeout values. If the result of Z_TICK_ABS(t) is >= 0, then the - * value was an absolute timeout with the returend expiration time. + * value was an absolute timeout with the returned expiration time. * Note that this macro is bidirectional: Z_TICK_ABS(Z_TICK_ABS(t)) == * t for all inputs, and that the representation of K_TICKS_FOREVER is * the same value in both spaces! Clever, huh? diff --git a/include/toolchain/gcc.h b/include/toolchain/gcc.h index 678000d459..ce1b75acc4 100644 --- a/include/toolchain/gcc.h +++ b/include/toolchain/gcc.h @@ -437,7 +437,7 @@ do { \ * and toolchain, may restrict the range of values permitted * for assignment to the named symbol. * - * For example, on x86, "value" is interpreated as signed + * For example, on x86, "value" is interpreted as signed * 32-bit integer. Passing in an unsigned 32-bit integer * with MSB set would result in a negative integer. * Moreover, GCC would error out if an integer larger diff --git a/include/toolchain/zephyr_stdint.h b/include/toolchain/zephyr_stdint.h index 7cea619bdf..303124e66a 100644 --- a/include/toolchain/zephyr_stdint.h +++ b/include/toolchain/zephyr_stdint.h @@ -9,7 +9,7 @@ /* * Some gcc versions and/or configurations as found in the Zephyr SDK - * (questionably) define __INT32_TYPE__ and derrivatives as a long int + * (questionably) define __INT32_TYPE__ and derivatives as a long int * which makes the printf format checker to complain about long vs int * mismatch when %u is given a uint32_t argument, and uint32_t pointers not * being compatible with int pointers. Let's redefine them to follow diff --git a/include/tracing/tracing.h b/include/tracing/tracing.h index 7489db4f6b..bcc957eb82 100644 --- a/include/tracing/tracing.h +++ b/include/tracing/tracing.h @@ -222,7 +222,7 @@ #define sys_port_trace_k_thread_sched_lock() /** - * @brief Called when the thread sceduler is unlocked + * @brief Called when the thread scheduler is unlocked */ #define sys_port_trace_k_thread_sched_unlock() @@ -262,7 +262,7 @@ #define sys_port_trace_k_thread_info(thread) /** - * @brief Trace implicit thread wakup invocation by the scheduler + * @brief Trace implicit thread wakeup invocation by the scheduler * @param thread Thread object */ #define sys_port_trace_k_thread_sched_wakeup(thread) diff --git a/include/usb/class/usb_audio.h b/include/usb/class/usb_audio.h index 6326d2262b..5f43add3b5 100644 --- a/include/usb/class/usb_audio.h +++ b/include/usb/class/usb_audio.h @@ -197,7 +197,7 @@ typedef void (*usb_audio_data_completion_cb_t)(const struct device *dev, * * @param dev USB Audio device * @param evt Pointer to an event to be parsed by the App. - * Pointer sturct is temporary and is valid only during the + * Pointer struct is temporary and is valid only during the * execution of this callback. */ typedef void (*usb_audio_feature_updated_cb_t)(const struct device *dev, @@ -270,9 +270,9 @@ void usb_audio_register(const struct device *dev, * responsible for managing the buffer for Input devices. In case * of sending error user must decide if the buffer should be * dropped or retransmitted. - * Afther the buffer was sent successfully it is passed to the + * After the buffer was sent successfully it is passed to the * data_written_cb callback if the application uses one or - * automatically freed otherwse. + * automatically freed otherwise. * User must provide proper net_buf chunk especially when * it comes to its size. This information can be obtained * using usb_audio_get_in_frame_size() API function. diff --git a/include/xen/public/arch-arm.h b/include/xen/public/arch-arm.h index 77771e2fa0..8cfc5e8448 100644 --- a/include/xen/public/arch-arm.h +++ b/include/xen/public/arch-arm.h @@ -111,7 +111,7 @@ * All generic sub-operations * * HYPERVISOR_physdev_op - * No sub-operations are currenty supported + * No sub-operations are currently supported * * HYPERVISOR_sysctl * All generic sub-operations, with the exception of: diff --git a/include/zephyr/types.h b/include/zephyr/types.h index c90eedd813..42beaf2754 100644 --- a/include/zephyr/types.h +++ b/include/zephyr/types.h @@ -14,11 +14,11 @@ extern "C" { #endif -/* 32 bits on ILP32 builds, 64 bits on LP64 builts */ +/* 32 bits on ILP32 builds, 64 bits on LP64 builds */ typedef unsigned long ulong_t; /* - * A type with strong alignment requiremnts, similar to C11 max_align_t. It can + * A type with strong alignment requirements, similar to C11 max_align_t. It can * be used to force alignment of data structures allocated on the stack or as * return * type for heap allocators. */ diff --git a/kernel/init.c b/kernel/init.c index 26e2522981..cd381614af 100644 --- a/kernel/init.c +++ b/kernel/init.c @@ -245,7 +245,7 @@ static void bg_thread_main(void *unused1, void *unused2, void *unused3) main(); - /* Mark nonessenrial since main() has no more work to do */ + /* Mark nonessential since main() has no more work to do */ z_main_thread.base.user_options &= ~K_ESSENTIAL; #ifdef CONFIG_COVERAGE_DUMP diff --git a/kernel/poll.c b/kernel/poll.c index 9c29af7f42..31b5901c11 100644 --- a/kernel/poll.c +++ b/kernel/poll.c @@ -457,7 +457,7 @@ void z_impl_k_poll_signal_init(struct k_poll_signal *sig) { sys_dlist_init(&sig->poll_events); sig->signaled = 0U; - /* signal->result is left unitialized */ + /* signal->result is left uninitialized */ z_object_init(sig); SYS_PORT_TRACING_FUNC(k_poll_api, signal_init, sig); diff --git a/lib/libc/Kconfig b/lib/libc/Kconfig index b2cf9a8f48..1bb1f87e74 100644 --- a/lib/libc/Kconfig +++ b/lib/libc/Kconfig @@ -193,7 +193,7 @@ config NEED_LIBC_MEM_PARTITION bool help Hidden option to signal that a memory partition is needed for - the C libraray even though it would not have been enabled + the C library even though it would not have been enabled otherwise. endmenu diff --git a/lib/libc/armstdc/include/sys/types.h b/lib/libc/armstdc/include/sys/types.h index 7a46008b12..967887a76a 100644 --- a/lib/libc/armstdc/include/sys/types.h +++ b/lib/libc/armstdc/include/sys/types.h @@ -5,7 +5,7 @@ */ /* - * This defines the required types for the ARMClang compiler when comiling with + * This defines the required types for the ARMClang compiler when compiling with * _AEABI_PORTABILITY_LEVEL = 1 * * The types defined are according to: diff --git a/lib/libc/minimal/source/time/gmtime.c b/lib/libc/minimal/source/time/gmtime.c index 8c3819fff1..6fac4cc31e 100644 --- a/lib/libc/minimal/source/time/gmtime.c +++ b/lib/libc/minimal/source/time/gmtime.c @@ -13,7 +13,7 @@ #include /* A signed type with the representation of time_t without its - * impliciations. + * implications. */ typedef time_t bigint_type; diff --git a/lib/os/Kconfig.cbprintf b/lib/os/Kconfig.cbprintf index ee0651fcd9..4a4296c038 100644 --- a/lib/os/Kconfig.cbprintf +++ b/lib/os/Kconfig.cbprintf @@ -47,7 +47,7 @@ config CBPRINTF_REDUCED_INTEGRAL This will decrease stack space, but affects conversion of any type with more than 32 bits. This includes not only intmax_t but any - type that can be converted to an integral represention including + type that can be converted to an integral representation including size_t and pointers. With CBPRINTF_COMPLETE conversions that may result in value-specific diff --git a/lib/os/cbprintf_complete.c b/lib/os/cbprintf_complete.c index d45c12c378..242db0fe9f 100644 --- a/lib/os/cbprintf_complete.c +++ b/lib/os/cbprintf_complete.c @@ -1013,7 +1013,7 @@ static char *encode_float(double value, *--sp = '0'; } - /* Append the leading sigificant "digits". */ + /* Append the leading significant "digits". */ while ((sp < spe) && (precision > 0)) { *buf++ = *sp++; --precision; diff --git a/lib/os/onoff.c b/lib/os/onoff.c index cad1bac28f..a3dd769a8f 100644 --- a/lib/os/onoff.c +++ b/lib/os/onoff.c @@ -46,7 +46,7 @@ BUILD_ASSERT((ONOFF_FLAG_ERROR | ONOFF_FLAG_ONOFF | ONOFF_FLAG_TRANSITION) * the top invocation. * * RECHECK indicates that a state transition has completed but * process_events() must re-check the overall state to confirm no - * additional transitions are required. This is used to simplfy the + * additional transitions are required. This is used to simplify the * logic when, for example, a request is received during a * transition to off, which means that when the transition completes * a transition to on must be initiated if the request is still diff --git a/lib/posix/mqueue.c b/lib/posix/mqueue.c index c1984e005a..0d37b0b264 100644 --- a/lib/posix/mqueue.c +++ b/lib/posix/mqueue.c @@ -97,7 +97,7 @@ mqd_t mq_open(const char *name, int oflags, ...) if ((msg_queue != NULL) && (oflags & O_CREAT) != 0 && (oflags & O_EXCL) != 0) { - /* Message queue has alreadey been opened and O_EXCL is set */ + /* Message queue has already been opened and O_EXCL is set */ errno = EEXIST; return (mqd_t)mqd; } diff --git a/lib/posix/timer.c b/lib/posix/timer.c index 3eea898e97..fb859c1774 100644 --- a/lib/posix/timer.c +++ b/lib/posix/timer.c @@ -157,7 +157,7 @@ int timer_settime(timer_t timerid, int flags, const struct itimerspec *value, timer->interval.tv_sec = value->it_interval.tv_sec; timer->interval.tv_nsec = value->it_interval.tv_nsec; - /* Calcaulte timer duration */ + /* Calculate timer duration */ duration = _ts_to_ms(&(value->it_value)); if ((flags & TIMER_ABSTIME) != 0) { current = k_timer_remaining_get(&timer->ztimer); diff --git a/modules/Kconfig.mcux b/modules/Kconfig.mcux index ca2271a22f..0642bc1b79 100644 --- a/modules/Kconfig.mcux +++ b/modules/Kconfig.mcux @@ -43,7 +43,7 @@ config HAS_MCUX_CCM config HAS_MCUX_CCM_REV2 bool help - Set if the revison 2 of clock control module (CCM) module is present in the SoC. + Set if the revision 2 of clock control module (CCM) module is present in the SoC. This is present in SoC's such as RT1170 config HAS_MCUX_SYSCON @@ -97,7 +97,7 @@ config HAS_MCUX_FTM config HAS_MCUX_IAP 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 LPC55xxx family SoCs. config HAS_MCUX_IAP_LEGACY diff --git a/modules/Kconfig.stm32 b/modules/Kconfig.stm32 index 9e70b54530..c20ebbbaba 100644 --- a/modules/Kconfig.stm32 +++ b/modules/Kconfig.stm32 @@ -247,7 +247,7 @@ config USE_STM32_HAL_I2S config USE_STM32_HAL_I2S_EX bool help - Enable STM32Cube Etxended Inter-IC sound (I2S) HAL module driver + Enable STM32Cube Extended Inter-IC sound (I2S) HAL module driver config USE_STM32_HAL_IPCC bool diff --git a/modules/canopennode/canopen_storage.c b/modules/canopennode/canopen_storage.c index 3a1f5e3545..dc01d292f7 100644 --- a/modules/canopennode/canopen_storage.c +++ b/modules/canopennode/canopen_storage.c @@ -22,7 +22,7 @@ LOG_MODULE_REGISTER(canopen_storage); /* 'l', 'o', 'a', 'd' from LSB to MSB */ #define RESTORE_PARAM_MAGIC 0x64616F6CUL -/* Variables for reporing errors through CANopen once the stack is up */ +/* Variables for reporting errors through CANopen once the stack is up */ static int canopen_storage_rom_error; static int canopen_storage_eeprom_error; diff --git a/modules/hal_nordic/nrf_802154/serialization/platform/nrf_802154_spinel_response_notifier.c b/modules/hal_nordic/nrf_802154/serialization/platform/nrf_802154_spinel_response_notifier.c index 39e9434107..1757d8089b 100644 --- a/modules/hal_nordic/nrf_802154/serialization/platform/nrf_802154_spinel_response_notifier.c +++ b/modules/hal_nordic/nrf_802154/serialization/platform/nrf_802154_spinel_response_notifier.c @@ -51,7 +51,7 @@ void nrf_802154_spinel_response_notifier_lock_before_request(spinel_prop_key_t p /* * Only one thread can await response. * TODO: Implement matching responses to requests and allow multiple threads - * to await simulatneously + * to await simultaneously */ LOG_DBG("Locking response notifier"); @@ -89,7 +89,7 @@ nrf_802154_spinel_notify_buff_t *nrf_802154_spinel_response_notifier_property_aw ret = k_mutex_unlock(&await_mutex); assert(ret == 0); (void)ret; - LOG_DBG("Unlockling response notifier"); + LOG_DBG("Unlocking response notifier"); return result; } diff --git a/modules/hal_nordic/nrfx/nrfx_config_nrf51.h b/modules/hal_nordic/nrfx/nrfx_config_nrf51.h index f9b68675cc..9eaec10ba7 100644 --- a/modules/hal_nordic/nrfx/nrfx_config_nrf51.h +++ b/modules/hal_nordic/nrfx/nrfx_config_nrf51.h @@ -886,7 +886,7 @@ // -// NRFX_TIMER_ENABLED - nrfx_timer - TIMER periperal driver +// NRFX_TIMER_ENABLED - nrfx_timer - TIMER peripheral driver //========================================================== #ifndef NRFX_TIMER_ENABLED #define NRFX_TIMER_ENABLED 0 diff --git a/modules/hal_nordic/nrfx/nrfx_config_nrf52805.h b/modules/hal_nordic/nrfx/nrfx_config_nrf52805.h index b81ff4f4a7..b4d4a97f47 100644 --- a/modules/hal_nordic/nrfx/nrfx_config_nrf52805.h +++ b/modules/hal_nordic/nrfx/nrfx_config_nrf52805.h @@ -983,7 +983,7 @@ // -// NRFX_TIMER_ENABLED - nrfx_timer - TIMER periperal driver +// NRFX_TIMER_ENABLED - nrfx_timer - TIMER peripheral driver //========================================================== #ifndef NRFX_TIMER_ENABLED #define NRFX_TIMER_ENABLED 0 diff --git a/modules/hal_nordic/nrfx/nrfx_config_nrf52810.h b/modules/hal_nordic/nrfx/nrfx_config_nrf52810.h index fad6c32df7..70c5286516 100644 --- a/modules/hal_nordic/nrfx/nrfx_config_nrf52810.h +++ b/modules/hal_nordic/nrfx/nrfx_config_nrf52810.h @@ -1211,7 +1211,7 @@ // -// NRFX_TIMER_ENABLED - nrfx_timer - TIMER periperal driver +// NRFX_TIMER_ENABLED - nrfx_timer - TIMER peripheral driver //========================================================== #ifndef NRFX_TIMER_ENABLED #define NRFX_TIMER_ENABLED 0 diff --git a/modules/hal_nordic/nrfx/nrfx_config_nrf52811.h b/modules/hal_nordic/nrfx/nrfx_config_nrf52811.h index 1513e3f40a..8495f7fa39 100644 --- a/modules/hal_nordic/nrfx/nrfx_config_nrf52811.h +++ b/modules/hal_nordic/nrfx/nrfx_config_nrf52811.h @@ -1227,7 +1227,7 @@ // -// NRFX_TIMER_ENABLED - nrfx_timer - TIMER periperal driver +// NRFX_TIMER_ENABLED - nrfx_timer - TIMER peripheral driver //========================================================== #ifndef NRFX_TIMER_ENABLED #define NRFX_TIMER_ENABLED 0 diff --git a/modules/hal_nordic/nrfx/nrfx_config_nrf52820.h b/modules/hal_nordic/nrfx/nrfx_config_nrf52820.h index 983c64e1f2..5b58036b29 100644 --- a/modules/hal_nordic/nrfx/nrfx_config_nrf52820.h +++ b/modules/hal_nordic/nrfx/nrfx_config_nrf52820.h @@ -1027,7 +1027,7 @@ // -// NRFX_TIMER_ENABLED - nrfx_timer - TIMER periperal driver +// NRFX_TIMER_ENABLED - nrfx_timer - TIMER peripheral driver //========================================================== #ifndef NRFX_TIMER_ENABLED #define NRFX_TIMER_ENABLED 0 diff --git a/modules/hal_nordic/nrfx/nrfx_config_nrf52832.h b/modules/hal_nordic/nrfx/nrfx_config_nrf52832.h index 4f5ed60b80..aabf4b98ed 100644 --- a/modules/hal_nordic/nrfx/nrfx_config_nrf52832.h +++ b/modules/hal_nordic/nrfx/nrfx_config_nrf52832.h @@ -1597,7 +1597,7 @@ // -// NRFX_TIMER_ENABLED - nrfx_timer - TIMER periperal driver +// NRFX_TIMER_ENABLED - nrfx_timer - TIMER peripheral driver //========================================================== #ifndef NRFX_TIMER_ENABLED #define NRFX_TIMER_ENABLED 0 diff --git a/modules/hal_nordic/nrfx/nrfx_config_nrf52833.h b/modules/hal_nordic/nrfx/nrfx_config_nrf52833.h index 94a6d56fdc..abe6c7a325 100644 --- a/modules/hal_nordic/nrfx/nrfx_config_nrf52833.h +++ b/modules/hal_nordic/nrfx/nrfx_config_nrf52833.h @@ -1561,7 +1561,7 @@ // -// NRFX_TIMER_ENABLED - nrfx_timer - TIMER periperal driver +// NRFX_TIMER_ENABLED - nrfx_timer - TIMER peripheral driver //========================================================== #ifndef NRFX_TIMER_ENABLED #define NRFX_TIMER_ENABLED 0 diff --git a/modules/hal_nordic/nrfx/nrfx_config_nrf52840.h b/modules/hal_nordic/nrfx/nrfx_config_nrf52840.h index f02b714e04..a152bfb050 100644 --- a/modules/hal_nordic/nrfx/nrfx_config_nrf52840.h +++ b/modules/hal_nordic/nrfx/nrfx_config_nrf52840.h @@ -1594,7 +1594,7 @@ // -// NRFX_TIMER_ENABLED - nrfx_timer - TIMER periperal driver +// NRFX_TIMER_ENABLED - nrfx_timer - TIMER peripheral driver //========================================================== #ifndef NRFX_TIMER_ENABLED #define NRFX_TIMER_ENABLED 0 diff --git a/modules/hal_nordic/nrfx/nrfx_config_nrf5340_application.h b/modules/hal_nordic/nrfx/nrfx_config_nrf5340_application.h index eddc83cc3e..7ec47c3eb5 100644 --- a/modules/hal_nordic/nrfx/nrfx_config_nrf5340_application.h +++ b/modules/hal_nordic/nrfx/nrfx_config_nrf5340_application.h @@ -1512,7 +1512,7 @@ #define NRFX_SYSTICK_ENABLED 0 #endif -// NRFX_TIMER_ENABLED - nrfx_timer - TIMER periperal driver. +// NRFX_TIMER_ENABLED - nrfx_timer - TIMER peripheral driver. //========================================================== #ifndef NRFX_TIMER_ENABLED #define NRFX_TIMER_ENABLED 0 diff --git a/modules/hal_nordic/nrfx/nrfx_config_nrf5340_network.h b/modules/hal_nordic/nrfx/nrfx_config_nrf5340_network.h index 5623d2643c..db8dd758b5 100644 --- a/modules/hal_nordic/nrfx/nrfx_config_nrf5340_network.h +++ b/modules/hal_nordic/nrfx/nrfx_config_nrf5340_network.h @@ -798,7 +798,7 @@ // -// NRFX_TIMER_ENABLED - nrfx_timer - TIMER periperal driver. +// NRFX_TIMER_ENABLED - nrfx_timer - TIMER peripheral driver. //========================================================== #ifndef NRFX_TIMER_ENABLED #define NRFX_TIMER_ENABLED 0 diff --git a/modules/hal_nordic/nrfx/nrfx_config_nrf9160.h b/modules/hal_nordic/nrfx/nrfx_config_nrf9160.h index 57ef9c4c59..9c2f249b4a 100644 --- a/modules/hal_nordic/nrfx/nrfx_config_nrf9160.h +++ b/modules/hal_nordic/nrfx/nrfx_config_nrf9160.h @@ -1124,7 +1124,7 @@ #define NRFX_SYSTICK_ENABLED 0 #endif -// NRFX_TIMER_ENABLED - nrfx_timer - TIMER periperal driver. +// NRFX_TIMER_ENABLED - nrfx_timer - TIMER peripheral driver. //========================================================== #ifndef NRFX_TIMER_ENABLED #define NRFX_TIMER_ENABLED 0 diff --git a/modules/mbedtls/Kconfig b/modules/mbedtls/Kconfig index f91e4a6218..9ec47a72da 100644 --- a/modules/mbedtls/Kconfig +++ b/modules/mbedtls/Kconfig @@ -11,7 +11,7 @@ config MBEDTLS_PROMPTLESS Symbol to disable the prompt for MBEDTLS selection. This symbol may be used internally in a Kconfig tree to hide the mbed TLS menu prompt and instead handle the selection of MBEDTLS from - dependent sub-configurations and thus preven stuck symbol behavior. + dependent sub-configurations and thus prevent stuck symbol behavior. menuconfig MBEDTLS diff --git a/modules/mbedtls/configs/config-no-entropy.h b/modules/mbedtls/configs/config-no-entropy.h index e4684f85cb..b4884c1b6b 100644 --- a/modules/mbedtls/configs/config-no-entropy.h +++ b/modules/mbedtls/configs/config-no-entropy.h @@ -48,7 +48,7 @@ */ /* * Minimal configuration of features that do not require an entropy source - * Distinguishing reatures: + * Distinguishing features: * - no entropy module * - no TLS protocol implementation available due to absence of an entropy * source diff --git a/modules/mbedtls/configs/config-suite-b.h b/modules/mbedtls/configs/config-suite-b.h index 5b74f18bc8..776ed8c019 100644 --- a/modules/mbedtls/configs/config-suite-b.h +++ b/modules/mbedtls/configs/config-suite-b.h @@ -132,7 +132,7 @@ /* * Save RAM at the expense of interoperability: do this only if you control - * both ends of the connection! (See coments in "mbedtls/ssl.h".) + * both ends of the connection! (See comments in "mbedtls/ssl.h".) * The minimum size here depends on the certificate chain used as well as the * typical size of records. */ diff --git a/share/zephyr-package/cmake/ZephyrConfig.cmake b/share/zephyr-package/cmake/ZephyrConfig.cmake index c81efc4f03..0f86fcf371 100644 --- a/share/zephyr-package/cmake/ZephyrConfig.cmake +++ b/share/zephyr-package/cmake/ZephyrConfig.cmake @@ -115,8 +115,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 real + # 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(CURRENT_WORKSPACE_DIR ${CURRENT_WORKSPACE_DIR})