diff --git a/boards/airfy-beacon/doc.txt b/boards/airfy-beacon/doc.txt index 6e26aeb311..4552bd7745 100644 --- a/boards/airfy-beacon/doc.txt +++ b/boards/airfy-beacon/doc.txt @@ -98,7 +98,7 @@ file](https://github.com/texane/stlink/blob/master/README) if you need help. Second you need to enable the standalone ST-Link mode of the discovery board by removing the two `CN2` jumpers, found somewhere in the upper left part of the board. This disconnects the ST-Link programmer from the micro-controller part of -the port and enables direct access through the pin-header `CN3`, also labled +the port and enables direct access through the pin-header `CN3`, also labeled `SWD`. This module supports the Serial Wire Debug (SWD) interface. To access the diff --git a/boards/arduino-leonardo/doc.txt b/boards/arduino-leonardo/doc.txt index 8093791a67..fd31678244 100644 --- a/boards/arduino-leonardo/doc.txt +++ b/boards/arduino-leonardo/doc.txt @@ -44,7 +44,7 @@ avrdude (the tool used to flash the firmware) to connect to the bootloader. 3. Hit enter In case the compilation takes longer than the bootloader waits before starting -the user program, flashing will fail. See below to work arround +the user program, flashing will fail. See below to work around ### On a Slow Host diff --git a/boards/blackpill-128kib/include/board.h b/boards/blackpill-128kib/include/board.h index 317bd31818..24c68e50d3 100644 --- a/boards/blackpill-128kib/include/board.h +++ b/boards/blackpill-128kib/include/board.h @@ -45,7 +45,7 @@ extern "C" { } #endif -/* Beware: This include must come *after* LED0 paramters have been defined */ +/* Beware: This include must come *after* LED0 parameters have been defined */ #include "board_common.h" #endif /* BOARD_H */ diff --git a/boards/blackpill/include/board.h b/boards/blackpill/include/board.h index d817b91f55..00dd6a61e0 100644 --- a/boards/blackpill/include/board.h +++ b/boards/blackpill/include/board.h @@ -45,7 +45,7 @@ extern "C" { } #endif -/* Beware: This include must come *after* LED0 paramters have been defined */ +/* Beware: This include must come *after* LED0 parameters have been defined */ #include "board_common.h" #endif /* BOARD_H */ diff --git a/boards/cc2650stk/doc.txt b/boards/cc2650stk/doc.txt index 398824b22b..2bf802445f 100644 --- a/boards/cc2650stk/doc.txt +++ b/boards/cc2650stk/doc.txt @@ -143,7 +143,7 @@ rfc_ble_param_advertiser_t | Field | Size | RIOT variable | Description| |:----------------------|:--------|:--------------|:------------------------------------------------------------| -| PDU Type | 4 bits | `ropCmd.commandNo` | PDU Type is solely dependant on the command type. See below. | +| PDU Type | 4 bits | `ropCmd.commandNo` | PDU Type is solely dependent on the command type. See below. | | RFU | 2 bits | - | Reserved for Future Use (RFU): [You can't touch this.](https://www.youtube.com/watch?v=otCpCn0l4Wo) Assumed to be 0.| | TxAdd | 1 bit | `pParams->advConfig.deviceAddrType` | The field value is specific to the PDU type. | | RxAdd | 1 bit | - | The field value is specific to the PDU type. According to the TI documentation ([23.6.4.4](http://www.ti.com/lit/ug/swcu117d/swcu117d.pdf)), this field is not available to configure and thus assumed to be 0. | diff --git a/boards/common/atmega/doc.txt b/boards/common/atmega/doc.txt index 81e9a07db1..516698ecbb 100644 --- a/boards/common/atmega/doc.txt +++ b/boards/common/atmega/doc.txt @@ -13,5 +13,5 @@ To enable only a specific bank, simply add `USEMODULE += atmega_pcintN` to your Makefile. To enable all interrupts you can use `USEMODULE += atmega_pcint`. In case you want to add a new CPU, simply provide an `atmega_pcint.h` with your -CPU and adapt your Makefile.dep and Makefile.featues files. +CPU and adapt your Makefile.dep and Makefile.features files. */ \ No newline at end of file diff --git a/boards/common/atmega/include/periph_conf_atmega_common.h b/boards/common/atmega/include/periph_conf_atmega_common.h index a9928a9acc..1664f620e9 100644 --- a/boards/common/atmega/include/periph_conf_atmega_common.h +++ b/boards/common/atmega/include/periph_conf_atmega_common.h @@ -91,7 +91,7 @@ extern "C" { * ATmega2560 * ========== * The timer driver only supports the four 16-bit timers (Timer1, Timer3, - * Timer4, Timer5), so those are the only onces we can use here. + * Timer4, Timer5), so those are the only ones we can use here. * * * ATmega32U4 diff --git a/boards/common/esp32/include/board_common.h b/boards/common/esp32/include/board_common.h index fde0d30b25..3b5143eb59 100644 --- a/boards/common/esp32/include/board_common.h +++ b/boards/common/esp32/include/board_common.h @@ -108,7 +108,7 @@ /** * @brief MTD drive start address in SPI flash memory * - * Defines the start adress of the MTD system device in the SPI + * Defines the start address of the MTD system device in the SPI * flash memory. It can be overridden by \ref esp32_app_spec_conf * "application-specific board configuration" * diff --git a/boards/common/msb-430/board_init.c b/boards/common/msb-430/board_init.c index 8d2dc04b71..00d155592e 100644 --- a/boards/common/msb-430/board_init.c +++ b/boards/common/msb-430/board_init.c @@ -135,7 +135,7 @@ void msp430_init_dco(void) unsigned int oldcapture = 0; unsigned int i; - BCSCTL1 = 0xa4; /* ACLK is devided by 4. RSEL=6 no division for MCLK + BCSCTL1 = 0xa4; /* ACLK is divided by 4. RSEL=6 no division for MCLK and SSMCLK. XT2 is off. */ /* Init FLL to desired frequency using the 32762Hz crystal */ @@ -151,15 +151,15 @@ void msp430_init_dco(void) for (i = 0xffff; i > 0; i--); /* Delay for XTAL to settle */ CCTL2 = CCIS0 + CM0 + CAP; /* Define CCR2, CAP, ACLK */ - TACTL = TASSEL1 + TACLR + MC1; /* SMCLK, continous mode */ + TACTL = TASSEL1 + TACLR + MC1; /* SMCLK, continuous mode */ while (1) { unsigned int compare; - while ((CCTL2 & CCIFG) != CCIFG); /* Wait until capture occured! */ + while ((CCTL2 & CCIFG) != CCIFG); /* Wait until capture occurred! */ - CCTL2 &= ~CCIFG; /* Capture occured, clear flag */ + CCTL2 &= ~CCIFG; /* Capture occurred, clear flag */ compare = CCR2; /* Get current captured SMCLK */ compare = compare - oldcapture; /* SMCLK difference */ oldcapture = CCR2; /* Save current captured SMCLK */ diff --git a/boards/common/msba2/tools/src/download.c b/boards/common/msba2/tools/src/download.c index 3fa338d4e9..6371bc633d 100644 --- a/boards/common/msba2/tools/src/download.c +++ b/boards/common/msba2/tools/src/download.c @@ -369,7 +369,7 @@ static void download_main(int event) } if (strcmp(parsed_response_buf, "OK\r\n") == 0) { - printf("Baud sync sucessful\r\n"); + printf("Baud sync successful\r\n"); state = CHIP_ID; event = BEGIN; break; @@ -851,7 +851,7 @@ static void download_main(int event) // would be nice if we could simply jump to the user's code, but // Philips didn't think of that. The interrupt vector table stays // mapped to the bootloader, so jumping to zero only runs the - // bootloader again. Intead, we need to download a tiny ARM + // bootloader again. Instead, we need to download a tiny ARM // program that reconfigures the hardware and then jumps to zero. //snprintf(buf, sizeof(buf), "G %d A\r\n", 0); snprintf(buf, sizeof(buf), "W %u %u\r\n", chip->ram_addr, chip->bootprog[0] * 4); diff --git a/boards/common/msba2/tools/src/ihex.c b/boards/common/msba2/tools/src/ihex.c index 8d4965b9d5..e5610e4ed3 100644 --- a/boards/common/msba2/tools/src/ihex.c +++ b/boards/common/msba2/tools/src/ihex.c @@ -113,7 +113,7 @@ int read_intel_hex(const char *filename) /* parses a line of intel hex code, stores the data in bytes[] */ /* and the beginning address in addr, and returns a 1 if the */ -/* line was valid, or a 0 if an error occured. The variable */ +/* line was valid, or a 0 if an error occurred. The variable */ /* num gets the number of bytes that were stored into bytes[] */ diff --git a/boards/common/msba2/tools/src/serial.c b/boards/common/msba2/tools/src/serial.c index 73ec7374d7..12536f1eff 100644 --- a/boards/common/msba2/tools/src/serial.c +++ b/boards/common/msba2/tools/src/serial.c @@ -131,7 +131,7 @@ static void report_open_error(const char *filename, int err) printf("You don't have permission to access %s\r\n", filename); } - //printf("Attemping to find more information about %s....\r\n", filename); + //printf("Attempting to find more information about %s....\r\n", filename); r = stat(filename, &info); if (r < 0) { diff --git a/boards/esp32-mh-et-live-minikit/doc.txt b/boards/esp32-mh-et-live-minikit/doc.txt index a9208f3581..8755f2500b 100644 --- a/boards/esp32-mh-et-live-minikit/doc.txt +++ b/boards/esp32-mh-et-live-minikit/doc.txt @@ -39,7 +39,7 @@ MH-ET LIVE MiniKit for ESP32 belongs to the class of general purpose boards wher \htmlonly\endhtmlonly @image html "https://gitlab.com/gschorcht/RIOT.wiki-Images/raw/master/esp32/MH-ET_LIVE_D1_mini_ESP32_2.png?inline=false" "MH-ET LIVE MiniKit for ESP32" -This stackable plattform was tested in an RIOT application with: +This stackable platform was tested in an RIOT application with: - [Micro SD-Card Shield](https://wiki.wemos.cc/products:d1_mini_shields:micro_sd_card_shield) - MRF24J40 IEEE 802.15.4 radio Shield (contact gunar@schorcht.net for more information) diff --git a/boards/esp32-mh-et-live-minikit/include/board_modules.h b/boards/esp32-mh-et-live-minikit/include/board_modules.h index 12c57b59e5..1d504a9b19 100644 --- a/boards/esp32-mh-et-live-minikit/include/board_modules.h +++ b/boards/esp32-mh-et-live-minikit/include/board_modules.h @@ -46,16 +46,16 @@ extern "C" { #define MRF24J40_PARAM_SPI SPI_DEV(0) /**< SPI_DEV(0) is used (fixed) */ #ifndef MRF24J40_PARAM_SPI_CLK -#define MRF24J40_PARAM_SPI_CLK SPI_CLK_1MHZ /**< SPI bus speed used (can be overriden) */ +#define MRF24J40_PARAM_SPI_CLK SPI_CLK_1MHZ /**< SPI bus speed used (can be overridden) */ #endif #ifndef MRF24J40_PARAM_CS -#define MRF24J40_PARAM_CS GPIO26 /**< MRF24J40 CS signal (can be overriden) */ +#define MRF24J40_PARAM_CS GPIO26 /**< MRF24J40 CS signal (can be overridden) */ #endif #ifndef MRF24J40_PARAM_INT -#define MRF24J40_PARAM_INT GPIO17 /**< MRF24J40 INT signal (can be overriden) */ +#define MRF24J40_PARAM_INT GPIO17 /**< MRF24J40 INT signal (can be overridden) */ #endif #ifndef MRF24J40_PARAM_RESET -#define MRF24J40_PARAM_RESET GPIO16 /**< MRF24J40 RESET signal (can be overriden) */ +#define MRF24J40_PARAM_RESET GPIO16 /**< MRF24J40 RESET signal (can be overridden) */ #endif /** @} */ #endif /* MODULE_MRF24J40 || DOXYGEN */ diff --git a/boards/esp32-mh-et-live-minikit/include/periph_conf.h b/boards/esp32-mh-et-live-minikit/include/periph_conf.h index de633c5b88..fb43218843 100644 --- a/boards/esp32-mh-et-live-minikit/include/periph_conf.h +++ b/boards/esp32-mh-et-live-minikit/include/periph_conf.h @@ -140,7 +140,7 @@ /** * @name UART configuration * - * ESP32 provides 3 UART interaces at maximum: + * ESP32 provides 3 UART interfaces at maximum: * * UART_DEV(0) uses fixed standard configuration.
* UART_DEV(1) is defined here.
diff --git a/boards/esp32-olimex-evb/include/periph_conf.h b/boards/esp32-olimex-evb/include/periph_conf.h index c38f6ca7a4..11d5770429 100644 --- a/boards/esp32-olimex-evb/include/periph_conf.h +++ b/boards/esp32-olimex-evb/include/periph_conf.h @@ -73,11 +73,11 @@ extern "C" { /** * @name CAN configuration * - * Olimex ESP32-EVB has a CAN interface including a CAN tranceiver on board. + * Olimex ESP32-EVB has a CAN interface including a CAN transceiver on board. */ #ifndef MODULE_OLIMEX_ESP32_GATEWAY -#define CAN_TX GPIO5 /**< CAN TX tranceiver signal */ -#define CAN_RX GPIO35 /**< CAN RX tranceiver signal */ +#define CAN_TX GPIO5 /**< CAN TX transceiver signal */ +#define CAN_RX GPIO35 /**< CAN RX transceiver signal */ #endif /** @@ -192,7 +192,7 @@ extern "C" { /** * @name UART configuration * - * ESP32 provides 3 UART interaces at maximum: + * ESP32 provides 3 UART interfaces at maximum: * * UART_DEV(0) uses fixed standard configuration.
* UART_DEV(1) is defined here.
diff --git a/boards/esp32-wemos-lolin-d32-pro/include/board.h b/boards/esp32-wemos-lolin-d32-pro/include/board.h index 16875deec4..dbab5be37b 100644 --- a/boards/esp32-wemos-lolin-d32-pro/include/board.h +++ b/boards/esp32-wemos-lolin-d32-pro/include/board.h @@ -60,7 +60,7 @@ * @name SD card interface configuration * * SD card interface uses SPI_DEV(0) on this board. This configuration cannot - * be overriden. + * be overridden. * @{ */ #if MODULE_SDCARD_SPI diff --git a/boards/esp32-wemos-lolin-d32-pro/include/periph_conf.h b/boards/esp32-wemos-lolin-d32-pro/include/periph_conf.h index e3d0812c79..0aa2bc3dd5 100644 --- a/boards/esp32-wemos-lolin-d32-pro/include/periph_conf.h +++ b/boards/esp32-wemos-lolin-d32-pro/include/periph_conf.h @@ -170,7 +170,7 @@ /** * @name UART configuration * - * ESP32 provides 3 UART interaces at maximum: + * ESP32 provides 3 UART interfaces at maximum: * * UART_DEV(0) uses fixed standard configuration.
* UART_DEV(1) is not used.
diff --git a/boards/esp32-wroom-32/include/periph_conf.h b/boards/esp32-wroom-32/include/periph_conf.h index 0e1f685682..53ce161c61 100644 --- a/boards/esp32-wroom-32/include/periph_conf.h +++ b/boards/esp32-wroom-32/include/periph_conf.h @@ -171,7 +171,7 @@ extern "C" { /** * @name UART configuration * - * ESP32 provides 3 UART interaces at maximum: + * ESP32 provides 3 UART interfaces at maximum: * * UART_DEV(0) uses fixed standard configuration.
* UART_DEV(1) is defined here.
diff --git a/boards/esp32-wrover-kit/doc.txt b/boards/esp32-wrover-kit/doc.txt index efaa94042c..bc095d92a8 100644 --- a/boards/esp32-wrover-kit/doc.txt +++ b/boards/esp32-wrover-kit/doc.txt @@ -257,7 +257,7 @@ For detailed information about ESP32 as well as configuring and compiling RIOT f ## On-Chip Debugging with the Device    [[TOC](#toc)] -Since the USB bridge based on FDI FT2232HL provides a JTAG interface for debugging through an USB interface, using ESP-ROVER-KIT is the easiest and most convinient way for On-Chip debugging. Please refer the [ESP-IDF Programming Guide](https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/jtag-debugging/index.html) for details on how to setup and how to use ESP-WROVER-KIT and OpenOCD. +Since the USB bridge based on FDI FT2232HL provides a JTAG interface for debugging through an USB interface, using ESP-ROVER-KIT is the easiest and most convenient way for On-Chip debugging. Please refer the [ESP-IDF Programming Guide](https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/jtag-debugging/index.html) for details on how to setup and how to use ESP-WROVER-KIT and OpenOCD. ## Other Documentation Resources    [[TOC](#toc)] diff --git a/boards/esp32-wrover-kit/include/periph_conf.h b/boards/esp32-wrover-kit/include/periph_conf.h index 5b637d9581..46cf6123e6 100644 --- a/boards/esp32-wrover-kit/include/periph_conf.h +++ b/boards/esp32-wrover-kit/include/periph_conf.h @@ -196,7 +196,7 @@ /** * @name UART configuration * - * ESP32 provides 3 UART interaces at maximum: + * ESP32 provides 3 UART interfaces at maximum: * * UART_DEV(0) uses fixed standard configuration.
* UART_DEV(1) is not available.
diff --git a/boards/fox/doc.txt b/boards/fox/doc.txt index b9de237ab5..bfb6e3470d 100644 --- a/boards/fox/doc.txt +++ b/boards/fox/doc.txt @@ -121,7 +121,7 @@ In some cases it seems necessary to prepend a `monitor reset run` before executing continue. In general you can use openocd commands prepended by `monitor`. -In the case the node crashes it can be reseted with the following sequence +In the case the node crashes it can be reset with the following sequence ``` Bash (gdb) monitor reset halt diff --git a/boards/frdm-k64f/doc.txt b/boards/frdm-k64f/doc.txt index 3a182ea61a..90f39db979 100644 --- a/boards/frdm-k64f/doc.txt +++ b/boards/frdm-k64f/doc.txt @@ -31,7 +31,7 @@ M-K64F_BDTN.jpg) | Vcc | TODO | | Reference Manual | TODO | -The board has an integrated debuger adapter (k20dx128) with the firmware from +The board has an integrated debugger adapter (k20dx128) with the firmware from ARMmbed. There are three interfaces available: * Drag-n-drop programming over Mass Storage Device diff --git a/boards/iotlab-m3/doc.txt b/boards/iotlab-m3/doc.txt index 2b190c0d90..3c9c0dc5bb 100644 --- a/boards/iotlab-m3/doc.txt +++ b/boards/iotlab-m3/doc.txt @@ -67,7 +67,7 @@ eabi-gdb`), which provided by most toolchains. Most Linux distributions provide also a package for OpenOCD. The required configuration files are provided by RIOT. When starting the debugger with `make debug BOARD=iotlab-m3` GDB connects to -openocd, loads the elf-file and puts the MCU into halt state. Befor setting +openocd, loads the elf-file and puts the MCU into halt state. Before setting breakpoints it is sometimes needed to use the following workflow ``` bash @@ -148,7 +148,7 @@ In some cases it seems necessary to prepend a `monitor reset run` before executing continue. In general you can use openocd commands prepended by `monitor`. -In the case the node crashes it can be reseted with the following sequence +In the case the node crashes it can be reset with the following sequence ``` Bash (gdb) monitor reset halt diff --git a/boards/lsn50/doc.txt b/boards/lsn50/doc.txt index de0ced1d88..e7ade75df3 100644 --- a/boards/lsn50/doc.txt +++ b/boards/lsn50/doc.txt @@ -41,7 +41,7 @@ application. ### STDIO STDIO is connected to pins PA9 (TX) and PA10 (RX) so an USB to UART adapter is -required. Use the `term` targed to open a terminal: +required. Use the `term` target to open a terminal: make BOARD=lsn50 -C examples/hello-world term diff --git a/boards/mbed_lpc1768/dist/flash.sh b/boards/mbed_lpc1768/dist/flash.sh index 822fb21d31..9f6fb84ebc 100755 --- a/boards/mbed_lpc1768/dist/flash.sh +++ b/boards/mbed_lpc1768/dist/flash.sh @@ -68,5 +68,5 @@ then fi echo "" -echo "UPLOAD SUCCESFUL" +echo "UPLOAD SUCCESSFUL" echo "" diff --git a/boards/microbit/doc.txt b/boards/microbit/doc.txt index f09edf5c3a..ca065bf15e 100644 --- a/boards/microbit/doc.txt +++ b/boards/microbit/doc.txt @@ -48,7 +48,7 @@ or you can flash the board using Segger's JLink. The [DAPLink interface](https://www.mbed.com/en/development/hardware/prototyping-production/daplink/daplink-on-kl26z/) is the default way to flash the board and works out of the box. When you plug the board to your host computer, it shows up as a flash drive. To flash the board, you can simply copy your compiled `.hex` -file onto the board, and thats it. +file onto the board, and that's it. The `micro:bit` port comes with a little script that does this automatically, so you can flash the board as usual with diff --git a/boards/msba2/doc.txt b/boards/msba2/doc.txt index 20e66c1c7f..3b5d584639 100644 --- a/boards/msba2/doc.txt +++ b/boards/msba2/doc.txt @@ -70,7 +70,7 @@ The following wires need to be soldered on: As debugger an FT2232HL is used, the cheapest version costs less 10€ (often nicknamed CJMCU-2232HL). -Connect as fallows: +Connect as follows: | FT2232HL | MSB-A2 | |:----------|:----------| diff --git a/boards/nucleo-l4r5zi/doc.txt b/boards/nucleo-l4r5zi/doc.txt index cf928feea7..0fcf6324b0 100644 --- a/boards/nucleo-l4r5zi/doc.txt +++ b/boards/nucleo-l4r5zi/doc.txt @@ -26,7 +26,7 @@ make BOARD=nucleo-l4r5zi flash -C examples/hello-world STDIO is available via the ST-Link programmer. -Use the `term` targed to open a terminal: +Use the `term` target to open a terminal: make BOARD=nucleo-l4r5zi -C examples/hello-world term diff --git a/boards/p-l496g-cell02/doc.txt b/boards/p-l496g-cell02/doc.txt index e70a99ed0b..d9ed8ef707 100644 --- a/boards/p-l496g-cell02/doc.txt +++ b/boards/p-l496g-cell02/doc.txt @@ -24,7 +24,7 @@ make BOARD=p-l496g-cell02 flash -C examples/hello-world STDIO is available via the ST-Link programmer. -Use the `term` targed to open a terminal: +Use the `term` target to open a terminal: make BOARD=p-l496g-cell02 -C examples/hello-world term diff --git a/boards/remote-pa/board.c b/boards/remote-pa/board.c index 879e081627..785d172808 100644 --- a/boards/remote-pa/board.c +++ b/boards/remote-pa/board.c @@ -46,7 +46,7 @@ void board_init(void) /** * @brief Initialize the 2.4GHz Radio Frequency SW-controlled Switch * - * The Re-Mote features an on-board RF switch to programatically select to + * The Re-Mote features an on-board RF switch to programmatically select to * enable either the internal ceramic antenna, or an external antenna over an * uFL connector. As default we prefer to use the internal one. * diff --git a/boards/remote-reva/README.md b/boards/remote-reva/README.md index acb34cbefe..ed67bec311 100644 --- a/boards/remote-reva/README.md +++ b/boards/remote-reva/README.md @@ -28,7 +28,7 @@ In terms of hardware support, the following drivers have been implemented: * LEDs * Buttons * ADC - * RF switch to programatically drive either 2.4GHz or sub-1GHz to a single RP-SMA + * RF switch to programmatically drive either 2.4GHz or sub-1GHz to a single RP-SMA * RF 2.4GHz built-in in CC2538 And under work or pending at cc2538 base cpu: diff --git a/boards/remote-reva/board.c b/boards/remote-reva/board.c index f6db451be3..3796d3b286 100644 --- a/boards/remote-reva/board.c +++ b/boards/remote-reva/board.c @@ -56,7 +56,7 @@ static inline void leds_init(void) /** * @brief Initialize the Radio interface SW-controlled Switch * - * The RE-Mote features an on-board RF switch to programatically select to + * The RE-Mote features an on-board RF switch to programmatically select to * enable either the 2.4GHz or Sub-1GHz RF interface to the RP-SMA connector * to use an external antenna. As default we prefer to use the 2.4GHz RF. * diff --git a/boards/remote-reva/doc.txt b/boards/remote-reva/doc.txt index 0f429b7063..0160826565 100644 --- a/boards/remote-reva/doc.txt +++ b/boards/remote-reva/doc.txt @@ -35,7 +35,7 @@ In terms of hardware support, the following drivers have been implemented: * LEDs * Buttons * RF 2.4GHz built-in in CC2538 -* RF switch to programatically drive either 2.4GHz or sub-1GHz to a single +* RF switch to programmatically drive either 2.4GHz or sub-1GHz to a single RP-SMA And under work or pending at cc2538 base cpu: diff --git a/boards/remote-revb/README.md b/boards/remote-revb/README.md index 2383880608..d2aa091a3d 100644 --- a/boards/remote-revb/README.md +++ b/boards/remote-revb/README.md @@ -33,7 +33,7 @@ In terms of hardware support, the following drivers have been implemented: * I2C/SPI library * LEDs * Buttons - * RF switch to programatically drive either 2.4GHz or sub-1GHz to a single RP-SMA + * RF switch to programmatically drive either 2.4GHz or sub-1GHz to a single RP-SMA * RF 2.4GHz built-in in CC2538 And under work or pending at cc2538 base cpu: diff --git a/boards/remote-revb/board.c b/boards/remote-revb/board.c index 6026ce6892..5bf059ddc9 100644 --- a/boards/remote-revb/board.c +++ b/boards/remote-revb/board.c @@ -56,7 +56,7 @@ static inline void leds_init(void) /** * @brief Initialize the Radio interface SW-controlled Switch * - * The RE-Mote features an on-board RF switch to programatically select to + * The RE-Mote features an on-board RF switch to programmatically select to * enable either the 2.4GHz or Sub-1GHz RF interface to the RP-SMA connector * to use an external antenna. As default we prefer to use the 2.4GHz RF. * diff --git a/boards/saml21-xpro/doc.txt b/boards/saml21-xpro/doc.txt index c17f9eb09a..523440d96a 100644 --- a/boards/saml21-xpro/doc.txt +++ b/boards/saml21-xpro/doc.txt @@ -79,7 +79,7 @@ Please note that even the latest official OpenOCD (v0.9 at the time of this writing) does not support B-variant SAML21 devices. If you attempt to flash a board, and OpenOCD throws a `Couldn't find part -correspoding to DID XXXXXXXX` error, you will need to compile your own OpenOCD +corresponding to DID XXXXXXXX` error, you will need to compile your own OpenOCD from source. Refer to https://github.com/RIOT-OS/RIOT/wiki/OpenOCD for general diff --git a/boards/sensebox_samd21/doc.txt b/boards/sensebox_samd21/doc.txt index c22177cee3..aa5bdabc1d 100644 --- a/boards/sensebox_samd21/doc.txt +++ b/boards/sensebox_samd21/doc.txt @@ -45,13 +45,13 @@ connected to the ports is reset before use. #### SX127X radio The pin configuration for the SX127X radio on the *boards/sensebox_samd21/include/board.h** file assumes that it will be connected to -the XBEE1 port. If a different configuraion is needed please modify this +the XBEE1 port. If a different configuration is needed please modify this file. #### SD card The pin configuration for the mSD-Bee module radio on the *boards/sensebox_samd21/include/sdcard_spi_params.h** file assumes that it will be -connected to the XBEE2 port. If a different configuraion is needed please +connected to the XBEE2 port. If a different configuration is needed please modify this file. #### Limitations diff --git a/boards/stm32f723e-disco/doc.txt b/boards/stm32f723e-disco/doc.txt index 136966c996..f44c4124b2 100644 --- a/boards/stm32f723e-disco/doc.txt +++ b/boards/stm32f723e-disco/doc.txt @@ -24,7 +24,7 @@ make BOARD=stm32f723e-disco flash -C examples/hello-world STDIO is available via the ST-Link programmer. -Use the `term` targed to open a terminal: +Use the `term` target to open a terminal: make BOARD=stm32f723e-disco -C examples/hello-world term diff --git a/boards/stm32l0538-disco/doc.txt b/boards/stm32l0538-disco/doc.txt index d018931a1e..d3171e6186 100644 --- a/boards/stm32l0538-disco/doc.txt +++ b/boards/stm32l0538-disco/doc.txt @@ -31,7 +31,7 @@ Then use the following command: ### STDIO STDIO is connected to pins PA9 (TX) and PA10 (RX) so an USB to UART adapter is -required. Use the `term` targed to open a terminal: +required. Use the `term` target to open a terminal: make BOARD=stm32l0538-disco -C examples/hello-world term diff --git a/boards/telosb/board.c b/boards/telosb/board.c index 894fd50dd2..e198dbaa14 100644 --- a/boards/telosb/board.c +++ b/boards/telosb/board.c @@ -71,14 +71,14 @@ void msp430_init_dco(void) } CCTL2 = CCIS0 + CM0 + CAP; /* Define CCR2, CAP, ACLK */ - TACTL = TASSEL1 + TACLR + MC1; /* SMCLK, continous mode */ + TACTL = TASSEL1 + TACLR + MC1; /* SMCLK, continuous mode */ while (1) { unsigned int compare; - while ((CCTL2 & CCIFG) != CCIFG); /* Wait until capture occured!*/ + while ((CCTL2 & CCIFG) != CCIFG); /* Wait until capture occurred!*/ - CCTL2 &= ~CCIFG; /* Capture occured, clear flag */ + CCTL2 &= ~CCIFG; /* Capture occurred, clear flag */ compare = CCR2; /* Get current captured SMCLK */ compare = compare - oldcapture; /* SMCLK difference */ oldcapture = CCR2; /* Save current captured SMCLK */ diff --git a/boards/telosb/include/board.h b/boards/telosb/include/board.h index 81e849e468..a6359bf36e 100644 --- a/boards/telosb/include/board.h +++ b/boards/telosb/include/board.h @@ -10,7 +10,7 @@ /** * @ingroup boards_telosb * - *

Compontents

+ *

Components

* \li MSP430 * \li CC2420 * diff --git a/boards/thingy52/doc.txt b/boards/thingy52/doc.txt index 0fd13a9a91..c70d68c111 100644 --- a/boards/thingy52/doc.txt +++ b/boards/thingy52/doc.txt @@ -12,7 +12,7 @@ Components: - nRF52832 main controller (providing Bluetooth and NFC) - an LIS2DH12 low-power three-axis linear accelerometer - an MPU-9250 nine-axis motion sensor -- an LPS22HB air pressure and temperatur sensor +- an LPS22HB air pressure and temperature sensor - an HTS221 air temperature and humidity sensor - a BH1745NUC color sensor - a CCS811 gas sensor diff --git a/boards/yunjia-nrf51822/doc.txt b/boards/yunjia-nrf51822/doc.txt index 0d3cd1f50d..39ddb37c88 100644 --- a/boards/yunjia-nrf51822/doc.txt +++ b/boards/yunjia-nrf51822/doc.txt @@ -67,7 +67,7 @@ Second you need to enable the stand-alone ST-Link mode of the discovery board by removing the two `CN2` jumpers, found somewhere in the upper right part of the board. This disconnects the ST-Link programmer from the micro-controller part of the port and enables direct access through the pin-header `CN3`, also -labled `SWD`. +labeled `SWD`. The Yunjia NRF51822 module supports the Serial Wire Debug (SWD) interface. To access the device the following four lines need to be connected with the diff --git a/boards/z1/board.c b/boards/z1/board.c index 1f4838046f..655cf0b0dc 100644 --- a/boards/z1/board.c +++ b/boards/z1/board.c @@ -142,14 +142,14 @@ void msp430_init_dco(void) } CCTL2 = CCIS0 + CM0 + CAP; /* Define CCR2, CAP, ACLK */ - TACTL = TASSEL1 + TACLR + MC1; /* SMCLK, continous mode */ + TACTL = TASSEL1 + TACLR + MC1; /* SMCLK, continuous mode */ while (1) { unsigned int compare; - while ((CCTL2 & CCIFG) != CCIFG); /* Wait until capture occured!*/ + while ((CCTL2 & CCIFG) != CCIFG); /* Wait until capture occurred!*/ - CCTL2 &= ~CCIFG; /* Capture occured, clear flag */ + CCTL2 &= ~CCIFG; /* Capture occurred, clear flag */ compare = CCR2; /* Get current captured SMCLK */ compare = compare - oldcapture; /* SMCLK difference */ oldcapture = CCR2; /* Save current captured SMCLK */ diff --git a/core/include/byteorder.h b/core/include/byteorder.h index 4052a56c24..fcd99ae8b4 100644 --- a/core/include/byteorder.h +++ b/core/include/byteorder.h @@ -367,7 +367,7 @@ static inline le_uint64_t byteorder_btolll(be_uint64_t v) } /** - * @brief Swaps the byteorder according to the endianess + * @brief Swaps the byteorder according to the endianness */ #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ # define _byteorder_swap(V, T) (byteorder_swap##T((V))) diff --git a/core/include/kernel_init.h b/core/include/kernel_init.h index 3ea9b70b35..a96f3f08ae 100644 --- a/core/include/kernel_init.h +++ b/core/include/kernel_init.h @@ -12,7 +12,7 @@ * @{ * * @file - * @brief prototypes for kernel intitialization + * @brief prototypes for kernel initialization * * @author Oliver Hahm * @author Kaspar Schleiser diff --git a/core/include/sched.h b/core/include/sched.h index 9f89b7047b..e58f9dcb11 100644 --- a/core/include/sched.h +++ b/core/include/sched.h @@ -149,7 +149,7 @@ int sched_run(void); void sched_set_status(thread_t *process, thread_status_t status); /** - * @brief Yield if approriate. + * @brief Yield if appropriate. * * @details Either yield if other_prio is higher than the current priority, * or if the current thread is not on the runqueue. diff --git a/core/include/thread.h b/core/include/thread.h index b5139a61a4..eca0333598 100644 --- a/core/include/thread.h +++ b/core/include/thread.h @@ -348,10 +348,10 @@ kernel_pid_t thread_create(char *stack, const char *name); /** - * @brief Retreive a thread control block by PID. + * @brief Retrieve a thread control block by PID. * @details This is a bound-checked variant of accessing `sched_threads[pid]` directly. * If you know that the PID is valid, then don't use this function. - * @param[in] pid Thread to retreive. + * @param[in] pid Thread to retrieve. * @return `NULL` if the PID is invalid or there is no such thread. */ volatile thread_t *thread_get(kernel_pid_t pid); diff --git a/core/kernel_init.c b/core/kernel_init.c index cab06a3ec1..c8cf240281 100644 --- a/core/kernel_init.c +++ b/core/kernel_init.c @@ -12,7 +12,7 @@ * @{ * * @file - * @brief Platform-independent kernel initilization + * @brief Platform-independent kernel initialization * * @author Kaspar Schleiser * diff --git a/core/rmutex.c b/core/rmutex.c index 9438f74f8a..8bfceef01c 100644 --- a/core/rmutex.c +++ b/core/rmutex.c @@ -51,7 +51,7 @@ static int _lock(rmutex_t *rmutex, int trylock) * mutex_lock(). However the read access to owner is not * locked, and owner can be changed by a thread that is * holding the lock (e.g.: holder unlocks the mutex, new - * holder aquired the lock). The atomic access strategy + * holder acquired the lock). The atomic access strategy * 'relaxed' ensures, that the value of rmutex->owner is read * consistent. * @@ -72,7 +72,7 @@ static int _lock(rmutex_t *rmutex, int trylock) * Note for Case 2: * * Because the mutex rmutex->owner is only written be the - * owner (me), rmutex->owner stays constant througout the + * owner (me), rmutex->owner stays constant throughout the * complete call and rmutex->refcount is protected * (read/write) by the mutex. */ @@ -100,7 +100,7 @@ static int _lock(rmutex_t *rmutex, int trylock) DEBUG("rmutex %" PRIi16" : I am now holding the mutex\n", thread_getpid()); /* I am holding the recursive mutex */ - DEBUG("rmutex %" PRIi16" : settting the owner\n", thread_getpid()); + DEBUG("rmutex %" PRIi16" : setting the owner\n", thread_getpid()); /* ensure that owner is written atomically, since others need a consistent value */ atomic_store_explicit(&rmutex->owner, thread_getpid(), memory_order_relaxed); diff --git a/cpu/atmega1281/ldscripts_compat/README.md b/cpu/atmega1281/ldscripts_compat/README.md index 31317f0371..bb16b6ca91 100644 --- a/cpu/atmega1281/ldscripts_compat/README.md +++ b/cpu/atmega1281/ldscripts_compat/README.md @@ -2,7 +2,7 @@ avr linkerscript ================ Starting from avr-binutils 2.26, the linker defines symbol that can be -overriden to configure ROM and RAM length. +overridden to configure ROM and RAM length. This ldscript is used for supporting older versions on avr-binutils like on ubuntu xenial. diff --git a/cpu/atmega1284p/ldscripts_compat/README.md b/cpu/atmega1284p/ldscripts_compat/README.md index 31317f0371..bb16b6ca91 100644 --- a/cpu/atmega1284p/ldscripts_compat/README.md +++ b/cpu/atmega1284p/ldscripts_compat/README.md @@ -2,7 +2,7 @@ avr linkerscript ================ Starting from avr-binutils 2.26, the linker defines symbol that can be -overriden to configure ROM and RAM length. +overridden to configure ROM and RAM length. This ldscript is used for supporting older versions on avr-binutils like on ubuntu xenial. diff --git a/cpu/atmega128rfa1/ldscripts_compat/README.md b/cpu/atmega128rfa1/ldscripts_compat/README.md index 31317f0371..bb16b6ca91 100644 --- a/cpu/atmega128rfa1/ldscripts_compat/README.md +++ b/cpu/atmega128rfa1/ldscripts_compat/README.md @@ -2,7 +2,7 @@ avr linkerscript ================ Starting from avr-binutils 2.26, the linker defines symbol that can be -overriden to configure ROM and RAM length. +overridden to configure ROM and RAM length. This ldscript is used for supporting older versions on avr-binutils like on ubuntu xenial. diff --git a/cpu/atmega2560/ldscripts_compat/README.md b/cpu/atmega2560/ldscripts_compat/README.md index 31317f0371..bb16b6ca91 100644 --- a/cpu/atmega2560/ldscripts_compat/README.md +++ b/cpu/atmega2560/ldscripts_compat/README.md @@ -2,7 +2,7 @@ avr linkerscript ================ Starting from avr-binutils 2.26, the linker defines symbol that can be -overriden to configure ROM and RAM length. +overridden to configure ROM and RAM length. This ldscript is used for supporting older versions on avr-binutils like on ubuntu xenial. diff --git a/cpu/atmega256rfr2/ldscripts_compat/README.md b/cpu/atmega256rfr2/ldscripts_compat/README.md index 31317f0371..bb16b6ca91 100644 --- a/cpu/atmega256rfr2/ldscripts_compat/README.md +++ b/cpu/atmega256rfr2/ldscripts_compat/README.md @@ -2,7 +2,7 @@ avr linkerscript ================ Starting from avr-binutils 2.26, the linker defines symbol that can be -overriden to configure ROM and RAM length. +overridden to configure ROM and RAM length. This ldscript is used for supporting older versions on avr-binutils like on ubuntu xenial. diff --git a/cpu/atmega328p/ldscripts_compat/README.md b/cpu/atmega328p/ldscripts_compat/README.md index 31317f0371..bb16b6ca91 100644 --- a/cpu/atmega328p/ldscripts_compat/README.md +++ b/cpu/atmega328p/ldscripts_compat/README.md @@ -2,7 +2,7 @@ avr linkerscript ================ Starting from avr-binutils 2.26, the linker defines symbol that can be -overriden to configure ROM and RAM length. +overridden to configure ROM and RAM length. This ldscript is used for supporting older versions on avr-binutils like on ubuntu xenial. diff --git a/cpu/atmega_common/cpu.c b/cpu/atmega_common/cpu.c index 359dccdcb5..ebb2d3b0fa 100644 --- a/cpu/atmega_common/cpu.c +++ b/cpu/atmega_common/cpu.c @@ -39,7 +39,7 @@ /* * Since atmega MCUs do not feature a software reset, the watchdog timer * is being used. It will be set to the shortest time and then force a -* reset. Therefore the MCUSR register needs to be resetted as fast as +* reset. Therefore the MCUSR register needs to be reset as fast as * possible. * Which means in the bootloader or in the following init0 if no bootloader is used. * Bootloader resets watchdog and pass MCUSR in r2 (e.g. Optiboot) in order to pass diff --git a/cpu/atmega_common/periph/i2c.c b/cpu/atmega_common/periph/i2c.c index 16daade234..33daf9353f 100644 --- a/cpu/atmega_common/periph/i2c.c +++ b/cpu/atmega_common/periph/i2c.c @@ -12,7 +12,7 @@ * @{ * * @file - * @brief Low-level I2C driver implementation fot atmega common + * @brief Low-level I2C driver implementation for atmega common * * @note This implementation only implements the 7-bit addressing mode. * diff --git a/cpu/atmega_common/thread_arch.c b/cpu/atmega_common/thread_arch.c index db9607d11f..e992bb26d5 100644 --- a/cpu/atmega_common/thread_arch.c +++ b/cpu/atmega_common/thread_arch.c @@ -66,7 +66,7 @@ static void __enter_thread_mode(void); * * After the invocation of __context_restore() the pointer to task_func is * on top of the stack and can be returned to. This way we can actually place - * it inside of the programm counter of the MCU. + * it inside of the program counter of the MCU. * if task_func returns sched_task_exit gets popped into the PC */ char *thread_stack_init(thread_task_func_t task_func, void *arg, @@ -172,7 +172,7 @@ char *thread_stack_init(thread_task_func_t task_func, void *arg, * @brief thread_stack_print prints the stack to stdout. * It depends on getting the correct values for stack_start, stack_size and sp * from sched_active_thread. - * Maybe it would be good to change that to way that is less dependant on + * Maybe it would be good to change that to way that is less dependent on * getting correct values elsewhere (since it is a debugging tool and in the * presence of bugs the data may be corrupted). */ diff --git a/cpu/cc2538/include/cc2538.h b/cpu/cc2538/include/cc2538.h index ece7f659a1..6f97718a17 100644 --- a/cpu/cc2538/include/cc2538.h +++ b/cpu/cc2538/include/cc2538.h @@ -609,38 +609,38 @@ typedef volatile uint32_t cc2538_reg_t; /**< Least-significant 32 bits of the IE #define IOC_PD5_SEL ( *(cc2538_reg_t*)0x400d4074 ) /**< Peripheral select control for PD5 */ #define IOC_PD6_SEL ( *(cc2538_reg_t*)0x400d4078 ) /**< Peripheral select control for PD6 */ #define IOC_PD7_SEL ( *(cc2538_reg_t*)0x400d407c ) /**< Peripheral select control for PD7 */ -#define IOC_PA0_OVER ( *(cc2538_reg_t*)0x400d4080 ) /**< Overide configuration register for PA0. */ -#define IOC_PA1_OVER ( *(cc2538_reg_t*)0x400d4084 ) /**< Overide configuration register for PA1. */ -#define IOC_PA2_OVER ( *(cc2538_reg_t*)0x400d4088 ) /**< Overide configuration register for PA2. */ -#define IOC_PA3_OVER ( *(cc2538_reg_t*)0x400d408c ) /**< Overide configuration register for PA3. */ -#define IOC_PA4_OVER ( *(cc2538_reg_t*)0x400d4090 ) /**< Overide configuration register for PA4. */ -#define IOC_PA5_OVER ( *(cc2538_reg_t*)0x400d4094 ) /**< Overide configuration register for PA5. */ -#define IOC_PA6_OVER ( *(cc2538_reg_t*)0x400d4098 ) /**< Overide configuration register for PA6. */ -#define IOC_PA7_OVER ( *(cc2538_reg_t*)0x400d409c ) /**< Overide configuration register for PA7. */ -#define IOC_PB0_OVER ( *(cc2538_reg_t*)0x400d40a0 ) /**< Overide configuration register for PB0. */ -#define IOC_PB1_OVER ( *(cc2538_reg_t*)0x400d40a4 ) /**< Overide configuration register for PB1. */ -#define IOC_PB2_OVER ( *(cc2538_reg_t*)0x400d40a8 ) /**< Overide configuration register for PB2. */ -#define IOC_PB3_OVER ( *(cc2538_reg_t*)0x400d40ac ) /**< Overide configuration register for PB3. */ -#define IOC_PB4_OVER ( *(cc2538_reg_t*)0x400d40b0 ) /**< Overide configuration register for PB4. */ -#define IOC_PB5_OVER ( *(cc2538_reg_t*)0x400d40b4 ) /**< Overide configuration register for PB5. */ -#define IOC_PB6_OVER ( *(cc2538_reg_t*)0x400d40b8 ) /**< Overide configuration register for PB6. */ -#define IOC_PB7_OVER ( *(cc2538_reg_t*)0x400d40bc ) /**< Overide configuration register for PB7. */ -#define IOC_PC0_OVER ( *(cc2538_reg_t*)0x400d40c0 ) /**< Overide configuration register for PC0. PC0 has high drive capability. */ -#define IOC_PC1_OVER ( *(cc2538_reg_t*)0x400d40c4 ) /**< Overide configuration register for PC1. PC1 has high drive capability. */ -#define IOC_PC2_OVER ( *(cc2538_reg_t*)0x400d40c8 ) /**< Overide configuration register for PC2. PC2 has high drive capability. */ -#define IOC_PC3_OVER ( *(cc2538_reg_t*)0x400d40cc ) /**< Overide configuration register for PC3. PC3 has high drive capability. */ -#define IOC_PC4_OVER ( *(cc2538_reg_t*)0x400d40d0 ) /**< Overide configuration register for PC4. */ -#define IOC_PC5_OVER ( *(cc2538_reg_t*)0x400d40d4 ) /**< Overide configuration register for PC5. */ -#define IOC_PC6_OVER ( *(cc2538_reg_t*)0x400d40d8 ) /**< Overide configuration register for PC6. */ -#define IOC_PC7_OVER ( *(cc2538_reg_t*)0x400d40dc ) /**< Overide configuration register for PC7. */ -#define IOC_PD0_OVER ( *(cc2538_reg_t*)0x400d40e0 ) /**< Overide configuration register for PD0. */ -#define IOC_PD1_OVER ( *(cc2538_reg_t*)0x400d40e4 ) /**< Overide configuration register for PD1. */ -#define IOC_PD2_OVER ( *(cc2538_reg_t*)0x400d40e8 ) /**< Overide configuration register for PD2. */ -#define IOC_PD3_OVER ( *(cc2538_reg_t*)0x400d40ec ) /**< Overide configuration register for PD3. */ -#define IOC_PD4_OVER ( *(cc2538_reg_t*)0x400d40f0 ) /**< Overide configuration register for PD4. */ -#define IOC_PD5_OVER ( *(cc2538_reg_t*)0x400d40f4 ) /**< Overide configuration register for PD5. */ -#define IOC_PD6_OVER ( *(cc2538_reg_t*)0x400d40f8 ) /**< Overide configuration register for PD6. */ -#define IOC_PD7_OVER ( *(cc2538_reg_t*)0x400d40fc ) /**< Overide configuration register for PD7. */ +#define IOC_PA0_OVER ( *(cc2538_reg_t*)0x400d4080 ) /**< Override configuration register for PA0. */ +#define IOC_PA1_OVER ( *(cc2538_reg_t*)0x400d4084 ) /**< Override configuration register for PA1. */ +#define IOC_PA2_OVER ( *(cc2538_reg_t*)0x400d4088 ) /**< Override configuration register for PA2. */ +#define IOC_PA3_OVER ( *(cc2538_reg_t*)0x400d408c ) /**< Override configuration register for PA3. */ +#define IOC_PA4_OVER ( *(cc2538_reg_t*)0x400d4090 ) /**< Override configuration register for PA4. */ +#define IOC_PA5_OVER ( *(cc2538_reg_t*)0x400d4094 ) /**< Override configuration register for PA5. */ +#define IOC_PA6_OVER ( *(cc2538_reg_t*)0x400d4098 ) /**< Override configuration register for PA6. */ +#define IOC_PA7_OVER ( *(cc2538_reg_t*)0x400d409c ) /**< Override configuration register for PA7. */ +#define IOC_PB0_OVER ( *(cc2538_reg_t*)0x400d40a0 ) /**< Override configuration register for PB0. */ +#define IOC_PB1_OVER ( *(cc2538_reg_t*)0x400d40a4 ) /**< Override configuration register for PB1. */ +#define IOC_PB2_OVER ( *(cc2538_reg_t*)0x400d40a8 ) /**< Override configuration register for PB2. */ +#define IOC_PB3_OVER ( *(cc2538_reg_t*)0x400d40ac ) /**< Override configuration register for PB3. */ +#define IOC_PB4_OVER ( *(cc2538_reg_t*)0x400d40b0 ) /**< Override configuration register for PB4. */ +#define IOC_PB5_OVER ( *(cc2538_reg_t*)0x400d40b4 ) /**< Override configuration register for PB5. */ +#define IOC_PB6_OVER ( *(cc2538_reg_t*)0x400d40b8 ) /**< Override configuration register for PB6. */ +#define IOC_PB7_OVER ( *(cc2538_reg_t*)0x400d40bc ) /**< Override configuration register for PB7. */ +#define IOC_PC0_OVER ( *(cc2538_reg_t*)0x400d40c0 ) /**< Override configuration register for PC0. PC0 has high drive capability. */ +#define IOC_PC1_OVER ( *(cc2538_reg_t*)0x400d40c4 ) /**< Override configuration register for PC1. PC1 has high drive capability. */ +#define IOC_PC2_OVER ( *(cc2538_reg_t*)0x400d40c8 ) /**< Override configuration register for PC2. PC2 has high drive capability. */ +#define IOC_PC3_OVER ( *(cc2538_reg_t*)0x400d40cc ) /**< Override configuration register for PC3. PC3 has high drive capability. */ +#define IOC_PC4_OVER ( *(cc2538_reg_t*)0x400d40d0 ) /**< Override configuration register for PC4. */ +#define IOC_PC5_OVER ( *(cc2538_reg_t*)0x400d40d4 ) /**< Override configuration register for PC5. */ +#define IOC_PC6_OVER ( *(cc2538_reg_t*)0x400d40d8 ) /**< Override configuration register for PC6. */ +#define IOC_PC7_OVER ( *(cc2538_reg_t*)0x400d40dc ) /**< Override configuration register for PC7. */ +#define IOC_PD0_OVER ( *(cc2538_reg_t*)0x400d40e0 ) /**< Override configuration register for PD0. */ +#define IOC_PD1_OVER ( *(cc2538_reg_t*)0x400d40e4 ) /**< Override configuration register for PD1. */ +#define IOC_PD2_OVER ( *(cc2538_reg_t*)0x400d40e8 ) /**< Override configuration register for PD2. */ +#define IOC_PD3_OVER ( *(cc2538_reg_t*)0x400d40ec ) /**< Override configuration register for PD3. */ +#define IOC_PD4_OVER ( *(cc2538_reg_t*)0x400d40f0 ) /**< Override configuration register for PD4. */ +#define IOC_PD5_OVER ( *(cc2538_reg_t*)0x400d40f4 ) /**< Override configuration register for PD5. */ +#define IOC_PD6_OVER ( *(cc2538_reg_t*)0x400d40f8 ) /**< Override configuration register for PD6. */ +#define IOC_PD7_OVER ( *(cc2538_reg_t*)0x400d40fc ) /**< Override configuration register for PD7. */ #define IOC_UARTRXD_UART0 ( *(cc2538_reg_t*)0x400d4100 ) /**< Pin selection for UART0 RX. */ #define IOC_UARTCTS_UART1 ( *(cc2538_reg_t*)0x400d4104 ) /**< Pin selection for UART1 CTS. */ #define IOC_UARTRXD_UART1 ( *(cc2538_reg_t*)0x400d4108 ) /**< Pin selection for UART1 RX. */ diff --git a/cpu/cc2538/include/periph_cpu.h b/cpu/cc2538/include/periph_cpu.h index a9e5f11a24..034bfc5fd4 100644 --- a/cpu/cc2538/include/periph_cpu.h +++ b/cpu/cc2538/include/periph_cpu.h @@ -60,7 +60,7 @@ typedef uint32_t gpio_t; /** @} */ /** - * @brief Define custom value to speficy undefined or unused GPIOs + * @brief Define custom value to specify undefined or unused GPIOs */ #define GPIO_UNDEF (0xffffffff) diff --git a/cpu/cc2538/periph/adc.c b/cpu/cc2538/periph/adc.c index db6ecb2f25..3b8a705389 100644 --- a/cpu/cc2538/periph/adc.c +++ b/cpu/cc2538/periph/adc.c @@ -43,7 +43,7 @@ int adc_init(adc_t line) /* stop random number generator, and set STSEL = 1 */ soc_adc->ADCCON1 = (SOC_ADC_ADCCON1_STSEL_M | SOC_ADC_ADCCON1_RCTRL_M); - /* disable any DMA, continous ADC settings */ + /* disable any DMA, continuous ADC settings */ soc_adc->ADCCON2 = 0x0; /* configure ADC GPIO as analog input */ gpio_init(adc_config[line], GPIO_IN_ANALOG); @@ -75,14 +75,14 @@ int adc_sample(adc_t line, adc_res_t res) rshift = SOCADC_12_BIT_RSHIFT; break; default: - DEBUG("adc_sample: invalid resultion!\n"); + DEBUG("adc_sample: invalid resolution!\n"); return -1; } /** - * @attention CC2538 ADC supports differential comparision of two analog + * @attention CC2538 ADC supports differential comparison of two analog * GPIO inputs, hence negative values are possible. RIOT currently allows * positive ADC output only. Thus, reduce shift by one to compensate and - * get full value range according to ADC resolution. E.g. 10 Bit resultion + * get full value range according to ADC resolution. E.g. 10 Bit resolution * with diff ADC would have [-512,511] range but RIOT expects [0,1023]. */ rshift--; diff --git a/cpu/cc2538/periph/timer.c b/cpu/cc2538/periph/timer.c index 2c41341232..6dfc377764 100644 --- a/cpu/cc2538/periph/timer.c +++ b/cpu/cc2538/periph/timer.c @@ -187,7 +187,7 @@ int timer_clear(tim_t tim, int channel) if ( (tim >= TIMER_NUMOF) || (channel >= (int)timer_config[tim].chn) ) { return -1; } - /* clear interupt flags */ + /* clear interrupt flags */ dev(tim)->IMR &= ~(chn_isr_cfg[channel].flag); return 0; diff --git a/cpu/cc2538/radio/cc2538_rf_netdev.c b/cpu/cc2538/radio/cc2538_rf_netdev.c index 08511787be..1f0045d223 100644 --- a/cpu/cc2538/radio/cc2538_rf_netdev.c +++ b/cpu/cc2538/radio/cc2538_rf_netdev.c @@ -88,7 +88,7 @@ static int _get(netdev_t *netdev, netopt_t opt, void *value, size_t max_len) if (max_len < sizeof(uint16_t)) { return -EOVERFLOW; } - /* This tranceiver only supports page 0 */ + /* This transceiver only supports page 0 */ *((uint16_t *)value) = 0; return sizeof(uint16_t); @@ -201,7 +201,7 @@ static int _set(netdev_t *netdev, netopt_t opt, const void *value, size_t value_ break; case NETOPT_CHANNEL_PAGE: - /* This tranceiver only supports page 0 */ + /* This transceiver only supports page 0 */ if (value_len != sizeof(uint16_t) || *((const uint16_t *)value) != 0 ) { res = -EINVAL; diff --git a/cpu/cortexm_common/cortexm_init.c b/cpu/cortexm_common/cortexm_init.c index 26db85d6f1..0bf89d2a4b 100644 --- a/cpu/cortexm_common/cortexm_init.c +++ b/cpu/cortexm_common/cortexm_init.c @@ -93,11 +93,11 @@ bool cpu_check_address(volatile const char *address) *address; /* Check BFARVALID flag */ if ((SCB->CFSR & BFARVALID_MASK) != 0) { - /* Bus Fault occured reading the address */ + /* Bus Fault occurred reading the address */ is_valid = false; } - /* Reenable BusFault by clearing BFHFNMIGN */ + /* Re-enable BusFault by clearing BFHFNMIGN */ SCB->CCR &= ~SCB_CCR_BFHFNMIGN_Msk; __set_FAULTMASK(mask); @@ -110,7 +110,7 @@ bool cpu_check_address(volatile const char *address) __asm__ volatile ( "movs r5, #1 \n" /* R5 will be set to 0 by HardFault handler */ - /* to indicate HardFault has occured */ + /* to indicate HardFault has occurred */ "ldr r1, =0xDEADF00D \n" /* set magic number */ "ldr r2, =0xCAFEBABE \n" /* 2nd magic to be sure */ "ldrb r3, %1 \n" /* probe address */ diff --git a/cpu/efm32/periph/i2c.c b/cpu/efm32/periph/i2c.c index 8f7cf4dbe5..4ae8762823 100644 --- a/cpu/efm32/periph/i2c.c +++ b/cpu/efm32/periph/i2c.c @@ -191,7 +191,7 @@ int i2c_read_regs(i2c_t dev, uint16_t address, uint16_t reg, return -EOPNOTSUPP; } - /* Handle endianess of register if 16 bit */ + /* Handle endianness of register if 16 bit */ if (flags & I2C_REG16) { reg_end = htons(reg); /* Make sure register is in big-endian on I2C bus */ } @@ -237,7 +237,7 @@ int i2c_write_regs(i2c_t dev, uint16_t address, uint16_t reg, return -EOPNOTSUPP; } - /* Handle endianess of register if 16 bit */ + /* Handle endianness of register if 16 bit */ if (flags & I2C_REG16) { reg_end = htons(reg); /* Make sure register is in big-endian on I2C bus */ } diff --git a/cpu/efm32/periph/rtc_series0.c b/cpu/efm32/periph/rtc_series0.c index 08dbf535d4..87c5645ac2 100644 --- a/cpu/efm32/periph/rtc_series0.c +++ b/cpu/efm32/periph/rtc_series0.c @@ -74,7 +74,7 @@ void rtc_init(void) /* initialize the state */ rtc_state.overflows = 0; - /* reset and initialze the peripheral */ + /* reset and initialize the peripheral */ RTC_Init_TypeDef init = RTC_INIT_DEFAULT; init.enable = false; diff --git a/cpu/esp32/cxx/cxa_guard.cpp b/cpu/esp32/cxx/cxa_guard.cpp index a18eb0f846..cbe8ed344f 100644 --- a/cpu/esp32/cxx/cxa_guard.cpp +++ b/cpu/esp32/cxx/cxa_guard.cpp @@ -75,7 +75,7 @@ namespace __cxxabiv1 assert(0); } - /* mark the initialization in process and aquire */ + /* mark the initialization in process and acquire */ _gt->pending = 1; critical_exit(); diff --git a/cpu/esp32/doc.txt b/cpu/esp32/doc.txt index 6dcc150623..781f1e7b6c 100644 --- a/cpu/esp32/doc.txt +++ b/cpu/esp32/doc.txt @@ -73,8 +73,8 @@ The following table gives a short reference of all board configuration parameter Parameter | Short Description | Type* ----------|----------------------------------------|------ [ADC_GPIOS](#esp32_adc_channels) | GPIOs that can be used as ADC channels | m -[CAN_TX](#esp32_can_interfaces) | GPIO used as CAN tranceiver TX signal | o -[CAN_RX](#esp32_can_interfaces) | GPIO used as CAN tranceiver RX signal | o +[CAN_TX](#esp32_can_interfaces) | GPIO used as CAN transceiver TX signal | o +[CAN_RX](#esp32_can_interfaces) | GPIO used as CAN transceiver RX signal | o [DAC_GPIOS](#esp32_adc_channels) | GPIOs that can be used as DAC channels | m [I2C0_SPEED](#esp32_i2c_interfaces)| Bus speed of I2C_DEV(0) | o [I2C0_SCL](#esp32_i2c_interfaces) | GPIO used as SCL for I2C_DEV(0) | o @@ -877,11 +877,11 @@ in SJA1000 PeliCAN mode. Please refer the [SJA1000 Datasheet](https://www.nxp.com/documents/data_sheet/SJA1000.pdf) for detailed information about the CAN controller and its programming. -The pin configuration of the CAN tranceiver interface is usually defined +The pin configuration of the CAN transceiver interface is usually defined in board specific peripheral configuration by -- ```CAN_TX```, the GPIO used as TX tranceiver signal, and -- ```CAN_RX```, the GPIO used as RX tranceiver signal. +- ```CAN_TX```, the GPIO used as TX transceiver signal, and +- ```CAN_RX```, the GPIO used as RX transceiver signal. If the pin configuration is not defined, the following default configuration is used which can be overridden by the application, see section @@ -894,8 +894,8 @@ CAN | RX | GPIO35 |`CAN_RX` | optional, can be overridden Example: ``` -#define CAN_TX GPIO10 /* CAN TX tranceiver signal */ -#define CAN_RX GPIO9 /* CAN RX tranceiver signal */ +#define CAN_TX GPIO10 /* CAN TX transceiver signal */ +#define CAN_RX GPIO9 /* CAN RX transceiver signal */ ``` If the board has an external transceiver module connected to the ESP32 on-board, @@ -1035,7 +1035,7 @@ USEMODULE += esp_now For ESP-NOW, ESP32 nodes are used in WiFi SoftAP + Station mode to advertise their SSID and become visible to other ESP32 nodes. The SSID of an ESP32 node is the concatenation of the prefix ```RIOT_ESP_``` with the MAC address of its SoftAP WiFi interface. The driver periodically scans all visible ESP32 nodes. -The following parameters are defined for ESP-NOW nodes. These parameters can be overriden by [application-specific board configurations](#esp32_application_specific_board_configuration). +The following parameters are defined for ESP-NOW nodes. These parameters can be overridden by [application-specific board configurations](#esp32_application_specific_board_configuration).
@@ -1173,7 +1173,7 @@ It is important to ensure that the application-specific driver parameter file `` INCLUDES += -I$(APPDIR) ``` -**Pleae note:** To make such application-specific board configurations dependent on the ESP32 MCU or a particular ESP32 board, you should always enclose these definitions in the following constructs: +**Please note:** To make such application-specific board configurations dependent on the ESP32 MCU or a particular ESP32 board, you should always enclose these definitions in the following constructs: ``` #ifdef CPU_ESP32 ... diff --git a/cpu/esp32/esp-eth/esp_eth_netdev.c b/cpu/esp32/esp-eth/esp_eth_netdev.c index b28951d0bd..3d29ae330c 100644 --- a/cpu/esp32/esp-eth/esp_eth_netdev.c +++ b/cpu/esp32/esp-eth/esp_eth_netdev.c @@ -63,7 +63,7 @@ /** * There is only one ESP-ETH device. We define it as static device variable - * to have accesss to the device inside ESP-ETH interrupt routines which do + * to have access to the device inside ESP-ETH interrupt routines which do * not provide an argument that could be used as pointer to the ESP-ETH * device which triggers the interrupt. */ diff --git a/cpu/esp32/esp-wifi/esp_wifi_netdev.c b/cpu/esp32/esp-wifi/esp_wifi_netdev.c index 9210c33f5d..17cd287887 100644 --- a/cpu/esp32/esp-wifi/esp_wifi_netdev.c +++ b/cpu/esp32/esp-wifi/esp_wifi_netdev.c @@ -69,7 +69,7 @@ /* * There is only one ESP WiFi device. We define it as static device variable - * to have accesss to the device inside ESP WiFi interrupt routines which do + * to have access to the device inside ESP WiFi interrupt routines which do * not provide an argument that could be used as pointer to the ESP WiFi * device which triggers the interrupt. */ @@ -79,7 +79,7 @@ static const netdev_driver_t _esp_wifi_driver; /* * Ring buffer for rx_buf elements which hold a pointer to the WiFi frame * buffer, a pointer to the ethernet frame and the frame length for each - * received frame. Since we have anly one device, it the ring buffer can be + * received frame. Since we have only one device, it the ring buffer can be * static and has not to be exposed as part of the network device. */ #ifndef ESP_WIFI_MAX_RX_BUF diff --git a/cpu/esp32/freertos/queue.c b/cpu/esp32/freertos/queue.c index be92a97c94..67445f246c 100644 --- a/cpu/esp32/freertos/queue.c +++ b/cpu/esp32/freertos/queue.c @@ -132,7 +132,7 @@ BaseType_t IRAM_ATTR _queue_generic_send(QueueHandle_t xQueue, /* is there still space in the queue */ if (queue->item_level < queue->item_num || xCopyPosition == queueOVERWRITE) { uint32_t write_pos; - /* determin the write position in the queue and update positions */ + /* determine the write position in the queue and update positions */ if (xCopyPosition == queueSEND_TO_BACK) { write_pos = queue->item_tail; queue->item_tail = (queue->item_tail + 1) % queue->item_num; diff --git a/cpu/esp32/include/can_params.h b/cpu/esp32/include/can_params.h index 02f2597725..e77cb9b9aa 100644 --- a/cpu/esp32/include/can_params.h +++ b/cpu/esp32/include/can_params.h @@ -34,7 +34,7 @@ extern "C" { #endif #ifndef CAN_RX -/** Default CAN tranceiver RX pin if not defined in board configuration */ +/** Default CAN transceiver RX pin if not defined in board configuration */ #define CAN_RX GPIO35 #endif diff --git a/cpu/esp32/include/esp_common.h b/cpu/esp32/include/esp_common.h index 6d567aef73..de060b8e9f 100644 --- a/cpu/esp32/include/esp_common.h +++ b/cpu/esp32/include/esp_common.h @@ -101,7 +101,7 @@ extern "C" { #endif /** - * @brief funcion name mappings for source code compatibility with ESP8266 port + * @brief function name mappings for source code compatibility with ESP8266 port * @{ */ #define system_get_cpu_freq ets_get_cpu_frequency diff --git a/cpu/esp32/include/exceptions.h b/cpu/esp32/include/exceptions.h index 104c76f178..87229b3132 100644 --- a/cpu/esp32/include/exceptions.h +++ b/cpu/esp32/include/exceptions.h @@ -24,7 +24,7 @@ extern "C" { #endif -/** Initalize exception handler */ +/** Initialize exception handler */ extern void init_exceptions(void); #ifdef __cplusplus diff --git a/cpu/esp32/include/gpio_arch.h b/cpu/esp32/include/gpio_arch.h index 6867e990ca..97df881361 100644 --- a/cpu/esp32/include/gpio_arch.h +++ b/cpu/esp32/include/gpio_arch.h @@ -64,7 +64,7 @@ extern const uint32_t _gpio_to_iomux_reg[]; * @brief Set the usage type of the pin * @param pin GPIO pin * @param usage GPIO pin usage type - * @return 0 on succes + * @return 0 on success * -1 on error */ int gpio_set_pin_usage(gpio_t pin, gpio_pin_usage_t usage); @@ -72,7 +72,7 @@ int gpio_set_pin_usage(gpio_t pin, gpio_pin_usage_t usage); /** * @brief Get the usage type of the pin * @param pin GPIO pin - * @return GPIO pin usage type on succes + * @return GPIO pin usage type on success * _NOT_EXIST on error */ gpio_pin_usage_t gpio_get_pin_usage(gpio_t pin); @@ -80,7 +80,7 @@ gpio_pin_usage_t gpio_get_pin_usage(gpio_t pin); /** * @brief Get the usage type of the pin as string * @param pin GPIO pin - * @return GPIO pin usage type string on succes + * @return GPIO pin usage type string on success * _NOT_EXIST on error */ const char* gpio_get_pin_usage_str(gpio_t pin); diff --git a/cpu/esp32/include/sdk_conf.h b/cpu/esp32/include/sdk_conf.h index dc2057c9eb..2e5fecbb3e 100644 --- a/cpu/esp32/include/sdk_conf.h +++ b/cpu/esp32/include/sdk_conf.h @@ -13,7 +13,7 @@ * @file * @brief SDK configuration compatible to the ESP-IDF * - * The SDK configuration can be partially overriden by application-specific + * The SDK configuration can be partially overridden by application-specific * board configuration. * * @author Gunar Schorcht @@ -31,7 +31,7 @@ extern "C" { #include "board.h" /** - * @brief Defines the CPU frequency [vallues = 2, 40, 80, 160 and 240] + * @brief Defines the CPU frequency [values = 2, 40, 80, 160 and 240] */ #ifndef CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ #define CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ 80 @@ -41,7 +41,7 @@ extern "C" { * Default console configuration * * STDIO_UART_BAUDRATE is used as CONFIG_CONSOLE_UART_BAUDRATE and - * can be overriden by an application specific configuration. + * can be overridden by an application specific configuration. */ #define CONFIG_CONSOLE_UART_NUM 0 @@ -59,7 +59,7 @@ extern "C" { /** * ESP32 specific configuration * - * CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ can be overriden by an application + * CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ can be overridden by an application * specific SDK configuration file. */ #ifndef CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ diff --git a/cpu/esp32/include/syscalls.h b/cpu/esp32/include/syscalls.h index 038492d2cb..a9f7af0242 100644 --- a/cpu/esp32/include/syscalls.h +++ b/cpu/esp32/include/syscalls.h @@ -47,7 +47,7 @@ uint64_t system_get_time_64 (void); /** Time since boot in ms (32bit version) */ uint32_t system_get_time_ms (void); -/** initialize system watchdog timer ans start it */ +/** initialize system watchdog timer and start it */ void system_wdt_init (void); /** start the initialized system watchdog timer */ diff --git a/cpu/esp32/ld/esp32.common.ld b/cpu/esp32/ld/esp32.common.ld index 1514f23b46..0e543f7013 100644 --- a/cpu/esp32/ld/esp32.common.ld +++ b/cpu/esp32/ld/esp32.common.ld @@ -85,7 +85,7 @@ SECTIONS .iram0.text : { - /* Code marked as runnning out of IRAM */ + /* Code marked as running out of IRAM */ _iram_text_start = ABSOLUTE(.); *(.iram1 .iram1.*) diff --git a/cpu/esp32/periph/adc_ctrl.c b/cpu/esp32/periph/adc_ctrl.c index b4df3bf79b..876af31eaa 100644 --- a/cpu/esp32/periph/adc_ctrl.c +++ b/cpu/esp32/periph/adc_ctrl.c @@ -110,7 +110,7 @@ static bool _adc2_ctrl_initialized = false; void _adc1_ctrl_init(void) { - /* return if already intialized */ + /* return if already initialized */ if (_adc1_ctrl_initialized) { return; } @@ -149,7 +149,7 @@ void _adc1_ctrl_init(void) void _adc2_ctrl_init(void) { - /* return if already intialized */ + /* return if already initialized */ if (_adc2_ctrl_initialized) { return; } diff --git a/cpu/esp32/periph/can.c b/cpu/esp32/periph/can.c index a67c1ed9e0..ad8cea6ecc 100644 --- a/cpu/esp32/periph/can.c +++ b/cpu/esp32/periph/can.c @@ -251,7 +251,7 @@ static int _esp_can_send(candev_t *candev, const struct can_frame *frame) /* save reference to frame in transmission (marks transmitter as busy) */ dev->tx_frame = (struct can_frame*)frame; - /* prepare the frame as exected by ESP32 */ + /* prepare the frame as expected by ESP32 */ _esp_can_frame_t esp_frame = {}; esp_frame.dlc = frame->can_dlc; diff --git a/cpu/esp32/periph/dac.c b/cpu/esp32/periph/dac.c index c8d24a3dc7..de951d6837 100644 --- a/cpu/esp32/periph/dac.c +++ b/cpu/esp32/periph/dac.c @@ -61,7 +61,7 @@ int8_t dac_init (dac_t line) uint8_t rtcio = _gpio_rtcio_map[dac_channels[line]]; uint8_t idx; - /* try to initialize the pin as DAC ouput */ + /* try to initialize the pin as DAC output */ if (gpio_get_pin_usage(_adc_hw[rtcio].gpio) != _GPIO) { LOG_TAG_ERROR("dac", "GPIO%d is used for %s and cannot be used as " "DAC output\n", _adc_hw[rtcio].gpio, diff --git a/cpu/esp32/periph/gpio.c b/cpu/esp32/periph/gpio.c index d3cf21ed2c..c379e0cc12 100644 --- a/cpu/esp32/periph/gpio.c +++ b/cpu/esp32/periph/gpio.c @@ -189,7 +189,7 @@ gpio_pin_usage_t _gpio_pin_usage [GPIO_PIN_NUMOF] = { _SPIF, /* gpio7 not configurable, used as SPI MISO */ _SPIF, /* gpio8 not configurable, used as SPI MOSI */ #if defined(FLASH_MODE_QIO) || defined(FLASH_MODE_QOUT) - /* in qio and qout mode thes pins are used for quad SPI */ + /* in qio and qout mode these pins are used for quad SPI */ _SPIF, /* gpio9 not configurable, used as SPI HD */ _SPIF, /* gpio10 not configurable, used as SPI WP */ #else @@ -274,7 +274,7 @@ int gpio_init(gpio_t pin, gpio_mode_t mode) case GPIO_IN_PD: case GPIO_IN_PU: - /* GPIOs 34 ... 39 have no software controlable pullups/pulldowns */ + /* GPIOs 34 ... 39 have no software controllable pullups/pulldowns */ LOG_TAG_ERROR("gpio", "GPIO%d has no pullups/pulldowns\n", pin); return -1; diff --git a/cpu/esp32/periph/i2c_hw.c b/cpu/esp32/periph/i2c_hw.c index 0ae20be194..74ad6f8fcd 100644 --- a/cpu/esp32/periph/i2c_hw.c +++ b/cpu/esp32/periph/i2c_hw.c @@ -685,7 +685,7 @@ void _i2c_transfer_timeout (void *arg) { i2c_t dev = (i2c_t)arg; - /* reset the hardware if it I2C got stucked */ + /* reset the hardware if it I2C got stuck */ _i2c_reset_hw(dev); /* set result to timeout */ diff --git a/cpu/esp32/periph/i2c_sw.c b/cpu/esp32/periph/i2c_sw.c index 568b004871..8cc9e09ede 100644 --- a/cpu/esp32/periph/i2c_sw.c +++ b/cpu/esp32/periph/i2c_sw.c @@ -220,7 +220,7 @@ int /* IRAM */ i2c_read_bytes(i2c_t dev, uint16_t addr, void *data, size_t len, /* prepare 10 bit address bytes */ uint8_t addr1 = 0xf0 | (addr & 0x0300) >> 7 | I2C_READ; uint8_t addr2 = addr & 0xff; - /* send address bytes wit read flag */ + /* send address bytes with read flag */ if ((res = _i2c_write_byte (bus, addr1)) != 0 || (res = _i2c_write_byte (bus, addr2)) != 0) { /* abort transfer */ @@ -472,7 +472,7 @@ static /* IRAM */ int _i2c_start_cond(_i2c_bus_t* bus) /* SDA = passive HIGH (floating and pulled-up) */ _i2c_sda_high (bus); - /* t_VD;DAT not neccessary */ + /* t_VD;DAT not necessary */ /* _i2c_delay (bus); */ /* SCL = passive HIGH (floating and pulled-up) */ diff --git a/cpu/esp32/periph/pwm.c b/cpu/esp32/periph/pwm.c index 1e78ad143d..64aca4257f 100644 --- a/cpu/esp32/periph/pwm.c +++ b/cpu/esp32/periph/pwm.c @@ -41,7 +41,7 @@ #define PWM_CLK (160000000UL) /* base clock of PWM devices */ #define PWM_CPS_MAX (10000000UL) /* maximum cycles per second supported */ -#define PWM_CPS_MIN (2500UL) /* minumum cycles per second supported */ +#define PWM_CPS_MIN (2500UL) /* minimum cycles per second supported */ #define PWM_TIMER_MOD_FREEZE 0 /* timer is disabled */ #define PWM_TIMER_MOD_UP 1 /* timer counts up */ @@ -54,7 +54,7 @@ #define PWM_TIMER_STARTS_STOPS_AT_TEZ 3 /* PWM starts and stops at next TEZ */ #define PWM_TIMER_STARTS_STOPS_AT_TEP 4 /* PWM starts and stops at next TEP */ -#define PWM_TIMER_UPDATE_IMMIDIATE 0 /* update period immediatly */ +#define PWM_TIMER_UPDATE_IMMIDIATE 0 /* update period immediately */ #define PWM_TIMER_UPDATE_AT_TEZ 1 /* update period at TEZ */ #define PWM_TIMER_UPDATE_AT_SYNC 2 /* update period at sync */ #define PWM_TIMER_UPDATE_AT_TEZ_SYNC 3 /* update period at TEZ and sync */ @@ -319,7 +319,7 @@ static void _pwm_start(pwm_t pwm) uint32_t cps = period * freq; /* maximum number of timer clock cycles per second (freq*period) must not - be greater than PWM_CPS_MAX, reduce the freq if neccessary and keep + be greater than PWM_CPS_MAX, reduce the freq if necessary and keep the resolution */ if (cps > PWM_CPS_MAX) { freq = PWM_CPS_MAX / period; @@ -328,7 +328,7 @@ static void _pwm_start(pwm_t pwm) __func__, freq); } /* minimum number of timer clock cycles per second (freq*period) must not - be less than PWM_CPS_MIN, increase the freq if neccessary and keep + be less than PWM_CPS_MIN, increase the freq if necessary and keep the resolution */ else if (cps < PWM_CPS_MIN) { freq = PWM_CPS_MIN / period; diff --git a/cpu/esp32/periph/rtc.c b/cpu/esp32/periph/rtc.c index d619d23d06..43f9b1d1ef 100644 --- a/cpu/esp32/periph/rtc.c +++ b/cpu/esp32/periph/rtc.c @@ -21,7 +21,7 @@ /* * If RTC_TIMER_USED is 0, the microsecond system timer is used to emulate an - * RTC, otherwise the RTC timer is used. Advantage of using RTC over sytem + * RTC, otherwise the RTC timer is used. Advantage of using RTC over system * timer is that it also continues in deep sleep and after software reset. */ #define RTC_TIMER_USED 1 @@ -175,7 +175,7 @@ int rtc_set_alarm(struct tm *time, rtc_alarm_cb_t cb, void *arg) /* * RTC doesn't provide alarm functionality in active mode. At least * the RTC main timer seems not to work. Therefore we always use the - * system timer for alarms. The Advantage of using RTC over sytem timer + * system timer for alarms. The Advantage of using RTC over system timer * is that it also continues in deep sleep and after software reset. */ #if 0 /* TODO should be RTC_TIMER_USED */ diff --git a/cpu/esp32/periph/spi.c b/cpu/esp32/periph/spi.c index b16a651f96..85d3b75371 100644 --- a/cpu/esp32/periph/spi.c +++ b/cpu/esp32/periph/spi.c @@ -49,7 +49,7 @@ #define FSPI_MISO GPIO7 #define FSPI_MOSI GPIO8 -/** stucture which decribes all properties of one SPI bus */ +/** structure which describes all properties of one SPI bus */ struct _spi_bus_t { spi_dev_t* regs; /* pointer to register data struct of the SPI device */ uint8_t mod; /* peripheral hardware module of the SPI interface */ @@ -180,7 +180,7 @@ static void _spi_init_internal (spi_t bus) _spi[bus].regs->ctrl.fastrd_mode = 0; _spi[bus].regs->ctrl.wp = 0; - /* aquire and release to set default parameters */ + /* acquire and release to set default parameters */ spi_acquire(bus, GPIO_UNDEF, SPI_MODE_0, SPI_CLK_1MHZ); spi_release(bus); } diff --git a/cpu/esp32/periph/timer.c b/cpu/esp32/periph/timer.c index b42b75a726..082dd84fd7 100644 --- a/cpu/esp32/periph/timer.c +++ b/cpu/esp32/periph/timer.c @@ -79,7 +79,7 @@ struct hw_timer_regs_t { uint32_t unused : 10; uint32_t ALARM_EN : 1; /* alarms are enabled */ uint32_t LEVEL_INT_EN: 1; /* alarms will generate level type interrupt */ - uint32_t EDGE_INT_EN : 1; /* alarms will generate egde type interrupt */ + uint32_t EDGE_INT_EN : 1; /* alarms will generate edge type interrupt */ uint32_t DIVIDER : 16; /* timer clock prescale value (basis is ABP) */ uint32_t AUTORELOAD : 1; /* auto-reload on alarms */ uint32_t INCREASE : 1; /* count up */ @@ -173,7 +173,7 @@ void IRAM hw_timer_handler(void* arg) (void)arg; /* since all timer interrupt sources are routed to the same cpu interrupt */ - /* signal, we can't use arg to identify the timer wich caused the it */ + /* signal, we can't use arg to identify the timer which caused the it */ irq_isr_enter(); diff --git a/cpu/esp32/periph/uart.c b/cpu/esp32/periph/uart.c index d0b5fcb2e6..77905de63f 100644 --- a/cpu/esp32/periph/uart.c +++ b/cpu/esp32/periph/uart.c @@ -62,7 +62,7 @@ struct uart_hw_t { uint8_t int_src; /* peripheral interrupt source used by the UART device */ }; -/* hardware ressources */ +/* hardware resources */ static struct uart_hw_t _uarts[] = { { .regs = &UART0, @@ -259,7 +259,7 @@ static uint8_t IRAM _uart_rx_one_char (uart_t uart) /* send one data byte with wait */ static void _uart_tx_one_char(uart_t uart, uint8_t data) { - /* wait until at least one byte is avaiable in the TX FIFO */ + /* wait until at least one byte is available in the TX FIFO */ while (_uarts[uart].regs->status.txfifo_cnt >= UART_FIFO_MAX) {} /* send the byte by placing it in the TX FIFO using MPU */ diff --git a/cpu/esp32/startup.c b/cpu/esp32/startup.c index 5f1b5f9621..572f0d213d 100644 --- a/cpu/esp32/startup.c +++ b/cpu/esp32/startup.c @@ -208,7 +208,7 @@ static void IRAM system_clk_init (void) /* set SLOW_CLK to internal low power clock of 150 kHz */ rtc_select_slow_clk(RTC_SLOW_FREQ_RTC); - /* wait until UART is idle to avoid loosing output */ + /* wait until UART is idle to avoid losing output */ uart_tx_wait_idle(CONFIG_CONSOLE_UART_NUM); ets_printf("Switching system clocks can lead to some unreadable characters\n"); ets_printf("This message is usually not visible at the console\n"); @@ -216,7 +216,7 @@ static void IRAM system_clk_init (void) /* determine configured CPU clock frequency from sdk_conf.h */ rtc_cpu_freq_t freq; switch (CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ) { - case 40: freq = RTC_CPU_FREQ_XTAL; /* derived from external cristal */ + case 40: freq = RTC_CPU_FREQ_XTAL; /* derived from external crystal */ break; /* normally 40 MHz */ case 80: freq = RTC_CPU_FREQ_80M; /* derived from PLL */ break; @@ -266,7 +266,7 @@ static NORETURN void IRAM system_init (void) /* initialize the RTC module (restore timer values from RTC RAM) */ rtc_init(); - /* install execption handlers */ + /* install exception handlers */ init_exceptions(); /* clear interrupt matrix */ diff --git a/cpu/esp32/syscalls.c b/cpu/esp32/syscalls.c index 95ed6f782e..8e56bd5f07 100644 --- a/cpu/esp32/syscalls.c +++ b/cpu/esp32/syscalls.c @@ -241,7 +241,7 @@ void heap_stats(void) #else /* MODULE_ESP_IDF_HEAP */ -/* for compatibiliy with ESP-IDF heap functions */ +/* for compatibility with ESP-IDF heap functions */ void* IRAM heap_caps_malloc( size_t size, uint32_t caps ) { (void)caps; @@ -433,8 +433,8 @@ void system_wdt_init (void) TIMERG0.wdt_wprotect=TIMG_WDT_WKEY_VALUE; /* disable write protection */ TIMERG0.wdt_config0.stg0 = TIMG_WDT_STG_SEL_INT; /* stage0 timeout: interrupt */ TIMERG0.wdt_config0.stg1 = TIMG_WDT_STG_SEL_RESET_SYSTEM; /* stage1 timeout: sys reset */ - TIMERG0.wdt_config0.sys_reset_length = 7; /* sys reset signal lenght: 3.2 us */ - TIMERG0.wdt_config0.cpu_reset_length = 7; /* sys reset signal lenght: 3.2 us */ + TIMERG0.wdt_config0.sys_reset_length = 7; /* sys reset signal length: 3.2 us */ + TIMERG0.wdt_config0.cpu_reset_length = 7; /* sys reset signal length: 3.2 us */ TIMERG0.wdt_config0.edge_int_en = 0; TIMERG0.wdt_config0.level_int_en = 1; diff --git a/cpu/esp32/thread_arch.c b/cpu/esp32/thread_arch.c index 6f02df8cbc..517e208b83 100644 --- a/cpu/esp32/thread_arch.c +++ b/cpu/esp32/thread_arch.c @@ -140,7 +140,7 @@ char* thread_stack_init(thread_task_func_t task_func, void *arg, void *stack_sta /* Clear whole stack with a known value to assist debugging */ #if !defined(DEVELHELP) && !defined(SCHED_TEST_STACK) - /* Unfortunatly, this affects thread_measure_stack_free function */ + /* Unfortunately, this affects thread_measure_stack_free function */ memset(stack_start, 0, stack_size); #else memset(sp, 0, XT_STK_FRMSZ + XT_CP_SIZE); diff --git a/cpu/esp_common/esp-now/esp_now_netdev.h b/cpu/esp_common/esp-now/esp_now_netdev.h index 5f8a2838ae..c2637e3477 100644 --- a/cpu/esp_common/esp-now/esp_now_netdev.h +++ b/cpu/esp_common/esp-now/esp_now_netdev.h @@ -61,7 +61,7 @@ extern "C" { extern const netdev_driver_t esp_now_driver; /** - * @brief Header with neccesary flags for ESP-NOW packets + * @brief Header with necessary flags for ESP-NOW packets */ typedef struct __attribute__((packed)) { diff --git a/cpu/fe310/periph/gpio.c b/cpu/fe310/periph/gpio.c index 813d5c0fb8..1255bc0fda 100644 --- a/cpu/fe310/periph/gpio.c +++ b/cpu/fe310/periph/gpio.c @@ -115,7 +115,7 @@ void gpio_isr(int num) isr_ctx[pin].cb(isr_ctx[pin].arg); } - /* Clear interupt */ + /* Clear interrupt */ switch (isr_flank[pin]) { case GPIO_FALLING: GPIO_REG(GPIO_FALL_IP) |= (1 << pin); @@ -169,7 +169,7 @@ void gpio_irq_enable(gpio_t pin) return; } - /* Enable interupt for pin */ + /* Enable interrupt for pin */ switch (isr_flank[pin]) { case GPIO_FALLING: GPIO_REG(GPIO_FALL_IE) |= (1 << pin); @@ -196,7 +196,7 @@ void gpio_irq_disable(gpio_t pin) return; } - /* Disable interupt for pin */ + /* Disable interrupt for pin */ switch (isr_flank[pin]) { case GPIO_FALLING: GPIO_REG(GPIO_FALL_IE) &= ~(1 << pin); diff --git a/cpu/kinetis/dist/check-fcfield.sh b/cpu/kinetis/dist/check-fcfield.sh index 294f19ee5b..d172495a6d 100755 --- a/cpu/kinetis/dist/check-fcfield.sh +++ b/cpu/kinetis/dist/check-fcfield.sh @@ -35,7 +35,7 @@ get_fc_field() elif [ ${1##*.} = hex ]; then "${OBJDUMP}" --start-address=${FCFIELD_START} --stop-address=${FCFIELD_END} ${1} -s else - echo "Unkown file extension: ${1##*.}" + echo "Unknown file extension: ${1##*.}" exit 1 fi } diff --git a/cpu/kinetis/doc.txt b/cpu/kinetis/doc.txt index 0933d2d23c..c18360620c 100644 --- a/cpu/kinetis/doc.txt +++ b/cpu/kinetis/doc.txt @@ -114,7 +114,7 @@ RTC is clocked by a 32.768 kHz clock. Please note the manual of your MCU or SiP for the clock setting for the RTC module. After initialization Time Seconds Register (TSR) increments once a -second. The TSR (also TAR) value will be converted to the stuct tm and back +second. The TSR (also TAR) value will be converted to the struct tm and back with the help of stdlib functions that are defined in time.h. The driver supports alarm, it is stored in the Time Alarm Registers (TAR) and the unit is seconds. diff --git a/cpu/kinetis/include/vectors_kinetis.h b/cpu/kinetis/include/vectors_kinetis.h index 929cdc9e93..fb37d941fb 100644 --- a/cpu/kinetis/include/vectors_kinetis.h +++ b/cpu/kinetis/include/vectors_kinetis.h @@ -92,7 +92,7 @@ void isr_dma14_dma30(void); /**< DMA channel 14, 30 transfer complete interrupt void isr_dma15_dma31(void); /**< DMA channel 15, 31 transfer complete interrupt handler */ void isr_dma_error(void); /**< DMA Error interrupt handler */ void isr_enet_1588_timer(void); /**< Ethernet MAC IEEE 1588 timer interrupt handler */ -void isr_enet_error(void); /**< Ethernet MAC error and miscelaneous interrupt handler */ +void isr_enet_error(void); /**< Ethernet MAC error and miscellaneous interrupt handler */ void isr_enet_receive(void); /**< Ethernet MAC receive interrupt handler */ void isr_enet_transmit(void); /**< Ethernet MAC transmit interrupt handler */ void isr_ftfa(void); /**< FTFA Command complete interrupt handler */ diff --git a/cpu/kinetis/periph/ics.c b/cpu/kinetis/periph/ics.c index b2f20cf0f6..778aa14e49 100644 --- a/cpu/kinetis/periph/ics.c +++ b/cpu/kinetis/periph/ics.c @@ -50,7 +50,7 @@ ** - rev. 1.0 (2013-07-30) ** Initial version. ** - rev. 1.1 (2013-10-29) -** Definition of BITBAND macros updated to support peripherals with 32-bit acces disabled. +** Definition of BITBAND macros updated to support peripherals with 32-bit access disabled. ** - rev. 1.2 (2014-01-10) ** CAN - Corrected address of TSIDR1 register. ** CAN - Corrected name of MSCAN_TDLR bit DLC to TDLC. diff --git a/cpu/kinetis/vectors.c b/cpu/kinetis/vectors.c index a60cb3554e..151ddc5db8 100644 --- a/cpu/kinetis/vectors.c +++ b/cpu/kinetis/vectors.c @@ -366,7 +366,7 @@ ISR_VECTOR(1) const isr_t vector_cpu[CPU_IRQ_NUMOF] = { [ENET_1588_Timer_IRQn] = isr_enet_1588_timer, /* Ethernet MAC IEEE 1588 Timer Interrupt */ [ENET_Transmit_IRQn] = isr_enet_transmit, /* Ethernet MAC Transmit Interrupt */ [ENET_Receive_IRQn] = isr_enet_receive, /* Ethernet MAC Receive Interrupt */ - [ENET_Error_IRQn ] = isr_enet_error, /* Ethernet MAC Error and miscelaneous Interrupt */ + [ENET_Error_IRQn ] = isr_enet_error, /* Ethernet MAC Error and miscellaneous Interrupt */ #endif #ifdef LPUART0 [LPUART0_IRQn ] = isr_lpuart0, /* LPUART0 status/error interrupt */ diff --git a/cpu/lm4f120/periph/uart.c b/cpu/lm4f120/periph/uart.c index 550a47cb22..9db4fd9552 100644 --- a/cpu/lm4f120/periph/uart.c +++ b/cpu/lm4f120/periph/uart.c @@ -137,7 +137,7 @@ void isr_uart0(void) ulStatus = ROM_UARTIntStatus(UART0_BASE, true); ROM_UARTIntClear(UART0_BASE, ulStatus); - /* Are we interrupted due to a recieved character */ + /* Are we interrupted due to a received character */ if(ulStatus & (UART_INT_RX | UART_INT_RT)) { while(ROM_UARTCharsAvail(UART0_BASE)) diff --git a/cpu/lpc2387/include/periph_cpu.h b/cpu/lpc2387/include/periph_cpu.h index e2cdfe5ebe..1e406f0273 100644 --- a/cpu/lpc2387/include/periph_cpu.h +++ b/cpu/lpc2387/include/periph_cpu.h @@ -45,7 +45,7 @@ extern "C" { typedef struct { /** @brief Direction: Output if corresponding bit is set, otherwise input */ __IO uint32_t DIR; - /** @brief 12 bytes of reseved memory we don't need to access */ + /** @brief 12 bytes of reserved memory we don't need to access */ uint32_t _reserved[3]; /** @brief Set bits to ignore corresponding bits when accessing `PIN`, `SET` * or `CLR` register of this port diff --git a/cpu/lpc2387/lpc23xx-iap.c b/cpu/lpc2387/lpc23xx-iap.c index 2211f482f0..6f1f17059b 100644 --- a/cpu/lpc2387/lpc23xx-iap.c +++ b/cpu/lpc2387/lpc23xx-iap.c @@ -191,14 +191,14 @@ uint32_t blank_check_sector(uint32_t tmp_sect1, uint32_t tmp_sect2) /****************************************************************************** * Function: copy_ram_to_flash * - * Description: This command is used to programm the flash memory. the affected should be + * Description: This command is used to program the flash memory. the affected should be * prepared first by calling "Prepare Sector for Write Operation" command. the * affected sectors are automatically protected again once the copy command is * successfully executed. the boot sector cannot be written by this command. * Command: 51 - * Param0: (DST) Destination Flash adress where data bytes are to be written. + * Param0: (DST) Destination Flash address where data bytes are to be written. * This address should be a 512 byte boundary. - * Param1: (SRC) Source RAM adress from which data byre are to be read. + * Param1: (SRC) Source RAM address from which data byre are to be read. * Param2: Number of bytes to be written. Should be 512 | 1024 | 4096 | 8192. * Param3: System Clock Frequency (CCLK) in KHz. * diff --git a/cpu/lpc2387/mci/lpc2387-mci.c b/cpu/lpc2387/mci/lpc2387-mci.c index 804377fa11..967b8f0363 100644 --- a/cpu/lpc2387/mci/lpc2387-mci.c +++ b/cpu/lpc2387/mci/lpc2387-mci.c @@ -29,7 +29,7 @@ #define MCLK_RW 18000000UL /* MCICLK for data transfer (PCLK divided by even number) */ /* This MCI driver assumes that MCLK_RW is CCLK/4 or slower. If block buffer underrun/overrun -/ occured due to any interrupt by higher priority process or slow external memory, increasing +/ occurred due to any interrupt by higher priority process or slow external memory, increasing / N_BUF or decreasing MCLK_RW will solve it. */ @@ -130,7 +130,7 @@ void Isr_MCI(void) } } } - else { /* An MCI error occured (not DataBlockEnd) */ + else { /* An MCI error occurred (not DataBlockEnd) */ xs |= 8; } @@ -252,7 +252,7 @@ static void start_transmission(unsigned char blks) XferRp = 0; /* Block FIFO read index */ XferWc = blks; - XferStat = 2; /* Transfer status: Memroy --> MCI */ + XferStat = 2; /* Transfer status: Memory --> MCI */ MCI_DATA_LEN = 512 * (blks + 1); /* Set total data length */ MCI_DATA_TMR = (unsigned long)(MCLK_RW * 0.5); /* Data timer: 0.5sec */ @@ -383,7 +383,7 @@ static int send_cmd(unsigned int idx, unsigned long arg, unsigned int rt, unsign assert(buff != NULL); if (idx & 0x80) { /* Send a CMD55 prior to the specified command if it is ACMD class */ - if (!send_cmd(CMD55, (unsigned long)CardRCA << 16, 1, buff) /* When CMD55 is faild, */ + if (!send_cmd(CMD55, (unsigned long)CardRCA << 16, 1, buff) /* When CMD55 is failed, */ || !(buff[0] & 0x00000020)) { return 0; /* exit with error */ } @@ -729,7 +729,7 @@ diskio_result_t mci_read(unsigned char *buff, unsigned long sector, unsigned cha } if (XferStat & 0xC) { - break; /* Abort if any error has occured */ + break; /* Abort if any error has occurred */ } copy_al2un(buff, DmaBuff[rp], 512); /* Pop an block */ @@ -737,7 +737,7 @@ diskio_result_t mci_read(unsigned char *buff, unsigned long sector, unsigned cha XferRp = rp = (rp + 1) % N_BUF; /* Next DMA buffer */ if (XferStat & 0xC) { - break; /* Abort if overrun has occured */ + break; /* Abort if overrun has occurred */ } buff += 512; /* Next user buffer address */ @@ -830,14 +830,14 @@ diskio_result_t mci_write(const unsigned char *buff, unsigned long sector, unsig } if (XferStat & 0xC) { - break; /* Abort if block underrun or any MCI error has occured */ + break; /* Abort if block underrun or any MCI error has occurred */ } copy_un2al(DmaBuff[wp], (unsigned char *)(unsigned int)buff, 512); /* Push a block */ XferWp = wp = (wp + 1) % N_BUF; /* Next DMA buffer */ if (XferStat & 0xC) { - break; /* Abort if block underrun has occured */ + break; /* Abort if block underrun has occurred */ } count--; @@ -847,7 +847,7 @@ diskio_result_t mci_write(const unsigned char *buff, unsigned long sector, unsig while (!(XferStat & 0xC)) {} /* Wait for all blocks sent (block underrun) */ if (XferStat & 0x8) { - count = 1; /* Abort if any MCI error has occured */ + count = 1; /* Abort if any MCI error has occurred */ } stop_transfer(); /* Close data path */ diff --git a/cpu/lpc2387/periph/rtc.c b/cpu/lpc2387/periph/rtc.c index 6de5ae2cd9..165cc1edc9 100644 --- a/cpu/lpc2387/periph/rtc.c +++ b/cpu/lpc2387/periph/rtc.c @@ -127,7 +127,7 @@ int rtc_set_alarm(struct tm *localt, rtc_alarm_cb_t cb, void *arg) RTC_ALDOY = localt->tm_yday; RTC_ALMON = localt->tm_mon + 1; RTC_ALYEAR = localt->tm_year; - RTC_AMR = 0; /* set wich alarm fields to check */ + RTC_AMR = 0; /* set which alarm fields to check */ DEBUG("alarm set %2lu.%2lu.%4lu %2lu:%2lu:%2lu\n", RTC_ALDOM, RTC_ALMON, RTC_ALYEAR, RTC_ALHOUR, RTC_ALMIN, RTC_ALSEC); diff --git a/cpu/mips32r2_common/newlib_syscalls_mips_uhi/syscalls.c b/cpu/mips32r2_common/newlib_syscalls_mips_uhi/syscalls.c index 87efbb0c57..d18894f5f4 100644 --- a/cpu/mips32r2_common/newlib_syscalls_mips_uhi/syscalls.c +++ b/cpu/mips32r2_common/newlib_syscalls_mips_uhi/syscalls.c @@ -70,7 +70,7 @@ void _exit(int n) exit(n); /* cppcheck-suppress unreachableCode - * (reason: pm_off spins indefinately after pulling the plug) */ + * (reason: pm_off spins indefinitely after pulling the plug) */ pm_off(); } @@ -127,7 +127,7 @@ pid_t _getpid_r(struct _reent *ptr) * @param sig signal number to pass to process * * @return -1 on error -* @return 0 on sucess +* @return 0 on success */ __attribute__ ((weak)) int _kill_r(struct _reent *r, pid_t pid, int sig) diff --git a/cpu/mips32r2_common/periph/pm.c b/cpu/mips32r2_common/periph/pm.c index e0d2b348ea..626534181c 100644 --- a/cpu/mips32r2_common/periph/pm.c +++ b/cpu/mips32r2_common/periph/pm.c @@ -24,7 +24,7 @@ void pm_set_lowest(void) { - /* Dont wait if interrupts are not enabled - we would never return!*/ + /* Don't wait if interrupts are not enabled - we would never return!*/ if (mips32_get_c0(C0_STATUS) & SR_IE) { __asm volatile ("wait"); } diff --git a/cpu/mips32r2_common/periph/timer.c b/cpu/mips32r2_common/periph/timer.c index 02f54e62b3..5a88fa8a6d 100644 --- a/cpu/mips32r2_common/periph/timer.c +++ b/cpu/mips32r2_common/periph/timer.c @@ -225,7 +225,7 @@ void timer_irq_disable(tim_t dev) * * When toolchain support is available we could move to full vector mode but * this does take up significant space (MCU-ASE provides 256 vectors at 32B - * spacing (the default) thats 8KB of vector space!), So a single entry point + * spacing (the default) that's 8KB of vector space!), So a single entry point * may be better anyway. * */ diff --git a/cpu/mips32r2_common/thread_arch.c b/cpu/mips32r2_common/thread_arch.c index 246da88074..26c1f79327 100644 --- a/cpu/mips32r2_common/thread_arch.c +++ b/cpu/mips32r2_common/thread_arch.c @@ -315,9 +315,9 @@ _mips_handle_exception(struct gpctx *ctx, int exception) /* * The toolchain Exception restore code just wholesale copies the - * status register from the context back to the register loosing - * any changes that may have occured, 'status' is really global state - * You dont enable interrupts on one thread and not another... + * status register from the context back to the register losing + * any changes that may have occurred, 'status' is really global state + * You don't enable interrupts on one thread and not another... * So we just copy the current status value into the saved value * so nothing changes on the restore */ diff --git a/cpu/mips_pic32_common/reset_mod.S b/cpu/mips_pic32_common/reset_mod.S index 78b11c496f..7042875524 100644 --- a/cpu/mips_pic32_common/reset_mod.S +++ b/cpu/mips_pic32_common/reset_mod.S @@ -240,5 +240,5 @@ LEAF(__boot_debug_exception) ehb deret 1: - b 1b #Spin indefinately + b 1b #Spin indefinitely END(__boot_debug_exception) diff --git a/cpu/msp430_common/include/cpu_conf.h b/cpu/msp430_common/include/cpu_conf.h index d4fbbaeea5..6e3bed8b8a 100644 --- a/cpu/msp430_common/include/cpu_conf.h +++ b/cpu/msp430_common/include/cpu_conf.h @@ -11,7 +11,7 @@ * @{ * * @file - * @brief Common CPU definitions fpr MSP430 + * @brief Common CPU definitions for MSP430 * */ diff --git a/cpu/msp430_common/include/sys/cdefs.h b/cpu/msp430_common/include/sys/cdefs.h index 06ad62ba3f..ce9db6c5fb 100644 --- a/cpu/msp430_common/include/sys/cdefs.h +++ b/cpu/msp430_common/include/sys/cdefs.h @@ -456,7 +456,7 @@ extern "C" { * * * These are meant to be used in places that are run `a lot'. * It is wasteful to make predictions in code that is run - * seldomly (e.g. at subsystem initialization time) as the + * seldom (e.g. at subsystem initialization time) as the * basic block reordering that this affects can often generate * larger code. */ diff --git a/cpu/msp430_common/include/sys/features.h b/cpu/msp430_common/include/sys/features.h index 19ff7e05eb..fc534079d7 100644 --- a/cpu/msp430_common/include/sys/features.h +++ b/cpu/msp430_common/include/sys/features.h @@ -235,7 +235,7 @@ extern "C" { * * In all cases above, "enabled by default" means either by defining * _DEFAULT_SOURCE, or by not defining any of the public feature test macros. - * Defining _GNU_SOURCE makes all of the above avaliable. + * Defining _GNU_SOURCE makes all of the above available. */ #ifdef _ATFILE_SOURCE diff --git a/cpu/native/include/netdev_tap.h b/cpu/native/include/netdev_tap.h index 8a8109afe6..29b3e4d254 100644 --- a/cpu/native/include/netdev_tap.h +++ b/cpu/native/include/netdev_tap.h @@ -43,7 +43,7 @@ typedef struct netdev_tap { char tap_name[IFNAMSIZ]; /**< host dev file name */ int tap_fd; /**< host file descriptor for the TAP */ uint8_t addr[ETHERNET_ADDR_LEN]; /**< The MAC address of the TAP */ - uint8_t promiscous; /**< Flag for promiscous mode */ + uint8_t promiscuous; /**< Flag for promiscuous mode */ } netdev_tap_t; /** @@ -51,7 +51,7 @@ typedef struct netdev_tap { */ typedef struct { char **tap_name; /**< Name of the host system's tap - inteface to bind to. */ + interface to bind to. */ } netdev_tap_params_t; /** diff --git a/cpu/native/include/periph_conf.h b/cpu/native/include/periph_conf.h index 62be0fb390..90de7a5233 100644 --- a/cpu/native/include/periph_conf.h +++ b/cpu/native/include/periph_conf.h @@ -90,7 +90,7 @@ extern "C" { * cable select lines. Assignment to hardware devices can be configured at * runtime using the `--spi` startup parameter. * - * Can be overriden during compile time with a `-DSPI_NUMOF=n` flag. + * Can be overridden during compile time with a `-DSPI_NUMOF=n` flag. */ #define SPI_NUMOF (1U) #endif diff --git a/cpu/native/include/socket_zep_params.h b/cpu/native/include/socket_zep_params.h index f00d5da5c5..61f4bc2987 100644 --- a/cpu/native/include/socket_zep_params.h +++ b/cpu/native/include/socket_zep_params.h @@ -27,7 +27,7 @@ extern "C" { /** * @brief Number of allocated parameters at @ref socket_zep_params * - * @note This was desided to only be confiruable on compile-time to be + * @note This was decided to only be confiruable on compile-time to be * more similar to actual boards */ #ifndef SOCKET_ZEP_MAX diff --git a/cpu/native/include/spidev_linux.h b/cpu/native/include/spidev_linux.h index afc21d3679..679fed5040 100644 --- a/cpu/native/include/spidev_linux.h +++ b/cpu/native/include/spidev_linux.h @@ -20,10 +20,10 @@ * listed as `FEATURES_REQUIRED` in the application's Makefile. * * At runtime, the process has to be connected to a specific bus on the host - * machine. SPI busses are exposed as `/dev/spidevB.D` character files, where B + * machine. SPI buses are exposed as `/dev/spidevB.D` character files, where B * is the Bus ID (MISO, MOSI and SCLK lines) and D denotes the connected device * or hardware chip select line. Ideally, this structure should be reflected - * when mapping the device files to RIOT SPI busses. + * when mapping the device files to RIOT SPI buses. * * Example: * @@ -35,7 +35,7 @@ * The first device can be used with SPI_HWCS(0) as CS parameter, the second one * with SPI_HWCS(1) as CS parameter. * - * Multiple SPI busses can be added by increasing SPI_NUMOF in the Makefile: + * Multiple SPI buses can be added by increasing SPI_NUMOF in the Makefile: * ``` * CFLAGS += -DSPI_NUMOF=n * ``` @@ -43,7 +43,7 @@ * The sames goes for the SPI_MAXCS parameter that defines the maximum number of * SPI_HWCS values per bus. * - * Busses that aren't assigned during startup will return either SPI_NODEV or + * Buses that aren't assigned during startup will return either SPI_NODEV or * SPI_NOCS when accessed. * * If the SPI API is called with SPI_CS_UNDEF as CS parameter, the driver will diff --git a/cpu/native/irq_cpu.c b/cpu/native/irq_cpu.c index f443585a65..3ec4fcafb9 100644 --- a/cpu/native/irq_cpu.c +++ b/cpu/native/irq_cpu.c @@ -451,7 +451,7 @@ static void native_shutdown(int sig, siginfo_t *info, void *context) /** * register internal signal handler, - * initalize local variables + * initialize local variables * * TODO: see register_interrupt */ diff --git a/cpu/native/netdev_tap/netdev_tap.c b/cpu/native/netdev_tap/netdev_tap.c index dfbbcb8e79..0ce38c4718 100644 --- a/cpu/native/netdev_tap/netdev_tap.c +++ b/cpu/native/netdev_tap/netdev_tap.c @@ -84,13 +84,13 @@ static inline void _set_mac_addr(netdev_t *netdev, const uint8_t *src) static inline int _get_promiscous(netdev_t *netdev) { netdev_tap_t *dev = (netdev_tap_t*)netdev; - return dev->promiscous; + return dev->promiscuous; } static inline int _set_promiscous(netdev_t *netdev, int value) { netdev_tap_t *dev = (netdev_tap_t*)netdev; - dev->promiscous = value; + dev->promiscuous = value; return value; } @@ -239,7 +239,7 @@ static int _recv(netdev_t *netdev, void *buf, size_t len, void *info) if (nread > 0) { ethernet_hdr_t *hdr = (ethernet_hdr_t *)buf; - if (!(dev->promiscous) && !_is_addr_multicast(hdr->dst) && + if (!(dev->promiscuous) && !_is_addr_multicast(hdr->dst) && !_is_addr_broadcast(hdr->dst) && (memcmp(hdr->dst, dev->addr, ETHERNET_ADDR_LEN) != 0)) { DEBUG("netdev_tap: received for %02x:%02x:%02x:%02x:%02x:%02x\n" @@ -332,7 +332,7 @@ static int _init(netdev_t *netdev) const char *clonedev = "/dev/net/tun"; #endif /* initialize device descriptor */ - dev->promiscous = 0; + dev->promiscuous = 0; /* implicitly create the tap interface */ if ((dev->tap_fd = real_open(clonedev, O_RDWR | O_NONBLOCK)) == -1) { err(EXIT_FAILURE, "open(%s)", clonedev); diff --git a/cpu/native/periph/spidev_linux.c b/cpu/native/periph/spidev_linux.c index a07c2b717e..7548ac5b8b 100644 --- a/cpu/native/periph/spidev_linux.c +++ b/cpu/native/periph/spidev_linux.c @@ -267,7 +267,7 @@ void spi_transfer_bytes(spi_t bus, spi_cs_t cs, bool cont, DEBUG("spi_transfer_bytes: ioctl failed\n"); } else { - DEBUG("\nspi_transfer_bytes: transfered %d bytes\n", len); + DEBUG("\nspi_transfer_bytes: transferred %d bytes\n", len); } } diff --git a/cpu/native/socket_zep/socket_zep.c b/cpu/native/socket_zep/socket_zep.c index c0e229a3db..6003df66a3 100644 --- a/cpu/native/socket_zep/socket_zep.c +++ b/cpu/native/socket_zep/socket_zep.c @@ -208,13 +208,13 @@ static int _recv(netdev_t *netdev, void *buf, size_t len, void *info) void *payload = &dev->rcv_buf[sizeof(zep_v2_data_hdr_t)]; if (zep->type != ZEP_V2_TYPE_DATA) { - DEBUG("socket_zep::recv: unexpect ZEP type\n"); + DEBUG("socket_zep::recv: unexpected ZEP type\n"); /* don't support ACK frames for now*/ return -1; } if (((sizeof(zep_v2_data_hdr_t) + zep->length) != (unsigned)size) || (zep->length > len) || (zep->chan != dev->netdev.chan) || - /* TODO promiscous mode */ + /* TODO promiscuous mode */ _dst_not_me(dev, payload)) { /* TODO: check checksum */ return -1; diff --git a/cpu/native/startup.c b/cpu/native/startup.c index d9a69d780f..5a0f0d7a51 100644 --- a/cpu/native/startup.c +++ b/cpu/native/startup.c @@ -310,7 +310,7 @@ void usage_exit(int status) " specify Linux SPI device to use for CS line d on bus b (in RIOT)\n" " Example: --spi=0:1:/dev/spidev0.0 will assign the file spidev0.0 to\n" " SPI_DEV(0) and SPI_HWCS(1).\n" -" Supports up to %d busses with %d CS lines each.\n", SPI_NUMOF, SPI_MAXCS +" Supports up to %d buses with %d CS lines each.\n", SPI_NUMOF, SPI_MAXCS ); #endif real_exit(status); @@ -541,7 +541,7 @@ __attribute__((constructor)) static void startup(int argc, char **argv, char **e * power off command. * We need all C++ global constructors and other initializers to run before * we enter the normal application code, which may depend on global objects - * having been initalized properly. Therefore, we iterate through the + * having been initialized properly. Therefore, we iterate through the * remainder of the init_array and call any constructors which have been * placed after startup in the initialization order. */ diff --git a/cpu/nrf51/periph/pwm.c b/cpu/nrf51/periph/pwm.c index ab74b9def3..2fd64cf0cc 100644 --- a/cpu/nrf51/periph/pwm.c +++ b/cpu/nrf51/periph/pwm.c @@ -124,7 +124,7 @@ void pwm_set(pwm_t dev, uint8_t channel, uint16_t value) assert((dev == 0) && (channel == 0)); /* - * make sure duty cycle is set at the beggining of each period + * make sure duty cycle is set at the beginning of each period * ensure to stop the timer as soon as possible */ PWM_TIMER->TASKS_STOP = 1; diff --git a/cpu/nrf52/include/nrf802154.h b/cpu/nrf52/include/nrf802154.h index de55018e77..7718f3efc0 100644 --- a/cpu/nrf52/include/nrf802154.h +++ b/cpu/nrf52/include/nrf802154.h @@ -17,7 +17,7 @@ * - NETDEV_EVENT_RX_COMPLETE * - NETDEV_EVENT_TX_COMPLETE * - * Transmission options not yet impemented: + * Transmission options not yet implemented: * - Send acknowledgement for packages * - Request acknowledgement * - Retransmit unacked packages diff --git a/cpu/nrf52/periph/i2c.c b/cpu/nrf52/periph/i2c.c index 873193a2ef..32d04a4c75 100644 --- a/cpu/nrf52/periph/i2c.c +++ b/cpu/nrf52/periph/i2c.c @@ -133,7 +133,7 @@ int i2c_write_regs(i2c_t dev, uint16_t addr, uint16_t reg, } /* the nrf52's TWI device does not support to do two consecutive transfers * without a repeated start condition in between. So we have to put all data - * to be transfered into a temporary buffer + * to be transferred into a temporary buffer * * CAUTION: this might become critical when transferring large blocks of * data as the temporary buffer is allocated on the stack... */ diff --git a/cpu/nrf52/radio/nrf802154/nrf802154.c b/cpu/nrf52/radio/nrf802154/nrf802154.c index 1fb7b96e62..9334ffd5a4 100644 --- a/cpu/nrf52/radio/nrf802154/nrf802154.c +++ b/cpu/nrf52/radio/nrf802154/nrf802154.c @@ -336,7 +336,7 @@ static int _recv(netdev_t *dev, void *buf, size_t len, void *info) radio_info->lqi = (uint8_t)(hwlqi > UINT8_MAX/ED_RSSISCALE ? UINT8_MAX : hwlqi * ED_RSSISCALE); - /* Calculate RSSI by substracting the offset from the datasheet. + /* Calculate RSSI by subtracting the offset from the datasheet. * Intentionally using a different calculation than the one from * figure 122 of the v1.1 product specification. This appears to * match real world performance better */ diff --git a/cpu/nrf5x_common/periph/wdt.c b/cpu/nrf5x_common/periph/wdt.c index 7ef31fb184..aa34e505c7 100644 --- a/cpu/nrf5x_common/periph/wdt.c +++ b/cpu/nrf5x_common/periph/wdt.c @@ -102,7 +102,7 @@ void wdt_setup_reboot(uint32_t min_time, uint32_t max_time) #ifdef MODULE_PERIPH_WDT_CB /* The reset can't be stopped when the callback is triggered: so the MCU will reset in any case after 2 cycles of 32.768kHz clock. This is very short so - only basic and fast operations can be perfomed in the callback function. */ + only basic and fast operations can be performed in the callback function. */ void wdt_setup_reboot_with_callback(uint32_t min_time, uint32_t max_time, wdt_cb_t cb, void* arg) { diff --git a/cpu/nrf5x_common/radio/nrfble/nrfble.c b/cpu/nrf5x_common/radio/nrfble/nrfble.c index bd0f4c8e90..dbce932fc6 100644 --- a/cpu/nrf5x_common/radio/nrfble/nrfble.c +++ b/cpu/nrf5x_common/radio/nrfble/nrfble.c @@ -247,7 +247,7 @@ static int _nrfble_init(netdev_t *dev) NRF_RADIO->RXADDRESSES = 0x01UL; /* load driver specific configuration */ NRF_RADIO->MODE = CONF_MODE; - /* configure data fields and packet length whitening and endianess */ + /* configure data fields and packet length whitening and endianness */ NRF_RADIO->PCNF0 = ((CONF_S1 << RADIO_PCNF0_S1LEN_Pos) | (CONF_S0 << RADIO_PCNF0_S0LEN_Pos) | (CONF_LEN << RADIO_PCNF0_LFLEN_Pos)); diff --git a/cpu/nrf5x_common/radio/nrfmin/nrfmin.c b/cpu/nrf5x_common/radio/nrfmin/nrfmin.c index 0dc1cf13e0..423f0b1184 100644 --- a/cpu/nrf5x_common/radio/nrfmin/nrfmin.c +++ b/cpu/nrf5x_common/radio/nrfmin/nrfmin.c @@ -425,7 +425,7 @@ static int nrfmin_init(netdev_t *dev) /* and listen to logical addresses 0 and 1 */ /* workaround errata nrf52832 3.41 [143] */ NRF_RADIO->RXADDRESSES = 0x10003UL; - /* configure data fields and packet length whitening and endianess */ + /* configure data fields and packet length whitening and endianness */ NRF_RADIO->PCNF0 = ((CONF_S1 << RADIO_PCNF0_S1LEN_Pos) | (CONF_S0 << RADIO_PCNF0_S0LEN_Pos) | (CONF_LEN << RADIO_PCNF0_LFLEN_Pos)); diff --git a/cpu/sam0_common/periph/rtc.c b/cpu/sam0_common/periph/rtc.c index d5d39594c1..0b49a332df 100644 --- a/cpu/sam0_common/periph/rtc.c +++ b/cpu/sam0_common/periph/rtc.c @@ -15,7 +15,7 @@ * @brief Low-level RTC driver implementation * * @author Baptiste Clenet - * @autor ported to SAML21 by FWX + * @author ported to SAML21 by FWX * @} */ diff --git a/cpu/sam0_common/periph/timer.c b/cpu/sam0_common/periph/timer.c index 294ea3694f..28975ccbd4 100644 --- a/cpu/sam0_common/periph/timer.c +++ b/cpu/sam0_common/periph/timer.c @@ -195,7 +195,7 @@ unsigned int timer_read(tim_t tim) /* request syncronisation */ #ifdef TC_CTRLBSET_CMD_READSYNC_Val dev(tim)->CTRLBSET.reg = TC_CTRLBSET_CMD_READSYNC; - /* work aroud a possible hardware bug where it takes some + /* work around a possible hardware bug where it takes some cycles for the timer peripheral to set the SYNCBUSY/READSYNC bit after writing the READSYNC bit diff --git a/cpu/sam3/periph/cpuid.c b/cpu/sam3/periph/cpuid.c index 2217b4367c..c0e07b3e21 100644 --- a/cpu/sam3/periph/cpuid.c +++ b/cpu/sam3/periph/cpuid.c @@ -33,7 +33,7 @@ __attribute__ ((section (".ramfunc"))) void cpuid_get(void *id) { - uint32_t cpuid[4]; /* 128 bits sam3 unique indentifier */ + uint32_t cpuid[4]; /* 128 bits sam3 unique identifier */ /* Reading SAM3 Unique Identifier process (P 19.3.3.8): diff --git a/cpu/samd21/cpu.c b/cpu/samd21/cpu.c index cb83b07d4e..7fd48e16ea 100644 --- a/cpu/samd21/cpu.c +++ b/cpu/samd21/cpu.c @@ -109,7 +109,7 @@ static void clk_init(void) SYSCTRL_XOSC32K_STARTUP(6) | SYSCTRL_XOSC32K_RUNSTDBY; - /* Enable with Seperate Call */ + /* Enable with Separate Call */ SYSCTRL->XOSC32K.bit.ENABLE = 1; /* reset the GCLK module so it is in a known state */ diff --git a/cpu/stm32_common/include/periph_cpu_common.h b/cpu/stm32_common/include/periph_cpu_common.h index a5fbb74bcc..de34d426f9 100644 --- a/cpu/stm32_common/include/periph_cpu_common.h +++ b/cpu/stm32_common/include/periph_cpu_common.h @@ -663,7 +663,7 @@ void dma_init(void); * @param[in] mode DMA mode * @param[in] flags DMA configuration * - * @return < 0 on error, the number of transfered bytes otherwise + * @return < 0 on error, the number of transferred bytes otherwise */ int dma_transfer(dma_t dma, int chan, const volatile void *src, volatile void *dst, size_t len, dma_mode_t mode, uint8_t flags); diff --git a/cpu/stm32_common/periph/can.c b/cpu/stm32_common/periph/can.c index 19717cd2d9..28ad426d3a 100644 --- a/cpu/stm32_common/periph/can.c +++ b/cpu/stm32_common/periph/can.c @@ -132,7 +132,7 @@ static int set_mode(CAN_TypeDef *can, can_mode_t mode) switch (mode) { case MODE_NORMAL: can->MCR &= ~(CAN_MCR_SLEEP | CAN_MCR_INRQ); - /* wait for hardare confirmation */ + /* wait for hardware confirmation */ while (((can->MSR & CAN_MSR_INAK) || (can->MSR & CAN_MSR_SLAK)) && max_loop != 0) { max_loop--; } @@ -148,7 +148,7 @@ static int set_mode(CAN_TypeDef *can, can_mode_t mode) case MODE_INIT: can->MCR &= ~CAN_MCR_SLEEP; can->MCR |= CAN_MCR_INRQ; - /* wait for hardare confirmation */ + /* wait for hardware confirmation */ while ((!(can->MSR & CAN_MSR_INAK) || (can->MSR & CAN_MSR_SLAK)) && max_loop != 0) { max_loop--; } diff --git a/cpu/stm32_common/periph/i2c_1.c b/cpu/stm32_common/periph/i2c_1.c index 557131029e..9bae14a147 100644 --- a/cpu/stm32_common/periph/i2c_1.c +++ b/cpu/stm32_common/periph/i2c_1.c @@ -23,7 +23,7 @@ * * @author Peter Kietzmann * @author Hauke Petersen - * @auhtor Thomas Eichinger + * @author Thomas Eichinger * @author Jan Pohlmann * @author Aurélien Fillau * @author Alexandre Abadie @@ -170,7 +170,7 @@ int i2c_write_regs(i2c_t dev, uint16_t addr, uint16_t reg, if (i2c->ISR & I2C_ISR_BUSY) { return -EAGAIN; } - /* Handle endianess of register if 16 bit */ + /* Handle endianness of register if 16 bit */ if (flags & I2C_REG16) { reg = htons(reg); /* Make sure register is in big-endian on I2C bus */ } @@ -405,7 +405,7 @@ static inline void irq_handler(i2c_t dev) I2C_TypeDef *i2c = i2c_config[dev].dev; unsigned state = i2c->ISR; - DEBUG("\n\n### I2C ERROR OCCURED ###\n"); + DEBUG("\n\n### I2C ERROR OCCURRED ###\n"); DEBUG("status: %08x\n", state); if (state & I2C_ISR_OVR) { DEBUG("OVR\n"); diff --git a/cpu/stm32_common/periph/i2c_2.c b/cpu/stm32_common/periph/i2c_2.c index 5a68a0167e..8cb037b4d4 100644 --- a/cpu/stm32_common/periph/i2c_2.c +++ b/cpu/stm32_common/periph/i2c_2.c @@ -436,7 +436,7 @@ static inline void irq_handler(i2c_t dev) assert(i2c != NULL); unsigned state = i2c->SR1; - DEBUG("\n\n### I2C ERROR OCCURED ###\n"); + DEBUG("\n\n### I2C ERROR OCCURRED ###\n"); DEBUG("status: %08x\n", state); if (state & I2C_SR1_OVR) { DEBUG("OVR\n"); diff --git a/cpu/stm32_common/periph/qdec.c b/cpu/stm32_common/periph/qdec.c index 613f45128f..1b4b56d5d1 100644 --- a/cpu/stm32_common/periph/qdec.c +++ b/cpu/stm32_common/periph/qdec.c @@ -69,7 +69,7 @@ int32_t qdec_init(qdec_t qdec, qdec_mode_t mode, qdec_cb_t cb, void *arg) } /* Count on A (TI1) signal edges, B (TI2) signal edges or both, - * default to EINVAL (Invalide argument). + * default to EINVAL (Invalid argument). */ switch (mode) { /* X2 mode */ @@ -156,7 +156,7 @@ static int32_t _qdec_read(qdec_t qdec, uint8_t reset) /* Restore IRQ */ irq_restore(irq_save); - /* Substract offset before return */ + /* Subtract offset before return */ count -= dev(qdec)->ARR / 2; /* Return count minus offset */ diff --git a/cpu/stm32f1/periph/rtt.c b/cpu/stm32f1/periph/rtt.c index 572927b5af..3f1015d7fe 100644 --- a/cpu/stm32f1/periph/rtt.c +++ b/cpu/stm32f1/periph/rtt.c @@ -91,7 +91,7 @@ void rtt_clear_overflow_cb(void) uint32_t rtt_get_counter(void) { - /* wait for syncronization */ + /* wait for synchronization */ while (!(RTT_DEV->CRL & RTT_FLAG_RSF)) {} return (((uint32_t)RTT_DEV->CNTH << 16 ) | (uint32_t)(RTT_DEV->CNTL)); @@ -111,7 +111,7 @@ void rtt_set_counter(uint32_t counter) uint32_t rtt_get_alarm(void) { - /* wait for syncronization */ + /* wait for synchronization */ while (!(RTT_DEV->CRL & RTT_FLAG_RSF)) {} return (((uint32_t)RTT_DEV->ALRH << 16 ) | (uint32_t)(RTT_DEV->ALRL)); diff --git a/cpu/stm32l4/periph/adc.c b/cpu/stm32l4/periph/adc.c index 11743016e1..7b9340ca9d 100644 --- a/cpu/stm32l4/periph/adc.c +++ b/cpu/stm32l4/periph/adc.c @@ -37,7 +37,7 @@ /* on stm32-l476rg all ADC clocks are are enabled by this bit further clock config is possible over CKMODE[1:0] bits in ADC_CCR reg */ #define ADC_CLK_EN_MASK (RCC_AHB2ENR_ADCEN) -/* refering to Datasheet Section 6.3.18 (ADC characteristics) the minimum +/* referring to Datasheet Section 6.3.18 (ADC characteristics) the minimum achievable sampling rate is 4.21 Msps (12 Bit resolution on slow channel) we use that worst case for configuring the sampling time to be sure it works on all channels. diff --git a/dist/tools/backport_pr/README.md b/dist/tools/backport_pr/README.md index 0cc7b48149..c8cf05c583 100644 --- a/dist/tools/backport_pr/README.md +++ b/dist/tools/backport_pr/README.md @@ -66,7 +66,7 @@ your home directory at `~/.riotgithubtoken`. The setting is located at https://github.com/settings/tokens : Github->Settings-> - Developper settings->Personal access tokens->Generate New Token + Developer settings->Personal access tokens->Generate New Token And it should have the following scope: diff --git a/dist/tools/buildsystem_sanity_check/check.sh b/dist/tools/buildsystem_sanity_check/check.sh index 7e5b4bedff..54409ef058 100755 --- a/dist/tools/buildsystem_sanity_check/check.sh +++ b/dist/tools/buildsystem_sanity_check/check.sh @@ -95,7 +95,7 @@ check_not_exporting_variables() { | error_with_message 'Variables must not be exported:' # Some variables may still be exported in 'makefiles/vars.inc.mk' as the - # only place that should export commont variables + # only place that should export common variables pathspec+=('*') pathspec+=(':!makefiles/vars.inc.mk') diff --git a/dist/tools/coccinelle/README.md b/dist/tools/coccinelle/README.md index 1e52acd9cf..e127268539 100644 --- a/dist/tools/coccinelle/README.md +++ b/dist/tools/coccinelle/README.md @@ -46,7 +46,7 @@ piping coccinelle's output into patch: Specifying BRANCH, FILES and/or a specific patch file works here, too. -Beware that some of our semantic patch files might just *find* occurences of +Beware that some of our semantic patch files might just *find* occurrences of bad code or style! Not all semantic patches output useful diffs. ## My PR has coccinelle warnings/errors! diff --git a/dist/tools/goodfet/goodfet.bsl b/dist/tools/goodfet/goodfet.bsl index 6ae64cb067..27bee6b2ce 100755 --- a/dist/tools/goodfet/goodfet.bsl +++ b/dist/tools/goodfet/goodfet.bsl @@ -1047,7 +1047,7 @@ class BootStrapLoader(LowLevel): sys.stderr.flush() #send the password self.bslTxRx(self.BSL_TXPWORD, #Command: Transmit Password - 0xffe0, #Address of interupt vectors + 0xffe0, #Address of interrupt vectors 0x0020, #Number of bytes passwd, #password wait=wait) #if wait is 1, try to sync forever @@ -1098,7 +1098,7 @@ class BootStrapLoader(LowLevel): if DEBUG: sys.stderr.write("Autodetect successful: %04x -> %s\n" % (dev_id, self.cpu)) else: - sys.stderr.write("Autodetect failed! Unkown ID: %04x. Trying to continue anyway.\n" % dev_id) + sys.stderr.write("Autodetect failed! Unknown ID: %04x. Trying to continue anyway.\n" % dev_id) self.cpu = F1x #assume something and try anyway.. sys.stderr.write("Current bootstrap loader version: %x.%x (Device ID: %04x)\n" % (bslVerHi, bslVerLo, dev_id)) @@ -1200,7 +1200,7 @@ class BootStrapLoader(LowLevel): self.txPasswd(self.passwd) #update version info - #verison only valid for the internal ones, but it also makes sure + #version only valid for the internal ones, but it also makes sure #that the patches are not applied if the user d/ls one self.bslVer = 0x0150 @@ -1306,7 +1306,7 @@ goodfet.bsl -e -p foo.hex sys.stderr.flush() self.bslTxRx(self.BSL_CHANGEBAUD, #Command: change baudrate a, l) #args are coded in adr and len - time.sleep(0.010) #recomended delay + time.sleep(0.010) #recommended delay self.serialport.baudrate = baudrate def actionReadBSLVersion(self): diff --git a/dist/tools/lazysponge/lazysponge.py b/dist/tools/lazysponge/lazysponge.py index 6bfefef795..19c0437d51 100755 --- a/dist/tools/lazysponge/lazysponge.py +++ b/dist/tools/lazysponge/lazysponge.py @@ -11,7 +11,7 @@ """ lazysponge -Adaptation of moreutils `sponge` with added functionnality that it does not +Adaptation of moreutils `sponge` with added functionality that it does not modify the output file if the content would be unchanged. Description @@ -26,7 +26,7 @@ unchanged. Note ---- -It only works with input provided by a `pipe` and not interractive input. +It only works with input provided by a `pipe` and not interactive input. The reason is that `ctrl+c` would not be handled properly in that case. Usage @@ -59,7 +59,7 @@ PARSER.add_argument('--verbose', '-v', help='Verbose output', default=False, def _print_hash_debug_info(outfilename, oldbytes, newbytes): - """Print debug information on hashs.""" + """Print debug information on hashes.""" oldhash = hashlib.md5(oldbytes).hexdigest() if oldbytes is not None else '' newhash = hashlib.md5(newbytes).hexdigest() if oldbytes == newbytes: diff --git a/dist/tools/packer/setup.sh b/dist/tools/packer/setup.sh index c9cc2f005f..c2e366cc5e 100755 --- a/dist/tools/packer/setup.sh +++ b/dist/tools/packer/setup.sh @@ -58,7 +58,7 @@ wget -qO - https://github.com/iot-lab/cli-tools/archive/2.1.0.tar.gz | tar xz cd cli-tools-* && python setup.py install && cd .. && rm -rf cli-tools-* # Remove some packages to get a minimal install -echo "==> Removing all linux kernels except the currrent one" +echo "==> Removing all linux kernels except the current one" dpkg --list | awk '{ print $2 }' | grep 'linux-image-*-generic' | grep -v $(uname -r) | xargs apt-get -y purge echo "==> Removing linux source" dpkg --list | awk '{ print $2 }' | grep linux-source | xargs apt-get -y purge diff --git a/dist/tools/pic32prog/doc.md b/dist/tools/pic32prog/doc.md index 60a3791742..ca3ea21939 100644 --- a/dist/tools/pic32prog/doc.md +++ b/dist/tools/pic32prog/doc.md @@ -9,7 +9,7 @@ As this can only be done from a Windows computer, that not many Linux users have, the following steps explain how to setup a Windows VirtualBox virtual machine and flash the PICkit3 from it. -Informations come from this comment +Information come from this comment https://github.com/RIOT-OS/RIOT/pull/6092#issuecomment-261987955 diff --git a/dist/tools/tunslip/tunslip.c b/dist/tools/tunslip/tunslip.c index 117bedc97d..651e2c2c7d 100644 --- a/dist/tools/tunslip/tunslip.c +++ b/dist/tools/tunslip/tunslip.c @@ -71,7 +71,7 @@ struct ip { u_int16_t ip_id; /* identification */ u_int16_t ip_off; /* fragment offset field */ #define IP_RF 0x8000 /* reserved fragment flag */ -#define IP_DF 0x4000 /* dont fragment flag */ +#define IP_DF 0x4000 /* don't fragment flag */ #define IP_MF 0x2000 /* more fragments flag */ #define IP_OFFMASK 0x1fff /* mask for fragmenting bits */ u_int8_t ip_ttl; /* time to live */ diff --git a/dist/tools/uhcpd/uhcpd.c b/dist/tools/uhcpd/uhcpd.c index 8bad14dbe9..2f245cfbe8 100644 --- a/dist/tools/uhcpd/uhcpd.c +++ b/dist/tools/uhcpd/uhcpd.c @@ -23,11 +23,11 @@ unsigned _prefix_len; static const char *BIND_OPTION = "--bind-to-device"; static void bind_to_device(int sock, const char *interface); -int ipv6_addr_split(char *addr_str, char seperator, int _default) +int ipv6_addr_split(char *addr_str, char separator, int _default) { char *sep = addr_str; while(*++sep) { - if (*sep == seperator) { + if (*sep == separator) { *sep++ = '\0'; if (*sep) { _default = atoi(sep); @@ -64,7 +64,7 @@ int main(int argc, char *argv[]) if (argc == 4) { if (strcmp(BIND_OPTION, argv[3])) { - fprintf(stderr, "error: unkwown option\n"); + fprintf(stderr, "error: unknown option\n"); exit(1); } _bind_to_device = 1; diff --git a/doc/doxygen/riot.doxyfile b/doc/doxygen/riot.doxyfile index a0fe1cc19a..356758f7a7 100644 --- a/doc/doxygen/riot.doxyfile +++ b/doc/doxygen/riot.doxyfile @@ -1670,7 +1670,7 @@ EXTRA_PACKAGES = # following commands have a special meaning inside the header: $title, # $datetime, $date, $doxygenversion, $projectname, $projectnumber, # $projectbrief, $projectlogo. Doxygen will replace $title with the empy string, -# for the replacement values of the other commands the user is refered to +# for the replacement values of the other commands the user is referred to # HTML_HEADER. # This tag requires that the tag GENERATE_LATEX is set to YES. diff --git a/doc/doxygen/src/mainpage.md b/doc/doxygen/src/mainpage.md index 7f8de24488..ba15533e5b 100644 --- a/doc/doxygen/src/mainpage.md +++ b/doc/doxygen/src/mainpage.md @@ -230,7 +230,7 @@ output after running `make doc`. Lastly, the `dist` directory contains tools to help you with RIOT. These include the serial terminal application `pyterm`, generic scripts for flashing, -debugging, reseting (e.g. support for [OpenOCD](http://openocd.org/), +debugging, resetting (e.g. support for [OpenOCD](http://openocd.org/), [Jlink](https://www.segger.com/jlink_base.html)), as well as code enabling easy integration to open testbeds such as the [IoT-LAB](https://www.iot-lab.info/). Furthermore you can find here scripts to do all kind of code and style checks. diff --git a/doc/memos/rdm0000.md b/doc/memos/rdm0000.md index 9105a77465..be9f2e2ad8 100644 --- a/doc/memos/rdm0000.md +++ b/doc/memos/rdm0000.md @@ -121,7 +121,7 @@ is the RDM number of the new memo. Note that a memo should not be published if there are expected changes, whether small or large. A dedicated directory in RIOT codebase (RIOT/doc/memos) contains all the memos. -It is acceptable to add complementary content such as graphical elments +It is acceptable to add complementary content such as graphical elements (in RIOT/doc/memos/files/) to illustrate the memo, as done with the RIOT logo below (see Figure 1, given here for pure sake of example). However graphical content should be kept to the bare diff --git a/drivers/ad7746/ad7746.c b/drivers/ad7746/ad7746.c index faf2a6d56b..45f3c8c69b 100644 --- a/drivers/ad7746/ad7746.c +++ b/drivers/ad7746/ad7746.c @@ -51,7 +51,7 @@ static const unsigned char _vt_sr_times[] = { * * @return AD7746_OK on success * @return AD7746_NODATA if no data is available - * @return AD7746_I2C on error getting a reponse + * @return AD7746_I2C on error getting a response */ static int _read_capacitance(ad7746_t *dev, int *value, ad7746_cap_input_t input); @@ -67,7 +67,7 @@ static int _read_capacitance(ad7746_t *dev, int *value, * * @return AD7746_OK on success * @return AD7746_NODATA if no data is available - * @return AD7746_I2C on error getting a reponse + * @return AD7746_I2C on error getting a response */ static int _read_voltage_temp(ad7746_t *dev, int *value, ad7746_vt_mode_t mode); @@ -83,7 +83,7 @@ static int _read_voltage_temp(ad7746_t *dev, int *value, ad7746_vt_mode_t mode); * * @return AD7746_OK on success * @return AD7746_NODATA if no data is available - * @return AD7746_I2C on error getting a reponse + * @return AD7746_I2C on error getting a response */ static int _read_raw_ch(const ad7746_t *dev, uint8_t ch, uint32_t *raw); diff --git a/drivers/adcxx1c/include/adcxx1c_regs.h b/drivers/adcxx1c/include/adcxx1c_regs.h index 0ca348c766..e869bf1394 100644 --- a/drivers/adcxx1c/include/adcxx1c_regs.h +++ b/drivers/adcxx1c/include/adcxx1c_regs.h @@ -24,7 +24,7 @@ extern "C" { #endif /** - * @name ADCxx1C register addesses + * @name ADCxx1C register addresses * @{ */ #define ADCXX1C_CONV_RES_ADDR (0) diff --git a/drivers/ads101x/ads101x.c b/drivers/ads101x/ads101x.c index 31da0c99cc..843df3a6eb 100644 --- a/drivers/ads101x/ads101x.c +++ b/drivers/ads101x/ads101x.c @@ -133,11 +133,11 @@ int ads101x_read_raw(const ads101x_t *dev, int16_t *raw) /* Read control register */ i2c_read_regs(DEV, ADDR, ADS101X_CONF_ADDR, ®s, 2, 0x0); - /* Tell the ADC to aquire a single-shot sample */ + /* Tell the ADC to acquire a single-shot sample */ regs[0] |= ADS101X_CONF_OS_CONV; i2c_write_regs(DEV, ADDR, ADS101X_CONF_ADDR, ®s, 2, 0x0); - /* Wait for the sample to be aquired */ + /* Wait for the sample to be acquired */ xtimer_usleep(ADS101X_READ_DELAY); /* Read the sample */ diff --git a/drivers/ads101x/include/ads101x_regs.h b/drivers/ads101x/include/ads101x_regs.h index a5f6173697..62f37fb9d6 100644 --- a/drivers/ads101x/include/ads101x_regs.h +++ b/drivers/ads101x/include/ads101x_regs.h @@ -26,7 +26,7 @@ extern "C" { #endif /** - * @name ADS101x/111x register addesses + * @name ADS101x/111x register addresses * @{ */ #define ADS101X_CONV_RES_ADDR (0) diff --git a/drivers/apa102/apa102.c b/drivers/apa102/apa102.c index 1d529e47aa..d47e067cc1 100644 --- a/drivers/apa102/apa102.c +++ b/drivers/apa102/apa102.c @@ -65,7 +65,7 @@ void apa102_load_rgba(const apa102_t *dev, const color_rgba_t vals[]) for (int i = 0; i < dev->led_numof; i++) { uint32_t data = HEAD; /* we scale the 8-bit alpha value to a 5-bit value by cutting off the - * 3 leas significant bits */ + * 3 least significant bits */ data |= (((uint32_t)vals[i].alpha << BRIGHT_SHIFT) & BRIGHT); data |= ((uint32_t)vals[i].color.b << BLUE_SHIFT); data |= ((uint32_t)vals[i].color.g << GREEN_SHIFT); diff --git a/drivers/bh1750fvi/include/bh1750fvi_internal.h b/drivers/bh1750fvi/include/bh1750fvi_internal.h index 1b4f75cb1e..48c4d1c9d2 100644 --- a/drivers/bh1750fvi/include/bh1750fvi_internal.h +++ b/drivers/bh1750fvi/include/bh1750fvi_internal.h @@ -28,7 +28,7 @@ extern "C" { * @brief Result divisor (1.2 times 65535) * * The 16-bit RAW results have to be divided by 1.2. We do this by using fixed - * floating point arithmetics by multiplying divisor and RAW value by 65535 ( + * floating point arithmetic by multiplying divisor and RAW value by 65535 ( * uint16_t max). */ #define RES_DIV (78642) diff --git a/drivers/bmx055/bmx055.c b/drivers/bmx055/bmx055.c index 244e0b5450..5014463327 100644 --- a/drivers/bmx055/bmx055.c +++ b/drivers/bmx055/bmx055.c @@ -117,7 +117,7 @@ int bmx055_init(bmx055_t *dev, const bmx055_params_t *params) * softreset to bring module to normal mode */ if (i2c_write_reg(BUS, ADDR_ACC, 0x14, 0xB6, 0x0) < 0) { - DEBUG("[bmx055] erro: setting accelerometer opmode\n"); + DEBUG("[bmx055] error: setting accelerometer opmode\n"); i2c_release(BUS); return BMX055_NOWRITE; } @@ -138,7 +138,7 @@ int bmx055_init(bmx055_t *dev, const bmx055_params_t *params) /* Init Gyroscope * - * The prefered way to bring the module to normal mode is using softreset. + * The preferred way to bring the module to normal mode is using softreset. * However, a softreset brings the module into an unknown state and * deadlocks it. Hence it is not the way to go and normal mode is entered * by writing into power mode control register. diff --git a/drivers/bmx055/include/bmx055_params.h b/drivers/bmx055/include/bmx055_params.h index 7907119c0f..0cedccf5e1 100644 --- a/drivers/bmx055/include/bmx055_params.h +++ b/drivers/bmx055/include/bmx055_params.h @@ -88,7 +88,7 @@ static const bmx055_params_t bmx055_params[] = { }; /** - * @brief SAUL registry entires + * @brief SAUL registry entries */ static const saul_reg_info_t bmx055_saul_info[][3] = { BMX055_SAULINFO diff --git a/drivers/ccs811/ccs811.c b/drivers/ccs811/ccs811.c index 86eca15c95..5d4eaa8a54 100644 --- a/drivers/ccs811/ccs811.c +++ b/drivers/ccs811/ccs811.c @@ -186,7 +186,7 @@ int ccs811_set_mode(ccs811_t *dev, ccs811_mode_t mode) return -CCS811_ERROR_I2C; } - /* check whether setting measurement mode were succesfull */ + /* check whether setting measurement mode were successful */ if (_reg_read(dev, CCS811_REG_MEAS_MODE, (uint8_t *)®, 1) != CCS811_OK) { DEBUG_DEV("could not read new measurement mode " "from register CCS811_REG_MEAS_MODE", dev); @@ -485,7 +485,7 @@ static int _reg_read(const ccs811_t *dev, uint8_t reg, uint8_t *data, uint32_t l int res = CCS811_OK; if (i2c_acquire(dev->params.i2c_dev) != CCS811_OK) { - DEBUG_DEV("could not aquire I2C bus", dev); + DEBUG_DEV("could not acquire I2C bus", dev); return -CCS811_ERROR_I2C; } @@ -546,7 +546,7 @@ static int _reg_write(const ccs811_t *dev, uint8_t reg, uint8_t *data, uint32_t } if (i2c_acquire(dev->params.i2c_dev)) { - DEBUG_DEV("could not aquire I2C bus", dev); + DEBUG_DEV("could not acquire I2C bus", dev); return -CCS811_ERROR_I2C; } diff --git a/drivers/ccs811/doc.txt b/drivers/ccs811/doc.txt index aa7a92182d..97129ca960 100644 --- a/drivers/ccs811/doc.txt +++ b/drivers/ccs811/doc.txt @@ -9,7 +9,7 @@ The driver is for the usage with [RIOT-OS](https://github.com/RIOT-OS/RIOT). -## Table of contets +## Table of contents 1. [Overview](#overview) 1. [About the sensor](#about) @@ -46,7 +46,7 @@ The sensor allows to - correct baseline automatically or manually - connect a NTC thermistor to provide means of calculating the local ambient temperature, -- power-save using a sleep mode and wakup feature. +- power-save using a sleep mode and wakeup feature. @note The sensor is connected to I2C interface and uses clock stretching. The I2C implementation of the MCU has to support clock stretching @@ -55,7 +55,7 @@ to get CCS811 working. ### Supported Features    [[TOC](#toc)] @note There are two driver module versions, the `ccs811` module -wich provides only basic functionality and the `ccs811_full` +which provides only basic functionality and the `ccs811_full` module with additional functionality. The `ccs811_full` module includes the `ccs811` module @@ -71,7 +71,7 @@ read raw and converted gas sensor data (eCO2, TVOC) | `ccs811` poling for new sensor gas data | `ccs811` power saving using sleep mode with wakeup | `ccs811` data ready and threshold interrupt handling | `ccs811_full` -ambient temperatur calculation with NTC | `ccs811_full` +ambient temperature calculation with NTC | `ccs811_full` compensate gas readings using an external sensor | `ccs811_full` manual baseline handling | `ccs811_full` @@ -448,7 +448,7 @@ defining according macros before including **ccs811_params.h**, for example: ``` Alternatively, the complete set of default configuration parameters could -also be overriden by a single definition, for example: +also be overridden by a single definition, for example: ``` #define CCS811_PARAMS { .i2c_dev = I2C, \ .i2c_addr = CCS811_I2C_ADDRESS_2, \ diff --git a/drivers/ccs811/include/ccs811_regs.h b/drivers/ccs811/include/ccs811_regs.h index 1fe0f5c63a..3ce1e2c2ef 100644 --- a/drivers/ccs811/include/ccs811_regs.h +++ b/drivers/ccs811/include/ccs811_regs.h @@ -52,7 +52,7 @@ extern "C" { * @name Status register bits (#CCS811_REG_STATUS) * @{ */ -#define CCS811_STATUS_ERROR (0x01) /**< error occured, details in CCS811_REG_ERROR */ +#define CCS811_STATUS_ERROR (0x01) /**< error occurred, details in CCS811_REG_ERROR */ #define CCS811_STATUS_DATA_RDY (0x08) /**< new data sample available in ALG_RESULT_DATA */ #define CCS811_STATUS_APP_VALID (0x10) /**< valid application firmware loaded */ #define CCS811_STATUS_FW_MODE (0x80) /**< firmware is in application mode */ diff --git a/drivers/dynamixel/include/dynamixel_reader.h b/drivers/dynamixel/include/dynamixel_reader.h index ee61d7da51..b7469a5ff6 100644 --- a/drivers/dynamixel/include/dynamixel_reader.h +++ b/drivers/dynamixel/include/dynamixel_reader.h @@ -123,7 +123,7 @@ static inline uint16_t dynamixel_reader_get_crc(const dynamixel_reader_t *reader * * @param[in] reader the packet reader * - * @return the addess of the begining of the payload + * @return the address of the beginning of the payload */ static inline const uint8_t *dynamixel_reader_status_get_payload(const dynamixel_reader_t *reader) { diff --git a/drivers/dynamixel/include/dynamixel_writer.h b/drivers/dynamixel/include/dynamixel_writer.h index 0d07182a97..1b404ad702 100644 --- a/drivers/dynamixel/include/dynamixel_writer.h +++ b/drivers/dynamixel/include/dynamixel_writer.h @@ -52,7 +52,7 @@ void dynamixel_writer_init(dynamixel_writer_t *writer, uint8_t *buffer, size_t l * * @param[out] writer the packet writer * - * @return the begining address of the buffer + * @return the beginning address of the buffer */ const uint8_t *dynamixel_writer_get_data(const dynamixel_writer_t *writer); diff --git a/drivers/enc28j60/enc28j60.c b/drivers/enc28j60/enc28j60.c index 202b50217c..e641015557 100644 --- a/drivers/enc28j60/enc28j60.c +++ b/drivers/enc28j60/enc28j60.c @@ -59,7 +59,7 @@ #define SPI_CLK SPI_CLK_10MHZ /** - * @brief The devices build-in buffer size + * @brief The devices built-in buffer size * * This is a shared buffer that is freely configurable to be used for TX and RX */ @@ -250,7 +250,7 @@ static void mac_set(enc28j60_t *dev, uint8_t *mac) static void on_int(void *arg) { - /* disable gobal interupt enable bit to avoid loosing interupts */ + /* disable global interrupt enable bit to avoid losing interrupts */ cmd_bfc((enc28j60_t *)arg, REG_EIE, -1, EIE_INTIE); netdev_t *netdev = (netdev_t *)arg; @@ -310,7 +310,7 @@ static int nd_send(netdev_t *netdev, const iolist_t *iolist) * Section 14 of errata sheet: Even values in ERXRDPT may corrupt receive * buffer as well as the next packet pointer. ERXRDPT need to be set always * at odd addresses. Following macros determine odd ERXRDPT from next packet - * pointer and vise versa. Next packet pointer is always at even address + * pointer and vice versa. Next packet pointer is always at even address * because of hardware padding. */ #define NEXT_TO_ERXRDPT(n) ((n == BUF_RX_START || n - 1 > BUF_RX_END) ? BUF_RX_END : n - 1) @@ -331,7 +331,7 @@ static int nd_recv(netdev_t *netdev, void *buf, size_t max_len, void *info) cmd_w_addr(dev, ADDR_READ_PTR, ERXRDPT_TO_NEXT(rx_rd_ptr)); /* read packet header */ cmd_rbm(dev, head, 6); - /* TODO: care for endianess */ + /* TODO: care for endianness */ next = (uint16_t)((head[1] << 8) | head[0]); size = (uint16_t)((head[3] << 8) | head[2]) - 4; /* discard CRC */ @@ -493,7 +493,7 @@ static void nd_isr(netdev_t *netdev) } eir = cmd_rcr(dev, REG_EIR, -1); } - /* enable gobal interupt enable bit again */ + /* enable global interrupt enable bit again */ cmd_bfs(dev, REG_EIE, -1, EIE_INTIE); } diff --git a/drivers/encx24j600/include/encx24j600_internal.h b/drivers/encx24j600/include/encx24j600_internal.h index 8cf3b59c49..c60b46e864 100644 --- a/drivers/encx24j600/include/encx24j600_internal.h +++ b/drivers/encx24j600/include/encx24j600_internal.h @@ -28,10 +28,10 @@ extern "C" { * @brief structure resembling format as sent by device */ typedef struct __attribute__((packed)) encx24j600_frame_hdr { - uint16_t rx_next_ptr; /**< ptr to next packet whithin devices memory */ + uint16_t rx_next_ptr; /**< ptr to next packet within devices memory */ /* Receive Status Vector */ - uint16_t frame_len; /**< lenght of ethernet frame including 4 bytes + uint16_t frame_len; /**< length of ethernet frame including 4 bytes checksum */ uint32_t flags; /**< random flag field just mentioned for the sake of documentation completeness */ diff --git a/drivers/feetech/include/feetech_reader.h b/drivers/feetech/include/feetech_reader.h index ac62bf5d05..d23365774b 100644 --- a/drivers/feetech/include/feetech_reader.h +++ b/drivers/feetech/include/feetech_reader.h @@ -157,7 +157,7 @@ static inline uint8_t feetech_reader_get_instr(const feetech_reader_t *reader) * * @param[in] reader the packet reader * - * @return the addess of the begining of the payload + * @return the address of the beginning of the payload */ static inline const uint8_t *feetech_reader_response_get_payload(const feetech_reader_t *reader) { @@ -181,7 +181,7 @@ static inline size_t feetech_reader_response_get_payload_size(const feetech_read * * @param[in] reader the packet reader * - * @return the begining addess of the payload + * @return the beginning address of the payload */ static inline const uint8_t *feetech_reader_write_get_payload(const feetech_reader_t *reader) { @@ -285,7 +285,7 @@ uint8_t feetech_reader_sync_write_item_get_id(const feetech_reader_t *reader, ui * @param[in] reader the packet reader * @param[in] index the item index * - * @return the begining addess of the payload + * @return the beginning address of the payload */ const uint8_t *feetech_reader_sync_write_item_get_payload(const feetech_reader_t *reader, uint8_t index); diff --git a/drivers/feetech/include/feetech_writer.h b/drivers/feetech/include/feetech_writer.h index 64412d1c0e..ab2ac4b478 100644 --- a/drivers/feetech/include/feetech_writer.h +++ b/drivers/feetech/include/feetech_writer.h @@ -53,7 +53,7 @@ void feetech_writer_init(feetech_writer_t *writer, uint8_t *buffer, size_t buffe * * @param[out] writer the packet writer * - * @return the begining address of the buffer + * @return the beginning address of the buffer */ const uint8_t *feetech_writer_get_data(const feetech_writer_t *writer); diff --git a/drivers/include/ad7746.h b/drivers/include/ad7746.h index a1eac6a9f9..64a0ef84e7 100644 --- a/drivers/include/ad7746.h +++ b/drivers/include/ad7746.h @@ -179,7 +179,7 @@ int ad7746_init(ad7746_t *dev, const ad7746_params_t *params); * away. The time until new data is available will depend on the * @ref ad7746_params_t::cap_sample_rate "sample rate" of the channel. * - * @param[in, out] dev device decriptor + * @param[in, out] dev device descriptor * @param[out] value read value in fF * * @return AD7746_OK on success @@ -197,7 +197,7 @@ int ad7746_read_capacitance_1(ad7746_t *dev, int *value); * away. The time until new data is available will depend on the * @ref ad7746_params_t::cap_sample_rate "sample rate" of the channel. * - * @param[in, out] dev device decriptor + * @param[in, out] dev device descriptor * @param[out] value read value in fF * * @return AD7746_OK on success diff --git a/drivers/include/at30tse75x.h b/drivers/include/at30tse75x.h index 956f343542..2129949375 100644 --- a/drivers/include/at30tse75x.h +++ b/drivers/include/at30tse75x.h @@ -118,7 +118,7 @@ typedef enum { /** * @brief Operation mode * - * The device can run in continous or one-shot mode. While in one-shot mode it + * The device can run in continuous or one-shot mode. While in one-shot mode it * is effectively shutdown and only wakes up to perform a single measurement. * When in comparator or interrupt mode, the device samples contiously the * temperature and sets the ALERT pin according to the chosen mode. diff --git a/drivers/include/bmp180.h b/drivers/include/bmp180.h index 6919bc7e73..19396bf992 100644 --- a/drivers/include/bmp180.h +++ b/drivers/include/bmp180.h @@ -92,7 +92,7 @@ enum { * * @return BMP180_OK on success * @return -BMP180_ERR_NODEV if not a BMP180 at given address - * @return -BMP180_ERR_NOCAL if an error occured when reading calibration values + * @return -BMP180_ERR_NOCAL if an error occurred when reading calibration values */ int bmp180_init(bmp180_t *dev, const bmp180_params_t *params); diff --git a/drivers/include/cc110x.h b/drivers/include/cc110x.h index a6da0a93ab..e19bc26c78 100644 --- a/drivers/include/cc110x.h +++ b/drivers/include/cc110x.h @@ -386,7 +386,7 @@ typedef struct { * See page 76 in the data sheet. * * Assuming a 26 MHz crystal the symbol rate of the transceiver is calculated - * as fallows (in kBaud): + * as follows (in kBaud): * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * uint8_t exponent = mdmcfg4 & 0x0f; * int32_t mantissa = mdmcfg3; diff --git a/drivers/include/diskio.h b/drivers/include/diskio.h index ef940f3eb1..5f48ede2c1 100644 --- a/drivers/include/diskio.h +++ b/drivers/include/diskio.h @@ -68,7 +68,7 @@ typedef enum { } diskio_sta_t; /** - * @name Command code for disk_ioctrl fucntion + * @name Command code for disk_ioctrl function * @{ */ diff --git a/drivers/include/ds18.h b/drivers/include/ds18.h index 2b54902d45..c38ca0df9c 100644 --- a/drivers/include/ds18.h +++ b/drivers/include/ds18.h @@ -104,10 +104,10 @@ int ds18_trigger(const ds18_t *dev); int ds18_read(const ds18_t *dev, int16_t *temperature); /** - * @brief convenience fuction for triggering a conversion and reading the + * @brief convenience function for triggering a conversion and reading the * value * - * @note This function will block for the convertion time. The current + * @note This function will block for the conversion time. The current * implementation of the driver uses 12-bit resolution, so this time is 750 ms. * * @param[in] dev device descriptor diff --git a/drivers/include/ds75lx.h b/drivers/include/ds75lx.h index 31fe414a6c..d349fb3beb 100644 --- a/drivers/include/ds75lx.h +++ b/drivers/include/ds75lx.h @@ -71,7 +71,7 @@ enum { * @param[in] params Initialization parameters * * @return DS75LX_OK on success - * @return -DS75LX_ERR_I2C if an error occured when reading/writing + * @return -DS75LX_ERR_I2C if an error occurred when reading/writing */ int ds75lx_init(ds75lx_t *dev, const ds75lx_params_t *params); @@ -82,7 +82,7 @@ int ds75lx_init(ds75lx_t *dev, const ds75lx_params_t *params); * @param[out] temperature Temperature in c°C * * @return DS75LX_OK on success - * @return -DS75LX_ERR_I2C if an error occured when reading/writing + * @return -DS75LX_ERR_I2C if an error occurred when reading/writing */ int ds75lx_read_temperature(const ds75lx_t *dev, int16_t *temperature); @@ -92,7 +92,7 @@ int ds75lx_read_temperature(const ds75lx_t *dev, int16_t *temperature); * @param[in] dev Device descriptor of DS75LX device * * @return DS75LX_OK on success - * @return -DS75LX_ERR_I2C if an error occured when reading/writing + * @return -DS75LX_ERR_I2C if an error occurred when reading/writing */ int ds75lx_wakeup(const ds75lx_t *dev); @@ -102,7 +102,7 @@ int ds75lx_wakeup(const ds75lx_t *dev); * @param[in] dev Device descriptor of DS75LX device * * @return DS75LX_OK on success - * @return -DS75LX_ERR_I2C if an error occured when reading/writing + * @return -DS75LX_ERR_I2C if an error occurred when reading/writing */ int ds75lx_shutdown(const ds75lx_t *dev); diff --git a/drivers/include/dsp0401.h b/drivers/include/dsp0401.h index 71602307e5..90401a6cc5 100644 --- a/drivers/include/dsp0401.h +++ b/drivers/include/dsp0401.h @@ -68,10 +68,10 @@ typedef struct { * @param[in] params Device parameters to use * * @return DSP0401_OK if everything is good - * @return -DSP0401_ERR_CLK_GPIO if an error occured during CLK GPIO initialization - * @return -DSP0401_ERR_SDI_GPIO if an error occured during SDI GPIO initialization - * @return -DSP0401_ERR_LAT_GPIO if an error occured during LAT GPIO initialization - * @return -DSP0401_ERR_PWM if an error occured during PWM initialization + * @return -DSP0401_ERR_CLK_GPIO if an error occurred during CLK GPIO initialization + * @return -DSP0401_ERR_SDI_GPIO if an error occurred during SDI GPIO initialization + * @return -DSP0401_ERR_LAT_GPIO if an error occurred during LAT GPIO initialization + * @return -DSP0401_ERR_PWM if an error occurred during PWM initialization */ int dsp0401_init(dsp0401_t *dev, const dsp0401_params_t *params); diff --git a/drivers/include/encx24j600.h b/drivers/include/encx24j600.h index b13d5fa935..1951a514d5 100644 --- a/drivers/include/encx24j600.h +++ b/drivers/include/encx24j600.h @@ -40,7 +40,7 @@ typedef struct { spi_t spi; /**< SPI device the enc is connected to*/ gpio_t cs; /**< SPI chip select pin */ gpio_t int_pin; /**< SPI interrupt pin */ - uint16_t rx_next_ptr; /**< ptr to next packet whithin devices memory */ + uint16_t rx_next_ptr; /**< ptr to next packet within devices memory */ } encx24j600_t; /** diff --git a/drivers/include/io1_xplained.h b/drivers/include/io1_xplained.h index 164789a905..0b2a6a60ee 100644 --- a/drivers/include/io1_xplained.h +++ b/drivers/include/io1_xplained.h @@ -32,7 +32,7 @@ * @{ * * @file - * @brief Device driver interface for the Atmel IO1 Xplained extention. + * @brief Device driver interface for the Atmel IO1 Xplained extension. * * @author Alexandre Abadie */ diff --git a/drivers/include/kw2xrf.h b/drivers/include/kw2xrf.h index c344241fa2..57b07f64f0 100644 --- a/drivers/include/kw2xrf.h +++ b/drivers/include/kw2xrf.h @@ -88,7 +88,7 @@ extern "C" { #define KW2XRF_OPT_RAWDUMP (NETDEV_IEEE802154_RAW) /**< legacy define */ #define KW2XRF_OPT_ACK_REQ (NETDEV_IEEE802154_ACK_REQ) /**< legacy define */ -#define KW2XRF_OPT_AUTOCCA (0x0100) /**< CCA befor TX active */ +#define KW2XRF_OPT_AUTOCCA (0x0100) /**< CCA before TX active */ #define KW2XRF_OPT_PROMISCUOUS (0x0200) /**< promiscuous mode * active */ #define KW2XRF_OPT_PRELOADING (0x0400) /**< preloading enabled */ diff --git a/drivers/include/lc709203f.h b/drivers/include/lc709203f.h index e08b0adf3f..743687986f 100644 --- a/drivers/include/lc709203f.h +++ b/drivers/include/lc709203f.h @@ -115,7 +115,7 @@ typedef struct { /** * @brief Register Addresses - * @details For more information on the registers and its funtions see the datasheet + * @details For more information on the registers and its functions see the datasheet * @{ */ #define LC709203F_REG_CELL_VOLTAGE 0x09 /**< Register Cell Voltage */ diff --git a/drivers/include/mag3110.h b/drivers/include/mag3110.h index 84d6977da1..6e6e2de8cb 100644 --- a/drivers/include/mag3110.h +++ b/drivers/include/mag3110.h @@ -13,7 +13,7 @@ * @ingroup drivers_saul * @brief Driver for the Freescale MAG3110 magnetometer. * - * After initialization and set activ the magnetometer will make measurements + * After initialization and set active the magnetometer will make measurements * at periodic times. * The output rate and over sample ratio can be determined by magnetometer * initialization. diff --git a/drivers/include/mma8x5x.h b/drivers/include/mma8x5x.h index fccc843a5a..a7b56be4ac 100644 --- a/drivers/include/mma8x5x.h +++ b/drivers/include/mma8x5x.h @@ -59,14 +59,14 @@ enum { * @brief Available sampling rates */ enum { - MMA8X5X_RATE_800HZ = (0 << 3), /**< 800 Hz Ouput Data Rate in WAKE mode */ - MMA8X5X_RATE_400HZ = (1 << 3), /**< 400 Hz Ouput Data Rate in WAKE mode */ - MMA8X5X_RATE_200HZ = (2 << 3), /**< 200 Hz Ouput Data Rate in WAKE mode */ - MMA8X5X_RATE_100HZ = (3 << 3), /**< 100 Hz Ouput Data Rate in WAKE mode */ - MMA8X5X_RATE_50HZ = (4 << 3), /**< 50 Hz Ouput Data Rate in WAKE mode */ - MMA8X5X_RATE_1HZ25 = (5 << 3), /**< 12.5 Hz Ouput Data Rate in WAKE mode */ - MMA8X5X_RATE_6HZ25 = (6 << 3), /**< 6.25 Hz Ouput Data Rate in WAKE mode */ - MMA8X5X_RATE_1HZ56 = (7 << 3) /**< 1.56 Hz Ouput Data Rate in WAKE mode */ + MMA8X5X_RATE_800HZ = (0 << 3), /**< 800 Hz Output Data Rate in WAKE mode */ + MMA8X5X_RATE_400HZ = (1 << 3), /**< 400 Hz Output Data Rate in WAKE mode */ + MMA8X5X_RATE_200HZ = (2 << 3), /**< 200 Hz Output Data Rate in WAKE mode */ + MMA8X5X_RATE_100HZ = (3 << 3), /**< 100 Hz Output Data Rate in WAKE mode */ + MMA8X5X_RATE_50HZ = (4 << 3), /**< 50 Hz Output Data Rate in WAKE mode */ + MMA8X5X_RATE_1HZ25 = (5 << 3), /**< 12.5 Hz Output Data Rate in WAKE mode */ + MMA8X5X_RATE_6HZ25 = (6 << 3), /**< 6.25 Hz Output Data Rate in WAKE mode */ + MMA8X5X_RATE_1HZ56 = (7 << 3) /**< 1.56 Hz Output Data Rate in WAKE mode */ }; /** diff --git a/drivers/include/motor_driver.h b/drivers/include/motor_driver.h index 671f46fcbd..943f3d7cc7 100644 --- a/drivers/include/motor_driver.h +++ b/drivers/include/motor_driver.h @@ -69,7 +69,7 @@ * - CCW (Counter ClockWise) * and a brake capability * - * BRAKE LOW is functionnaly the same than BRAKE HIGH but some H-bridge only + * BRAKE LOW is functionally the same than BRAKE HIGH but some H-bridge only * brake on BRAKE HIGH due to hardware. * In case of single direction GPIO, there is no BRAKE, PWM duty cycle is set * to 0. diff --git a/drivers/include/mtd.h b/drivers/include/mtd.h index dcf530e550..ce1641ad05 100644 --- a/drivers/include/mtd.h +++ b/drivers/include/mtd.h @@ -168,11 +168,11 @@ int mtd_init(mtd_dev_t *mtd); * @param[in] count the number of bytes to read * * @return the number of byte actually read - * @return < 0 if an error occured + * @return < 0 if an error occurred * @return -ENODEV if @p mtd is not a valid device * @return -ENOTSUP if operation is not supported on @p mtd * @return -EOVERFLOW if @p addr or @p count are not valid, i.e. outside memory - * @return -EIO if I/O error occured + * @return -EIO if I/O error occurred */ int mtd_read(mtd_dev_t *mtd, void *dest, uint32_t addr, uint32_t count); @@ -180,7 +180,7 @@ int mtd_read(mtd_dev_t *mtd, void *dest, uint32_t addr, uint32_t count); * @brief Write data to a MTD device * * @p addr + @p count must be inside a page boundary. @p addr can be anywhere - * but the buffer cannot overlap two pages. Though some devices might enforce alignement + * but the buffer cannot overlap two pages. Though some devices might enforce alignment * on both @p addr and @p buf. * * @param mtd the device to write to @@ -189,12 +189,12 @@ int mtd_read(mtd_dev_t *mtd, void *dest, uint32_t addr, uint32_t count); * @param[in] count the number of bytes to write * * @return the number of byte actually written - * @return < 0 if an error occured + * @return < 0 if an error occurred * @return -ENODEV if @p mtd is not a valid device * @return -ENOTSUP if operation is not supported on @p mtd * @return -EOVERFLOW if @p addr or @p count are not valid, i.e. outside memory, * or overlapping two pages - * @return -EIO if I/O error occured + * @return -EIO if I/O error occurred * @return -EINVAL if parameters are invalid (invalid alignment for instance) */ int mtd_write(mtd_dev_t *mtd, const void *src, uint32_t addr, uint32_t count); @@ -209,11 +209,11 @@ int mtd_write(mtd_dev_t *mtd, const void *src, uint32_t addr, uint32_t count); * @param[in] count the number of bytes to erase * * @return 0 if erase successful - * @return < 0 if an error occured + * @return < 0 if an error occurred * @return -ENODEV if @p mtd is not a valid device * @return -ENOTSUP if operation is not supported on @p mtd * @return -EOVERFLOW if @p addr or @p count are not valid, i.e. outside memory - * @return -EIO if I/O error occured + * @return -EIO if I/O error occurred */ int mtd_erase(mtd_dev_t *mtd, uint32_t addr, uint32_t count); @@ -224,10 +224,10 @@ int mtd_erase(mtd_dev_t *mtd, uint32_t addr, uint32_t count); * @param[in] power the power mode to set * * @return 0 if power mode successfully set - * @return < 0 if an error occured + * @return < 0 if an error occurred * @return -ENODEV if @p mtd is not a valid device * @return -ENOTSUP if operation or @p power state is not supported on @p mtd - * @return -EIO if I/O error occured + * @return -EIO if I/O error occurred */ int mtd_power(mtd_dev_t *mtd, enum mtd_power_state power); diff --git a/drivers/include/net/netdev/ieee802154.h b/drivers/include/net/netdev/ieee802154.h index e47483213f..b4a129ce0a 100644 --- a/drivers/include/net/netdev/ieee802154.h +++ b/drivers/include/net/netdev/ieee802154.h @@ -42,7 +42,7 @@ extern "C" { #define NETDEV_IEEE802154_SEND_MASK (0x0028) /**< flags to take for send packets */ #define NETDEV_IEEE802154_RAW (0x0002) /**< pass raw frame to upper layer */ /** - * @brief use long source addres (set) or short source address (unset) + * @brief use long source address (set) or short source address (unset) */ #define NETDEV_IEEE802154_SRC_MODE_LONG (0x0004) /** @@ -180,16 +180,16 @@ int netdev_ieee802154_set(netdev_ieee802154_t *dev, netopt_t opt, const void *va size_t value_len); /** - * @brief This funtion compares destination address and pan id with addresses + * @brief This function compares destination address and pan id with addresses * and pan id of the device * - * this funciton is meant top be used by drivers that do not support address + * this function is meant top be used by drivers that do not support address * filtering in hw * * @param[in] dev network device descriptor * @param[in] mhr mac header * - * @return 0 successfull if packet is for the device + * @return 0 successful if packet is for the device * @return 1 fails if packet is not for the device or pan */ int netdev_ieee802154_dst_filter(netdev_ieee802154_t *dev, const uint8_t *mhr); diff --git a/drivers/include/nrf24l01p.h b/drivers/include/nrf24l01p.h index 56fe845358..de7ffb47fe 100644 --- a/drivers/include/nrf24l01p.h +++ b/drivers/include/nrf24l01p.h @@ -199,7 +199,7 @@ void nrf24l01p_transmit(const nrf24l01p_t *dev); * @param[in] answer Buffer to receive bytes to. * @param[in] size Number of bytes to transfer. For nrf24l01+ in general 32. * -* @return Number of bytes that were transfered. +* @return Number of bytes that were transferred. * @return -1 on error. */ int nrf24l01p_read_payload(const nrf24l01p_t *dev, char *answer, unsigned int size); @@ -277,7 +277,7 @@ void nrf24l01p_stop(const nrf24l01p_t *dev); * @param[in] data Buffer to preload. * @param[in] size Number of bytes in buffer. For nrf24l01+ e.g. 32 * -* @return Number of bytes that were transfered. +* @return Number of bytes that were transferred. * @return -1 on error. */ int nrf24l01p_preload(const nrf24l01p_t *dev, char *data, unsigned int size); @@ -317,7 +317,7 @@ int nrf24l01p_set_address_width(const nrf24l01p_t *dev, nrf24l01p_aw_t aw); * * @param[in] dev Transceiver device to use. * @param[in] pipe RX pipe to set the payload width. -* @param[in] width Numer of bytes per packet in RX payload. +* @param[in] width Number of bytes per packet in RX payload. * * @return 0 on success. * @return -1 on error. diff --git a/drivers/include/pca9685.h b/drivers/include/pca9685.h index 0703d3ecd7..b13230159a 100644 --- a/drivers/include/pca9685.h +++ b/drivers/include/pca9685.h @@ -113,10 +113,10 @@ extern "C" * @{ */ #define PCA9685_I2C_BASE_ADDR (0x40) /**< I2C slave base address */ -#define PCA9685_I2C_ALLCALLADDR (0x70) /**< Default All Call adress */ -#define PCA9685_I2C_SUBADR1 (0x71) /**< Default Sub Call adress 1 */ -#define PCA9685_I2C_SUBADR2 (0x72) /**< Default Sub Call adress 2 */ -#define PCA9685_I2C_SUBADR3 (0x73) /**< Default Sub Call adress 3 */ +#define PCA9685_I2C_ALLCALLADDR (0x70) /**< Default All Call address */ +#define PCA9685_I2C_SUBADR1 (0x71) /**< Default Sub Call address 1 */ +#define PCA9685_I2C_SUBADR2 (0x72) /**< Default Sub Call address 2 */ +#define PCA9685_I2C_SUBADR3 (0x73) /**< Default Sub Call address 3 */ /** @} */ /** @@ -153,7 +153,7 @@ typedef enum { * The output driver mode defines how the outputs are configured. */ typedef enum { - PCA9685_OPEN_DRAIN = 0, /**< Open-drain structure ouptut */ + PCA9685_OPEN_DRAIN = 0, /**< Open-drain structure output */ PCA9685_TOTEM_POLE = 1, /**< Totem pole structure output */ } pca9685_out_drv_t; @@ -237,14 +237,14 @@ int pca9685_init(pca9685_t *dev, const pca9685_params_t *params); * @brief Initialize the PCA9685 PWM device * * The function initializes the PWM device with the given parameters that are - * used for all channels. After calling this funcion, the PWM device is + * used for all channels. After calling this function, the PWM device is * operational (powered on). That is, all outputs are active with the given * parameters and the same duty cycle value as before the call. * * @note * - PCA9685 works with internally with a resolution of 12 bit = 4096. * Using a resolution that is not a power of two, will cause inaccuracy due - * to aligment errors when scaling down the internal resolution to the + * to alignment errors when scaling down the internal resolution to the * configured resolution. * - Frequencies from 24 Hz to 1526 Hz can be used with PCF9865. * diff --git a/drivers/include/periph/gpio_util.h b/drivers/include/periph/gpio_util.h index 0176c24332..7efaefd9da 100644 --- a/drivers/include/periph/gpio_util.h +++ b/drivers/include/periph/gpio_util.h @@ -19,6 +19,9 @@ * @author Philipp-Alexander Blum */ +#ifndef PERIPH_GPIO_UTIL_H +#define PERIPH_GPIO_UTIL_H + #include "gpio.h" #ifdef __cplusplus @@ -28,7 +31,7 @@ extern "C" { /** * @brief Shift in a byte from data_pin, create clock pulses on clock_pin * - * This funtion has the same functionality as the Arduino shiftIn() in Advanced + * This function has the same functionality as the Arduino shiftIn() in Advanced * I/O. * * @param[in] data_pin Pin to read data from @@ -40,4 +43,5 @@ uint8_t gpio_util_shiftin(gpio_t data_pin, gpio_t clock_pin); #ifdef __cplusplus } #endif -/** @} */ \ No newline at end of file +#endif /* PERIPH_GPIO_UTIL_H */ +/** @} */ diff --git a/drivers/include/periph/hwrng.h b/drivers/include/periph/hwrng.h index 693bbda890..797264e8cb 100644 --- a/drivers/include/periph/hwrng.h +++ b/drivers/include/periph/hwrng.h @@ -52,7 +52,7 @@ extern "C" { * * On some platforms, the random number generator needs some global * initialization before it can be used. This should happen in this function - * if it would impose too much overhead to do this everytime the hwrng_read + * if it would impose too much overhead to do this every time the hwrng_read * function is called. The device should however be put into power-off mode * after initialization and will be powered on and of when hwrng_read is called. */ diff --git a/drivers/include/rn2xx3.h b/drivers/include/rn2xx3.h index 560b96bbbb..b54c2e401a 100644 --- a/drivers/include/rn2xx3.h +++ b/drivers/include/rn2xx3.h @@ -300,7 +300,7 @@ int rn2xx3_wait_response(rn2xx3_t *dev); * @return RN2XX3_REPLY_TX_MAC_ERR when MAC transmission failed * @return RN2XX3_REPLY_TX_MAC_RX when received downlink data from server * @return RN2XX3_REPLY_TX_INVALID_DATA_LEN when Application payload is too large - * @return RN2XX3_REPLY_JOIN_ACCEPTED when the join procedure succeded + * @return RN2XX3_REPLY_JOIN_ACCEPTED when the join procedure succeeded * @return RN2XX3_REPLY_JOIN_DENIED when the join procedure failed * @return RN2XX3_REPLY_OTHER when an unknown reply is received */ @@ -317,7 +317,7 @@ int rn2xx3_wait_reply(rn2xx3_t *dev, uint8_t timeout); * @return RN2XX3_ERR_NO_FREE_CH if channels are busy * @return RN2XX3_ERR_SILENT if device is in Silent state * @return RN2XX3_ERR_BUSY if MAC layer is in idle state - * @return RN2XX3_ERR_MAC_PAUSED if MAC layed is paused + * @return RN2XX3_ERR_MAC_PAUSED if MAC laid is paused * @return RN2XX3_REPLY_TX_INVALID_DATA_LEN if payload is too large * @return RN2XX3_REPLY_TX_MAC_ERR when MAC transmission failed * @return RN2XX3_REPLY_TX_MAC_RX when received downlink data from server @@ -335,8 +335,8 @@ int rn2xx3_mac_tx(rn2xx3_t *dev, uint8_t *payload, uint8_t payload_len); * @return RN2XX3_ERR_NO_FREE_CH if channels are busy * @return RN2XX3_ERR_SILENT if device is in Silent state * @return RN2XX3_ERR_BUSY if MAC layer is in idle state - * @return RN2XX3_ERR_MAC_PAUSED if MAC layed is paused - * @return RN2XX3_REPLY_JOIN_ACCEPTED when the join procedure succeded + * @return RN2XX3_ERR_MAC_PAUSED if MAC layer is paused + * @return RN2XX3_REPLY_JOIN_ACCEPTED when the join procedure succeeded * @return RN2XX3_REPLY_JOIN_DENIED when the join procedure failed */ int rn2xx3_mac_join_network(rn2xx3_t *dev, loramac_join_mode_t mode); diff --git a/drivers/include/saul.h b/drivers/include/saul.h index c8afbcd3fa..61650d005c 100644 --- a/drivers/include/saul.h +++ b/drivers/include/saul.h @@ -114,7 +114,7 @@ enum { * @brief Read a value (a set of values) from a device * * Simple sensors, as e.g. a temperature sensor, will return exactly one value - * together with the values scale and unit. Some sensors might return a touple + * together with the values scale and unit. Some sensors might return a tuple * or triple of data (e.g. a 3-axis accelerometer). * * Actuators can chose to either just return -ENOTSUP or to return their current diff --git a/drivers/include/sdcard_spi.h b/drivers/include/sdcard_spi.h index 9363f00ca8..93a3240640 100644 --- a/drivers/include/sdcard_spi.h +++ b/drivers/include/sdcard_spi.h @@ -187,7 +187,7 @@ typedef struct { typedef struct { sdcard_spi_params_t params; /**< parameters for pin and spi config */ spi_clk_t spi_clk; /**< active SPI clock speed */ - bool use_block_addr; /**< true if block adressing (vs. byte adressing) is used */ + bool use_block_addr; /**< true if block addressing (vs. byte addressing) is used */ bool init_done; /**< set to true once the init procedure completed successfully */ sd_version_t card_type; /**< version of SD-card */ int csd_structure; /**< version of the CSD register structure */ @@ -198,7 +198,7 @@ typedef struct { /** * @brief Initializes the sd-card with the given parameters in sdcard_spi_t structure. * The init procedure also takes care of initializing the spi peripheral to master - * mode and performing all neccecary steps to set the sd-card to spi-mode. Reading + * mode and performing all necessary steps to set the sd-card to spi-mode. Reading * the CID and CSD registers is also done within this routine and their * values are copied to the given sdcard_spi_t struct. * @@ -206,7 +206,7 @@ typedef struct { * @param[in] params parameters for this device (pins and spi device are initialized by this driver) * * @return 0 if the card could be initialized successfully - * @return false if an error occured while initializing the card + * @return false if an error occurred while initializing the card */ int sdcard_spi_init(sdcard_spi_t *card, const sdcard_spi_params_t *params); @@ -214,10 +214,10 @@ int sdcard_spi_init(sdcard_spi_t *card, const sdcard_spi_params_t *params); * @brief Reads data blocks (usually multiples of 512 Bytes) from card to buffer. * * @param[in] card Initialized sd-card struct - * @param[in] blockaddr Start adress to read from. Independet of the actual adressing scheme of - * the used card the adress needs to be given as block address + * @param[in] blockaddr Start address to read from. Independent of the actual addressing scheme of + * the used card the address needs to be given as block address * (e.g. 0, 1, 2... NOT: 0, 512... ). The driver takes care of mapping to - * byte adressing if needed. + * byte addressing if needed. * @param[out] data Buffer to store the read data in. The user is responsible for providing a * suitable buffer size. * @param[in] blocksize Size of data blocks. For now only 512 byte blocks are supported because @@ -237,10 +237,10 @@ int sdcard_spi_read_blocks(sdcard_spi_t *card, int blockaddr, uint8_t *data, int * @brief Writes data blocks (usually multiples of 512 Bytes) from buffer to card. * * @param[in] card Initialized sd-card struct - * @param[in] blockaddr Start adress to read from. Independet of the actual adressing scheme of - * the used card the adress needs to be given as block address + * @param[in] blockaddr Start address to read from. Independent of the actual addressing scheme of + * the used card the address needs to be given as block address * (e.g. 0, 1, 2... NOT: 0, 512... ). The driver takes care of mapping to - * byte adressing if needed. + * byte addressing if needed. * @param[out] data Buffer that contains the data to be sent. * @param[in] blocksize Size of data blocks. For now only 512 byte blocks are supported because * only older (SDSC) cards support variable blocksizes anyway. diff --git a/drivers/include/sds011.h b/drivers/include/sds011.h index 2aca1a57a8..da4477c18e 100644 --- a/drivers/include/sds011.h +++ b/drivers/include/sds011.h @@ -141,7 +141,7 @@ void sds011_power_off(const sds011_t *dev); * @return SDS011_OK on success * @return SDS011_INVALID_RESPONSE when response doesn't match the request * @return SDS011_INVALID_CHKSUM when response checksum is invalid - * @return SDS011_ERROR when other error occured + * @return SDS011_ERROR when other error occurred * * @pre @p dev != NULL * @pre @p data != NULL @@ -161,7 +161,7 @@ int sds011_read(sds011_t *dev, sds011_data_t *data); * @param[in] ctx context pointer that will be handed to the callback * * @return SDS011_OK on success - * @return SDS011_ERROR when error occured + * @return SDS011_ERROR when error occurred * * @pre @p dev != NULL */ @@ -177,7 +177,7 @@ int sds011_register_callback(sds011_t *dev, sds011_callback_t cb, void *ctx); * @return SDS011_OK on success * @return SDS011_INVALID_RESPONSE when response doesn't match the request * @return SDS011_INVALID_CHKSUM when response checksum is invalid - * @return SDS011_ERROR when other error occured + * @return SDS011_ERROR when other error occurred * * @pre @p dev != NULL */ @@ -196,7 +196,7 @@ int sds011_get_reporting_mode(sds011_t *dev, sds011_reporting_mode_t *mode); * @return SDS011_OK on success * @return SDS011_INVALID_RESPONSE when response doesn't match the request * @return SDS011_INVALID_CHKSUM when response checksum is invalid - * @return SDS011_ERROR when other error occured + * @return SDS011_ERROR when other error occurred * * @pre @p dev != NULL */ @@ -212,7 +212,7 @@ int sds011_set_reporting_mode(sds011_t *dev, sds011_reporting_mode_t mode); * @return SDS011_OK on success * @return SDS011_INVALID_RESPONSE when response doesn't match the request * @return SDS011_INVALID_CHKSUM when response checksum is invalid - * @return SDS011_ERROR when other error occured + * @return SDS011_ERROR when other error occurred * * @pre @p dev != NULL */ @@ -228,7 +228,7 @@ int sds011_get_working_mode(sds011_t *dev, sds011_working_mode_t *mode); * @return SDS011_OK on success * @return SDS011_INVALID_RESPONSE when response doesn't match the request * @return SDS011_INVALID_CHKSUM when response checksum is invalid - * @return SDS011_ERROR when other error occured + * @return SDS011_ERROR when other error occurred * * @pre @p dev != NULL */ @@ -243,7 +243,7 @@ int sds011_set_working_mode(sds011_t *dev, sds011_working_mode_t mode); * @return SDS011_OK on success * @return SDS011_INVALID_RESPONSE when response doesn't match the request * @return SDS011_INVALID_CHKSUM when response checksum is invalid - * @return SDS011_ERROR when other error occured + * @return SDS011_ERROR when other error occurred * * @pre @p dev != NULL */ @@ -254,7 +254,7 @@ int sds011_get_working_period(sds011_t *dev, uint8_t *minutes); * * @param[in] dev device descriptor * @param[in] minutes 0 - 30 new working period of the sensor in minutes - * 0 for coninuous reporting mode + * 0 for continuous reporting mode * 1 - 30 for a period of @p minutes * * @note For values greater than 0, the active duration (fan, laser enabled) @@ -264,7 +264,7 @@ int sds011_get_working_period(sds011_t *dev, uint8_t *minutes); * @return SDS011_OK on success * @return SDS011_INVALID_RESPONSE when response doesn't match the request * @return SDS011_INVALID_CHKSUM when response checksum is invalid - * @return SDS011_ERROR when other error occured + * @return SDS011_ERROR when other error occurred * * @pre @p dev != NULL */ @@ -281,7 +281,7 @@ int sds011_set_working_period(sds011_t *dev, uint8_t minutes); * @return SDS011_OK on success * @return SDS011_INVALID_RESPONSE when response doesn't match the request * @return SDS011_INVALID_CHKSUM when response checksum is invalid - * @return SDS011_ERROR when other error occured + * @return SDS011_ERROR when other error occurred * * @pre @p dev != NULL * @pre @p year != NULL @@ -303,7 +303,7 @@ int sds011_get_fw_version(sds011_t *dev, uint8_t *year, uint8_t *mon, uint8_t *d * @return SDS011_OK on success * @return SDS011_INVALID_RESPONSE when response doesn't match the request * @return SDS011_INVALID_CHKSUM when response checksum is invalid - * @return SDS011_ERROR when other error occured + * @return SDS011_ERROR when other error occurred * * @pre @p dev != NULL */ diff --git a/drivers/include/sht3x.h b/drivers/include/sht3x.h index f4361a0fbc..fbc7491b1b 100644 --- a/drivers/include/sht3x.h +++ b/drivers/include/sht3x.h @@ -127,7 +127,7 @@ typedef struct { int sht3x_init (sht3x_dev_t *dev, const sht3x_params_t *params); /** - * @brief Read SHT3x measurment results (temperature and humidity) + * @brief Read SHT3x measurement results (temperature and humidity) * * The function returns the results of one measurement once they are available. * diff --git a/drivers/include/si70xx.h b/drivers/include/si70xx.h index 49a67776a6..9d19286e0d 100644 --- a/drivers/include/si70xx.h +++ b/drivers/include/si70xx.h @@ -36,7 +36,7 @@ extern "C" { enum { SI70XX_OK, /**< All OK */ SI70XX_ERR_NODEV, /**< No valid device found on I2C bus */ - SI70XX_ERR_I2C, /**< An error occured when reading/writing on I2C bus */ + SI70XX_ERR_I2C, /**< An error occurred when reading/writing on I2C bus */ }; /** @@ -68,7 +68,7 @@ typedef struct { int si70xx_init(si70xx_t *dev, const si70xx_params_t *params); /** - * @brief Read the relative humidity from the sensor. Uses clock streching. + * @brief Read the relative humidity from the sensor. Uses clock stretching. * * @param[in] dev device descriptor * @return relative humidity in centi-percent (times 100) @@ -76,7 +76,7 @@ int si70xx_init(si70xx_t *dev, const si70xx_params_t *params); uint16_t si70xx_get_relative_humidity(const si70xx_t *dev); /** - * @brief Read the current temperature from the sensor. Uses clock streching. + * @brief Read the current temperature from the sensor. Uses clock stretching. * * @param[in] dev device descriptor * @return current temperature in centi-degrees Celsius diff --git a/drivers/include/tsl4531x.h b/drivers/include/tsl4531x.h index cc79973467..83367481c1 100644 --- a/drivers/include/tsl4531x.h +++ b/drivers/include/tsl4531x.h @@ -24,7 +24,7 @@ * synchronous or asynchronous manner. For synchronous operation, the application * can call tsl4531x_simple_read, and the driver will block for the integration * time defined in the initialization parameters (plus a small margin, to encompass - * the max times indicated in the datasheet). For asyncronous operation, the + * the max times indicated in the datasheet). For asynchronous operation, the * application needs to use the functions tsl4531x_start_sample, * tsl4531x_time_until_sample_ready and tsl4531x_get_sample, as described in those * functions' descriptions. diff --git a/drivers/kw2xrf/include/kw2xrf_getset.h b/drivers/kw2xrf/include/kw2xrf_getset.h index 5ffdf29d8c..682f5201a6 100644 --- a/drivers/kw2xrf/include/kw2xrf_getset.h +++ b/drivers/kw2xrf/include/kw2xrf_getset.h @@ -122,10 +122,10 @@ uint16_t kw2xrf_get_addr_short(kw2xrf_t *dev); uint64_t kw2xrf_get_addr_long(kw2xrf_t *dev); /** - * @brief Get CCA threshhold of a given device + * @brief Get CCA threshold of a given device * * @param[in] dev kw2xrf device descriptor - * @return current CCA threshhold + * @return current CCA threshold */ int8_t kw2xrf_get_cca_threshold(kw2xrf_t *dev); @@ -171,7 +171,7 @@ int16_t kw2xrf_get_rssi(uint32_t value); netopt_state_t kw2xrf_get_status(kw2xrf_t *dev); /** - * @brief Enable continous CCA + * @brief Enable continuous CCA * * @param[in] dev kw2xrf device descriptor * diff --git a/drivers/lis3mdl/include/lis3mdl-internal.h b/drivers/lis3mdl/include/lis3mdl-internal.h index 1a924e0f31..c6be099fa1 100644 --- a/drivers/lis3mdl/include/lis3mdl-internal.h +++ b/drivers/lis3mdl/include/lis3mdl-internal.h @@ -40,7 +40,7 @@ extern "C" { /** @} */ /** - * @name LIS3DML controll register + * @name LIS3DML control register * @{ */ #define LIS3MDL_CTRL_REG1 (0x20) diff --git a/drivers/lpsxxx/lpsxxx.c b/drivers/lpsxxx/lpsxxx.c index d40f70ef2a..121c9fdc33 100644 --- a/drivers/lpsxxx/lpsxxx.c +++ b/drivers/lpsxxx/lpsxxx.c @@ -84,7 +84,7 @@ int lpsxxx_init(lpsxxx_t *dev, const lpsxxx_params_t * params) } /* Disable automatic increment of register address during byte access - (recommanded in datasheet (section 9.6 CTRL_REG2) */ + (recommended in datasheet (section 9.6 CTRL_REG2) */ tmp &= ~LPSXXX_CTRL_REG2_ID_ADD_INC; DEBUG("[lpsxxx] init: update reg2, %02X\n", tmp); diff --git a/drivers/lsm6dsl/lsm6dsl.c b/drivers/lsm6dsl/lsm6dsl.c index b81cbbde92..2d02e172cc 100644 --- a/drivers/lsm6dsl/lsm6dsl.c +++ b/drivers/lsm6dsl/lsm6dsl.c @@ -34,13 +34,13 @@ #define ADDR (dev->params.addr) /** - * order in arry [0, 1, 2, 3] is + * order in array [0, 1, 2, 3] is * LSM6DSL_ACC_FS_2G, LSM6DSL_ACC_FS_16G, LSM6DSL_ACC_FS_4G, LSM6DSL_ACC_FS_8G */ static const int16_t range_acc[] = { 2000, 16000, 4000, 8000 }; /** - * order in arry [0, 1, 2, 3] is + * order in array [0, 1, 2, 3] is * LSM6DSL_GYRO_FS_245DPS, LSM6DSL_GYRO_FS_500DPS, * LSM6DSL_GYRO_FS_1000DPS, LSM6DSL_GYRO_FS_2000DPS */ diff --git a/drivers/mrf24j40/include/mrf24j40_internal.h b/drivers/mrf24j40/include/mrf24j40_internal.h index 9362996268..542eede8ca 100644 --- a/drivers/mrf24j40/include/mrf24j40_internal.h +++ b/drivers/mrf24j40/include/mrf24j40_internal.h @@ -31,7 +31,7 @@ extern "C" { /** - * @brief initialization as decribed in datasheet + * @brief initialization as described in datasheet * * @param[in] dev device to initialize * diff --git a/drivers/mrf24j40/mrf24j40.c b/drivers/mrf24j40/mrf24j40.c index eab7888ab7..cf263558a7 100644 --- a/drivers/mrf24j40/mrf24j40.c +++ b/drivers/mrf24j40/mrf24j40.c @@ -89,7 +89,7 @@ bool mrf24j40_cca(mrf24j40_t *dev, int8_t *rssi) mrf24j40_assert_awake(dev); mrf24j40_enable_lna(dev); - /* trigger CCA measurment */ + /* trigger CCA measurement */ /* take a look onto datasheet chapter 3.6.1 */ mrf24j40_reg_write_short(dev, MRF24J40_REG_BBREG6, MRF24J40_BBREG6_RSSIMODE1); /* wait for result to be ready */ diff --git a/drivers/mrf24j40/mrf24j40_netdev.c b/drivers/mrf24j40/mrf24j40_netdev.c index 9f3ced52c7..406b82cd6e 100644 --- a/drivers/mrf24j40/mrf24j40_netdev.c +++ b/drivers/mrf24j40/mrf24j40_netdev.c @@ -542,7 +542,7 @@ static void _isr(netdev_t *netdev) /* update pending bits */ mrf24j40_update_tasks(dev); DEBUG("[mrf24j40] INTERRUPT (pending: %x),\n", dev->pending); - /* Transmit interrupt occured */ + /* Transmit interrupt occurred */ if (dev->pending & MRF24J40_TASK_TX_READY) { dev->pending &= ~(MRF24J40_TASK_TX_READY); DEBUG("[mrf24j40] EVT - TX_END\n"); @@ -550,7 +550,7 @@ static void _isr(netdev_t *netdev) if (netdev->event_callback && (dev->netdev.flags & MRF24J40_OPT_TELL_TX_END)) { uint8_t txstat = mrf24j40_reg_read_short(dev, MRF24J40_REG_TXSTAT); dev->tx_retries = (txstat >> MRF24J40_TXSTAT_MAX_FRAME_RETRIES_SHIFT); - /* transmision failed */ + /* transmission failed */ if (txstat & MRF24J40_TXSTAT_TXNSTAT) { /* TX_NOACK - CCAFAIL */ if (txstat & MRF24J40_TXSTAT_CCAFAIL) { @@ -569,7 +569,7 @@ static void _isr(netdev_t *netdev) } #endif } - /* Receive interrupt occured */ + /* Receive interrupt occurred */ if (dev->pending & MRF24J40_TASK_RX_READY) { DEBUG("[mrf24j40] EVT - RX_END\n"); if ((dev->netdev.flags & MRF24J40_OPT_TELL_RX_END)) { diff --git a/drivers/nrf24l01p/nrf24l01p.c b/drivers/nrf24l01p/nrf24l01p.c index 7c83fdef1a..515e2b7db2 100644 --- a/drivers/nrf24l01p/nrf24l01p.c +++ b/drivers/nrf24l01p/nrf24l01p.c @@ -106,7 +106,7 @@ int nrf24l01p_init(nrf24l01p_t *dev, spi_t spi, gpio_t ce, gpio_t cs, gpio_t irq return status; } - /* Setup adress width */ + /* Setup address width */ status = nrf24l01p_set_address_width(dev, NRF24L01P_AW_5BYTE); if (status < 0) { @@ -148,7 +148,7 @@ int nrf24l01p_init(nrf24l01p_t *dev, spi_t spi, gpio_t ce, gpio_t cs, gpio_t irq return status; } - /* Set RX Adress */ + /* Set RX Address */ status = nrf24l01p_set_rx_address(dev, NRF24L01P_PIPE0, INITIAL_RX_ADDRESS, INITIAL_ADDRESS_WIDTH); if (status < 0) { diff --git a/drivers/opt3001/include/opt3001_params.h b/drivers/opt3001/include/opt3001_params.h index a1af689a0f..9cb653ef8a 100644 --- a/drivers/opt3001/include/opt3001_params.h +++ b/drivers/opt3001/include/opt3001_params.h @@ -28,7 +28,7 @@ extern "C" { #endif /** - * @name Set default configuration parameters fot the opt3001 + * @name Set default configuration parameters for the opt3001 * @ingroup config * @{ */ diff --git a/drivers/pca9685/pca9685.c b/drivers/pca9685/pca9685.c index 5c8bda9a06..6923a421f3 100644 --- a/drivers/pca9685/pca9685.c +++ b/drivers/pca9685/pca9685.c @@ -300,7 +300,7 @@ static int _read(const pca9685_t *dev, uint8_t reg, uint8_t *data, uint32_t len) /* acquire the I2C device */ if (i2c_acquire(dev->params.i2c_dev)) { - DEBUG_DEV("could not aquire I2C bus", dev); + DEBUG_DEV("could not acquire I2C bus", dev); return -PCA9685_ERROR_I2C; } @@ -321,7 +321,7 @@ static int _write(const pca9685_t *dev, uint8_t reg, const uint8_t *data, uint32 DEBUG_DEV("reg=%02x data=%p len=%"PRIu32"", dev, reg, data, len); if (i2c_acquire(dev->params.i2c_dev)) { - DEBUG_DEV("could not aquire I2C bus", dev); + DEBUG_DEV("could not acquire I2C bus", dev); return -PCA9685_ERROR_I2C; } diff --git a/drivers/pcd8544/pcd8544.c b/drivers/pcd8544/pcd8544.c index 0b545dbaa1..3cb814fa0a 100644 --- a/drivers/pcd8544/pcd8544.c +++ b/drivers/pcd8544/pcd8544.c @@ -238,7 +238,7 @@ int pcd8544_init(pcd8544_t *dev, spi_t spi, gpio_t cs, gpio_t reset, gpio_t mode DEBUG("done setting dev members\n"); - /* initialze pins */ + /* initialize pins */ gpio_init(reset, GPIO_OUT); gpio_init(mode, GPIO_OUT); DEBUG("done with gpios\n"); diff --git a/drivers/periph_common/i2c.c b/drivers/periph_common/i2c.c index a24fd4560c..eb33e30937 100644 --- a/drivers/periph_common/i2c.c +++ b/drivers/periph_common/i2c.c @@ -44,7 +44,7 @@ int i2c_read_regs(i2c_t dev, uint16_t addr, uint16_t reg, return -EOPNOTSUPP; } - /* Handle endianess of register if 16 bit */ + /* Handle endianness of register if 16 bit */ if (flags & I2C_REG16) { reg_end = htons(reg); /* Make sure register is in big-endian on I2C bus */ } @@ -88,7 +88,7 @@ int i2c_write_regs(i2c_t dev, uint16_t addr, uint16_t reg, return -EOPNOTSUPP; } - /* Handle endianess of register if 16 bit */ + /* Handle endianness of register if 16 bit */ if (flags & I2C_REG16) { reg_end = htons(reg); /* Make sure register is in big-endian on I2C bus */ } diff --git a/drivers/ph_oem/ph_oem.c b/drivers/ph_oem/ph_oem.c index 3bb5b7705e..14f2d6f400 100644 --- a/drivers/ph_oem/ph_oem.c +++ b/drivers/ph_oem/ph_oem.c @@ -64,7 +64,7 @@ static int _set_interrupt_pin(const ph_oem_t *dev); * * @return PH_OEM_OK on success * @return PH_OEM_READ_ERR if reading from the register failed - * @return PH_OEM_WRITE_ERR if reseting the register failed + * @return PH_OEM_WRITE_ERR if resetting the register failed */ static int _new_reading_available(const ph_oem_t *dev); diff --git a/drivers/sdcard_spi/include/sdcard_spi_internal.h b/drivers/sdcard_spi/include/sdcard_spi_internal.h index 3aa1b5ee37..aa1ca9e1a6 100644 --- a/drivers/sdcard_spi/include/sdcard_spi_internal.h +++ b/drivers/sdcard_spi/include/sdcard_spi_internal.h @@ -35,7 +35,7 @@ extern "C" { /* number of clocks that should be applied to the card on init - before taking furter actions (see sd spec. 6.4.1.1 Power Up Time of Card) */ + before taking further actions (see sd spec. 6.4.1.1 Power Up Time of Card) */ #define SD_POWERSEQUENCE_CLOCK_COUNT 74 #define SD_CARD_PREINIT_CLOCK_PERIOD_US 10 /* used to generate 100 kHz clock in init phase*/ @@ -100,7 +100,7 @@ extern "C" { #define SD_CMD_24 24 /* Writes a block of the size selected by the SET_BLOCKLEN command */ #define SD_CMD_25 25 /* Continuously writes blocks of data until 'Stop Tran'token is sent */ #define SD_CMD_41 41 /* Reserved (used for ACMD41) */ -#define SD_CMD_55 55 /* Defines to the card that the next commmand is an application specific +#define SD_CMD_55 55 /* Defines to the card that the next command is an application specific command rather than a standard command */ #define SD_CMD_58 58 /* Reads the OCR register of a card */ #define SD_CMD_59 59 /* Turns the CRC option on or off. Argument: 1:on; 0:off */ @@ -179,10 +179,10 @@ typedef enum { * (for CMDX this parameter is simply the integer value X). * @param[in] argument The argument for the given cmd. As described by "7.3.1.1 Command Format". * This argument is transmitted byte wise with most significant byte first. - * @param[in] max_retry Specifies how often the command should be retried if an error occures. + * @param[in] max_retry Specifies how often the command should be retried if an error occurs. * Use 0 to try only once, -1 to try forever, or n to retry n times. * - * @return R1 response of the command if no (low-level) communication error occured + * @return R1 response of the command if no (low-level) communication error occurred * @return SD_INVALID_R1_RESPONSE if either waiting for the card to enter * not-busy-state timed out or spi communication failed */ @@ -197,10 +197,10 @@ uint8_t sdcard_spi_send_cmd(sdcard_spi_t *card, uint8_t sd_cmd_idx, uint32_t arg * (for ACMDX this parameter is simply the integer value X). * @param[in] argument The argument for the given cmd. As described by "7.3.1.1 Command Format". * This argument is transmitted byte wise with most significant byte first. - * @param[in] max_retry Specifies how often the command should be retried if an error occures. + * @param[in] max_retry Specifies how often the command should be retried if an error occurs. * Use 0 to try only once, -1 to try forever, or n to retry n times. * - * @return R1 response of the command if no (low-level) communication error occured + * @return R1 response of the command if no (low-level) communication error occurred * @return SD_INVALID_R1_RESPONSE if either waiting for the card to enter * not-busy-state timed out or spi communication failed */ diff --git a/drivers/sdcard_spi/sdcard_spi.c b/drivers/sdcard_spi/sdcard_spi.c index 88f46f1bf3..d650d749cf 100644 --- a/drivers/sdcard_spi/sdcard_spi.c +++ b/drivers/sdcard_spi/sdcard_spi.c @@ -228,7 +228,7 @@ static sd_init_fsm_state_t _init_sd_fsm_step(sdcard_spi_t *card, sd_init_fsm_sta case SD_INIT_SEND_CMD1: DEBUG("SD_INIT_SEND_CMD1\n"); - DEBUG("COULD TRY CMD1 (for MMC-card)-> currently not suported\n"); + DEBUG("COULD TRY CMD1 (for MMC-card)-> currently not supported\n"); _unselect_card_spi(card); return SD_INIT_CARD_UNKNOWN; @@ -254,13 +254,13 @@ static sd_init_fsm_state_t _init_sd_fsm_step(sdcard_spi_t *card, sd_init_fsm_sta DEBUG("OCR: POWER UP ROUTINE FINISHED\n"); /* if sd card is sdhc */ if ((ocr & OCR_CCS) != 0) { - DEBUG("OCR: CARD TYPE IS SDHC (SD_V2 with block adressing)\n"); + DEBUG("OCR: CARD TYPE IS SDHC (SD_V2 with block addressing)\n"); card->use_block_addr = true; _unselect_card_spi(card); return SD_INIT_READ_CID; } - DEBUG("OCR: CARD TYPE IS SDSC (SD_v2 with byte adressing)\n"); + DEBUG("OCR: CARD TYPE IS SDSC (SD_v2 with byte addressing)\n"); card->use_block_addr = false; return SD_INIT_SEND_CMD16; } @@ -284,7 +284,7 @@ static sd_init_fsm_state_t _init_sd_fsm_step(sdcard_spi_t *card, sd_init_fsm_sta DEBUG("SD_INIT_SEND_CMD16\n"); uint8_t r1_16 = sdcard_spi_send_cmd(card, SD_CMD_16, SD_HC_BLOCK_SIZE, INIT_CMD_RETRY_CNT); if (R1_VALID(r1_16) && !R1_ERROR(r1_16)) { - DEBUG("CARD TYPE IS SDSC (SD_V1 with byte adressing)\n"); + DEBUG("CARD TYPE IS SDSC (SD_V1 with byte addressing)\n"); _unselect_card_spi(card); return SD_INIT_READ_CID; } diff --git a/drivers/sht3x/sht3x.c b/drivers/sht3x/sht3x.c index 2f86f920ce..c4bd7af0c8 100644 --- a/drivers/sht3x/sht3x.c +++ b/drivers/sht3x/sht3x.c @@ -231,7 +231,7 @@ static int _get_raw_data(sht3x_dev_t* dev, uint8_t* raw_data) return -SHT3X_ERROR_I2C; } - /* in single shot mode upate dmeasurement started flag of the driver */ + /* in single shot mode update dmeasurement started flag of the driver */ if (dev->mode == SHT3X_SINGLE_SHOT) { dev->meas_started = false; } @@ -288,7 +288,7 @@ static int _send_command(sht3x_dev_t* dev, uint16_t cmd) DEBUG_DEV("send command 0x%02x%02x", dev, data[0], data[1]); if (i2c_acquire(dev->i2c_dev) != 0) { - DEBUG_DEV ("could not aquire I2C bus", dev); + DEBUG_DEV ("could not acquire I2C bus", dev); return -SHT3X_ERROR_I2C; } @@ -310,7 +310,7 @@ static int _read_data(sht3x_dev_t* dev, uint8_t *data, uint8_t len) int res = SHT3X_OK; if (i2c_acquire(dev->i2c_dev) != 0) { - DEBUG_DEV ("could not aquire I2C bus", dev); + DEBUG_DEV ("could not acquire I2C bus", dev); return -SHT3X_ERROR_I2C; } @@ -342,7 +342,7 @@ static int _reset (sht3x_dev_t* dev) DEBUG_DEV("", dev); /* - * Sensor can only be soft resetted in idle mode. Therefore, we + * Sensor can only be soft reset in idle mode. Therefore, we * send a break and wait 1 ms. After that the sensor should be * in idle mode. We don't check I2C errors at this moment. */ diff --git a/drivers/sx127x/sx127x_getset.c b/drivers/sx127x/sx127x_getset.c index b491920c7c..8f9e23dbde 100644 --- a/drivers/sx127x/sx127x_getset.c +++ b/drivers/sx127x/sx127x_getset.c @@ -159,7 +159,7 @@ uint32_t sx127x_get_time_on_air(const sx127x_t *dev, uint8_t pkt_len) bw = 500e3; break; default: - DEBUG("Invalid bandwith: %d\n", dev->settings.lora.bandwidth); + DEBUG("Invalid bandwidth: %d\n", dev->settings.lora.bandwidth); break; } diff --git a/drivers/uart_half_duplex/include/uart_half_duplex.h b/drivers/uart_half_duplex/include/uart_half_duplex.h index 6701e15097..be1ec6bf33 100644 --- a/drivers/uart_half_duplex/include/uart_half_duplex.h +++ b/drivers/uart_half_duplex/include/uart_half_duplex.h @@ -90,7 +90,7 @@ enum { * @return UART_HALF_DUPLEX_OK if everything is in order * @return UART_HALF_DUPLEX_NODEV if invalid UART device was given * @return UART_HALF_DUPLEX_NOBAUD if given baudrate is not applicable - * @return UART_HALF_DUPLEX_INTERR if an other internal error occured + * @return UART_HALF_DUPLEX_INTERR if an other internal error occurred * @return UART_HALF_DUPLEX_NOMODE if the given mode is not applicable * @return UART_HALF_DUPLEX_NOBUFF if an invalid buffer was given */ diff --git a/examples/emcute_mqttsn/README.md b/examples/emcute_mqttsn/README.md index 362b685b5d..5afd7a95cd 100644 --- a/examples/emcute_mqttsn/README.md +++ b/examples/emcute_mqttsn/README.md @@ -2,7 +2,7 @@ This application demonstrates the usage of the emCute (MQTT-SN) module in RIOT. ## Setup -For using this example, two prerequisites have to be fullfilled: +For using this example, two prerequisites have to be fulfilled: 1. You need a running MQTT broker that supports MQTT-SN or a running MQTT-SN gateway that is connected to a running MQTT broker diff --git a/examples/gnrc_tftp/tftp_client.c b/examples/gnrc_tftp/tftp_client.c index 794c1cd693..013a5a7930 100644 --- a/examples/gnrc_tftp/tftp_client.c +++ b/examples/gnrc_tftp/tftp_client.c @@ -105,7 +105,7 @@ static int _tftp_client_data_cb(uint32_t offset, void *data, size_t data_len) static void _tftp_client_stop_cb(tftp_event_t event, const char *msg) { /* decode the stop event received */ - const char *cause = "UNKOWN"; + const char *cause = "UNKNOWN"; if (event == TFTP_SUCCESS) { cause = "SUCCESS"; diff --git a/examples/gnrc_tftp/tftp_server.c b/examples/gnrc_tftp/tftp_server.c index b0de42f855..96b025c71d 100644 --- a/examples/gnrc_tftp/tftp_server.c +++ b/examples/gnrc_tftp/tftp_server.c @@ -112,7 +112,7 @@ static int _tftp_server_data_cb(uint32_t offset, void *data, size_t data_len) static void _tftp_server_stop_cb(tftp_event_t event, const char *msg) { /* decode the stop event received */ - const char *cause = "UNKOWN"; + const char *cause = "UNKNOWN"; if (event == TFTP_SUCCESS) { cause = "SUCCESS"; diff --git a/examples/ndn-ping/ndn_ping.c b/examples/ndn-ping/ndn_ping.c index 5106aa7079..cf61721d3c 100644 --- a/examples/ndn-ping/ndn_ping.c +++ b/examples/ndn-ping/ndn_ping.c @@ -11,7 +11,7 @@ * @{ * * @file - * @brief NDN ping client and server implemetation + * @brief NDN ping client and server implementation * * @author Wentao Shang * diff --git a/examples/nimble_gatt/README.md b/examples/nimble_gatt/README.md index 565e7c9f60..5c16217558 100644 --- a/examples/nimble_gatt/README.md +++ b/examples/nimble_gatt/README.md @@ -1,7 +1,7 @@ NimBLE GATT Server Example ========================== This example application configures and runs the NimBLE BLE stack as simple GATT -server. It will provide two services, the build-in GAP and the build-in GATT +server. It will provide two services, the built-in GAP and the built-in GATT service. The device will advertise itself by the name `NimBLE on RIOT`. To interact with the BLE device running this example, use any BLE client that is diff --git a/examples/riot_and_cpp/c_functions.c b/examples/riot_and_cpp/c_functions.c index e5681cc5fc..65f6e685f5 100644 --- a/examples/riot_and_cpp/c_functions.c +++ b/examples/riot_and_cpp/c_functions.c @@ -11,7 +11,7 @@ * @{ * * @file - * @brief Some functions implementaion in C. + * @brief Some functions implementation in C. * * @author DangNhat Pham-Huu <51002279@hcmut.edu.vn> * diff --git a/examples/riot_and_cpp/cpp_class.cpp b/examples/riot_and_cpp/cpp_class.cpp index 1da85f0a4a..1090de8150 100644 --- a/examples/riot_and_cpp/cpp_class.cpp +++ b/examples/riot_and_cpp/cpp_class.cpp @@ -24,7 +24,7 @@ cpp_class::cpp_class() { - printf("Instanciating Object [constructor called]\n"); + printf("Instantiating Object [constructor called]\n"); greet(); } diff --git a/examples/riot_and_cpp/main.cpp b/examples/riot_and_cpp/main.cpp index 6bca2c4ab7..d228616f92 100644 --- a/examples/riot_and_cpp/main.cpp +++ b/examples/riot_and_cpp/main.cpp @@ -77,7 +77,7 @@ int main() return 0; } -/* thread A function implemetation */ +/* thread A function implementation */ void *threadA_func(void *) { int day = 13, month = 6, year = 2014; diff --git a/makefiles/buildtests.inc.mk b/makefiles/buildtests.inc.mk index 734176baaf..63ebebd061 100644 --- a/makefiles/buildtests.inc.mk +++ b/makefiles/buildtests.inc.mk @@ -23,7 +23,7 @@ buildtest: $${RESULT} # Define 'buildtest-indocker' completely executed inside the container. -# It prevents starting one container per compilation wich is slower but it +# It prevents starting one container per compilation which is slower but it # could hide errors where the host toolchain would be used ifeq ($(BUILD_IN_DOCKER),1) buildtest-indocker: ..in-docker-container diff --git a/pkg/fatfs/fatfs_diskio/mtd/mtd_diskio.c b/pkg/fatfs/fatfs_diskio/mtd/mtd_diskio.c index 1930038daa..9a5bf76a57 100644 --- a/pkg/fatfs/fatfs_diskio/mtd/mtd_diskio.c +++ b/pkg/fatfs/fatfs_diskio/mtd/mtd_diskio.c @@ -60,7 +60,7 @@ DSTATUS disk_status(BYTE pdrv) * @param[in] pdrv drive number to identify the drive * * @return STA_NODISK if no disk exists with the given id - * @return 0 if disk was initialized sucessfully + * @return 0 if disk was initialized successfully * @return STA_NOINIT if disk id exists, but couldn't be initialized */ DSTATUS disk_initialize(BYTE pdrv) diff --git a/pkg/lua/contrib/binsearch.h b/pkg/lua/contrib/binsearch.h index dad65da1e2..12cf2e426c 100644 --- a/pkg/lua/contrib/binsearch.h +++ b/pkg/lua/contrib/binsearch.h @@ -25,7 +25,7 @@ * the array) given by the struct definition. * * For example, given the following struct and array definitions and assuming - * a 32 bit platform with strict aligment: + * a 32 bit platform with strict alignment: * struct s1 { * int a; // Takes up 4 bytes * char *name; // Takes up 4 bytes diff --git a/pkg/lua/contrib/lua_run.c b/pkg/lua/contrib/lua_run.c index e6fa84f9d8..f747b53d30 100644 --- a/pkg/lua/contrib/lua_run.c +++ b/pkg/lua/contrib/lua_run.c @@ -154,7 +154,7 @@ NORETURN static int _jump_back(lua_State *L) { jmp_buf *jump_buffer = *(jmp_buf **)lua_getextraspace(L); - /* FIXME: I dont think it's OK to print a message */ + /* FIXME: I don't think it's OK to print a message */ lua_writestringerror("PANIC: unprotected error in call to Lua API (%s)\n", lua_tostring(L, -1)); diff --git a/pkg/lua/doc.txt b/pkg/lua/doc.txt index 50d6293ed4..fc1ffc0396 100644 --- a/pkg/lua/doc.txt +++ b/pkg/lua/doc.txt @@ -66,7 +66,7 @@ * in ascending order by this key. * * The definitions for the table types are in `lua_builtin.h`. The loader module - * containes empty tables, defined as weak symbols so they can be ovewritten + * contains empty tables, defined as weak symbols so they can be ovewritten * by the application. The variables that must be defined are: * * ``` diff --git a/pkg/lua/include/lua_loadlib.h b/pkg/lua/include/lua_loadlib.h index f2ce87e14e..de66e75962 100644 --- a/pkg/lua/include/lua_loadlib.h +++ b/pkg/lua/include/lua_loadlib.h @@ -37,7 +37,7 @@ extern "C" { * module to be loaded and does not register the module. * Only the builtin tables are searched. * - * Upon sucessful execution, the compiled chunk will be at the top of the lua + * Upon successful execution, the compiled chunk will be at the top of the lua * stack. * * @param L Initialized Lua interpreter state. diff --git a/pkg/lua/include/lua_run.h b/pkg/lua/include/lua_run.h index dcdbde42f9..70289ce129 100644 --- a/pkg/lua/include/lua_run.h +++ b/pkg/lua/include/lua_run.h @@ -159,7 +159,7 @@ LUALIB_API lua_State *lua_riot_newstate(void *memory, size_t mem_size, * there is an error the load sequence is aborted and the index of the library * that failed is reported. * - * If debuging is enabled (compile with the LUA_DEBUG macro), then the test + * If debugging is enabled (compile with the LUA_DEBUG macro), then the test * library will be unconditionally loaded. * * @param L Lua state diff --git a/pkg/lwip/include/arch/cc.h b/pkg/lwip/include/arch/cc.h index ebd6cb409f..4f24c564aa 100644 --- a/pkg/lwip/include/arch/cc.h +++ b/pkg/lwip/include/arch/cc.h @@ -39,9 +39,9 @@ extern "C" { #ifndef BYTE_ORDER #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ -# define BYTE_ORDER (LITTLE_ENDIAN) /**< platform's endianess */ +# define BYTE_ORDER (LITTLE_ENDIAN) /**< platform's endianness */ #elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ -# define BYTE_ORDER (BIG_ENDIAN) /**< platform's endianess */ +# define BYTE_ORDER (BIG_ENDIAN) /**< platform's endianness */ #else # error "Byte order is neither little nor big!" #endif diff --git a/pkg/nanocbor/include/nanocbor/config.h b/pkg/nanocbor/include/nanocbor/config.h index 045529fb3d..5931775be3 100644 --- a/pkg/nanocbor/include/nanocbor/config.h +++ b/pkg/nanocbor/include/nanocbor/config.h @@ -37,7 +37,7 @@ extern "C" { /** * @brief call providing htonll or be64toh or equivalent functionality * - * must take a uint64_t big endian and return it in host endianess + * must take a uint64_t big endian and return it in host endianness */ #ifndef NANOCBOR_BE64TOH_FUNC #define NANOCBOR_BE64TOH_FUNC(be) (ntohll(be)) @@ -46,7 +46,7 @@ extern "C" { /** * @brief call providing htonll or htobe64 or equivalent functionality * - * must take a uint64_t in host endianess and return the big endian value + * must take a uint64_t in host endianness and return the big endian value */ #ifndef NANOCBOR_HTOBE64_FUNC #define NANOCBOR_HTOBE64_FUNC(be) (htonll(be)) @@ -55,7 +55,7 @@ extern "C" { /** * @brief call providing htonll or htobe32 or equivalent functionality * - * must take a uint32_t in host endianess and return the big endian value + * must take a uint32_t in host endianness and return the big endian value */ #ifndef NANOCBOR_HTOBE32_FUNC #define NANOCBOR_HTOBE32_FUNC(he) htonl(he) diff --git a/pkg/nimble/README.ipv6-over-ble.md b/pkg/nimble/README.ipv6-over-ble.md index 54537247f7..8233f311f8 100644 --- a/pkg/nimble/README.ipv6-over-ble.md +++ b/pkg/nimble/README.ipv6-over-ble.md @@ -50,7 +50,7 @@ and start advertising itself: ble adv -Thats it, the node can now be seen and connected to from Linux. +That's it, the node can now be seen and connected to from Linux. ## Establishing a connection from Linux @@ -104,7 +104,7 @@ command: # used by `nimble_netif` echo "connect UU:VV:WW:XX:YY:ZZ 2" > /sys/kernel/debug/bluetooth/6lowpan_control -Thats it, you now have a IPv6 connection to your RIOT node. You can verify this +That's it, you now have a IPv6 connection to your RIOT node. You can verify this using `ifconfig`, where something like the following should be visible: bt0 Link encap:UNSPEC HWaddr 00-19-86-00-16-CA-00-00-00-00-00-00-00-00-00-00 @@ -126,7 +126,7 @@ Now everything should be fine :-) ## [optional] Distributing a routeable Prefix -You can use the Router Advertisement Deamon (`radvd`) in Linux to automatically +You can use the Router Advertisement Daemon (`radvd`) in Linux to automatically distribute prefixes in your BLE network. For the following, you need to make sure that `radvd` is installed on your Linux host. @@ -162,7 +162,7 @@ with the one of the BLE device on your Linux host. router advertisements, as it is in 6LN configuration (see https://tools.ietf.org/html/rfc6775#section-4.3). -With this, simply (re-)start the deamon: +With this, simply (re-)start the daemon: sudo service radvd restart @@ -170,7 +170,7 @@ or sudo systemctl restart radvd -Again, thats it. Your RIOT node should now have an address using the above +Again, that's it. Your RIOT node should now have an address using the above prefix assigned. Simply verify with `ifconfig` on the RIOT node. Also you should be able to ping the RIOT node from Linux: diff --git a/pkg/nimble/contrib/nimble_riot.c b/pkg/nimble/contrib/nimble_riot.c index 664c6a196c..39594b5756 100644 --- a/pkg/nimble/contrib/nimble_riot.c +++ b/pkg/nimble/contrib/nimble_riot.c @@ -116,7 +116,7 @@ void nimble_riot_init(void) #endif #endif - /* initialize the configured, build-in services */ + /* initialize the configured, built-in services */ #ifdef MODULE_NIMBLE_SVC_GAP ble_svc_gap_init(); #endif diff --git a/pkg/nordic_softdevice_ble/README-BLE-6LoWPAN.md b/pkg/nordic_softdevice_ble/README-BLE-6LoWPAN.md index cd5f1dbb52..1fa5ae5c38 100644 --- a/pkg/nordic_softdevice_ble/README-BLE-6LoWPAN.md +++ b/pkg/nordic_softdevice_ble/README-BLE-6LoWPAN.md @@ -19,7 +19,7 @@ Establishing an IPv6 connection Use the following procedure to establish a connection between an nRF52 device and Linux router: -First enable 6LoWPAN module. This is neccessary only once per session: +First enable 6LoWPAN module. This is necessary only once per session: # Log in as a root user. sudo su @@ -84,7 +84,7 @@ Next, start RADVD daemon: # Run radvd daemon. sudo service radvd restart -If successfull then all devices connected to the host will receive +If successful then all devices connected to the host will receive a routable `2001:db8` prefix. This can be verified by sending echo request to the full address: diff --git a/pkg/openthread/include/ot.h b/pkg/openthread/include/ot.h index 9be3f8f5c5..014dbc0b3b 100755 --- a/pkg/openthread/include/ot.h +++ b/pkg/openthread/include/ot.h @@ -67,7 +67,7 @@ extern "C" { #define OPENTHREAD_ERROR_NO_EMPTY_SERIAL_BUFFER -1 /** @brief serial buffer ready to use */ #define OPENTHREAD_SERIAL_BUFFER_STATUS_FREE (0x0001) -/** @brief serial buffer ready for processsing */ +/** @brief serial buffer ready for processing */ #define OPENTHREAD_SERIAL_BUFFER_STATUS_READY_TO_PROCESS (0x0002) /** @brief serial buffer payload full */ #define OPENTHREAD_SERIAL_BUFFER_STATUS_FULL (0x0004) diff --git a/pkg/semtech-loramac/contrib/semtech_loramac.c b/pkg/semtech-loramac/contrib/semtech_loramac.c index 5d7a5e1ed3..97c6e5055c 100644 --- a/pkg/semtech-loramac/contrib/semtech_loramac.c +++ b/pkg/semtech-loramac/contrib/semtech_loramac.c @@ -668,7 +668,7 @@ void *_semtech_loramac_event_loop(void *arg) mac->link_chk.demod_margin = confirm->DemodMargin; mac->link_chk.nb_gateways = confirm->NbGateways; DEBUG("[semtech-loramac] link check info received:\n" - " - Demodulation marging: %d\n" + " - Demodulation margin: %d\n" " - Number of gateways: %d\n", mac->link_chk.demod_margin, mac->link_chk.nb_gateways); diff --git a/pkg/semtech-loramac/doc.txt b/pkg/semtech-loramac/doc.txt index fd6f80be0d..a74d00ed93 100644 --- a/pkg/semtech-loramac/doc.txt +++ b/pkg/semtech-loramac/doc.txt @@ -142,7 +142,7 @@ * # Persistence * * If the board CPU provides an internal EEPROM, this package provides a - * mecanism for storing EUIs, keys and some MAC parameters (frame counter, + * mechanism for storing EUIs, keys and some MAC parameters (frame counter, * join status). * After a successful join procedure, use `semtech_loramac_save` function to * persist this information and it will be loaded automatically at the next @@ -151,7 +151,7 @@ * procedure use `semtech_loramac_is_mac_joined` function to check the join * status of the device. * - * This mecanism is especially useful when using deep sleep power modes that + * This mechanism is especially useful when using deep sleep power modes that * don't preserve RAM. * * @warning It is not possible to directly call the original LoRaMAC-node API diff --git a/pkg/tlsf/contrib/include/tlsf-malloc.h b/pkg/tlsf/contrib/include/tlsf-malloc.h index 943b800402..46118ce5ca 100644 --- a/pkg/tlsf/contrib/include/tlsf-malloc.h +++ b/pkg/tlsf/contrib/include/tlsf-malloc.h @@ -14,7 +14,7 @@ * * This is a malloc/free implementation built on top of the TLSF allocator. * It defines a global tlsf_control block and performs allocations on that - * block. This implemetation replaces the system malloc + * block. This implementation replaces the system malloc * * Additionally, the calls to TLSF are wrapped in irq_disable()/irq_restore(), * to make it thread-safe. diff --git a/pkg/wolfssl/doc.txt b/pkg/wolfssl/doc.txt index 74e1dbc4cc..905a39c45c 100644 --- a/pkg/wolfssl/doc.txt +++ b/pkg/wolfssl/doc.txt @@ -68,7 +68,7 @@ * FEATURES: * * Because wolfSSL was designed with embedded systems in mind the library is - * extremely modular. There are very few dependancies in wolfSSL Cryptographic + * extremely modular. There are very few dependencies in wolfSSL Cryptographic * library and we have chosen to setup the pkg makefile to allow for easy * modification by developers. We chose to include the core of our library in a * singular list and then separate out the features that a developer may or may diff --git a/sys/arduino/doc.txt b/sys/arduino/doc.txt index 7a35e8bac2..53118a3a9c 100644 --- a/sys/arduino/doc.txt +++ b/sys/arduino/doc.txt @@ -40,7 +40,7 @@ * -# build, flash, and run your application the usual RIOT-way: simply call * `make all`, `make flash`, `make term`, etc. * - * Thats all. As bonus you can of course use any existing RIOT code inside your + * That's all. As bonus you can of course use any existing RIOT code inside your * Arduino sketches - you simply have to add the includes to your sketch and * the corresponding modules to your `Makefile`. * diff --git a/sys/arduino/sketches.inc.mk b/sys/arduino/sketches.inc.mk index ae71a78524..bb7c0bdd26 100644 --- a/sys/arduino/sketches.inc.mk +++ b/sys/arduino/sketches.inc.mk @@ -30,5 +30,5 @@ _ARDUINO_SKETCHES_MAKEFILE := $(lastword $(MAKEFILE_LIST)) $(SKETCH_MODULE_DIR)/$(SKETCH_CPP): $(_ARDUINO_SKETCHES_MAKEFILE) $(SKETCH_MODULE_DIR)/Makefile: $(_ARDUINO_SKETCHES_MAKEFILE) -# HACK Rebuild cpp files everytime in case one of the `SKETCHES` is deleted +# HACK Rebuild cpp files every time in case one of the `SKETCHES` is deleted $(SKETCH_MODULE_DIR)/$(SKETCH_CPP): FORCE diff --git a/sys/bitfield/bitfield.c b/sys/bitfield/bitfield.c index c710af3974..eb70d20661 100644 --- a/sys/bitfield/bitfield.c +++ b/sys/bitfield/bitfield.c @@ -10,7 +10,7 @@ * @{ * * @file - * @brief Bitfield auxillary functions + * @brief Bitfield auxiliary functions * * @author Kaspar Schleiser * diff --git a/sys/clif/clif.c b/sys/clif/clif.c index fb310291cf..74a817db3f 100644 --- a/sys/clif/clif.c +++ b/sys/clif/clif.c @@ -27,7 +27,7 @@ #define ENABLE_DEBUG (0) #include "debug.h" -/* returns the correspondant attribute string */ +/* returns the correspondent attribute string */ static const char *_attr_to_str[] = { [CLIF_ATTR_ANCHOR] = LF_ATTR_ANCHOR, [CLIF_ATTR_REL] = LF_ATTR_REL_TYPE, @@ -43,7 +43,7 @@ static const char *_attr_to_str[] = { [CLIF_ATTR_OBS] = LF_ATTR_OBS }; -/* returns the correspondant attribute string size */ +/* returns the correspondent attribute string size */ static const unsigned _attr_to_size[] = { [CLIF_ATTR_ANCHOR] = LF_ATTR_ANCHOR_S, [CLIF_ATTR_REL] = LF_ATTR_REL_TYPE_S, @@ -60,7 +60,7 @@ static const unsigned _attr_to_size[] = { }; /* do not count extension attr type */ -#define ATTRS_NUMOF (sizeof(_attr_to_str) / sizeof(_attr_to_str[0])) +#define ATTRS_NUMOF ARRAY_SIZE(_attr_to_str) ssize_t clif_decode_link(clif_t *link, clif_attr_t *attrs, unsigned attrs_len, const char *buf, size_t maxlen) diff --git a/sys/cpp11-compat/include/riot/detail/thread_util.hpp b/sys/cpp11-compat/include/riot/detail/thread_util.hpp index 1952df4bec..ae0dea2f79 100644 --- a/sys/cpp11-compat/include/riot/detail/thread_util.hpp +++ b/sys/cpp11-compat/include/riot/detail/thread_util.hpp @@ -80,7 +80,7 @@ inline auto apply_args(F& f, detail::int_list, Tuple&& tup) } /** - * @brief Prefix the argument tuple with additonal arguments. + * @brief Prefix the argument tuple with additional arguments. * In this case the tuple is empty. */ template @@ -90,7 +90,7 @@ inline auto apply_args_prefixed(F& f, detail::int_list<>, Tuple&, Ts&&... args) } /** - * @brief Prefix the argument tuple with additonal arguments. + * @brief Prefix the argument tuple with additional arguments. * In this case the tuple is contains arguments. */ template @@ -101,7 +101,7 @@ inline auto apply_args_prefixed(F& f, detail::int_list, Tuple& tup, } /** - * @brief Suffix the tuple with additonal arguments. + * @brief Suffix the tuple with additional arguments. */ template inline auto apply_args_suffxied(F& f, detail::int_list, Tuple& tup, diff --git a/sys/cpp11-compat/include/riot/mutex.hpp b/sys/cpp11-compat/include/riot/mutex.hpp index 39cecad8ea..318f5466fe 100644 --- a/sys/cpp11-compat/include/riot/mutex.hpp +++ b/sys/cpp11-compat/include/riot/mutex.hpp @@ -33,7 +33,7 @@ namespace riot { /** - * @brief C++11 complient implementation of mutex, uses the time point + * @brief C++11 compliant implementation of mutex, uses the time point * implemented in our chrono replacement instead of the specified * one * @see @@ -104,7 +104,7 @@ constexpr try_to_lock_t try_to_lock = try_to_lock_t(); constexpr adopt_lock_t adopt_lock = adopt_lock_t(); /** - * @brief C++11 complient implementation of unique lock + * @brief C++11 compliant implementation of unique lock * @see * std::lock_guard * @@ -133,7 +133,7 @@ private: }; /** - * @brief C++11 complient implementation of unique lock + * @brief C++11 compliant implementation of unique lock * @see * std::unique_lock * diff --git a/sys/crypto/modes/ccm.c b/sys/crypto/modes/ccm.c index 0ca5653030..406a315ddb 100644 --- a/sys/crypto/modes/ccm.c +++ b/sys/crypto/modes/ccm.c @@ -174,7 +174,7 @@ int cipher_encrypt_ccm(cipher_t *cipher, return CCM_ERR_INVALID_DATA_LENGTH; } - /* MAC calulation (T) with additional data and plaintext */ + /* MAC calculation (T) with additional data and plaintext */ len = ccm_compute_adata_mac(cipher, auth_data, auth_data_len, mac_iv); if (len < 0) { return len; @@ -259,7 +259,7 @@ int cipher_decrypt_ccm(cipher_t *cipher, return CCM_ERR_INVALID_DATA_LENGTH; } - /* MAC calulation (T) with additional data and plaintext */ + /* MAC calculation (T) with additional data and plaintext */ len = ccm_compute_adata_mac(cipher, auth_data, auth_data_len, mac_iv); if (len < 0) { return len; diff --git a/sys/crypto/modes/ocb.c b/sys/crypto/modes/ocb.c index e9dcf26a66..2aa3e43031 100644 --- a/sys/crypto/modes/ocb.c +++ b/sys/crypto/modes/ocb.c @@ -306,7 +306,7 @@ int32_t cipher_encrypt_ocb(cipher_t *cipher, uint8_t *auth_data, OCB_MODE_ENCRYPT); if (cipher_text_length < 0) { - // An error occured. Return the error code + // An error occurred. Return the error code return cipher_text_length; } /* C = C_1 || C_2 || ... || C_m || C_* || Tag[1..TAGLEN] */ @@ -331,7 +331,7 @@ int32_t cipher_decrypt_ocb(cipher_t *cipher, uint8_t *auth_data, OCB_MODE_DECRYPT); if (plain_text_length < 0) { - // An error occured. Retur the error code + // An error occurred. Return the error code return plain_text_length; } /* Check the tag */ diff --git a/sys/ecc/golay2412.c b/sys/ecc/golay2412.c index 6f18346b60..abd940efe5 100644 --- a/sys/ecc/golay2412.c +++ b/sys/ecc/golay2412.c @@ -273,7 +273,7 @@ static uint32_t golay2412_decode_symbol(uint32_t _sym_enc, /* step 8: compute estimated transmitted message: v_hat = r + e_hat */ v_hat = _sym_enc ^ e_hat; #if DEBUG_FEC_GOLAY2412 - printf("r (recevied vector): "); + printf("r (received vector): "); liquid_print_bitstring(_sym_enc, 24); printf("\n"); printf("e-hat (estimated error vector): "); liquid_print_bitstring(e_hat, 24); printf("\n"); diff --git a/sys/ecc/hamming256.c b/sys/ecc/hamming256.c index 8e9bc22d50..293163874e 100644 --- a/sys/ecc/hamming256.c +++ b/sys/ecc/hamming256.c @@ -128,7 +128,7 @@ static void compute256(const uint8_t *data, uint8_t *code, uint8_t padding) /* * At this point, we have the line parities, and the column sum. First, We - * must caculate the parity group values on the column sum. + * must calculate the parity group values on the column sum. */ for (i = 0; i < 8; i++) { if (columnSum & 1) { diff --git a/sys/embunit/TestResult.c b/sys/embunit/TestResult.c index 527e9f918c..2de413e5ea 100644 --- a/sys/embunit/TestResult.c +++ b/sys/embunit/TestResult.c @@ -36,11 +36,11 @@ #include "TestListener.h" #include "TestResult.h" -void TestResult_init(TestResult* self,TestListner* listner) +void TestResult_init(TestResult* self,TestListner* listener) { self->runCount = 0; self->failureCount = 0; - self->listener = listner; + self->listener = listener; } void TestResult_startTest(TestResult* self,Test* test) diff --git a/sys/evtimer/evtimer.c b/sys/evtimer/evtimer.c index cc346e8ffd..52df48ff26 100644 --- a/sys/evtimer/evtimer.c +++ b/sys/evtimer/evtimer.c @@ -48,7 +48,7 @@ static void _add_event_to_list(evtimer_t *evtimer, evtimer_event_t *event) list = &(*list)->next; } - DEBUG("evtimer: new event relativ offset %" PRIu32 " ms\n", event->offset); + DEBUG("evtimer: new event relative offset %" PRIu32 " ms\n", event->offset); /* Set found next bigger event after new event */ event->next = *list; diff --git a/sys/hashes/sha3.c b/sys/hashes/sha3.c index 313915b68c..a7af5182c6 100644 --- a/sys/hashes/sha3.c +++ b/sys/hashes/sha3.c @@ -40,7 +40,7 @@ The drawbacks of this implementation are: - There is no message queue. The whole message must be ready in a buffer. - - It is not optimized for peformance. + - It is not optimized for performance. The implementation is even simpler on a little endian platform. Just define the LITTLE_ENDIAN symbol in that case. diff --git a/sys/include/analog_util.h b/sys/include/analog_util.h index b3aa408286..581ded7e30 100644 --- a/sys/include/analog_util.h +++ b/sys/include/analog_util.h @@ -46,7 +46,7 @@ int32_t adc_util_map(int sample, adc_res_t res, int32_t min, int32_t max); /** * @brief Map a sampled ADC value to a given range (using floating point - * arithmetics) + * arithmetic) * * @see adc_util_map * diff --git a/sys/include/auto_init.h b/sys/include/auto_init.h index f9a87c7963..4f684099fc 100644 --- a/sys/include/auto_init.h +++ b/sys/include/auto_init.h @@ -37,7 +37,7 @@ * automatically using the `auto_init` module. * To do so, each driver implementation must provide default initialization * parameters in the `DRIVER_params.h` file. - * These parameters can be overriden from the application code in several ways + * These parameters can be overridden from the application code in several ways * (examples with the @ref drivers_bmp180 oversampling parameter * `BMP180_PARAM_OVERSAMPLING`): * @@ -100,7 +100,7 @@ extern "C" { * @brief Initializes all high level modules that do not require parameters for * initialization or uses default values. * - * This function gets called - if not explicitely disabled - by @ref + * This function gets called - if not explicitly disabled - by @ref * kernel_init right before jumping into @e main. */ void auto_init(void); diff --git a/sys/include/bloom.h b/sys/include/bloom.h index 3b2c841153..de43bd7811 100644 --- a/sys/include/bloom.h +++ b/sys/include/bloom.h @@ -201,7 +201,7 @@ void bloom_add(bloom_t *bloom, const uint8_t *buf, size_t len); * it may also be that another string just happened to produce a hash value * that would also set this bit. That would be a false positive. This is why * we have k > 1, so we can minimize the likelihood of false positives - * occuring. + * occurring. * * If every bit corresponding to every one of the k hashes of our query * string is set, we can say with some probability of being correct that diff --git a/sys/include/can/doc.txt b/sys/include/can/doc.txt index 089aa8edf1..8112e5838a 100644 --- a/sys/include/can/doc.txt +++ b/sys/include/can/doc.txt @@ -7,7 +7,7 @@ * It includes a low-level interface, a data link layer, an ISO-TP layer and * a user interface. * - * The low-level interface, candev, must be implemented by controler drivers. + * The low-level interface, candev, must be implemented by controller drivers. * The optional transceiver support can also be activated. Transceiver drivers must * then implement the trx_can interface. * diff --git a/sys/include/can/isotp.h b/sys/include/can/isotp.h index 4228604b02..35989c77e5 100644 --- a/sys/include/can/isotp.h +++ b/sys/include/can/isotp.h @@ -167,7 +167,7 @@ kernel_pid_t isotp_init(char *stack, int stacksize, char priority, const char *n * @param flags flags for sending * * @return the number of bytes sent - * @return < 0 if an error occured (-EBUSY, -ENOMEM) + * @return < 0 if an error occurred (-EBUSY, -ENOMEM) */ int isotp_send(struct isotp *isotp, const void *buf, int len, int flags); @@ -195,7 +195,7 @@ int isotp_bind(struct isotp *isotp, can_reg_entry_t *entry, void *arg, * Unset the filter on the DLL and remove the channel from the list * of bound channels * - * @param isotp the channel to relase + * @param isotp the channel to release * * @return 0 on success, < 0 on error */ diff --git a/sys/include/can/pkt.h b/sys/include/can/pkt.h index c57ec0bd00..2538aee3d0 100644 --- a/sys/include/can/pkt.h +++ b/sys/include/can/pkt.h @@ -62,7 +62,7 @@ void can_pkt_init(void); * @param[in] frame the frame to copy * @param[in] tx_pid the pid of the sender's device thread * - * @return an allocated CAN packet, NULL if an error occured + * @return an allocated CAN packet, NULL if an error occurred */ can_pkt_t *can_pkt_alloc_tx(int ifnum, const struct can_frame *frame, kernel_pid_t tx_pid); @@ -72,7 +72,7 @@ can_pkt_t *can_pkt_alloc_tx(int ifnum, const struct can_frame *frame, kernel_pid * @param[in] ifnum the interface number * @param[in] frame the received frame * - * @return an allocated CAN packet, NULL if an error occured + * @return an allocated CAN packet, NULL if an error occurred */ can_pkt_t *can_pkt_alloc_rx(int ifnum, const struct can_frame *frame); @@ -87,7 +87,7 @@ can_pkt_t *can_pkt_alloc_rx(int ifnum, const struct can_frame *frame); * @param[in] frame the frame to copy * @param[in] mbox the pointer to the sender's mbox * - * @return an allocated CAN packet, NULL if an error occured + * @return an allocated CAN packet, NULL if an error occurred */ can_pkt_t *can_pkt_alloc_mbox_tx(int ifnum, const struct can_frame *frame, mbox_t *mbox); #endif diff --git a/sys/include/can/raw.h b/sys/include/can/raw.h index b8ef3657e3..27aa881338 100644 --- a/sys/include/can/raw.h +++ b/sys/include/can/raw.h @@ -72,7 +72,7 @@ int raw_can_send(int ifnum, const struct can_frame *frame, kernel_pid_t pid); * @param[in] ifnum the interface number used to send the frame * @param[in] handle the handle of the frame to abort, * it must be the value returned by raw_can_send - * @return 0 on succes + * @return 0 on success * @return < 0 on error (-ENODEV) */ int raw_can_abort(int ifnum, int handle); diff --git a/sys/include/crypto/chacha.h b/sys/include/crypto/chacha.h index c8b9eac5ee..8952f5ad3e 100644 --- a/sys/include/crypto/chacha.h +++ b/sys/include/crypto/chacha.h @@ -60,7 +60,7 @@ typedef struct { * @param[in] nonce IV / nonce to use. * * @return `== 0` on success. - * @return `< 0` if an illegal value for @p rounds or @p keylen was suppplied. + * @return `< 0` if an illegal value for @p rounds or @p keylen was supplied. */ int chacha_init(chacha_ctx *ctx, unsigned rounds, diff --git a/sys/include/crypto/ciphers.h b/sys/include/crypto/ciphers.h index a3487c833c..52db1b818b 100644 --- a/sys/include/crypto/ciphers.h +++ b/sys/include/crypto/ciphers.h @@ -63,9 +63,9 @@ extern "C" { #define CIPHER_ERR_INVALID_LENGTH -4 #define CIPHER_ERR_ENC_FAILED -5 #define CIPHER_ERR_DEC_FAILED -6 -/** Is returned by the cipher_init functions, if the coresponding alogirithm has not been included in the build */ +/** Is returned by the cipher_init functions, if the corresponding alogirithm has not been included in the build */ #define CIPHER_ERR_BAD_CONTEXT_SIZE 0 -/** Returned by cipher_init upon succesful initialization of a cipher. */ +/** Returned by cipher_init upon successful initialization of a cipher. */ #define CIPHER_INIT_SUCCESS 1 /** diff --git a/sys/include/crypto/modes/cbc.h b/sys/include/crypto/modes/cbc.h index 74ee616a92..5670cf0654 100644 --- a/sys/include/crypto/modes/cbc.h +++ b/sys/include/crypto/modes/cbc.h @@ -40,7 +40,7 @@ extern "C" { * * @return <0 on error * @return CIPHER_ERR_INVALID_LENGTH when input_len % BLOCK_SIZE != 0 - * @return CIPHER_ERR_ENC_FAILED on internal encrption error + * @return CIPHER_ERR_ENC_FAILED on internal encryption error * @return otherwise number of input bytes that aren't consumed */ int cipher_encrypt_cbc(cipher_t *cipher, uint8_t iv[16], const uint8_t *input, diff --git a/sys/include/crypto/modes/ocb.h b/sys/include/crypto/modes/ocb.h index d5afbb80ad..1e22071bc2 100644 --- a/sys/include/crypto/modes/ocb.h +++ b/sys/include/crypto/modes/ocb.h @@ -65,7 +65,7 @@ extern "C" { * @param cipher Already initialized cipher struct * @param auth_data Additional data to authenticate in MAC * @param auth_data_len Length of additional data - * @param tag_len Length of the appended tag (at leat 1, at most 16 bytes) + * @param tag_len Length of the appended tag (at least 1, at most 16 bytes) * * @param nonce Nonce for the encryption (must be unique) * @param nonce_len Length of the nonce in bytes (at most 15) @@ -88,7 +88,7 @@ int32_t cipher_encrypt_ocb(cipher_t *cipher, uint8_t *auth_data, * @param cipher Already initialized cipher struct * @param auth_data Additional data to authenticate in MAC * @param auth_data_len Length of additional data - * @param tag_len Length of the appended tag (at leat 1, at most 16 bytes) + * @param tag_len Length of the appended tag (at least 1, at most 16 bytes) * * @param nonce Nonce for the encryption (must be unique) * @param nonce_len Length of the nonce in bytes (at most 15) diff --git a/sys/include/div.h b/sys/include/div.h index bdb633f184..6c044f76bc 100644 --- a/sys/include/div.h +++ b/sys/include/div.h @@ -79,8 +79,8 @@ static inline uint64_t div_u64_by_15625(uint64_t val) * @brief Integer divide val by 125 * * This function can be used to convert uint64_t microsecond times (or - * intervals) to miliseconds and store them in uint32_t variables, with up to - * ~50 days worth of miliseconds ((2**32*1000) -1). + * intervals) to milliseconds and store them in uint32_t variables, with up to + * ~50 days worth of milliseconds ((2**32*1000) -1). * Use e.g., ms = div_u64_by_125(microseconds >> 3) * * @pre val <= 536870911999 ((2**32 * 125) -1) diff --git a/sys/include/embUnit/TestResult.h b/sys/include/embUnit/TestResult.h index 06f1f932ce..d3f555a571 100644 --- a/sys/include/embUnit/TestResult.h +++ b/sys/include/embUnit/TestResult.h @@ -58,7 +58,7 @@ struct __TestResult { (TestListner*)listener,\ } -void TestResult_init(TestResult* self,TestListner* listner); +void TestResult_init(TestResult* self,TestListner* listener); void TestResult_startTest(TestResult* self,Test* test); void TestResult_endTest(TestResult* self,Test* test); void TestResult_addFailure(TestResult* self,Test* test,const char* msg,int line,const char* file); diff --git a/sys/include/event/timeout.h b/sys/include/event/timeout.h index cb55e888f5..774e22f905 100644 --- a/sys/include/event/timeout.h +++ b/sys/include/event/timeout.h @@ -12,7 +12,7 @@ * @ingroup sys_event * @brief Provides functionality to trigger events after timeout * - * event_timeout intentionally does't extend event structures in order to + * event_timeout intentionally doesn't extend event structures in order to * support events that are integrated in larger structs intrusively. * * Example: diff --git a/sys/include/fmt.h b/sys/include/fmt.h index b1e0a286bb..f38473b631 100644 --- a/sys/include/fmt.h +++ b/sys/include/fmt.h @@ -381,7 +381,7 @@ uint32_t scn_u32_dec(const char *str, size_t n); * * Will convert up to @p n char. Stop at any non-hexadecimal or '\0' character * - * @param[in] str Pointer to tring to read from + * @param[in] str Pointer to string to read from * @param[in] n Maximum number of characters to consider * * @return converted uint32_t value diff --git a/sys/include/hashes/cmac.h b/sys/include/hashes/cmac.h index 0b92473a0b..cfa6518c26 100644 --- a/sys/include/hashes/cmac.h +++ b/sys/include/hashes/cmac.h @@ -40,7 +40,7 @@ extern "C" { typedef struct { /** AES128 context */ cipher_t aes_ctx; - /** auxiliar array for CMAC calculations **/ + /** auxiliary array for CMAC calculations **/ uint8_t X[CMAC_BLOCK_SIZE]; /** current last block **/ uint8_t M_last[CMAC_BLOCK_SIZE]; diff --git a/sys/include/iolist.h b/sys/include/iolist.h index 987c760ce4..ff6c27f23d 100644 --- a/sys/include/iolist.h +++ b/sys/include/iolist.h @@ -54,7 +54,7 @@ unsigned iolist_count(const iolist_t *iolist); /** * @brief Sum up number of bytes in iolist * - * This function returns the summed ip lenght values of all entries in @p + * This function returns the summed ip length values of all entries in @p * iolist. * * @param[in] iolist iolist to sum up diff --git a/sys/include/irq_handler.h b/sys/include/irq_handler.h index 97f79e9f77..db0af4c250 100644 --- a/sys/include/irq_handler.h +++ b/sys/include/irq_handler.h @@ -66,11 +66,11 @@ * handler places the interrupt event in an pending interrupt queue. * * Each interrupt event can be registered on the handler only once. That is, - * if the same interrupt occurs multiple times, only its first occurence is + * if the same interrupt occurs multiple times, only its first occurrence is * placed to the pending interrupt queue and is handled. * * When the interrupt handler thread gets the CPU, it processes all pending - * interrupt events in the order of their occurence before it yields. + * interrupt events in the order of their occurrence before it yields. * * ## Usage * @@ -218,7 +218,7 @@ typedef struct { * structures. For the initialization of static interrupt event structures * use #IRQ_EVENT_INIT instead. * - * @param[out] irq Pre-allocated #irq_event_t sturcture, must not be NULL + * @param[out] irq Pre-allocated #irq_event_t structure, must not be NULL */ static inline void irq_event_init(irq_event_t *irq) @@ -236,7 +236,7 @@ static inline void irq_event_init(irq_event_t *irq) * * Each interrupt event can be added only once to the pending interrupt queue. * That is, if the same interrupt occurs multiple times, only its first - * occurence is placed to the pending interrupt queue and is handled. + * occurrence is placed to the pending interrupt queue and is handled. * * @param[in] irq Preallocated interrupt event * diff --git a/sys/include/net/cord/ep_standalone.h b/sys/include/net/cord/ep_standalone.h index 9d900b71ed..e2f4be4d90 100644 --- a/sys/include/net/cord/ep_standalone.h +++ b/sys/include/net/cord/ep_standalone.h @@ -74,7 +74,7 @@ void cord_ep_standalone_reg_cb(cord_ep_standalone_cb_t cb); * @brief Signal the cord_ep thread about connection status change * * @note This function should not be called by a user, but it is called from - * withing the cord_ep implementation + * within the cord_ep implementation * * @param[in] connected set to true if we are connected to a RD */ diff --git a/sys/include/net/csma_sender.h b/sys/include/net/csma_sender.h index b7183c0325..e495a7f838 100644 --- a/sys/include/net/csma_sender.h +++ b/sys/include/net/csma_sender.h @@ -96,7 +96,7 @@ extern const csma_sender_conf_t CSMA_SENDER_CONF_DEFAULT; * @return -ENOMSG if @p pkt is invalid * @return -EOVERFLOW if the payload size of @p pkt exceeds the * payload size that can be handled by the device - * @return -ECANCELED if an internal driver error occured + * @return -ECANCELED if an internal driver error occurred * @return -EBUSY if radio medium never was available * to send the given data */ @@ -104,7 +104,7 @@ int csma_sender_csma_ca_send(netdev_t *dev, iolist_t *iolist, const csma_sender_conf_t *conf); /** - * @brief Sends a 802.15.4 frame when medium is avaiable. + * @brief Sends a 802.15.4 frame when medium is available. * * @pre `dev != NULL` * @@ -127,7 +127,7 @@ int csma_sender_csma_ca_send(netdev_t *dev, iolist_t *iolist, * @return -ENOMSG if @p pkt is invalid * @return -EOVERFLOW if the payload size of @p pkt exceeds the * payload size that can be handled by the device - * @return -ECANCELED if an internal driver error occured + * @return -ECANCELED if an internal driver error occurred * @return -EBUSY if radio medium was not available * to send the given data */ diff --git a/sys/include/net/eui64.h b/sys/include/net/eui64.h index 6211d20a5a..c8e4af0833 100644 --- a/sys/include/net/eui64.h +++ b/sys/include/net/eui64.h @@ -9,7 +9,7 @@ /** * @defgroup net_eui64 IEEE EUI-64 identifier * @ingroup net - * @brief Type definiton of the IEEE EUI-64 identifier + * @brief Type definition of the IEEE EUI-64 identifier * @see * IEEE, "Guidelines for 64-bit Global Identifier (EUI-64)" * diff --git a/sys/include/net/fib/table.h b/sys/include/net/fib/table.h index 3d14c773b2..d6e7e7704b 100644 --- a/sys/include/net/fib/table.h +++ b/sys/include/net/fib/table.h @@ -117,7 +117,7 @@ typedef struct { * This value indicates what is stored in `data` of this table */ uint8_t table_type; - /** the maximim number of entries in this FIB table */ + /** the maximum number of entries in this FIB table */ size_t size; /** table access mutex to grant exclusive operations on calls */ mutex_t mtx_access; diff --git a/sys/include/net/gnrc/icmpv6/error.h b/sys/include/net/gnrc/icmpv6/error.h index 60b00368bd..e1aad9f3b7 100644 --- a/sys/include/net/gnrc/icmpv6/error.h +++ b/sys/include/net/gnrc/icmpv6/error.h @@ -85,7 +85,7 @@ void gnrc_icmpv6_error_time_exc_send(uint8_t code, * multicast * * @param[in] code The [code for the message](@ref net_icmpv6_error_param_prob_codes). - * @param[in] ptr Pointer to the errorneous octet in @p orig_pkt. + * @param[in] ptr Pointer to the erroneous octet in @p orig_pkt. * @param[in] orig_pkt The invoking packet. */ void gnrc_icmpv6_error_param_prob_send(uint8_t code, void *ptr, diff --git a/sys/include/net/gnrc/ipv6/ext/frag.h b/sys/include/net/gnrc/ipv6/ext/frag.h index 4c9b7eaecb..4c571dd122 100644 --- a/sys/include/net/gnrc/ipv6/ext/frag.h +++ b/sys/include/net/gnrc/ipv6/ext/frag.h @@ -126,7 +126,7 @@ void gnrc_ipv6_ext_frag_send(gnrc_ipv6_ext_frag_send_t *snd_buf); * the fragment header in the first snip. * * @return The reassembled packet when @p pkt completed the reassembly - * @return NULL, when there are still fragments missing or an error occured + * @return NULL, when there are still fragments missing or an error occurred * during reassembly */ gnrc_pktsnip_t *gnrc_ipv6_ext_frag_reass(gnrc_pktsnip_t *pkt); diff --git a/sys/include/net/gnrc/ipv6/hdr.h b/sys/include/net/gnrc/ipv6/hdr.h index 00aea45726..daf82d3347 100644 --- a/sys/include/net/gnrc/ipv6/hdr.h +++ b/sys/include/net/gnrc/ipv6/hdr.h @@ -7,7 +7,7 @@ */ /** - * @defgroup net_gnrc_ipv6_hdr IPv6 header defintions + * @defgroup net_gnrc_ipv6_hdr IPv6 header definitions * @ingroup net_gnrc_ipv6 * @{ * diff --git a/sys/include/net/gnrc/ipv6/nib.h b/sys/include/net/gnrc/ipv6/nib.h index a3acfa9066..40a03aa4a0 100644 --- a/sys/include/net/gnrc/ipv6/nib.h +++ b/sys/include/net/gnrc/ipv6/nib.h @@ -282,7 +282,7 @@ enum { * might however get an INCOMPLETE or STALE notification due to that, as * soon as the neighbor enters the neighbor cache again). * - * Be adviced to only use `ctx_addr` in the context of the callback, since + * Be advised to only use `ctx_addr` in the context of the callback, since * it might be overwritten, after the callback was left. */ GNRC_IPV6_NIB_ROUTE_INFO_TYPE_NSC, diff --git a/sys/include/net/gnrc/ipv6/nib/pl.h b/sys/include/net/gnrc/ipv6/nib/pl.h index 88fbeda7f9..b18ba6fc55 100644 --- a/sys/include/net/gnrc/ipv6/nib/pl.h +++ b/sys/include/net/gnrc/ipv6/nib/pl.h @@ -13,7 +13,7 @@ * @{ * * @file - * @brief Prefix list defintions + * @brief Prefix list definitions * * @author Martine Lenders */ diff --git a/sys/include/net/gnrc/lwmac/timeout.h b/sys/include/net/gnrc/lwmac/timeout.h index 9d9945b401..dc47f90a8f 100644 --- a/sys/include/net/gnrc/lwmac/timeout.h +++ b/sys/include/net/gnrc/lwmac/timeout.h @@ -90,7 +90,7 @@ void gnrc_lwmac_reset_timeouts(gnrc_netif_t *netif); /** * @brief Make a specific LWMAC timeout expired. * - * @param[in,out] timeout LWMAC tiemout + * @param[in,out] timeout LWMAC timeout */ void gnrc_lwmac_timeout_make_expire(gnrc_lwmac_timeout_t *timeout); diff --git a/sys/include/net/gnrc/lwmac/types.h b/sys/include/net/gnrc/lwmac/types.h index e728a71cfe..9057093803 100644 --- a/sys/include/net/gnrc/lwmac/types.h +++ b/sys/include/net/gnrc/lwmac/types.h @@ -167,7 +167,7 @@ typedef enum { * @brief LWMAC timeout types */ typedef enum { - GNRC_LWMAC_TIMEOUT_DISABLED, /**< Timeout is diabled */ + GNRC_LWMAC_TIMEOUT_DISABLED, /**< Timeout is disabled */ GNRC_LWMAC_TIMEOUT_WR, /**< WR timeout, waiting WA */ GNRC_LWMAC_TIMEOUT_NO_RESPONSE, /**< Maximum WR duration timeout awaiting WA */ GNRC_LWMAC_TIMEOUT_DATA, /**< Timeout awaiting data packet from receiver */ @@ -193,7 +193,7 @@ typedef struct { typedef struct lwmac { gnrc_lwmac_state_t state; /**< Internal state of MAC layer */ uint32_t last_wakeup; /**< Used to calculate wakeup times */ - uint8_t lwmac_info; /**< LWMAC's internal informations (flags) */ + uint8_t lwmac_info; /**< LWMAC's internal information (flags) */ gnrc_lwmac_timeout_t timeouts[GNRC_LWMAC_TIMEOUT_COUNT]; /**< Store timeouts used for protocol */ #if (GNRC_MAC_ENABLE_DUTYCYCLE_RECORD == 1) diff --git a/sys/include/net/gnrc/ndp.h b/sys/include/net/gnrc/ndp.h index 94aff38982..5ae27e4d51 100644 --- a/sys/include/net/gnrc/ndp.h +++ b/sys/include/net/gnrc/ndp.h @@ -216,7 +216,7 @@ gnrc_pktsnip_t *gnrc_ndp_opt_tl2a_build(const uint8_t *l2addr, * @param[in] valid_ltime Length of time in seconds that @p prefix is valid. * UINT32_MAX represents infinity. * @param[in] pref_ltime Length of time in seconds that addresses using - * @p prefix remain prefered. UINT32_MAX represents + * @p prefix remain preferred. UINT32_MAX represents * infinity. * @param[in] flags Flags as defined in net/ndp.h. * - @ref NDP_OPT_PI_FLAGS_L == 1 indicates, that diff --git a/sys/include/net/gnrc/neterr.h b/sys/include/net/gnrc/neterr.h index fc89cd437b..ed96e7e0c1 100644 --- a/sys/include/net/gnrc/neterr.h +++ b/sys/include/net/gnrc/neterr.h @@ -38,7 +38,7 @@ extern "C" { #define GNRC_NETERR_MSG_TYPE (0x0206) /** - * @brief Error code to signalise success (no error occured) to an gnrc_neterr subscriber. + * @brief Error code to signalise success (no error occurred) to an gnrc_neterr subscriber. */ #define GNRC_NETERR_SUCCESS (0) diff --git a/sys/include/net/gnrc/netif.h b/sys/include/net/gnrc/netif.h index cf73747852..ff1b2f39f0 100644 --- a/sys/include/net/gnrc/netif.h +++ b/sys/include/net/gnrc/netif.h @@ -278,7 +278,7 @@ gnrc_netif_t *gnrc_netif_iter(const gnrc_netif_t *prev); gnrc_netif_t *gnrc_netif_get_by_pid(kernel_pid_t pid); /** - * @brief Gets the (unicast on anycast) IPv6 addresss of an interface (if IPv6 + * @brief Gets the (unicast on anycast) IPv6 address of an interface (if IPv6 * is supported) * * @pre `netif != NULL` diff --git a/sys/include/net/gnrc/netif/ipv6.h b/sys/include/net/gnrc/netif/ipv6.h index 94edf3b592..a8b6911025 100644 --- a/sys/include/net/gnrc/netif/ipv6.h +++ b/sys/include/net/gnrc/netif/ipv6.h @@ -11,7 +11,7 @@ * @{ * * @file - * @brief IPv6 defintions for @ref net_gnrc_netif + * @brief IPv6 definitions for @ref net_gnrc_netif * * @author Martine Lenders */ diff --git a/sys/include/net/gnrc/netreg.h b/sys/include/net/gnrc/netreg.h index f2270f2693..a31782483e 100644 --- a/sys/include/net/gnrc/netreg.h +++ b/sys/include/net/gnrc/netreg.h @@ -40,7 +40,7 @@ extern "C" { /** * @brief The type of the netreg entry. * - * Different types are availalbe dependent on the used modules. + * Different types are available dependent on the used modules. */ typedef enum { /** diff --git a/sys/include/net/gnrc/pkt.h b/sys/include/net/gnrc/pkt.h index 74f19fd93a..efa363003c 100644 --- a/sys/include/net/gnrc/pkt.h +++ b/sys/include/net/gnrc/pkt.h @@ -142,7 +142,7 @@ static inline size_t gnrc_pkt_len(const gnrc_pktsnip_t *pkt) } /** - * @brief Calculates length of a packet in byte upto (including) a snip with the given type. + * @brief Calculates length of a packet in byte up to (including) a snip with the given type. * * @param[in] pkt list of packet snips. * @param[in] type type of snip to stop calculation. diff --git a/sys/include/net/gnrc/rpl.h b/sys/include/net/gnrc/rpl.h index 5fb31cba4a..b004af2a58 100644 --- a/sys/include/net/gnrc/rpl.h +++ b/sys/include/net/gnrc/rpl.h @@ -517,15 +517,15 @@ gnrc_rpl_instance_t *gnrc_rpl_root_init(uint8_t instance_id, ipv6_addr_t *dodag_ * @brief Send a DIO of the @p instance to the @p destination. * * @param[in] instance Pointer to the RPL instance. - * @param[in] destination IPv6 addres of the destination. + * @param[in] destination IPv6 address of the destination. */ void gnrc_rpl_send_DIO(gnrc_rpl_instance_t *instance, ipv6_addr_t *destination); /** - * @brief Send a DIS of the @p instace to the @p destination. + * @brief Send a DIS of the @p instance to the @p destination. * * @param[in] instance Pointer to the RPL instance, optional. - * @param[in] destination IPv6 addres of the destination. + * @param[in] destination IPv6 address of the destination. * @param[in] options Pointer to the first option to be attached. * @param[in] num_opts The number of options to attach. */ @@ -536,7 +536,7 @@ void gnrc_rpl_send_DIS(gnrc_rpl_instance_t *instance, ipv6_addr_t *destination, * @brief Send a DAO of the @p dodag to the @p destination. * * @param[in] instance Pointer to the instance. - * @param[in] destination IPv6 addres of the destination. + * @param[in] destination IPv6 address of the destination. * @param[in] lifetime Lifetime of the route to announce. */ void gnrc_rpl_send_DAO(gnrc_rpl_instance_t *instance, ipv6_addr_t *destination, uint8_t lifetime); @@ -545,7 +545,7 @@ void gnrc_rpl_send_DAO(gnrc_rpl_instance_t *instance, ipv6_addr_t *destination, * @brief Send a DAO-ACK of the @p instance to the @p destination. * * @param[in] instance Pointer to the RPL instance. - * @param[in] destination IPv6 addres of the destination. + * @param[in] destination IPv6 address of the destination. * @param[in] seq Sequence number to be acknowledged. */ void gnrc_rpl_send_DAO_ACK(gnrc_rpl_instance_t *instance, ipv6_addr_t *destination, uint8_t seq); diff --git a/sys/include/net/gnrc/rpl/p2p.h b/sys/include/net/gnrc/rpl/p2p.h index 4dbe19b9d2..252586eaa7 100644 --- a/sys/include/net/gnrc/rpl/p2p.h +++ b/sys/include/net/gnrc/rpl/p2p.h @@ -126,7 +126,7 @@ extern const uint8_t gnrc_rpl_p2p_lifetime_lookup[4]; * @param[in] instance_id Id of the instance * @param[in] dodag_id Id of the DODAG * @param[in] target Target of the P2P-RPL routes discovery - * @param[in] gen_inst_id Flag indicating whether to generate a local isntance id. + * @param[in] gen_inst_id Flag indicating whether to generate a local instance id. * If true, @p instance_id will be ignored * * @return Pointer to the new Instance, on success. diff --git a/sys/include/net/gnrc/tcp.h b/sys/include/net/gnrc/tcp.h index 3b33a3c971..797ea1efd4 100644 --- a/sys/include/net/gnrc/tcp.h +++ b/sys/include/net/gnrc/tcp.h @@ -60,7 +60,7 @@ void gnrc_tcp_tcb_init(gnrc_tcp_tcb_t *tcb); * @pre @p target_addr must not be NULL. * @pre @p target_port must not be 0. * - * @note Blocks until a connection has been established or an error occured. + * @note Blocks until a connection has been established or an error occurred. * * @param[in,out] tcb TCB holding the connection information. * @param[in] address_family Address family of @p target_addr. @@ -78,29 +78,29 @@ void gnrc_tcp_tcb_init(gnrc_tcp_tcb_t *tcb); * -ENOMEM if the receive buffer for the TCB could not be allocated. * -EADDRINUSE if @p local_port is already used by another connection. * -ETIMEDOUT if the connection could not be opened. - * -ECONNREFUSED if the connection was resetted by the peer. + * -ECONNREFUSED if the connection was reset by the peer. */ int gnrc_tcp_open_active(gnrc_tcp_tcb_t *tcb, uint8_t address_family, char *target_addr, uint16_t target_port, uint16_t local_port); /** - * @brief Opens a connection passively, by waiting for an incomming request. + * @brief Opens a connection passively, by waiting for an incoming request. * * @pre gnrc_tcp_tcb_init() must have been successfully called. * @pre @p tcb must not be NULL. * @pre if local_addr is not NULL, local_addr must be assigned to a network interface. * @pre if local_port is not zero. * - * @note Blocks until a connection has been established (incomming connection request - * to @p local_port) or an error occured. + * @note Blocks until a connection has been established (incoming connection request + * to @p local_port) or an error occurred. * * @param[in,out] tcb TCB holding the connection information. * @param[in] address_family Address family of @p local_addr. * If local_addr == NULL, address_family is ignored. * @param[in] local_addr If not NULL the connection is bound to @p local_addr. * If NULL a connection request to all local ip - * addresses is valied. + * addresses is valid. * @param[in] local_port Port number to listen on. * * @returns 0 on success. @@ -121,7 +121,7 @@ int gnrc_tcp_open_passive(gnrc_tcp_tcb_t *tcb, uint8_t address_family, * @pre @p tcb must not be NULL. * @pre @p data must not be NULL. * - * @note Blocks until up to @p len bytes were transmitted or an error occured. + * @note Blocks until up to @p len bytes were transmitted or an error occurred. * * @param[in,out] tcb TCB holding the connection information. * @param[in] data Pointer to the data that should be transmitted. @@ -132,7 +132,7 @@ int gnrc_tcp_open_passive(gnrc_tcp_tcb_t *tcb, uint8_t address_family, * * @returns The number of successfully transmitted bytes. * -ENOTCONN if connection is not established. - * -ECONNRESET if connection was resetted by the peer. + * -ECONNRESET if connection was reset by the peer. * -ECONNABORTED if the connection was aborted. * -ETIMEDOUT if @p user_timeout_duration_us expired. */ @@ -163,7 +163,7 @@ ssize_t gnrc_tcp_send(gnrc_tcp_tcb_t *tcb, const void *data, const size_t len, * 0, if the connection is closing and no further data can be read. * -ENOTCONN if connection is not established. * -EAGAIN if user_timeout_duration_us is zero and no data is available. - * -ECONNRESET if connection was resetted by the peer. + * -ECONNRESET if connection was reset by the peer. * -ECONNABORTED if the connection was aborted. * -ETIMEDOUT if @p user_timeout_duration_us expired. */ @@ -196,7 +196,7 @@ void gnrc_tcp_abort(gnrc_tcp_tcb_t *tcb); * @param[in] hdr Gnrc_pktsnip that contains TCP header. * @param[in] pseudo_hdr Gnrc_pktsnip that contains network layer header. * - * @returns 0 on succees. + * @returns 0 on success. * -EFAULT if @p hdr or pseudo_hdr were NULL * -EBADMSG if @p hdr is not of type GNRC_NETTYPE_TCP * -ENOENT if @p pseudo_hdr protocol is unsupported. diff --git a/sys/include/net/gnrc/tcp/config.h b/sys/include/net/gnrc/tcp/config.h index 8237e744f4..b5f7c56f92 100644 --- a/sys/include/net/gnrc/tcp/config.h +++ b/sys/include/net/gnrc/tcp/config.h @@ -41,7 +41,7 @@ extern "C" { #endif /** - * @brief Maximum Segement Size (MSS). + * @brief Maximum Segment Size (MSS). */ #ifndef GNRC_TCP_MSS #ifdef MODULE_GNRC_IPV6 diff --git a/sys/include/net/gnrc/tftp.h b/sys/include/net/gnrc/tftp.h index 5dad010000..0c4110d8a5 100644 --- a/sys/include/net/gnrc/tftp.h +++ b/sys/include/net/gnrc/tftp.h @@ -127,7 +127,7 @@ typedef enum { * * @param [in] action The action the transfer want to perform * @param [in] mode The data mode of the transfer - * @param [in] file_name The filename of the file being transfered + * @param [in] file_name The filename of the file being transferred * @param [in/out] data_len When a read action is performed, the application must give * the total transfer size of the data. When a write action * is performed the total transfer size will be given. diff --git a/sys/include/net/ieee802154.h b/sys/include/net/ieee802154.h index 0f86442b50..19da9c5d64 100644 --- a/sys/include/net/ieee802154.h +++ b/sys/include/net/ieee802154.h @@ -97,7 +97,7 @@ extern "C" { #define IEEE802154_FRAME_LEN_MAX (127U) /**< maximum frame length */ /** - * @brief Special address defintions + * @brief Special address definitions * @{ */ /** @@ -194,7 +194,7 @@ extern const uint8_t ieee802154_addr_bcast[IEEE802154_ADDR_BCAST_LEN]; * Otherwise, it will be ignored, when * @ref IEEE802154_FCF_PAN_COMP is set. * @param[in] dst_pan Destination PAN ID in little-endian. - * @param[in] flags Flags for the frame. These are interchangable with the + * @param[in] flags Flags for the frame. These are interchangeable with the * first byte of the IEEE 802.15.4 FCF. This means that * it encompasses the type values, * @ref IEEE802154_FCF_SECURITY_EN, diff --git a/sys/include/net/ipv6/addr.h b/sys/include/net/ipv6/addr.h index 376d8598fd..c91ac23d48 100644 --- a/sys/include/net/ipv6/addr.h +++ b/sys/include/net/ipv6/addr.h @@ -202,7 +202,7 @@ typedef union { * */ /** - * @brief The address is transient, i.e. not well-known, permanantly + * @brief The address is transient, i.e. not well-known, permanently * assigned address by IANA. */ #define IPV6_ADDR_MCAST_FLAG_TRANSIENT (0x01) @@ -746,16 +746,16 @@ char *ipv6_addr_split_str(char *addr_str, char separator); /** * @brief split IPv6 address string representation * - * @note Will change @p seperator position in @p addr_str to '\0' + * @note Will change @p separator position in @p addr_str to '\0' * * @param[in,out] addr_str Address to split - * @param[in] seperator Seperator char to use + * @param[in] separator Separator char to use * @param[in] _default Default value * * @return atoi(string after split) - * @return @p _default if no string after @p seperator + * @return @p _default if no string after @p separator */ -int ipv6_addr_split_int(char *addr_str, char seperator, int _default); +int ipv6_addr_split_int(char *addr_str, char separator, int _default); /** * @brief split IPv6 prefix string representation diff --git a/sys/include/net/nanocoap.h b/sys/include/net/nanocoap.h index b469f511bc..26806007d2 100644 --- a/sys/include/net/nanocoap.h +++ b/sys/include/net/nanocoap.h @@ -693,7 +693,7 @@ void coap_block_slicer_init(coap_block_slicer_t *slicer, size_t blknum, * @param[in] c byte array to copy * @param[in] len length of the byte array * - * @returns Number of bytes writen to @p bufpos + * @returns Number of bytes written to @p bufpos */ size_t coap_blockwise_put_bytes(coap_block_slicer_t *slicer, uint8_t *bufpos, const uint8_t *c, size_t len); @@ -709,7 +709,7 @@ size_t coap_blockwise_put_bytes(coap_block_slicer_t *slicer, uint8_t *bufpos, * @param[in] bufpos pointer to the current payload buffer position * @param[in] c character to write * - * @returns Number of bytes writen to @p bufpos + * @returns Number of bytes written to @p bufpos */ size_t coap_blockwise_put_char(coap_block_slicer_t *slicer, uint8_t *bufpos, char c); diff --git a/sys/include/net/ppp/hdr.h b/sys/include/net/ppp/hdr.h index bf09e24ba4..679f15ec10 100644 --- a/sys/include/net/ppp/hdr.h +++ b/sys/include/net/ppp/hdr.h @@ -32,7 +32,7 @@ extern "C" { /** * @brief Header of a PPP packet - * @details A PPP packet is transmited as a payload of an HDLC packet. PPP packets only carry information about control protocol + * @details A PPP packet is transmitted as a payload of an HDLC packet. PPP packets only carry information about control protocol * of a PPP stack (Link Control Protocol, IP Control Protocol, etc). IP packets encapsulated in HDLC frame are not * considered PPP packet. * diff --git a/sys/include/net/sixlowpan.h b/sys/include/net/sixlowpan.h index 17e9f0cef8..7e4dcd27df 100644 --- a/sys/include/net/sixlowpan.h +++ b/sys/include/net/sixlowpan.h @@ -13,7 +13,7 @@ * @{ * * @file - * @brief 6LoWPAN dispatch type and helper function definitons. + * @brief 6LoWPAN dispatch type and helper function definitions. * * @author Martine Lenders */ @@ -257,7 +257,7 @@ static inline uint16_t sixlowpan_frag_offset(sixlowpan_frag_n_t *hdr) #define SIXLOWPAN_IPHC1_HL (0x03) /** - * @brief Flag for Context Identifier Extention (part of second byte + * @brief Flag for Context Identifier Extension (part of second byte * of LOWPAN_IPHC). * @see * RFC 6282, section 3.1.1 @@ -316,7 +316,7 @@ static inline uint16_t sixlowpan_frag_offset(sixlowpan_frag_n_t *hdr) #define SIXLOWPAN_IPHC_HDR_LEN (2) /** - * @brief 6LoWPAN context idendifier extension header length + * @brief 6LoWPAN context identifier extension header length */ #define SIXLOWPAN_IPHC_CID_EXT_LEN (1) diff --git a/sys/include/net/sock.h b/sys/include/net/sock.h index b57da9497f..ebf9481c06 100644 --- a/sys/include/net/sock.h +++ b/sys/include/net/sock.h @@ -147,7 +147,7 @@ extern "C" { /** * @brief Special netif ID for "any interface" - * @todo Use an equivalent defintion from PR #5511 + * @todo Use an equivalent definition from PR #5511 */ #define SOCK_ADDR_ANY_NETIF (0) diff --git a/sys/include/net/tcp.h b/sys/include/net/tcp.h index 899893c612..f106302788 100644 --- a/sys/include/net/tcp.h +++ b/sys/include/net/tcp.h @@ -49,7 +49,7 @@ extern "C" { * @brief TCP option "length"-field values. * @{ */ -#define TCP_OPTION_LENGTH_MIN (2U) /**< Mimimum amount of bytes needed for an option with a length field */ +#define TCP_OPTION_LENGTH_MIN (2U) /**< Minimum amount of bytes needed for an option with a length field */ #define TCP_OPTION_LENGTH_MSS (0x04) /**< MSS Option Size always 4 */ /** @} */ diff --git a/sys/include/phydat.h b/sys/include/phydat.h index 3d9c2e65fd..1433e65579 100644 --- a/sys/include/phydat.h +++ b/sys/include/phydat.h @@ -124,7 +124,7 @@ enum { /** * @brief Generic data structure for expressing physical values * - * Physical data is expressed in a 3-dimensional touple of values. In addition + * Physical data is expressed in a 3-dimensional tuple of values. In addition * to the data fields, this struct contains further the (physical) unit and the * scale factor of the data. The unit is expressed as constant. The scale factor * is expressed as power of 10 (10^factor). diff --git a/sys/include/puf_sram.h b/sys/include/puf_sram.h index 74abe2576f..652a54b18a 100644 --- a/sys/include/puf_sram.h +++ b/sys/include/puf_sram.h @@ -61,7 +61,7 @@ extern uint32_t puf_sram_state; calls @p puf_sram_generate * * @param[in] ram pointer to SRAM memory - * @param[in] len length of the memroy to consider + * @param[in] len length of the memory to consider * */ void puf_sram_init(const uint8_t *ram, size_t len); @@ -71,7 +71,7 @@ void puf_sram_init(const uint8_t *ram, size_t len); * to the global variable @p puf_sram_seed and returns the value * * @param[in] ram pointer to SRAM memory - * @param[in] len length of the memroy to consider + * @param[in] len length of the memory to consider */ void puf_sram_generate(const uint8_t *ram, size_t len); diff --git a/sys/include/suit/v4/suit.h b/sys/include/suit/v4/suit.h index 889e934be4..d0e3354dcc 100644 --- a/sys/include/suit/v4/suit.h +++ b/sys/include/suit/v4/suit.h @@ -266,7 +266,7 @@ int suit_cbor_subparse(nanocbor_value_t *bseq, nanocbor_value_t *it); * @param[in] offset offset to write to on flash * @param[in] buf bytes to write * @param[in] len length of bytes to write - * @param[in] more whether more data is comming + * @param[in] more whether more data is coming * * @return 0 on success * @return <0 on error diff --git a/sys/include/tm.h b/sys/include/tm.h index ab954d529c..131995a918 100644 --- a/sys/include/tm.h +++ b/sys/include/tm.h @@ -77,7 +77,7 @@ int tm_doomsday(int year) CONST; /** * @brief Calculates the day of the year and the weekday of a given date. - * @details Illegal dates are not catched. + * @details Illegal dates are not caught. * @param[in] year The year. Probably should be ≥ 1582, but needs to be ≥ 1. * @param[in] mon The month, TM_MON_JAN to TM_MON_DEC. * @param[in] mday The day in the month, 1 to 31. diff --git a/sys/include/universal_address.h b/sys/include/universal_address.h index 1228ea6225..9f6c4bcdc5 100644 --- a/sys/include/universal_address.h +++ b/sys/include/universal_address.h @@ -101,7 +101,7 @@ void universal_address_rem(universal_address_container_t *entry); * this value is overwritten with the actual size required * * @return addr if the address is copied to the addr destination - * @return NULL if the size is unsufficient for copy + * @return NULL if the size is insufficient for copy */ uint8_t* universal_address_get_address(universal_address_container_t *entry, uint8_t *addr, size_t *addr_size); @@ -114,7 +114,7 @@ uint8_t* universal_address_get_address(universal_address_container_t *entry, * @param[in] entry pointer to the universal_address_container_t for compare * @param[in] addr pointer to the address for compare * @param[in, out] addr_size_in_bits the number of bits used for the address entry - * on sucessfull return this value is overwritten + * on successful return this value is overwritten * with the number of matching bits till the * first of trailing `0`s * @@ -123,7 +123,7 @@ uint8_t* universal_address_get_address(universal_address_container_t *entry, * (trailing '0's in @p entry) * @return UNIVERSAL_ADDRESS_IS_ALL_ZERO_ADDRESS if the entry address is all `0`s * and considered as default route - * @return -ENOENT if the given adresses do not match + * @return -ENOENT if the given addresses do not match */ int universal_address_compare(universal_address_container_t *entry, uint8_t *addr, size_t *addr_size_in_bits); @@ -145,7 +145,7 @@ int universal_address_compare(universal_address_container_t *entry, * @return UNIVERSAL_ADDRESS_EQUAL if the entries are equal * @return UNIVERSAL_ADDRESS_MATCHING_PREFIX if the entry matches to a certain prefix * (trailing '0's in @p prefix) -* @return -ENOENT if the given adresses do not match +* @return -ENOENT if the given addresses do not match */ int universal_address_compare_prefix(universal_address_container_t *entry, uint8_t *prefix, size_t prefix_size_in_bits); diff --git a/sys/include/usb/usbus/control.h b/sys/include/usb/usbus/control.h index 75ebb1d171..ed4ea56221 100644 --- a/sys/include/usb/usbus/control.h +++ b/sys/include/usb/usbus/control.h @@ -35,7 +35,7 @@ typedef struct { size_t start; /**< Start offset of the current part */ size_t cur; /**< Current position in the message */ size_t len; /**< Length of the full message */ - size_t transferred; /**< Number of bytes transferred */ + size_t transferred; /**< Number of bytes transferred */ size_t reqlen; /**< Maximum length of the request */ } usbus_control_slicer_t; diff --git a/sys/include/uuid.h b/sys/include/uuid.h index ac050278aa..65063c9fb8 100644 --- a/sys/include/uuid.h +++ b/sys/include/uuid.h @@ -156,7 +156,7 @@ void uuid_to_string(const uuid_t *uuid, char *str); * @param[out] uuid out UUID * @param[in] str null-terminated input UUID string, must be UUID_STR_LEN bytes * - * @return 0 on succes, < 0 if @p str is not valid + * @return 0 on success, < 0 if @p str is not valid */ int uuid_from_string(uuid_t *uuid, const char *str); diff --git a/sys/include/xtimer.h b/sys/include/xtimer.h index 19321c010b..61648f9f10 100644 --- a/sys/include/xtimer.h +++ b/sys/include/xtimer.h @@ -500,7 +500,7 @@ static inline int xtimer_msg_receive_timeout64(msg_t *msg, uint64_t timeout); * (in callback:) * overhead=xtimer_now()-start-X; * - * xtimer automatically substracts XTIMER_OVERHEAD from a timer's target time, + * xtimer automatically subtracts XTIMER_OVERHEAD from a timer's target time, * but when the timer triggers, xtimer will spin-lock until a timer's target * time is reached, so timers will never trigger early. * diff --git a/sys/irq_handler/irq_handler.c b/sys/irq_handler/irq_handler.c index 34370beb7a..f4859a2acc 100644 --- a/sys/irq_handler/irq_handler.c +++ b/sys/irq_handler/irq_handler.c @@ -75,7 +75,7 @@ int irq_event_add(irq_event_t * irq) _irq_loop, NULL, "irq_handler"); assert(_irq_handler_thread != KERNEL_PID_UNDEF); - /* intialize the queue unbind */ + /* initialize the queue unbind */ event_queue_init_detached(&irq_queue); } diff --git a/sys/net/application_layer/gcoap/gcoap.c b/sys/net/application_layer/gcoap/gcoap.c index 8913ef517b..201560ab12 100644 --- a/sys/net/application_layer/gcoap/gcoap.c +++ b/sys/net/application_layer/gcoap/gcoap.c @@ -311,7 +311,7 @@ static size_t _handle_req(coap_pkt_t *pdu, uint8_t *buf, size_t len, } /* initialize new registration request */ if ((memo == NULL) && coap_has_observe(pdu)) { - /* verify resource not already registerered (for another endpoint) */ + /* verify resource not already registered (for another endpoint) */ if ((empty_slot >= 0) && (resource_memo == NULL)) { int obs_slot = _find_observer(&observer, remote); /* cache new observer */ diff --git a/sys/net/application_layer/nanocoap/nanocoap.c b/sys/net/application_layer/nanocoap/nanocoap.c index d5986a7532..dffcf31cdd 100644 --- a/sys/net/application_layer/nanocoap/nanocoap.c +++ b/sys/net/application_layer/nanocoap/nanocoap.c @@ -667,7 +667,7 @@ static unsigned _size2szx(size_t size) { assert(size <= 1024); - /* We must wait to subract the szx offset of 4 until after the assert below. + /* We must wait to subtract the szx offset of 4 until after the assert below. * Input should be a power of two, but if not it may have a stray low order * '1' bit that would invalidate the subtraction. */ unsigned szx = bitarithm_lsb(size); diff --git a/sys/net/gnrc/application_layer/tftp/gnrc_tftp.c b/sys/net/gnrc/application_layer/tftp/gnrc_tftp.c index a5647a51ce..c04c495191 100644 --- a/sys/net/gnrc/application_layer/tftp/gnrc_tftp.c +++ b/sys/net/gnrc/application_layer/tftp/gnrc_tftp.c @@ -490,7 +490,7 @@ int _tftp_server(tftp_context_t *ctxt) break; } else { - /* continue normal server opration */ + /* continue normal server operation */ DEBUG("tftp: message incoming\n"); ret = _tftp_state_processes(ctxt, &msg); @@ -576,7 +576,7 @@ tftp_state _tftp_state_processes(tftp_context_t *ctxt, msg_t *m) return _tftp_send_start(ctxt, outbuf); } else if (m->type == TFTP_TIMEOUT_MSG) { - DEBUG("tftp: timeout occured\n"); + DEBUG("tftp: timeout occurred\n"); if (++(ctxt->retries) > GNRC_TFTP_MAX_RETRIES) { /* transfer failed due to lost peer */ DEBUG("tftp: peer lost\n"); diff --git a/sys/net/gnrc/link_layer/gomach/gomach.c b/sys/net/gnrc/link_layer/gomach/gomach.c index b0cdebfedf..57649d590b 100644 --- a/sys/net/gnrc/link_layer/gomach/gomach.c +++ b/sys/net/gnrc/link_layer/gomach/gomach.c @@ -305,7 +305,7 @@ static void gomach_wait_bcast_tx_finish(gnrc_netif_t *netif) } /* This is to handle no-TX-complete issue. In case there is no no-TX-complete event, - * we will quit broadcasting, i.e., not getting stucked here. */ + * we will quit broadcasting, i.e., not getting stuck here. */ if (gnrc_gomach_timeout_is_expired(netif, GNRC_GOMACH_TIMEOUT_BCAST_FINISH)) { gnrc_gomach_clear_timeout(netif, GNRC_GOMACH_TIMEOUT_BCAST_INTERVAL); netif->mac.tx.bcast_state = GNRC_GOMACH_BCAST_END; @@ -1104,7 +1104,7 @@ static void gomach_t2u_wait_preamble_tx(gnrc_netif_t *netif) /* This is mainly to handle no-TX-complete error. Once the max preamble interval * timeout expired here (i.e., no-TX-complete error), we will quit waiting here - * and go to send the next preamble, thus the MAC will not get stucked here. */ + * and go to send the next preamble, thus the MAC will not get stuck here. */ if (gnrc_gomach_timeout_is_expired(netif, GNRC_GOMACH_TIMEOUT_MAX_PREAM_INTERVAL)) { gnrc_priority_pktqueue_flush(&netif->mac.rx.queue); netif->mac.tx.t2u_state = GNRC_GOMACH_T2U_PREAMBLE_PREPARE; diff --git a/sys/net/gnrc/link_layer/gomach/gomach_internal.c b/sys/net/gnrc/link_layer/gomach/gomach_internal.c index b9270fc7e3..78f325d91b 100644 --- a/sys/net/gnrc/link_layer/gomach/gomach_internal.c +++ b/sys/net/gnrc/link_layer/gomach/gomach_internal.c @@ -747,7 +747,7 @@ void gnrc_gomach_cp_packet_process(gnrc_netif_t *netif) gnrc_gomach_packet_info_t receive_packet_info; while ((pkt = gnrc_priority_pktqueue_pop(&netif->mac.rx.queue)) != NULL) { - /* Parse the received packet, fetch key MAC informations. */ + /* Parse the received packet, fetch key MAC information. */ int res = _parse_packet(netif, pkt, &receive_packet_info); if (res != 0) { LOG_DEBUG("[GOMACH] CP: Packet could not be parsed: %i\n", res); diff --git a/sys/net/gnrc/link_layer/lwmac/lwmac.c b/sys/net/gnrc/link_layer/lwmac/lwmac.c index 1e7216f260..a293dcfcfd 100644 --- a/sys/net/gnrc/link_layer/lwmac/lwmac.c +++ b/sys/net/gnrc/link_layer/lwmac/lwmac.c @@ -827,7 +827,7 @@ static void _lwmac_event_cb(netdev_t *dev, netdev_event_t event) } } - /* Execute main state machine because something just happend*/ + /* Execute main state machine because something just happened*/ while (gnrc_lwmac_get_reschedule(netif)) { lwmac_update(netif); } @@ -843,7 +843,7 @@ static int _send(gnrc_netif_t *netif, gnrc_pktsnip_t *pkt) lwmac_schedule_update(netif); - /* Execute main state machine because something just happend*/ + /* Execute main state machine because something just happened*/ while (gnrc_lwmac_get_reschedule(netif)) { lwmac_update(netif); } @@ -891,7 +891,7 @@ static void _lwmac_msg_handler(gnrc_netif_t *netif, msg_t *msg) } } - /* Execute main state machine because something just happend*/ + /* Execute main state machine because something just happened*/ while (gnrc_lwmac_get_reschedule(netif)) { lwmac_update(netif); } diff --git a/sys/net/gnrc/link_layer/lwmac/tx_state_machine.c b/sys/net/gnrc/link_layer/lwmac/tx_state_machine.c index 9c18f5c099..545ebb30a8 100644 --- a/sys/net/gnrc/link_layer/lwmac/tx_state_machine.c +++ b/sys/net/gnrc/link_layer/lwmac/tx_state_machine.c @@ -118,7 +118,7 @@ static uint8_t _send_bcast(gnrc_netif_t *netif) gnrc_pktbuf_release(netif->mac.tx.packet); LOG_WARNING("WARNING: [LWMAC-tx] TX queue full, drop packet\n"); } - /* drop pointer so it wont be free'd */ + /* drop pointer so it won't be free'd */ netif->mac.tx.packet = NULL; tx_info |= GNRC_LWMAC_TX_FAIL; return tx_info; @@ -158,7 +158,7 @@ static uint8_t _send_wr(gnrc_netif_t *netif) gnrc_pktbuf_release(netif->mac.tx.packet); LOG_WARNING("WARNING: [LWMAC-tx] TX queue full, drop packet\n"); } - /* drop pointer so it wont be free'd */ + /* drop pointer so it won't be free'd */ netif->mac.tx.packet = NULL; tx_info |= GNRC_LWMAC_TX_FAIL; return tx_info; @@ -271,7 +271,7 @@ static uint8_t _packet_process_in_wait_for_wa(gnrc_netif_t *netif) gnrc_pktbuf_release(netif->mac.tx.packet); LOG_WARNING("WARNING: [LWMAC-tx] TX queue full, drop packet\n"); } - /* drop pointer so it wont be free'd */ + /* drop pointer so it won't be free'd */ netif->mac.tx.packet = NULL; postponed = true; gnrc_pktbuf_release(pkt); @@ -285,7 +285,7 @@ static uint8_t _packet_process_in_wait_for_wa(gnrc_netif_t *netif) gnrc_pktbuf_release(netif->mac.tx.packet); LOG_WARNING("WARNING: [LWMAC-tx] TX queue full, drop packet\n"); } - /* drop pointer so it wont be free'd */ + /* drop pointer so it won't be free'd */ netif->mac.tx.packet = NULL; postponed = true; gnrc_pktbuf_release(pkt); @@ -441,7 +441,7 @@ static bool _send_data(gnrc_netif_t *netif) gnrc_pktbuf_release(netif->mac.tx.packet); LOG_WARNING("WARNING: [LWMAC-tx] TX queue full, drop packet\n"); } - /* drop pointer so it wont be free'd */ + /* drop pointer so it won't be free'd */ netif->mac.tx.packet = NULL; return false; } @@ -545,7 +545,7 @@ static bool _lwmac_tx_update(gnrc_netif_t *netif) gnrc_pktbuf_release(netif->mac.tx.packet); LOG_WARNING("WARNING: [LWMAC-tx] TX queue full, drop packet\n"); } - /* drop pointer so it wont be free'd */ + /* drop pointer so it won't be free'd */ netif->mac.tx.packet = NULL; netif->mac.tx.state = GNRC_LWMAC_TX_STATE_FAILED; reschedule = true; @@ -699,7 +699,7 @@ static bool _lwmac_tx_update(gnrc_netif_t *netif) gnrc_pktbuf_release(netif->mac.tx.packet); LOG_WARNING("WARNING: [LWMAC-tx] TX queue full, drop packet\n"); } - /* drop pointer so it wont be free'd */ + /* drop pointer so it won't be free'd */ netif->mac.tx.packet = NULL; netif->mac.tx.state = GNRC_LWMAC_TX_STATE_FAILED; diff --git a/sys/net/gnrc/network_layer/icmpv6/error/gnrc_icmpv6_error.c b/sys/net/gnrc/network_layer/icmpv6/error/gnrc_icmpv6_error.c index bbe02165a5..d5a91c014e 100644 --- a/sys/net/gnrc/network_layer/icmpv6/error/gnrc_icmpv6_error.c +++ b/sys/net/gnrc/network_layer/icmpv6/error/gnrc_icmpv6_error.c @@ -32,7 +32,7 @@ /** * @brief Get packet fit. * - * Get's the minimum size for an ICMPv6 error message packet, based on the + * Gets the minimum size for an ICMPv6 error message packet, based on the * invoking packet's size and the interface the invoking packet came over. * * @param[in] orig_pkt The invoking packet diff --git a/sys/net/gnrc/network_layer/ipv6/ext/frag/gnrc_ipv6_ext_frag.c b/sys/net/gnrc/network_layer/ipv6/ext/frag/gnrc_ipv6_ext_frag.c index 97704a9fa0..d694dae67c 100644 --- a/sys/net/gnrc/network_layer/ipv6/ext/frag/gnrc_ipv6_ext_frag.c +++ b/sys/net/gnrc/network_layer/ipv6/ext/frag/gnrc_ipv6_ext_frag.c @@ -96,7 +96,7 @@ static void _snd_buf_free(gnrc_ipv6_ext_frag_send_t *snd_buf); static void _snd_buf_del(gnrc_ipv6_ext_frag_send_t *snd_buf); /** - * @brief Dermines the last Per-Fragment extension header of a datagram. + * @brief Determines the last Per-Fragment extension header of a datagram. * * @see [RFC 8200, section 4.5](https://tools.ietf.org/html/rfc8200#section-4.5) * for definition of _Per-Fragment extension header_ diff --git a/sys/net/gnrc/network_layer/ipv6/gnrc_ipv6.c b/sys/net/gnrc/network_layer/ipv6/gnrc_ipv6.c index b261eba07e..9edb473d82 100644 --- a/sys/net/gnrc/network_layer/ipv6/gnrc_ipv6.c +++ b/sys/net/gnrc/network_layer/ipv6/gnrc_ipv6.c @@ -830,7 +830,7 @@ static void _receive(gnrc_pktsnip_t *pkt) first_nh, byteorder_ntohs(hdr->len)); if ((pkt = gnrc_ipv6_ext_process_hopopt(pkt, &first_nh)) == NULL) { - DEBUG("ipv6: packet's extension header was errorneous or packet was " + DEBUG("ipv6: packet's extension header was erroneous or packet was " "consumed due to it\n"); return; } diff --git a/sys/net/gnrc/network_layer/ipv6/nib/_nib-internal.h b/sys/net/gnrc/network_layer/ipv6/nib/_nib-internal.h index fbd773351a..114a850827 100644 --- a/sys/net/gnrc/network_layer/ipv6/nib/_nib-internal.h +++ b/sys/net/gnrc/network_layer/ipv6/nib/_nib-internal.h @@ -251,7 +251,7 @@ extern evtimer_msg_t _nib_evtimer; * * This value is returned by @ref @_nib_drl_get_dr() when it is not NULL and it * is reachable. Otherwise it is selected with the [default router selection - * algoritm](https://tools.ietf.org/html/rfc4861#section-6.3.6) by that function. + * algorithm](https://tools.ietf.org/html/rfc4861#section-6.3.6) by that function. * Exposed to be settable by @ref net_gnrc_ipv6_nib_ft. */ extern _nib_dr_entry_t *_prime_def_router; diff --git a/sys/net/gnrc/network_layer/ipv6/nib/nib.c b/sys/net/gnrc/network_layer/ipv6/nib/nib.c index 352106e550..e2e847e9fd 100644 --- a/sys/net/gnrc/network_layer/ipv6/nib/nib.c +++ b/sys/net/gnrc/network_layer/ipv6/nib/nib.c @@ -1284,7 +1284,7 @@ static void _handle_rtr_timeout(_nib_dr_entry_t *router) route->mode = _EMPTY; route->next_hop->mode &= ~_DST; _nib_offl_clear(route); - /* XXX routing protocol get's informed in case NUD + /* XXX routing protocol gets informed in case NUD * determines ipv6->src (still in neighbor cache) to be * unreachable */ } diff --git a/sys/net/gnrc/network_layer/ndp/gnrc_ndp.c b/sys/net/gnrc/network_layer/ndp/gnrc_ndp.c index 5110065529..69ad62c00e 100644 --- a/sys/net/gnrc/network_layer/ndp/gnrc_ndp.c +++ b/sys/net/gnrc/network_layer/ndp/gnrc_ndp.c @@ -375,7 +375,7 @@ void gnrc_ndp_nbr_adv_send(const ipv6_addr_t *tgt, gnrc_netif_t *netif, pkt = hdr; } } - /* TODO: also check if the node provides proxy servies for tgt */ + /* TODO: also check if the node provides proxy services for tgt */ if ((pkt != NULL) && (netif->ipv6.addrs_flags[tgt_idx] & GNRC_NETIF_IPV6_ADDRS_FLAGS_ANYCAST)) { diff --git a/sys/net/gnrc/network_layer/sixlowpan/gnrc_sixlowpan.c b/sys/net/gnrc/network_layer/sixlowpan/gnrc_sixlowpan.c index 3c77d07643..6ecd314af6 100644 --- a/sys/net/gnrc/network_layer/sixlowpan/gnrc_sixlowpan.c +++ b/sys/net/gnrc/network_layer/sixlowpan/gnrc_sixlowpan.c @@ -221,7 +221,7 @@ static void _receive(gnrc_pktsnip_t *pkt) #endif #ifdef MODULE_GNRC_SIXLOWPAN_IPHC else if (sixlowpan_iphc_is(dispatch)) { - DEBUG("6lo: received 6LoWPAN IPHC comressed datagram\n"); + DEBUG("6lo: received 6LoWPAN IPHC compressed datagram\n"); gnrc_sixlowpan_iphc_recv(pkt, NULL, 0); return; } diff --git a/sys/net/gnrc/routing/rpl/srh/gnrc_rpl_srh.c b/sys/net/gnrc/routing/rpl/srh/gnrc_rpl_srh.c index 1bf47f5dc0..b5e53347b7 100644 --- a/sys/net/gnrc/routing/rpl/srh/gnrc_rpl_srh.c +++ b/sys/net/gnrc/routing/rpl/srh/gnrc_rpl_srh.c @@ -102,7 +102,7 @@ int gnrc_rpl_srh_process(ipv6_hdr_t *ipv6, gnrc_rpl_srh_t *rh, void **err_ptr) return GNRC_IPV6_EXT_RH_ERROR; } if (ipv6_addr_is_multicast(&addr)) { - DEBUG("RPL SRH: found a multicast addres in next address - discard\n"); + DEBUG("RPL SRH: found a multicast address in next address - discard\n"); return GNRC_IPV6_EXT_RH_ERROR; } diff --git a/sys/net/gnrc/transport_layer/tcp/gnrc_tcp.c b/sys/net/gnrc/transport_layer/tcp/gnrc_tcp.c index a45be10b82..bfca39f258 100644 --- a/sys/net/gnrc/transport_layer/tcp/gnrc_tcp.c +++ b/sys/net/gnrc/transport_layer/tcp/gnrc_tcp.c @@ -113,7 +113,7 @@ static void _setup_timeout(xtimer_t *timer, const uint32_t duration, const xtime * -ENOMEM if the receive buffer for the TCB could not be allocated. * -EADDRINUSE if @p local_port is already in use. * -ETIMEDOUT if the connection opening timed out. - * -ECONNREFUSED if the connection was resetted by the peer. + * -ECONNREFUSED if the connection was reset by the peer. */ static int _gnrc_tcp_open(gnrc_tcp_tcb_t *tcb, char *target_addr, uint16_t target_port, const char *local_addr, uint16_t local_port, uint8_t passive) @@ -132,7 +132,7 @@ static int _gnrc_tcp_open(gnrc_tcp_tcb_t *tcb, char *target_addr, uint16_t targe return -EISCONN; } - /* Mark TCB as waiting for incomming messages */ + /* Mark TCB as waiting for incoming messages */ tcb->status |= STATUS_WAIT_FOR_MSG; /* 'Flush' mbox */ @@ -155,7 +155,7 @@ static int _gnrc_tcp_open(gnrc_tcp_tcb_t *tcb, char *target_addr, uint16_t targe } } #else - /* Supress Compiler Warnings */ + /* Suppress Compiler Warnings */ (void) target_addr; #endif /* Set port number to listen on */ @@ -180,7 +180,7 @@ static int _gnrc_tcp_open(gnrc_tcp_tcb_t *tcb, char *target_addr, uint16_t targe } } #endif - /* Assign port numbers, verfication happens in fsm */ + /* Assign port numbers, verification happens in fsm */ tcb->local_port = local_port; tcb->peer_port = target_port; @@ -359,7 +359,7 @@ ssize_t gnrc_tcp_send(gnrc_tcp_tcb_t *tcb, const void *data, const size_t len, return -ENOTCONN; } - /* Mark TCB as waiting for incomming messages */ + /* Mark TCB as waiting for incoming messages */ tcb->status |= STATUS_WAIT_FOR_MSG; /* 'Flush' mbox */ @@ -421,7 +421,7 @@ ssize_t gnrc_tcp_send(gnrc_tcp_tcb_t *tcb, const void *data, const size_t len, _fsm(tcb, FSM_EVENT_SEND_PROBE, NULL, NULL, 0); probe_timeout_duration_us += probe_timeout_duration_us; - /* Boundry check for time interval between probes */ + /* Boundary check for time interval between probes */ if (probe_timeout_duration_us < GNRC_TCP_PROBE_LOWER_BOUND) { probe_timeout_duration_us = GNRC_TCP_PROBE_LOWER_BOUND; } @@ -499,7 +499,7 @@ ssize_t gnrc_tcp_recv(gnrc_tcp_tcb_t *tcb, void *data, const size_t max_len, return ret; } - /* Mark TCB as waiting for incomming messages */ + /* Mark TCB as waiting for incoming messages */ tcb->status |= STATUS_WAIT_FOR_MSG; /* 'Flush' mbox */ @@ -580,7 +580,7 @@ void gnrc_tcp_close(gnrc_tcp_tcb_t *tcb) return; } - /* Mark TCB as waiting for incomming messages */ + /* Mark TCB as waiting for incoming messages */ tcb->status |= STATUS_WAIT_FOR_MSG; /* 'Flush' mbox */ diff --git a/sys/net/gnrc/transport_layer/tcp/gnrc_tcp_eventloop.c b/sys/net/gnrc/transport_layer/tcp/gnrc_tcp_eventloop.c index d478ba849d..d448efa945 100644 --- a/sys/net/gnrc/transport_layer/tcp/gnrc_tcp_eventloop.c +++ b/sys/net/gnrc/transport_layer/tcp/gnrc_tcp_eventloop.c @@ -37,9 +37,9 @@ static msg_t _eventloop_msg_queue[TCP_EVENTLOOP_MSG_QUEUE_SIZE]; /** - * @brief Send function, pass paket down the network stack. + * @brief Send function, pass packet down the network stack. * - * @param[in] pkt Paket to send. + * @param[in] pkt Packet to send. * * @returns Zero on success. * Negative value on error. @@ -86,13 +86,13 @@ static int _send(gnrc_pktsnip_t *pkt) /** * @brief Receive function, receive packet from network layer. * - * @param[in] pkt Incomming paket. + * @param[in] pkt Incoming packet. * * @returns Zero on success. * Negative value on error. - * -EACCES if write access to packet was not aquired. + * -EACCES if write access to packet was not acquired. * -ERANGE if segment offset value is less than 5. - * -ENOMSG if paket couldn't be marked. + * -ENOMSG if packet couldn't be marked. * -EINVAL if checksum was invalid. * -ENOTCONN if no TCB is interested in @p pkt. */ @@ -183,7 +183,7 @@ static int _receive(gnrc_pktsnip_t *pkt) tcb = _list_tcb_head; while (tcb) { #ifdef MODULE_GNRC_IPV6 - /* Check if current TCB is fitting for the incomming packet */ + /* Check if current TCB is fitting for the incoming packet */ if (ip->type == GNRC_NETTYPE_IPV6 && tcb->address_family == AF_INET6) { /* If SYN is set, a connection is listening on that port ... */ ipv6_addr_t *tmp_addr = NULL; @@ -206,7 +206,7 @@ static int _receive(gnrc_pktsnip_t *pkt) } } #else - /* Supress compiler warnings if TCP is build without network layer */ + /* Suppress compiler warnings if TCP is built without network layer */ (void) syn; (void) src; (void) dst; @@ -225,7 +225,7 @@ static int _receive(gnrc_pktsnip_t *pkt) if ((ctl & MSK_RST) != MSK_RST) { _pkt_build_reset_from_pkt(&reset, pkt); if (gnrc_netapi_send(gnrc_tcp_pid, reset) < 1) { - DEBUG("gnrc_tcp_eventloop.c : _receive() : unable to send reset paket\n"); + DEBUG("gnrc_tcp_eventloop.c : _receive() : unable to send reset packet\n"); gnrc_pktbuf_release(reset); } } diff --git a/sys/net/gnrc/transport_layer/tcp/gnrc_tcp_fsm.c b/sys/net/gnrc/transport_layer/tcp/gnrc_tcp_fsm.c index 09cbe23d39..6843760ee8 100644 --- a/sys/net/gnrc/transport_layer/tcp/gnrc_tcp_fsm.c +++ b/sys/net/gnrc/transport_layer/tcp/gnrc_tcp_fsm.c @@ -131,7 +131,7 @@ static int _transition_to(gnrc_tcp_tcb_t *tcb, fsm_state_t state) LL_DELETE(_list_tcb_head, tcb); mutex_unlock(&_list_tcb_lock); - /* Free potencially allocated receive buffer */ + /* Free potentially allocated receive buffer */ _rcvbuf_release_buffer(tcb); tcb->status |= STATUS_NOTIFY_USER; break; @@ -384,10 +384,10 @@ static int _fsm_call_abort(gnrc_tcp_tcb_t *tcb) } /** - * @brief FSM handling function for processing of an incomming TCP packet. + * @brief FSM handling function for processing of an incoming TCP packet. * * @param[in,out] tcb TCB holding the connection information. - * @param[in] in_pkt Incomming packet. + * @param[in] in_pkt Incoming packet. * * @returns Zero on success. * -ENOMEM if receive buffer could not be allocated. @@ -398,12 +398,12 @@ static int _fsm_rcvd_pkt(gnrc_tcp_tcb_t *tcb, gnrc_pktsnip_t *in_pkt) uint16_t seq_con = 0; /* Sequence number consumption of outgoing packet */ gnrc_pktsnip_t *snp = NULL; /* Temporary packet snip */ gnrc_tcp_tcb_t *lst = NULL; /* Temporary pointer to TCB */ - uint16_t ctl = 0; /* Control bits of the incomming packet */ - uint32_t seg_seq = 0; /* Sequence number of the incomming packet*/ - uint32_t seg_ack = 0; /* Acknowledgment number of the incomming packet */ - uint32_t seg_wnd = 0; /* Receive window of the incomming packet */ - uint32_t seg_len = 0; /* Segment length of the incomming packet */ - uint32_t pay_len = 0; /* Payload length of the incomming packet */ + uint16_t ctl = 0; /* Control bits of the incoming packet */ + uint32_t seg_seq = 0; /* Sequence number of the incoming packet*/ + uint32_t seg_ack = 0; /* Acknowledgment number of the incoming packet */ + uint32_t seg_wnd = 0; /* Receive window of the incoming packet */ + uint32_t seg_len = 0; /* Segment length of the incoming packet */ + uint32_t pay_len = 0; /* Payload length of the incoming packet */ DEBUG("gnrc_tcp_fsm.c : _fsm_rcvd_pkt()\n"); /* Search for TCP header. */ @@ -425,7 +425,7 @@ static int _fsm_rcvd_pkt(gnrc_tcp_tcb_t *tcb, gnrc_pktsnip_t *in_pkt) #ifdef MODULE_GNRC_IPV6 LL_SEARCH_SCALAR(in_pkt, snp, type, GNRC_NETTYPE_IPV6); if (snp == NULL) { - DEBUG("gnrc_tcp_fsm.c : _fsm_rcvd_pkt() : incomming packet had no IPv6 header\n"); + DEBUG("gnrc_tcp_fsm.c : _fsm_rcvd_pkt() : incoming packet had no IPv6 header\n"); return 0; } void *ip = snp->data; @@ -443,7 +443,7 @@ static int _fsm_rcvd_pkt(gnrc_tcp_tcb_t *tcb, gnrc_pktsnip_t *in_pkt) _pkt_send(tcb, out_pkt, 0, false); return 0; } - /* 3) Check SYN: if SYN is set prepare for incomming connection */ + /* 3) Check SYN: if SYN is set prepare for incoming connection */ if (ctl & MSK_SYN) { uint16_t src = byteorder_ntohs(tcp_hdr->src_port); uint16_t dst = byteorder_ntohs(tcp_hdr->dst_port); @@ -451,7 +451,7 @@ static int _fsm_rcvd_pkt(gnrc_tcp_tcb_t *tcb, gnrc_pktsnip_t *in_pkt) /* Check if SYN request is handled by another connection */ lst = _list_tcb_head; while (lst) { - /* Compare port numbers and network layer adresses */ + /* Compare port numbers and network layer addresses */ if (lst->local_port == dst && lst->peer_port == src) { #ifdef MODULE_GNRC_IPV6 if (snp->type == GNRC_NETTYPE_IPV6 && lst->address_family == AF_INET6) { @@ -487,7 +487,7 @@ static int _fsm_rcvd_pkt(gnrc_tcp_tcb_t *tcb, gnrc_pktsnip_t *in_pkt) * (reason: tmp *can* be != NULL after LL_SEARCH_SCALAR) */ if (tmp == NULL) { DEBUG("gnrc_tcp_fsm.c : _fsm_rcvd_pkt() :\ - incomming packet had no netif header\n"); + incoming packet had no netif header\n"); return 0; } tcb->ll_iface = ((gnrc_netif_hdr_t *)tmp->data)->if_pid; @@ -655,7 +655,7 @@ static int _fsm_rcvd_pkt(gnrc_tcp_tcb_t *tcb, gnrc_pktsnip_t *in_pkt) } } /* Additional processing */ - /* Check additionaly if previously sent FIN was acknowledged */ + /* Check additionally if previously sent FIN was acknowledged */ if (tcb->state == FSM_STATE_FIN_WAIT_1) { if (tcb->pkt_retransmit == NULL) { _transition_to(tcb, FSM_STATE_FIN_WAIT_2); @@ -896,7 +896,7 @@ int _fsm(gnrc_tcp_tcb_t *tcb, fsm_event_t event, gnrc_pktsnip_t *in_pkt, void *b tcb->status &= ~STATUS_NOTIFY_USER; int32_t result = _fsm_unprotected(tcb, event, in_pkt, buf, len); - /* Notify blocked thread if something interesting happend */ + /* Notify blocked thread if something interesting happened */ if ((tcb->status & STATUS_NOTIFY_USER) && (tcb->status & STATUS_WAIT_FOR_MSG)) { msg_t msg; msg.type = MSG_TYPE_NOTIFY_USER; diff --git a/sys/net/gnrc/transport_layer/tcp/gnrc_tcp_pkt.c b/sys/net/gnrc/transport_layer/tcp/gnrc_tcp_pkt.c index 802bf1d1c7..984f8681bc 100644 --- a/sys/net/gnrc/transport_layer/tcp/gnrc_tcp_pkt.c +++ b/sys/net/gnrc/transport_layer/tcp/gnrc_tcp_pkt.c @@ -313,7 +313,7 @@ int _pkt_chk_seq_num(const gnrc_tcp_tcb_t *tcb, const uint32_t seq_num, const ui return 0; } - /* Everthing else is not acceptable */ + /* Everything else is not acceptable */ return -1; } @@ -403,7 +403,7 @@ int _pkt_setup_retransmit(gnrc_tcp_tcb_t *tcb, gnrc_pktsnip_t *pkt, const bool r } } - /* Perform boundry checks on current RTO before usage */ + /* Perform boundary checks on current RTO before usage */ if (tcb->rto < (int32_t) GNRC_TCP_RTO_LOWER_BOUND) { tcb->rto = GNRC_TCP_RTO_LOWER_BOUND; } @@ -445,7 +445,7 @@ int _pkt_acknowledge(gnrc_tcp_tcb_t *tcb, const uint32_t ack) /* Measure round trip time */ int32_t rtt = xtimer_now().ticks32 - tcb->rtt_start; - /* Use time only if ther was no timer overflow and no retransmission (Karns Alogrithm) */ + /* Use time only if there was no timer overflow and no retransmission (Karns Algorithm) */ if (tcb->retries == 0 && rtt > 0) { /* If this is the first sample taken */ if (tcb->srtt == RTO_UNINITIALIZED && tcb->rtt_var == RTO_UNINITIALIZED) { diff --git a/sys/net/gnrc/transport_layer/tcp/internal/common.h b/sys/net/gnrc/transport_layer/tcp/internal/common.h index 1b35968e12..c4deb78a02 100644 --- a/sys/net/gnrc/transport_layer/tcp/internal/common.h +++ b/sys/net/gnrc/transport_layer/tcp/internal/common.h @@ -95,7 +95,7 @@ extern "C" { #define RTO_UNINITIALIZED (-1) /** - * @brief Overflow tolerant comparision operators for sequence and + * @brief Overflow tolerant comparison operators for sequence and acknowledgement number comparison. * @{ */ diff --git a/sys/net/gnrc/transport_layer/tcp/internal/eventloop.h b/sys/net/gnrc/transport_layer/tcp/internal/eventloop.h index 5ae25ab5fd..e3c6bd9717 100644 --- a/sys/net/gnrc/transport_layer/tcp/internal/eventloop.h +++ b/sys/net/gnrc/transport_layer/tcp/internal/eventloop.h @@ -12,7 +12,7 @@ * @{ * * @file - * @brief TCP event loop delarations. + * @brief TCP event loop declarations. * * @author Simon Brummer */ diff --git a/sys/net/gnrc/transport_layer/tcp/internal/fsm.h b/sys/net/gnrc/transport_layer/tcp/internal/fsm.h index ae6f639ec3..5b0269d849 100644 --- a/sys/net/gnrc/transport_layer/tcp/internal/fsm.h +++ b/sys/net/gnrc/transport_layer/tcp/internal/fsm.h @@ -54,7 +54,7 @@ typedef enum { FSM_EVENT_CALL_RECV, /* User function call: recv */ FSM_EVENT_CALL_CLOSE, /* User function call: close */ FSM_EVENT_CALL_ABORT, /* User function call: abort */ - FSM_EVENT_RCVD_PKT, /* Paket received from peer */ + FSM_EVENT_RCVD_PKT, /* Packet received from peer */ FSM_EVENT_TIMEOUT_TIMEWAIT, /* Timeout: timewait */ FSM_EVENT_TIMEOUT_RETRANSMIT, /* Timeout: retransmit */ FSM_EVENT_TIMEOUT_CONNECTION, /* Timeout: connection */ @@ -67,7 +67,7 @@ typedef enum { * * @param[in,out] tcb TCB holding the connection information. * @param[in] event Current event that triggers FSM transition. - * @param[in] in_pkt Incomming packet. Only not NULL in case of event RCVD_PKT. + * @param[in] in_pkt Incoming packet. Only not NULL in case of event RCVD_PKT. * @param[in,out] buf Buffer for send and receive functions. * @param[in] len Number of bytes to send or receive. * diff --git a/sys/net/gnrc/transport_layer/tcp/internal/pkt.h b/sys/net/gnrc/transport_layer/tcp/internal/pkt.h index 1cace73261..e6d2e8fa45 100644 --- a/sys/net/gnrc/transport_layer/tcp/internal/pkt.h +++ b/sys/net/gnrc/transport_layer/tcp/internal/pkt.h @@ -12,7 +12,7 @@ * @{ * * @file - * @brief TCP paket handling declarations. + * @brief TCP packet handling declarations. * * @author Simon Brummer */ @@ -29,13 +29,13 @@ extern "C" { #endif /** - * @brief Build a reset packet from an incomming packet. + * @brief Build a reset packet from an incoming packet. * - * @note This function builds a reset from an incomming packet + * @note This function builds a reset from an incoming packet * in cases where the connection has not been established. * * @param[out] out_pkt Outgoing reset packet - * @param[in] in_pkt Incomming packet + * @param[in] in_pkt Incoming packet * * @returns Zero on success * -ENOMEM if pktbuf is full. @@ -43,10 +43,10 @@ extern "C" { int _pkt_build_reset_from_pkt(gnrc_pktsnip_t **out_pkt, gnrc_pktsnip_t *in_pkt); /** - * @brief Build and allocate a TCB paket, TCB stores pointer to new paket. + * @brief Build and allocate a TCB packet, TCB stores pointer to new packet. * * @param[in,out] tcb TCB holding the connection information. - * @param[out] out_pkt Pointer to paket to build. + * @param[out] out_pkt Pointer to packet to build. * @param[out] seq_con Sequence number consumption of built packet. * @param[in] ctl Control bits to set in @p out_pkt. * @param[in] seq_num Sequence number of the new packet. @@ -65,7 +65,7 @@ int _pkt_build(gnrc_tcp_tcb_t *tcb, gnrc_pktsnip_t **out_pkt, uint16_t *seq_con, * @brief Sends packet to peer. * * @param[in,out] tcb TCB holding the connection information. - * @param[in] out_pkt Pointer to paket to send. + * @param[in] out_pkt Pointer to packet to send. * @param[in] seq_con Sequence number consumption of the packet to send. * @param[in] retransmit Flag so mark that packet this is a retransmission. * diff --git a/sys/net/gnrc/transport_layer/tcp/internal/rcvbuf.h b/sys/net/gnrc/transport_layer/tcp/internal/rcvbuf.h index c9c5911795..778726b61c 100644 --- a/sys/net/gnrc/transport_layer/tcp/internal/rcvbuf.h +++ b/sys/net/gnrc/transport_layer/tcp/internal/rcvbuf.h @@ -38,7 +38,7 @@ typedef struct rcvbuf_entry { } rcvbuf_entry_t; /** - * @brief Stuct holding receive buffers. + * @brief Struct holding receive buffers. */ typedef struct rcvbuf { mutex_t lock; /**< Lock for allocation synchronization */ @@ -53,7 +53,7 @@ void _rcvbuf_init(void); /** * @brief Allocate receive buffer and assign it to TCB. * - * @param[in,out] tcb TCB that aquires receive buffer. + * @param[in,out] tcb TCB that acquires receive buffer. * * @returns Zero on success. * -ENOMEM if all receive buffers are currently used. diff --git a/sys/net/network_layer/fib/fib.c b/sys/net/network_layer/fib/fib.c index 99035d6fe5..34ad501fd1 100644 --- a/sys/net/network_layer/fib/fib.c +++ b/sys/net/network_layer/fib/fib.c @@ -56,7 +56,7 @@ static char addr_str[IPV6_ADDR_MAX_STR_LEN]; #define FIB_ADDR_PRINT_LENS FIB_ADDR_PRINT_LENS2(FIB_ADDR_PRINT_LEN) /** - * @brief convert an offset given in ms to abolute time in time in us + * @brief convert an offset given in ms to absolute time in time in us * @param[in] ms the milliseconds to be converted * @param[out] target the converted point in time */ @@ -439,7 +439,7 @@ int fib_update_entry(fib_table_t *table, uint8_t *dst, size_t dst_size, /* we have ambiguous entries, i.e. count > 1 * this should never happen */ - DEBUG("[fib_update_entry] ambigious entries detected!!!\n"); + DEBUG("[fib_update_entry] ambiguous entries detected!!!\n"); } mutex_unlock(&(table->mtx_access)); @@ -463,7 +463,7 @@ void fib_remove_entry(fib_table_t *table, uint8_t *dst, size_t dst_size) /* we have ambiguous entries, i.e. count > 1 * this should never happen */ - DEBUG("[fib_update_entry] ambigious entries detected!!!\n"); + DEBUG("[fib_update_entry] ambiguous entries detected!!!\n"); } mutex_unlock(&(table->mtx_access)); @@ -1197,7 +1197,7 @@ fib_sr_t* hit = NULL; /* we create a new sr */ if (check_free_entry == -1) { /* we have no room to create a new sr - * so we just retrun and NOT tell the RPs to find a route + * so we just return and NOT tell the RPs to find a route * since we cannot save it */ *error = -ENOBUFS; @@ -1359,7 +1359,7 @@ int fib_sr_get_route(fib_table_t *table, uint8_t *dst, size_t dst_size, kernel_p * @note we could handle -EHOSTUNREACH differently here, * since it says that we have a partial source route but no RP * to manage it. - * Thats why I let it pass for now. + * That's why I let it pass for now. */ if (hit != NULL) { hit->sr_lifetime = 0; diff --git a/sys/net/network_layer/ipv6/addr/ipv6_addr.c b/sys/net/network_layer/ipv6/addr/ipv6_addr.c index 60f88e7075..9b2e97f66b 100644 --- a/sys/net/network_layer/ipv6/addr/ipv6_addr.c +++ b/sys/net/network_layer/ipv6/addr/ipv6_addr.c @@ -123,11 +123,11 @@ void ipv6_addr_init_iid(ipv6_addr_t *out, const uint8_t *iid, uint8_t bits) memcpy(&(out->u8[pos]), iid, bytes); } -char *ipv6_addr_split_str(char *addr_str, char seperator) +char *ipv6_addr_split_str(char *addr_str, char separator) { char *sep = addr_str; while (*(++sep)) { - if (*sep == seperator) { + if (*sep == separator) { *sep++ = '\0'; break; } diff --git a/sys/net/routing/nhdp/iib_table.c b/sys/net/routing/nhdp/iib_table.c index fca78e2d2c..256f85500e 100644 --- a/sys/net/routing/nhdp/iib_table.c +++ b/sys/net/routing/nhdp/iib_table.c @@ -448,7 +448,7 @@ static iib_link_set_entry_t *update_link_set(iib_base_entry_t *base_entry, nib_e release_link_tuple_addresses(matching_lt); } else { - /* No single matching link tuple existant, create a new one */ + /* No single matching link tuple existent, create a new one */ matching_lt = add_default_link_set_entry(base_entry, now, val_time); if (!matching_lt) { diff --git a/sys/net/routing/nhdp/nhdp_address.h b/sys/net/routing/nhdp/nhdp_address.h index 3ad444fd09..51ad9e0b49 100644 --- a/sys/net/routing/nhdp/nhdp_address.h +++ b/sys/net/routing/nhdp/nhdp_address.h @@ -122,7 +122,7 @@ nhdp_addr_entry_t *nhdp_generate_addr_list_from_tmp(uint8_t tmp_type); * @note * Must not be called from outside the NHDP writer's or reader's message creation process. * - * @param[in] decr_usg Flag whether the usage counter of a resetted addr has to be decremented + * @param[in] decr_usg Flag whether the usage counter of a reset addr has to be decremented */ void nhdp_reset_addresses_tmp_usg(uint8_t decr_usg); diff --git a/sys/net/routing/nhdp/nhdp_writer.c b/sys/net/routing/nhdp/nhdp_writer.c index 22be9d1497..5a2fa51de3 100644 --- a/sys/net/routing/nhdp/nhdp_writer.c +++ b/sys/net/routing/nhdp/nhdp_writer.c @@ -145,7 +145,7 @@ void nhdp_writer_add_addr(struct rfc5444_writer *wr, nhdp_addr_t *addr, switch (type) { case RFC5444_ADDRTLV_LOCAL_IF: - /* Address is mandatory for every sub-msg (if message is splitted) */ + /* Address is mandatory for every sub-msg (if message is split) */ wr_addr = rfc5444_writer_add_address(wr, _nhdp_message_content_provider.creator, &n_addr, true); break; @@ -154,7 +154,7 @@ void nhdp_writer_add_addr(struct rfc5444_writer *wr, nhdp_addr_t *addr, /* Fall through */ case RFC5444_ADDRTLV_OTHER_NEIGHB: - /* Address only has to be included in one sub-msg (if message is splitted) */ + /* Address only has to be included in one sub-msg (if message is split) */ wr_addr = rfc5444_writer_add_address(wr, _nhdp_message_content_provider.creator, &n_addr, false); break; diff --git a/sys/oneway-malloc/include/malloc.h b/sys/oneway-malloc/include/malloc.h index 922950d533..9dc209ef72 100644 --- a/sys/oneway-malloc/include/malloc.h +++ b/sys/oneway-malloc/include/malloc.h @@ -47,12 +47,12 @@ void *malloc(size_t size); /** * @brief Allocated a new block of memory and move the existing content. - * @details This function allocates a new block of memory and memcpy()s the content of the ond `ptr` there. + * @details This function allocates a new block of memory and memcpy()s the content of the one `ptr` there. * * We do not know the size of the old block, so illegal reads would be likely, * if it was not for the fact that the memory heap up. * @param[in] ptr Old memory block that was allocated with malloc(), calloc() or realloc(). - * @param[in] size Size of the new block to allocted in bytes. + * @param[in] size Size of the new block to allocated in bytes. * @returns The new memory block. `NULL` if the "heap" is exhausted. */ void *realloc(void *ptr, size_t size); diff --git a/sys/posix/include/sys/socket.h b/sys/posix/include/sys/socket.h index 8bac3ce558..dc202a6a2e 100644 --- a/sys/posix/include/sys/socket.h +++ b/sys/posix/include/sys/socket.h @@ -229,7 +229,7 @@ int bind(int socket, const struct sockaddr *address, * on the address family of the socket. * @param[in] address_len Specifies the length of the sockaddr structure * pointed to by the address argument. - * @post The socket will be implicitely bound to an addressed, if it is not already bound. + * @post The socket will be implicitly bound to an addressed, if it is not already bound. * According to * http://pubs.opengroup.org/onlinepubs/009695399/functions/connect.html * for a "socket [that] has not already been bound to a local address, @@ -408,7 +408,7 @@ static inline ssize_t recv(int socket, void *buffer, size_t length, int flags) * @param[in] address_len Specifies the length of the sockaddr structure pointed * to by the @p address argument. * - * @post The socket will implicitely be bound to the unspecified address and + * @post The socket will implicitly be bound to the unspecified address and * a random port, in case it is not already bound. Rationale: A client * should not require to explicitly call bind() to receive packets, * but is expected to receive replies sent to the ephemeral port that diff --git a/sys/posix/pthread/include/pthread_barrier.h b/sys/posix/pthread/include/pthread_barrier.h index 292bbf233c..ccc2382b11 100644 --- a/sys/posix/pthread/include/pthread_barrier.h +++ b/sys/posix/pthread/include/pthread_barrier.h @@ -125,7 +125,7 @@ int pthread_barrierattr_getpshared(const pthread_barrierattr_t *attr, int *pshar /** * @brief Set if the barrier should be shared with child processes - * @details Since RIOT is a single process OS, pthread_barrier_init() wil ignore the value. + * @details Since RIOT is a single process OS, pthread_barrier_init() will ignore the value. * @param attr Attribute set for pthread_barrier_init() * @param pshared Either #PTHREAD_PROCESS_PRIVATE or #PTHREAD_PROCESS_SHARED * @returns 0, the invocation cannot fail diff --git a/sys/posix/pthread/include/pthread_cond.h b/sys/posix/pthread/include/pthread_cond.h index 683a24f5a4..9ca502e643 100644 --- a/sys/posix/pthread/include/pthread_cond.h +++ b/sys/posix/pthread/include/pthread_cond.h @@ -92,7 +92,7 @@ int pthread_condattr_getpshared(const pthread_condattr_t *attr, int *pshared); int pthread_condattr_setpshared(pthread_condattr_t *attr, int pshared); /** - * @brief Get the clock selected for the conditon variable attribute attr. + * @brief Get the clock selected for the condition variable attribute attr. * @note currently NOT USED in RIOT. * @param[in] attr pre-allocated condition attribute variable structure. * @param[out] clock_id the clock ID that is used to measure the timeout service @@ -101,7 +101,7 @@ int pthread_condattr_setpshared(pthread_condattr_t *attr, int pshared); int pthread_condattr_getclock(const pthread_condattr_t *attr, clockid_t *clock_id); /** - * @brief Set the clock selected for the conditon variable attribute ATTR. + * @brief Set the clock selected for the condition variable attribute ATTR. * @note currently NOT USED in RIOT. * @param[in, out] attr pre-allocated condition attribute variable structure. * @param[in] clock_id the clock ID that shall be used to measure the timeout service diff --git a/sys/posix/pthread/include/pthread_rwlock_attr.h b/sys/posix/pthread/include/pthread_rwlock_attr.h index 17723995d1..4d7eac47f6 100644 --- a/sys/posix/pthread/include/pthread_rwlock_attr.h +++ b/sys/posix/pthread/include/pthread_rwlock_attr.h @@ -38,7 +38,7 @@ typedef struct } pthread_rwlockattr_t; /** - * @brief Initilize the attribute set with the defaults. + * @brief Initialize the attribute set with the defaults. * @details Default value for pshared: `PTHREAD_PROCESS_PRIVATE`. * A zeroed out datum is initialized. * @param[in,out] attr Attribute set to initialize. diff --git a/sys/posix/pthread/include/pthread_spin.h b/sys/posix/pthread/include/pthread_spin.h index b1202c1a31..5b4026f2d4 100644 --- a/sys/posix/pthread/include/pthread_spin.h +++ b/sys/posix/pthread/include/pthread_spin.h @@ -42,7 +42,7 @@ extern "C" { #endif /** - * @brief Intializes a spinlock. + * @brief Initializes a spinlock. * @warning See the warning in pthread_spinlock_t. * @details A zeroed out datum is initialized. * @param[in,out] lock Datum to initialize. diff --git a/sys/posix/pthread/include/pthread_threading_attr.h b/sys/posix/pthread/include/pthread_threading_attr.h index 1e73f3ee96..1117f86755 100644 --- a/sys/posix/pthread/include/pthread_threading_attr.h +++ b/sys/posix/pthread/include/pthread_threading_attr.h @@ -23,7 +23,7 @@ extern "C" { /** * @brief An attribute set to supply to pthread_create() - * @details A zeroed out datum is default initiliazed. + * @details A zeroed out datum is default initialized. * @see pthread_create() for further information */ typedef struct diff --git a/sys/posix/pthread/include/pthread_tls.h b/sys/posix/pthread/include/pthread_tls.h index 644c5c173e..10354c15e9 100644 --- a/sys/posix/pthread/include/pthread_tls.h +++ b/sys/posix/pthread/include/pthread_tls.h @@ -57,7 +57,7 @@ int pthread_setspecific(pthread_key_t key, const void *value); /** * @brief Creates a new key to be used to identify a specific tls * @param[out] key the created key is scribed to the given pointer - * @param[in] destructor function pointer called when non NULL just befor the pthread exits + * @param[in] destructor function pointer called when non NULL just before the pthread exits * @return returns 0 on success, an errorcode otherwise */ int pthread_key_create(pthread_key_t *key, void (*destructor)(void *)); diff --git a/sys/posix/pthread/pthread_barrier.c b/sys/posix/pthread/pthread_barrier.c index 7031c71d0b..0389d955d9 100644 --- a/sys/posix/pthread/pthread_barrier.c +++ b/sys/posix/pthread/pthread_barrier.c @@ -76,7 +76,7 @@ int pthread_barrier_wait(pthread_barrier_t *barrier) while (1) { /* The mutex is reacquired before checking if we should continue, - * so that the waiting thread don't accidentially run before the + * so that the waiting thread don't accidentally run before the * wake up loop has ended. Otherwise the thread could run into the * the barrier again before `barrier->count` was reset. */ mutex_lock(&barrier->mutex); diff --git a/sys/posix/pthread/pthread_rwlock.c b/sys/posix/pthread/pthread_rwlock.c index b644c91afd..2e063132ec 100644 --- a/sys/posix/pthread/pthread_rwlock.c +++ b/sys/posix/pthread/pthread_rwlock.c @@ -261,7 +261,7 @@ int pthread_rwlock_unlock(pthread_rwlock_t *rwlock) } if (rwlock->readers != 0 || rwlock->queue.first == NULL) { - /* this thread was not the last reader, or no one is waiting to aquire the lock */ + /* this thread was not the last reader, or no one is waiting to acquire the lock */ DEBUG("Thread %" PRIkernel_pid ": pthread_rwlock_%s(): no one is waiting\n", thread_getpid(), "unlock"); mutex_unlock(&rwlock->mutex); return 0; diff --git a/sys/puf_sram/puf_sram.c b/sys/puf_sram/puf_sram.c index 9b06a63363..e2195ef12e 100644 --- a/sys/puf_sram/puf_sram.c +++ b/sys/puf_sram/puf_sram.c @@ -40,7 +40,7 @@ void puf_sram_generate(const uint8_t *ram, size_t len) puf_sram_seed = dek_hash(ram, len); /* write marker to a defined section for subsequent reset detection */ puf_sram_marker = PUF_SRAM_MARKER; - /* seting state to 0 means seed was generated from SRAM pattern */ + /* setting state to 0 means seed was generated from SRAM pattern */ puf_sram_state = 0; } diff --git a/sys/random/fortuna/fortuna.h b/sys/random/fortuna/fortuna.h index 5282e8a9a0..06318dfcb0 100755 --- a/sys/random/fortuna/fortuna.h +++ b/sys/random/fortuna/fortuna.h @@ -159,7 +159,7 @@ typedef uint32_t fortuna_seed_t[FORTUNA_SEED_SIZE]; * * @param[inout] state PRNG state * - * @return zero on succesful initialization + * @return zero on successful initialization * @return non-zero on error */ int fortuna_init(fortuna_state_t *state); diff --git a/sys/schedstatistics/schedstatistics.c b/sys/schedstatistics/schedstatistics.c index fac0d181bf..0f5c78d0dd 100644 --- a/sys/schedstatistics/schedstatistics.c +++ b/sys/schedstatistics/schedstatistics.c @@ -31,7 +31,7 @@ void sched_statistics_cb(kernel_pid_t active_thread, kernel_pid_t next_thread) { uint32_t now = xtimer_now().ticks32; - /* Update active thread runtime, there is allways an active thread since + /* Update active thread runtime, there is always an active thread since first sched_run happens when main_trampoline gets scheduled */ schedstat_t *active_stat = &sched_pidlist[active_thread]; active_stat->runtime_ticks += now - active_stat->laststart; diff --git a/sys/shell/commands/sc_disk.c b/sys/shell/commands/sc_disk.c index 1c54eef879..037b1be442 100644 --- a/sys/shell/commands/sc_disk.c +++ b/sys/shell/commands/sc_disk.c @@ -142,7 +142,7 @@ int _read_bytes(int argc, char **argv) /* calculate sector and offset position */ sector = (offset / ssize) + 1; offset = (offset % ssize); - /* preapre buffer (size must be a multiple of sector size) */ + /* prepare buffer (size must be a multiple of sector size) */ unsigned char read_buf[((length / ssize) + 1) * 512]; /* read from several sectors */ diff --git a/sys/shell/commands/sc_fib.c b/sys/shell/commands/sc_fib.c index 511a76a396..6e22d13f82 100644 --- a/sys/shell/commands/sc_fib.c +++ b/sys/shell/commands/sc_fib.c @@ -129,7 +129,7 @@ static void _fib_add(const char *dest, const char *next, kernel_pid_t pid, uint3 int _fib_route_handler(int argc, char **argv) { - /* e.g. fibroute right now dont care about the adress/protocol family */ + /* e.g. fibroute right now don't care about the address/protocol family */ if (argc == 1) { fib_print_routes(&gnrc_ipv6_fib_table); return 0; diff --git a/sys/shell/commands/sc_vfs.c b/sys/shell/commands/sc_vfs.c index d5a085a1dd..4fe2af77d1 100644 --- a/sys/shell/commands/sc_vfs.c +++ b/sys/shell/commands/sc_vfs.c @@ -294,7 +294,7 @@ static int _write_handler(int argc, char **argv) } w_buf = argv[4]; nbytes = strlen(w_buf); - /* in hex string mode, bytes may be seperated by spaces */ + /* in hex string mode, bytes may be separated by spaces */ /* in ascii mode, there could be spaces */ /* we need the total number of strings to go through */ nb_str = argc - 4; diff --git a/sys/ubjson/ubjson-read.c b/sys/ubjson/ubjson-read.c index c53d56fb66..c50493d075 100644 --- a/sys/ubjson/ubjson-read.c +++ b/sys/ubjson/ubjson-read.c @@ -78,7 +78,7 @@ ssize_t ubjson_get_string(ubjson_cookie_t *restrict cookie, ssize_t length, void ssize_t ubjson_get_i32(ubjson_cookie_t *restrict cookie, ssize_t content, int32_t *dest) { - static const int8_t LENGHTS[] = { 1, 1, 2, 4 }; + static const int8_t LENGTHS[] = { 1, 1, 2, 4 }; union { int8_t i8; @@ -89,7 +89,7 @@ ssize_t ubjson_get_i32(ubjson_cookie_t *restrict cookie, ssize_t content, int32_ int type = content; - ssize_t result = ubjson_get_string(cookie, LENGHTS[type], &value); + ssize_t result = ubjson_get_string(cookie, LENGTHS[type], &value); if (result > 0) { switch (type) { case UBJSON_INT32_INT8: diff --git a/sys/universal_address/universal_address.c b/sys/universal_address/universal_address.c index 56e4a292f1..b6907370fe 100644 --- a/sys/universal_address/universal_address.c +++ b/sys/universal_address/universal_address.c @@ -34,7 +34,7 @@ /** * @brief Maximum number of entries handled */ -/* determine the maximum numer of entries */ +/* determine the maximum number of entries */ #ifndef UNIVERSAL_ADDRESS_MAX_ENTRIES /* all potential users of universal addresses have to add their requirements here */ # if defined(MODULE_FIB) && defined(MODULE_GNRC_IPV6) diff --git a/sys/xtimer/xtimer.c b/sys/xtimer/xtimer.c index bec49dafcf..1d5a78ffa8 100644 --- a/sys/xtimer/xtimer.c +++ b/sys/xtimer/xtimer.c @@ -241,7 +241,7 @@ void xtimer_now_timex(timex_t *out) static void _mutex_timeout(void *arg) { - /* interupts a disabled because xtimer can spin + /* interrupts a disabled because xtimer can spin * if xtimer_set spins the callback is executed * in the thread context * diff --git a/sys/xtimer/xtimer_core.c b/sys/xtimer/xtimer_core.c index 8411558399..de140d7fd5 100644 --- a/sys/xtimer/xtimer_core.c +++ b/sys/xtimer/xtimer_core.c @@ -183,7 +183,7 @@ int _xtimer_set_absolute(xtimer_t *timer, uint32_t target) timer->next = NULL; /* Ensure that offset is bigger than 'XTIMER_BACKOFF', - * 'target - now' will allways be the offset no matter if target < or > now. + * 'target - now' will always be the offset no matter if target < or > now. * * This expects that target was not set too close to now and overrun now, so * from setting target up until the call of '_xtimer_now()' above now has not diff --git a/tests/bench_timers/main.c b/tests/bench_timers/main.c index 58cf10257e..bc250b34b8 100644 --- a/tests/bench_timers/main.c +++ b/tests/bench_timers/main.c @@ -714,7 +714,7 @@ int main(void) if (res < 0) { print_str("Error "); print_s32_dec(res); - print_str(" intializing reference timer\n"); + print_str(" initializing reference timer\n"); return res; } random_init(seed); @@ -724,7 +724,7 @@ int main(void) if (res < 0) { print_str("Error "); print_s32_dec(res); - print_str(" intializing timer under test\n"); + print_str(" initializing timer under test\n"); return res; } #endif diff --git a/tests/cortexm_common_ldscript/Makefile b/tests/cortexm_common_ldscript/Makefile index 31d421908c..bbd662a46b 100644 --- a/tests/cortexm_common_ldscript/Makefile +++ b/tests/cortexm_common_ldscript/Makefile @@ -65,7 +65,7 @@ _test-elffile-overflow-runtest: $(BINFILE) # Test `ROM_OFFSET` is removed from firmware rom length if the board defines it test-elffile-fw_rom_length: $(ELFFILE) - $(Q)echo -n "Test rom offset substracted from rom length in elffile: " + $(Q)echo -n "Test rom offset subtracted from rom length in elffile: " $(Q)\ if test -n "$(ROM_OFFSET)"; then \ TEST_FW_LEN=$$($(PREFIX)readelf --symbols $^ 2>/dev/null | awk '/_fw_rom_length/{printf "0x%s\n", $$2}'); \ diff --git a/tests/cortexm_common_ldscript/README.md b/tests/cortexm_common_ldscript/README.md index 5571d4adc4..1eb4a184ac 100644 --- a/tests/cortexm_common_ldscript/README.md +++ b/tests/cortexm_common_ldscript/README.md @@ -20,7 +20,7 @@ after the normal compilation: make all BOARD=iotlab-m3 ... Test rom offset 1 byte overflow detection: [OK] -Test rom offset substracted from rom length in elffile: [SKIP](Reason: board does not have a ROM_OFFSET configured) +Test rom offset subtracted from rom length in elffile: [SKIP](Reason: board does not have a ROM_OFFSET configured) Test compilation with offset 0x1000: [OK] Test compilation with offset 0x2000: [OK] Test compilation with half ROM length: [OK] @@ -28,7 +28,7 @@ Test ROM overflow detection (too_big_for_rom): [OK] Test ROM overflow detection (offset_and_romlen): [OK] ``` -For a bord that have a `ROM_OFFSET` variable configured by default (== a board +For a board that have a `ROM_OFFSET` variable configured by default (== a board with bootloader installed), it produces the following output after the normal compilation: @@ -36,7 +36,7 @@ compilation: make BOARD=bluepill PROGRAMMER=dfu-util ... Test rom offset 1 byte overflow detection: [OK] -Test rom offset substracted from rom length in elffile: [OK] +Test rom offset subtracted from rom length in elffile: [OK] Test compilation with offset 0x1000: [OK] Test compilation with offset 0x2000: [OK] Test compilation with half ROM length: [OK] diff --git a/tests/driver_dsp0401/README.md b/tests/driver_dsp0401/README.md index c87b0850ef..e92e6c2663 100644 --- a/tests/driver_dsp0401/README.md +++ b/tests/driver_dsp0401/README.md @@ -1,7 +1,7 @@ ## About This is a test application for the [DSP0401](https://www.embeddedadventures.com/datasheets/DSP-0401B_hw_v4.pdf), -a 4 digits with 16 segments alpha-numeric display. +a 4 digits with 16 segments alphanumeric display. ## Connecting the device diff --git a/tests/driver_io1_xplained/README.md b/tests/driver_io1_xplained/README.md index fe53d0d560..778282880b 100644 --- a/tests/driver_io1_xplained/README.md +++ b/tests/driver_io1_xplained/README.md @@ -2,4 +2,4 @@ The Atmel IO1 Xplained is an extension board to the Atmel Xplained Pro evaluation platform. -More information in the [user mannual](http://www.atmel.com/images/atmel-42078-io1-xplained-pro_user-guide.pdf). +More information in the [user manual](http://www.atmel.com/images/atmel-42078-io1-xplained-pro_user-guide.pdf). diff --git a/tests/driver_io1_xplained/main.c b/tests/driver_io1_xplained/main.c index 031282f19e..69c41042d3 100644 --- a/tests/driver_io1_xplained/main.c +++ b/tests/driver_io1_xplained/main.c @@ -54,7 +54,7 @@ int main(void) { float temperature; - puts("IO1 Xplained extention test application\n"); + puts("IO1 Xplained extension test application\n"); puts("+-------------Initializing------------+\n"); if (io1_xplained_init(&dev, &io1_xplained_params[0]) != IO1_XPLAINED_OK) { diff --git a/tests/driver_lc709203f/README.md b/tests/driver_lc709203f/README.md index 7181137cd9..3e025767ca 100644 --- a/tests/driver_lc709203f/README.md +++ b/tests/driver_lc709203f/README.md @@ -4,4 +4,4 @@ This is a test application for the ON Semiconductor lc709203F Battery Fuel Gauge Just enter the `make BOARD=??? flash` command in the `tests/driver_lc709203F/` folder. Make sure the `LC709203F_INT_PIN` is set in your boards periph_conf.h # Results -The sensor will first test the low RSOC interrupt by setting the threshold limit to 100%. Therefor a low RSOC interrupt should be triggered and the message "ALARM low RSOC" should be printed to the terminal. After that all major measurements will be printed and refreshed every 5s. +The sensor will first test the low RSOC interrupt by setting the threshold limit to 100%. Therefore a low RSOC interrupt should be triggered and the message "ALARM low RSOC" should be printed to the terminal. After that all major measurements will be printed and refreshed every 5s. diff --git a/tests/driver_lc709203f/main.c b/tests/driver_lc709203f/main.c index a1cb924825..22ceccb831 100644 --- a/tests/driver_lc709203f/main.c +++ b/tests/driver_lc709203f/main.c @@ -10,7 +10,7 @@ * @ingroup tests * @{ * @file - * @brief test aplication for the LC709203F Battery fuel gauge by on semiconductors + * @brief test application for the LC709203F Battery fuel gauge by on semiconductors * * @author Steffen Robertz * @author Josua Arndt diff --git a/tests/driver_lis2dh12/main.c b/tests/driver_lis2dh12/main.c index ad7255e739..9a47939a1d 100644 --- a/tests/driver_lis2dh12/main.c +++ b/tests/driver_lis2dh12/main.c @@ -28,7 +28,7 @@ #define DELAY (100UL * US_PER_MS) -/* allocate some memory to hold one formated string for each sensor output, so +/* allocate some memory to hold one formatted string for each sensor output, so * one string for the X, Y, and Z reading, respectively */ static char str_out[3][8]; diff --git a/tests/driver_sds011/main.c b/tests/driver_sds011/main.c index 7d5b83c123..78e5cbd76f 100644 --- a/tests/driver_sds011/main.c +++ b/tests/driver_sds011/main.c @@ -98,7 +98,7 @@ int main(void) puts("init [OK]"); } else { - puts("initalization [ERROR]"); + puts("initialization [ERROR]"); return -1; } diff --git a/tests/driver_srf08/main.c b/tests/driver_srf08/main.c index 3e0cddd769..138e27c61a 100644 --- a/tests/driver_srf08/main.c +++ b/tests/driver_srf08/main.c @@ -74,7 +74,7 @@ int main(void) } else { - puts("An error occured"); + puts("An error occurred"); } xtimer_usleep(SLEEP_USEC); } diff --git a/tests/driver_tps6274x/README.md b/tests/driver_tps6274x/README.md index d967b494e7..b5bcec37f6 100644 --- a/tests/driver_tps6274x/README.md +++ b/tests/driver_tps6274x/README.md @@ -8,4 +8,4 @@ Build the test by using the `make BOARD=??? flash` command in the `test/driver_t The stepdown converter will step from 1.8V to 3.3V in 100mV steps. Each voltage will be set for 3 seconds and can be measured at the VOUT Pin. After 1 second also the LOAD output pin will be enabled for 2 seconds -untill the next voltage is set. +until the next voltage is set. diff --git a/tests/float/main.c b/tests/float/main.c index 35c3cbfacb..55cd4d238f 100644 --- a/tests/float/main.c +++ b/tests/float/main.c @@ -36,7 +36,7 @@ int main(void) { double x = 1234567.0 / 1024.0; - puts("Testing floating point arithmetics...\n"); + puts("Testing floating point arithmetic...\n"); for (unsigned long i = 0; i < TEST_ITER; i++) { x += STEP; diff --git a/tests/float/tests/01-run.py b/tests/float/tests/01-run.py index f66775af55..4a3ef32f0a 100755 --- a/tests/float/tests/01-run.py +++ b/tests/float/tests/01-run.py @@ -14,7 +14,7 @@ TIMEOUT = 45 def testfunc(child): - child.expect_exact("Testing floating point arithmetics...") + child.expect_exact("Testing floating point arithmetic...") child.expect_exact("[SUCCESS]", timeout=TIMEOUT) diff --git a/tests/gnrc_sock_ip/stack.h b/tests/gnrc_sock_ip/stack.h index 88b9849d03..4438096171 100644 --- a/tests/gnrc_sock_ip/stack.h +++ b/tests/gnrc_sock_ip/stack.h @@ -50,7 +50,7 @@ void _prepare_send_checks(void); * @param[in] netif The interface the packet came over * * @return true, if packet was successfully injected - * @return false, if an error occured during injection + * @return false, if an error occurred during injection */ bool _inject_packet(const ipv6_addr_t *src, const ipv6_addr_t *dst, uint8_t proto, void *data, size_t data_len, diff --git a/tests/gnrc_sock_udp/stack.h b/tests/gnrc_sock_udp/stack.h index d38f314103..73aaf6b3e5 100644 --- a/tests/gnrc_sock_udp/stack.h +++ b/tests/gnrc_sock_udp/stack.h @@ -51,7 +51,7 @@ void _prepare_send_checks(void); * @param[in] netif The interface the packet came over * * @return true, if packet was successfully injected - * @return false, if an error occured during injection + * @return false, if an error occurred during injection */ bool _inject_packet(const ipv6_addr_t *src, const ipv6_addr_t *dst, uint16_t src_port, uint16_t dst_port, diff --git a/tests/libc_newlib/README.md b/tests/libc_newlib/README.md index d4a72d53aa..e69495b7be 100644 --- a/tests/libc_newlib/README.md +++ b/tests/libc_newlib/README.md @@ -9,7 +9,7 @@ At compile time, it checks that: * It defines `_NANO_FORMATTED_IO` macro https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;a=blob;f=newlib/newlib.hin;h=eadafc8a6a51ef7674c004a14777f6a4619115ee;hb=d34336767e45ee801ebb107e40abe4b1acbd3d14#l83 * newlib or newlib-nano is properly linked - * `iprintf` is the same as `printf` or not as mentionned in: + * `iprintf` is the same as `printf` or not as mentioned in: https://github.com/32bitmicro/newlib-nano-1.0/blob/f157c994b9a2c4bd8d0cfe9fe8fdd9cd54f8c63b/newlib/README.nano#L32 At runtime, it checks that: diff --git a/tests/lua_loader/cmodules.c b/tests/lua_loader/cmodules.c index 7088d22a53..e8edcb388d 100644 --- a/tests/lua_loader/cmodules.c +++ b/tests/lua_loader/cmodules.c @@ -15,7 +15,7 @@ * @author Juan Carrano * * Normally one would not define more than one module in a single file, but - * these modules are exacly the same: a single table with an integer value. + * these modules are exactly the same: a single table with an integer value. * * @} */ diff --git a/tests/pkg_fatfs/README.md b/tests/pkg_fatfs/README.md index 21fdf806e9..6ce0ad9724 100644 --- a/tests/pkg_fatfs/README.md +++ b/tests/pkg_fatfs/README.md @@ -6,7 +6,7 @@ Using FatFs on RIOT To use this test on native you can either use a FAT-formatted image file or directly use the mkfs command from the RIOT shell. Use `make image` to extract a prepared image file that already contains a simple test.txt file. This is -only a convinience function to allow testing against a "default linux" +only a convenience function to allow testing against a "default linux" formatted fat volume without the need to call mount or other stuff that may require super user privileges. Optionally `make compressed-image` can be used to generate the compressed image that is in turn used by `make image`. diff --git a/tests/pkg_fatfs_vfs/README.md b/tests/pkg_fatfs_vfs/README.md index 3c5995c734..9b6a94cf0f 100644 --- a/tests/pkg_fatfs_vfs/README.md +++ b/tests/pkg_fatfs_vfs/README.md @@ -6,7 +6,7 @@ Using FatFs (with VFS) on RIOT To use this test on native you can either use a FAT-formatted image file or directly use the mkfs command from the RIOT shell. Use `make image` to extract a prepared image file that already contains a simple test.txt file. This is -only a convinience function to allow testing against a "default linux" +only a convenience function to allow testing against a "default linux" formatted fat volume without the need to call mount or other stuff that may require super user privileges. Optionally `make compressed-image` can be used to generate the compressed image that is in turn used by `make image`. diff --git a/tests/pkg_semtech-loramac/README.md b/tests/pkg_semtech-loramac/README.md index 82e87783b8..1325a7a9fb 100644 --- a/tests/pkg_semtech-loramac/README.md +++ b/tests/pkg_semtech-loramac/README.md @@ -93,7 +93,7 @@ is activated by default. ### Joining with Activation By Personalization -OTAA is always prefered in real world scenarios. +OTAA is always preferred in real world scenarios. However, ABP can be practical for testing or workshops. * Set your Device Address, Network Session Key , Application Session Key: @@ -199,7 +199,7 @@ After sending some data from the node, the subscribed MQTT client will display: {"app_id":"","dev_id":"","hardware_serial":"XXXXXXXXXXXX","port":2,"counter":7,"confirmed":true,"payload_raw":"dGVzdA==","metadata": {"time":"2017-12-14T09:47:24.84548586Z","frequency":868.1,"modulation":"LORA","data_rate":"SF12BW125","coding_rate":"4/5","gateways":[{"gtw_id":"eui-xxxxxxxx","timestamp":3910359076, "time":"2017-12-14T09:47:24.85112Z","channel":0,"rssi":-10,"snr":12.2,"rf_chain":1,"latitude":48.715027,"longitude":2.2059395,"altitude":157,"location_source":"registry"}]}} -The payload sent is in the `payload_raw` json field and is formated in base64 +The payload sent is in the `payload_raw` json field and is formatted in base64 (`dGVzdA==` in this example). The node will also print the data received: diff --git a/tests/pkg_tiny-asn1/README.md b/tests/pkg_tiny-asn1/README.md index b981f85962..f155844142 100644 --- a/tests/pkg_tiny-asn1/README.md +++ b/tests/pkg_tiny-asn1/README.md @@ -2,5 +2,5 @@ This test tries to execute all basic functions of the tiny-asn1 library by decoding and encoding some data. -If everything works, the programs exits with a return code of 1 and prints "Decoding finished succesfully" at the end. +If everything works, the programs exits with a return code of 1 and prints "Decoding finished successfully" at the end. In case of an error, the program returns with an exit code of 1. diff --git a/tests/pkg_tiny-asn1/main.c b/tests/pkg_tiny-asn1/main.c index c6d390054e..b2c44ca0eb 100644 --- a/tests/pkg_tiny-asn1/main.c +++ b/tests/pkg_tiny-asn1/main.c @@ -111,13 +111,13 @@ int main(void) asn1_tree *encrypted_data = content_type->next->child; if ((encrypted_data == NULL) || (encrypted_data->type != 0x30)) { - printf("ERROR: EncryptedData not availavble.\n"); + printf("ERROR: EncryptedData not available.\n"); return 1; } asn1_tree *cms_version = encrypted_data->child; if ((cms_version == NULL) || (cms_version->type != 0x02) || (cms_version->length != 1)) { - printf("ERROR: CMSVersion not availavble.\n"); + printf("ERROR: CMSVersion not available.\n"); return 1; } uint8_t version = cms_version->data[0]; @@ -125,13 +125,13 @@ int main(void) asn1_tree *encrypted_content_info = cms_version->next; if ((encrypted_content_info == NULL) || (encrypted_content_info->type != 0x30)) { - printf("ERROR: EncryptedContentInfo not availavble.\n"); + printf("ERROR: EncryptedContentInfo not available.\n"); return 1; } asn1_tree *encrypted_content_info_content_type = encrypted_content_info->child; if ((encrypted_content_info_content_type == NULL) || (encrypted_content_info_content_type->type != 0x06)) { - printf("ERROR: ContentType of EncryptedContentInfo not availavble.\n"); + printf("ERROR: ContentType of EncryptedContentInfo not available.\n"); return 1; } if (memcmp(encrypted_content_info_content_type->data, @@ -190,7 +190,7 @@ int main(void) /* try to encode the asn1_tree and check if it has not been altered */ uint8_t encoded[98]; if (der_encode(&cms, encoded, sizeof(encoded)) < 0) { - printf("ERROR: Could not reencode the decoded data.\n"); + printf("ERROR: Could not re-encode the decoded data.\n"); return 1; } if (memcmp(cms_data, encoded, sizeof(cms_data)) != 0) { @@ -203,6 +203,6 @@ int main(void) free(asn1_objects); /* Everything worked fine */ - printf("Decoding finished succesfully\n"); + printf("Decoding finished successfully\n"); return 0; } diff --git a/tests/pkg_tiny-asn1/tests/01-run.py b/tests/pkg_tiny-asn1/tests/01-run.py index 47f2a04fbb..154a8dec98 100755 --- a/tests/pkg_tiny-asn1/tests/01-run.py +++ b/tests/pkg_tiny-asn1/tests/01-run.py @@ -12,7 +12,7 @@ from testrunner import run def testfunc(child): - child.expect('Decoding finished succesfully') + child.expect('Decoding finished successfully') if __name__ == "__main__": diff --git a/tests/pkg_tinycrypt/main.c b/tests/pkg_tinycrypt/main.c index dac57daa6d..4922986d5c 100644 --- a/tests/pkg_tinycrypt/main.c +++ b/tests/pkg_tinycrypt/main.c @@ -42,7 +42,7 @@ int main(void) struct tc_aes_key_sched_struct s; /* 128-bit key to use */ - const char *key = "Thats my Kung Fu"; + const char *key = "That's my Kung Fu"; /* one block (TC_AES_BLOCK_SIZE := 16 byte) of plain text */ const char *plain = "Two One Nine Two"; /* some memory to store the encrypted data (add '\0` termination)*/ diff --git a/tests/pkg_u8g2/main.c b/tests/pkg_u8g2/main.c index 2ffaa2cd25..b93393a31c 100644 --- a/tests/pkg_u8g2/main.c +++ b/tests/pkg_u8g2/main.c @@ -103,7 +103,7 @@ static const uint8_t logo[] = { #if (TEST_OUTPUT == TEST_OUTPUT_I2C) || (TEST_OUTPUT == TEST_OUTPUT_SPI) /** - * @brief RIOT-OS pin maping of U8g2 pin numbers to RIOT-OS GPIO pins. + * @brief RIOT-OS pin mapping of U8g2 pin numbers to RIOT-OS GPIO pins. * @note To minimize the overhead, you can implement an alternative for * u8x8_gpio_and_delay_riotos. */ diff --git a/tests/pkg_ucglib/main.c b/tests/pkg_ucglib/main.c index 815973d383..d0dc398f47 100644 --- a/tests/pkg_ucglib/main.c +++ b/tests/pkg_ucglib/main.c @@ -61,7 +61,7 @@ #if TEST_OUTPUT == TEST_OUTPUT_SPI /** - * @brief RIOT-OS pin maping of Ucglib pin numbers to RIOT-OS GPIO pins. + * @brief RIOT-OS pin mapping of Ucglib pin numbers to RIOT-OS GPIO pins. * @note To minimize the overhead, you can implement an alternative for * ucg_com_riotos_hw_spi. */ diff --git a/tests/ps_schedstatistics/main.c b/tests/ps_schedstatistics/main.c index 7d2f9de6d3..a5086968da 100644 --- a/tests/ps_schedstatistics/main.c +++ b/tests/ps_schedstatistics/main.c @@ -41,7 +41,7 @@ static void *_thread_fn(void *arg) while (1) { msg_t m1, m2; msg_receive(&m1); - /* generate differents loads per thead */ + /* generate different loads per thead */ for (int i = 0; i < (10 * (next + 1)); ++i) { _xtimer_now64(); } diff --git a/tests/pthread_tls/main.c b/tests/pthread_tls/main.c index 0ed46848a5..8ab829f338 100644 --- a/tests/pthread_tls/main.c +++ b/tests/pthread_tls/main.c @@ -30,7 +30,7 @@ void *run(void *parameter) (void)parameter; - printf("\n-= TEST 1 - create %d tls with sequencial values 0...%d =-\n", + printf("\n-= TEST 1 - create %d tls with sequential values 0...%d =-\n", NUMBER_OF_TLS, NUMBER_OF_TLS - 1); for (int i = 0; i < NUMBER_OF_TLS; ++i) { @@ -39,7 +39,7 @@ void *run(void *parameter) pthread_setspecific(aKeys[i], &aTLS_values[i]); } - printf("now rise sequencial by one values 1...%d\n", NUMBER_OF_TLS); + printf("now rise sequential by one values 1...%d\n", NUMBER_OF_TLS); for (int i = 0; i < NUMBER_OF_TLS; ++i) { aTLS_values[i]++; diff --git a/tests/pthread_tls/tests/01-run.py b/tests/pthread_tls/tests/01-run.py index c256dbfc2e..9d609d1546 100755 --- a/tests/pthread_tls/tests/01-run.py +++ b/tests/pthread_tls/tests/01-run.py @@ -14,7 +14,7 @@ def _check_test_output(child): def testfunc(child): child.expect('START') - child.expect('-= TEST 1 - create 20 tls with sequencial values 0...19 =-') + child.expect('-= TEST 1 - create 20 tls with sequential values 0...19 =-') _check_test_output(child) child.expect('-= TEST 2 - ' r'delete deliberate key \(key\[5\]:-?\d+\) =-') diff --git a/tests/riotboot/tests/common/assert_slotnum.py b/tests/riotboot/tests/common/assert_slotnum.py index c7e9272b0a..6d1ccdc40a 100755 --- a/tests/riotboot/tests/common/assert_slotnum.py +++ b/tests/riotboot/tests/common/assert_slotnum.py @@ -27,7 +27,7 @@ def testfunc(child): child.sendline("curslothdr") # Magic number is "RIOT" (always in little endian) child.expect_exact("Image magic_number: 0x544f4952") - # Other info is hardware/app dependant so we just check basic compliance + # Other info is hardware/app dependent so we just check basic compliance child.expect("Image Version: %s" % ("{0:#0{1}x}".format(app_ver, 10))) child.expect("Image start address: 0x[0-9a-fA-F]{8}") child.expect("Header chksum: 0x[0-9a-fA-F]{8}") diff --git a/tests/rng/main.c b/tests/rng/main.c index 621c618f6d..8ba8828e73 100644 --- a/tests/rng/main.c +++ b/tests/rng/main.c @@ -28,7 +28,7 @@ #include "test.h" /* - * Foward declarations + * Forward declarations */ static int cmd_distributions(int argc, char **argv); static int cmd_dump(int argc, char **argv); diff --git a/tests/sys_irq_handler/main.c b/tests/sys_irq_handler/main.c index c867233375..ee0f0428df 100644 --- a/tests/sys_irq_handler/main.c +++ b/tests/sys_irq_handler/main.c @@ -18,12 +18,12 @@ * This application demonstrates how to use the interrupt handler thread * module `irq_handler`. For that purpose the main thread simulates interrupts * from 2 interrupt sources with different priorities with a period - * of a half second. One interrupt source triggeres a second interrupt before + * of a half second. One interrupt source triggers a second interrupt before * the interrupts can be handled by the interrupt handler. * * To be able to simulate the interrupts by the main thread, the interrupt * handler thread has to have a lower priority as the main thread for this - * example. Otherwise, the interrupts would be handled immediatly when they + * example. Otherwise, the interrupts would be handled immediately when they * are generated by the main thread. Therefore the interrupt handler thread * priority is set to THREAD_PRIORITY_MAIN+1 for this example. * @} diff --git a/tests/thread_priority_inversion/README.md b/tests/thread_priority_inversion/README.md index e73208c0a2..0c0e4498c8 100644 --- a/tests/thread_priority_inversion/README.md +++ b/tests/thread_priority_inversion/README.md @@ -9,7 +9,7 @@ should be scheduled periodically and produce some output: 2017-07-17 17:00:30,343 - INFO # t_high: freeing resource... ``` During this phase of 1s, **t_high** lockes the mutex **res_mtx** which -represents a shared ressource. After unlocking the mutex, **t_high** waits 1s +represents a shared resource. After unlocking the mutex, **t_high** waits 1s before restaring its cycle again. A low priority thread **t_low** is doing the same. Since both threads sharing diff --git a/tests/unittests/README.md b/tests/unittests/README.md index f22d98e5d8..23ab2a9587 100644 --- a/tests/unittests/README.md +++ b/tests/unittests/README.md @@ -97,7 +97,7 @@ make term ``` ## Writing unit tests -### File struture +### File structure RIOT uses [*embUnit*](http://embunit.sourceforge.net/) for unit testing. All unit tests are organized in ``tests/unittests`` and can be built module-wise, if needed. For each module there exists a ``tests-/tests-.h`` file, at least one C file in ``tests-/`` and a ``tests-/Makefile``. diff --git a/tests/unittests/tests-bloom/tests-bloom-sets.h b/tests/unittests/tests-bloom/tests-bloom-sets.h index f2d7d20b95..c8c6177bb3 100644 --- a/tests/unittests/tests-bloom/tests-bloom-sets.h +++ b/tests/unittests/tests-bloom/tests-bloom-sets.h @@ -573,7 +573,7 @@ const char* const A[1000] = {"osteopathic" ,"culilawan" ,"trigonocephalous" ,"Musca" -,"donnot" +,"donot" ,"lobose" ,"Suevian" ,"Frenchwise" diff --git a/tests/unittests/tests-fib/tests-fib.c b/tests/unittests/tests-fib/tests-fib.c index 9fe83118c4..154ee658bb 100644 --- a/tests/unittests/tests-fib/tests-fib.c +++ b/tests/unittests/tests-fib/tests-fib.c @@ -464,7 +464,7 @@ static void test_fib_12_get_next_hop_fail(void) } /* -* @brief get next hop for known destination but unsufficient size for the output +* @brief get next hop for known destination but insufficient size for the output * It is expected to get no next hop and receive -ENOBUFS */ static void test_fib_13_get_next_hop_fail_on_buffer_size(void) diff --git a/tests/unittests/tests-fib_sr/tests-fib_sr.c b/tests/unittests/tests-fib_sr/tests-fib_sr.c index 798d1cf418..0af1942cdb 100644 --- a/tests/unittests/tests-fib_sr/tests-fib_sr.c +++ b/tests/unittests/tests-fib_sr/tests-fib_sr.c @@ -51,7 +51,7 @@ static fib_table_t test_fib_sr_table; /* * @brief helper function to create source routes. - * The enrties are constructed with the given prefix and numbers + * The entries are constructed with the given prefix and numbers * counted from the given count borders (from and to). * @param[in] pre prefix string to use * @param[in] from starting index to count from diff --git a/tests/unittests/tests-gnrc_ipv6_nib/tests-gnrc_ipv6_nib-internal.c b/tests/unittests/tests-gnrc_ipv6_nib/tests-gnrc_ipv6_nib-internal.c index a171d3c2a1..166aefb147 100644 --- a/tests/unittests/tests-gnrc_ipv6_nib/tests-gnrc_ipv6_nib-internal.c +++ b/tests/unittests/tests-gnrc_ipv6_nib/tests-gnrc_ipv6_nib-internal.c @@ -476,7 +476,7 @@ static void test_nib_nc_add__success(void) } /* - * Creates GNRC_IPV6_NIB_NUMOF neighbor cache entries with differnt IP address. + * Creates GNRC_IPV6_NIB_NUMOF neighbor cache entries with different IP address. * Expected result: new entries should still be able to be created and further * should be different than the previous created ones */ diff --git a/tests/unittests/tests-gnrc_ipv6_nib/tests-gnrc_ipv6_nib-nc.c b/tests/unittests/tests-gnrc_ipv6_nib/tests-gnrc_ipv6_nib-nc.c index 6c530b53ed..e47c560c32 100644 --- a/tests/unittests/tests-gnrc_ipv6_nib/tests-gnrc_ipv6_nib-nc.c +++ b/tests/unittests/tests-gnrc_ipv6_nib/tests-gnrc_ipv6_nib-nc.c @@ -154,7 +154,7 @@ static void test_nib_nc_set__success_duplicate(void) * Creates GNRC_IPV6_NIB_NUMOF neighbor cache entries with different addresses * and interfaces and then tries to delete one with yet another address. * Expected result: There should be still GNRC_IPV6_NIB_NUMOF entries in the - * neigbor cache + * neighbor cache */ static void test_nib_nc_del__unknown(void) { diff --git a/tests/unittests/tests-gnrc_ipv6_nib/tests-gnrc_ipv6_nib-pl.c b/tests/unittests/tests-gnrc_ipv6_nib/tests-gnrc_ipv6_nib-pl.c index 7cbbaeb816..ed11e0d60e 100644 --- a/tests/unittests/tests-gnrc_ipv6_nib/tests-gnrc_ipv6_nib-pl.c +++ b/tests/unittests/tests-gnrc_ipv6_nib/tests-gnrc_ipv6_nib-pl.c @@ -336,7 +336,7 @@ static void test_nib_pl_set__success(void) * Creates MAX_NUMOF prefix list entries with different prefix and interfaces * and then tries to delete one with yet another prefix and interface. * Expected result: There should be still GNRC_IPV6_NIB_NUMOF entries in the - * neigbor cache + * neighbor cache */ static void test_nib_pl_del__unknown(void) { diff --git a/tests/unittests/tests-hashes/tests-hashes-sha256-hmac.c b/tests/unittests/tests-hashes/tests-hashes-sha256-hmac.c index 48d592fce6..7b75df324d 100644 --- a/tests/unittests/tests-hashes/tests-hashes-sha256-hmac.c +++ b/tests/unittests/tests-hashes/tests-hashes-sha256-hmac.c @@ -61,7 +61,7 @@ static void test_hashes_hmac_sha256_hash_sequence(void) } /* - The followig testcases are taken from: + The following testcases are taken from: https://tools.ietf.org/html/rfc4868#section-2.7.1 */ @@ -186,7 +186,7 @@ static void test_hashes_hmac_sha256_ite_hash_sequence(void) } /* - The followig testcases are taken from: + The following testcases are taken from: https://tools.ietf.org/html/rfc4868#section-2.7.1 */ diff --git a/tests/unittests/tests-hashes/tests-hashes-sha3.c b/tests/unittests/tests-hashes/tests-hashes-sha3.c index dbb41051e0..1422a0da46 100644 --- a/tests/unittests/tests-hashes/tests-hashes-sha3.c +++ b/tests/unittests/tests-hashes/tests-hashes-sha3.c @@ -28,7 +28,7 @@ /** * @brief expected SHA3-256 hash for test 01 * - * All test values taken from the Keccak code pacakge: + * All test values taken from the Keccak code package: * https://github.com/gvanas/KeccakCodePackage * Files: TestVectors/ShortMsgKAT_SHA3-256.txt, TestVectors/ShortMsgKAT_SHA3-384.txt, * TestVectors/ShortMsgKAT_SHA3-512.txt diff --git a/tests/unittests/tests-inet_csum/tests-inet_csum.c b/tests/unittests/tests-inet_csum/tests-inet_csum.c index ebb40e6e04..b47e766765 100644 --- a/tests/unittests/tests-inet_csum/tests-inet_csum.c +++ b/tests/unittests/tests-inet_csum/tests-inet_csum.c @@ -156,7 +156,7 @@ static void test_inet_csum__empty_app_buffer(void) uint16_t hdr_sum, pyld_sum, hdr_expected = 0xdcfc; /* result unnormalized: - * explictly using an odd-sized header for the first slice, to setup corner case */ + * explicitly using an odd-sized header for the first slice, to setup corner case */ hdr_sum = inet_csum_slice(0, data_hdr, sizeof(data_hdr), 0); TEST_ASSERT_EQUAL_INT(hdr_expected, hdr_sum); diff --git a/tests/unittests/tests-pkt/tests-pkt.c b/tests/unittests/tests-pkt/tests-pkt.c index f127207c71..7f0fbfcb1c 100644 --- a/tests/unittests/tests-pkt/tests-pkt.c +++ b/tests/unittests/tests-pkt/tests-pkt.c @@ -147,7 +147,7 @@ static void test_pktsnip_search_type(void) gnrc_pktsnip_t snip1 = _INIT_ELEM_STATIC_TYPE(GNRC_NETTYPE_UNDEF, NULL); gnrc_pktsnip_t snip2 = _INIT_ELEM_STATIC_TYPE(GNRC_NETTYPE_TEST, &snip1); gnrc_pktsnip_t snip3 = _INIT_ELEM_STATIC_TYPE(GNRC_NETTYPE_IPV6, &snip2); - /* successfull searches */ + /* successful searches */ gnrc_pktsnip_t *res; TEST_ASSERT_NOT_NULL((res = gnrc_pktsnip_search_type(&snip3, GNRC_NETTYPE_UNDEF))); TEST_ASSERT_EQUAL_INT(GNRC_NETTYPE_UNDEF, res->type); diff --git a/tests/warn_conflict/README.md b/tests/warn_conflict/README.md index b274230efd..dcffabf09c 100644 --- a/tests/warn_conflict/README.md +++ b/tests/warn_conflict/README.md @@ -1,6 +1,6 @@ Test warning on conflicting features ================================================== -Using conflicting features provided by boards was invisible for the user until the used features resulted in a traceable problem or the user was aware of the conflict in advance from documentation ect. +Using conflicting features provided by boards was invisible for the user until the used features resulted in a traceable problem or the user was aware of the conflict in advance from documentation etc. Now, existing and known conflicts can be recorded into `FEATURES_CONFLICT` for each board to inform the user on a conflict situation during compile time. This test requires conflicting features in its `Makefile`, i.e. `FEATURES_REQUIRED = periph_dac periph_spi`. diff --git a/tests/xtimer_hang/README.md b/tests/xtimer_hang/README.md index 95e21d227f..907594349a 100644 --- a/tests/xtimer_hang/README.md +++ b/tests/xtimer_hang/README.md @@ -13,10 +13,10 @@ deadlock, it is not about clock stability nor accuracy of timing intervals. When debug pins are used and observed the expected output is as follows: The MAIN_THREAD_PIN is on for ca. 100ms and that in a regular interval. If this interval is not regular or has gaps this is an error. The WORKER_THREAD_PIN should toggle after 1ms and 1.1ms. (As this might fall in the XTIMER_ISR_BACKOFF the -first pin toggle is delayed untill the second is ready. Thus the time interval can be longer.) +first pin toggle is delayed until the second is ready. Thus the time interval can be longer.) If the Timer fall in the same interrupt there might be a interrupt before the second worker thread timer is set. This leads to a separation of the timer interrupts until they again fall in the same interrupt. -It might happen that from the seperation of the interrupts till the merge there is only a uneven count of +It might happen that from the separation of the interrupts till the merge there is only a uneven count of WORKER_THREAD_PIN toggles, which means a loss of one worker time 2, which is expected as it has a lower priority then worker timer 1. And thus in the moment when the hardware interrupt for the 2 worker is executet it has to wait for the 1 worker timer because of the XTIMER_ISR_BACKOFF and so the first timer is executed first as it has the higher priority. \ No newline at end of file diff --git a/tests/xtimer_mutex_lock_timeout/main.c b/tests/xtimer_mutex_lock_timeout/main.c index dcb140c4f5..c96f32ccbd 100644 --- a/tests/xtimer_mutex_lock_timeout/main.c +++ b/tests/xtimer_mutex_lock_timeout/main.c @@ -32,7 +32,7 @@ static kernel_pid_t main_thread_pid; /** - * Foward declarations + * Forward declarations */ static int cmd_test_xtimer_mutex_lock_timeout_long_unlocked(int argc, char **argv);