From c3500eb6e072784b34fd9a1cc0210f6c1837491e Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Mon, 1 May 2023 21:16:11 +0200 Subject: [PATCH] tree wide: fix typos in comments found by codespell This will not change generated binaries, only the Doxygen output and source code will have less typos. --- boards/e180-zg120b-tb/doc.txt | 2 +- boards/ikea-tradfri/doc.txt | 2 +- boards/slstk3400a/doc.txt | 2 +- boards/slstk3401a/doc.txt | 2 +- boards/slstk3402a/doc.txt | 4 ++-- boards/sltb001a/doc.txt | 2 +- boards/slwstk6220a/doc.txt | 2 +- boards/stk3200/doc.txt | 2 +- boards/stk3600/doc.txt | 2 +- boards/stk3700/doc.txt | 2 +- cpu/gd32v/periph/i2c.c | 2 +- cpu/native/async_read.c | 2 +- cpu/native/include/async_read.h | 8 ++++---- cpu/nrf52/include/periph_cpu.h | 4 ++-- cpu/nrf9160/include/periph_cpu.h | 4 ++-- drivers/bq2429x/include/bq2429x_internal.h | 2 +- drivers/cc110x/cc110x_rx_tx.c | 2 +- drivers/cc110x/include/cc110x_params.h | 2 +- drivers/include/nrf24l01p_ng.h | 4 ++-- drivers/netdev/ieee802154.c | 2 +- drivers/soft_uart/soft_uart.c | 2 +- pkg/openwsn/contrib/openwsn.c | 2 +- .../routing/ipv6_auto_subnets/gnrc_ipv6_auto_subnets.c | 2 +- tests/driver_nrf24l01p_lowlevel/main.c | 2 +- 24 files changed, 31 insertions(+), 31 deletions(-) diff --git a/boards/e180-zg120b-tb/doc.txt b/boards/e180-zg120b-tb/doc.txt index 67647fdc2719..e9855de4237e 100644 --- a/boards/e180-zg120b-tb/doc.txt +++ b/boards/e180-zg120b-tb/doc.txt @@ -40,7 +40,7 @@ peripherals, different energy modes and short wake-up times. | HWCRYPTO | — | — | | AES128/AES256, SHA1, SHA256 | | RTT | — | RTCC | | 1 Hz interval. Either RTT or RTC (see below) | | RTC | — | RTCC | | 1 Hz interval. Either RTC or RTT (see below) | -| Timer | 0 | TIMER0 + TIMER1 | | TIMER0 is used as prescaler (must be adjecent) | +| Timer | 0 | TIMER0 + TIMER1 | | TIMER0 is used as prescaler (must be adjacent) | | | 1 | LETIMER0 | | | | UART | 0 | USART0 | RX: PA1, TX: PA0 | Default STDIO output | diff --git a/boards/ikea-tradfri/doc.txt b/boards/ikea-tradfri/doc.txt index 89008dc1e531..b62417bde99b 100644 --- a/boards/ikea-tradfri/doc.txt +++ b/boards/ikea-tradfri/doc.txt @@ -65,7 +65,7 @@ Pin 1 is on the top-left side with only 6 contacts. | RTT | — | RTCC | | 1 Hz interval. Either RTT or RTC (see below) | | RTC | — | RTCC | | 1 Hz interval. Either RTC or RTT (see below) | | SPI | 0 | USART1 | MOSI: PD15, MISO: PD14, CLK: PD13 | | -| Timer | 0 | TIMER0 + TIMER1 | | TIMER0 is used as prescaler (must be adjecent) | +| Timer | 0 | TIMER0 + TIMER1 | | TIMER0 is used as prescaler (must be adjacent) | | | 1 | LETIMER0 | | | | UART | 0 | USART0 | RX: PB15, TX: PB14 | Default STDIO output | | | 1 | LEUART0 | RX: PB15, TX: PB14 | Baud rate limited (see below) | diff --git a/boards/slstk3400a/doc.txt b/boards/slstk3400a/doc.txt index 1e7703cca2c7..20e4de4beb59 100644 --- a/boards/slstk3400a/doc.txt +++ b/boards/slstk3400a/doc.txt @@ -67,7 +67,7 @@ PIN 1 is the bottom-left contact when the header faces you horizontally. | RTT | — | RTCC | | 1 Hz interval. Either RTT or RTC (see below) | | RTC | — | RTCC | | 1 Hz interval. Either RTC or RTT (see below) | | SPI | 0 | USART0 | MOSI: PE10, MISO: PE11, CLK: PE12 | | -| Timer | 0 | TIMER0 + TIMER1 | | TIMER0 is used as prescaler (must be adjecent) | +| Timer | 0 | TIMER0 + TIMER1 | | TIMER0 is used as prescaler (must be adjacent) | | UART | 0 | USART1 | RX: PA0, TX: PF2 | Default STDIO output | | | 1 | LEUART0 | RX: PD5, TX: PD4 | Baud rate limited (see below) | diff --git a/boards/slstk3401a/doc.txt b/boards/slstk3401a/doc.txt index 822dc379d38f..cb0a0f07ff26 100644 --- a/boards/slstk3401a/doc.txt +++ b/boards/slstk3401a/doc.txt @@ -67,7 +67,7 @@ PIN 1 is the bottom-left contact when the header faces you horizontally. | RTT | — | RTCC | | 1 Hz interval. Either RTT or RTC (see below) | | RTC | — | RTCC | | 1 Hz interval. Either RTC or RTT (see below) | | SPI | 0 | USART1 | MOSI: PC6, MISO: PC7, CLK: PC8 | | -| Timer | 0 | TIMER0 + TIMER1 | | TIMER0 is used as prescaler (must be adjecent) | +| Timer | 0 | TIMER0 + TIMER1 | | TIMER0 is used as prescaler (must be adjacent) | | | 1 | LETIMER0 | | | | UART | 0 | USART0 | RX: PA1, TX: PA0 | Default STDIO output | | | 1 | LEUART0 | RX: PD11, TX: PD10 | Baud rate limited (see below) | diff --git a/boards/slstk3402a/doc.txt b/boards/slstk3402a/doc.txt index 5322dcf0bf7c..3c4443e28361 100644 --- a/boards/slstk3402a/doc.txt +++ b/boards/slstk3402a/doc.txt @@ -68,8 +68,8 @@ PIN 1 is the bottom-left contact when the header faces you horizontally. | RTT | — | RTCC | | 1 Hz interval. Either RTT or RTC (see below) | | RTC | — | RTCC | | 1 Hz interval. Either RTC or RTT (see below) | | SPI | 0 | USART1 | MOSI: PC6, MISO: PC7, CLK: PC8 | | -| Timer | 0 | WTIMER0 + WTIMER1 | | WTIMER0 is used as prescaler (must be adjecent) | -| Timer | 1 | TIMER0 + TIMER1 | | TIMER0 is used as prescaler (must be adjecent) | +| Timer | 0 | WTIMER0 + WTIMER1 | | WTIMER0 is used as prescaler (must be adjacent) | +| Timer | 1 | TIMER0 + TIMER1 | | TIMER0 is used as prescaler (must be adjacent) | | | 2 | LETIMER0 | | | | UART | 0 | USART0 | RX: PA1, TX: PA0 | Default STDIO output | | | 1 | LEUART0 | RX: PD11, TX: PD10 | Baud rate limited (see below) | diff --git a/boards/sltb001a/doc.txt b/boards/sltb001a/doc.txt index fe9263fe8555..5081eeab739c 100644 --- a/boards/sltb001a/doc.txt +++ b/boards/sltb001a/doc.txt @@ -65,7 +65,7 @@ is the top-left contact, marked on the silkscreen. | RTT | — | RTCC | | 1 Hz interval. Either RTT or RTC (see below) | | RTC | — | RTCC | | 1 Hz interval. Either RTC or RTT (see below) | | SPI | 0 | USART1 | MOSI: PC6, MISO: PC7, CLK: PC8 | | -| Timer | 0 | TIMER0 + TIMER1 | | TIMER0 is used as prescaler (must be adjecent) | +| Timer | 0 | TIMER0 + TIMER1 | | TIMER0 is used as prescaler (must be adjacent) | | | 1 | LETIMER0 | | | | UART | 0 | USART0 | RX: PA1, TX: PA0 | Default STDIO output | | | 1 | LEUART0 | RX: PD11, TX: PD10 | Baud rate limited (see below) | diff --git a/boards/slwstk6220a/doc.txt b/boards/slwstk6220a/doc.txt index fbf69e38026f..9f87d8d10231 100644 --- a/boards/slwstk6220a/doc.txt +++ b/boards/slwstk6220a/doc.txt @@ -69,7 +69,7 @@ PIN 1 is the bottom-left contact when the header faces you horizontally. | RTT | — | RTC | | Either RTT or RTC (see below) | | RTC | — | RTC | | Either RTC or RTT (see below) | | SPI | 0 | USART1 | MOSI: PD0, MISO: PD1, CLK: PD2 | | -| Timer | 0 | TIMER1 + TIMER2 | | TIMER1 is used as prescaler (must be adjecent) | +| Timer | 0 | TIMER1 + TIMER2 | | TIMER1 is used as prescaler (must be adjacent) | | | 1 | LETIMER0 | | | | UART | 0 | UART0 | RX: PE1, TX: PE0 | STDIO output | | | 1 | LEUART0 | RX: PD5, TX: PD4 | Baud rate limited (see below) | diff --git a/boards/stk3200/doc.txt b/boards/stk3200/doc.txt index e6b7cef6fdf6..cd5eeb3b72b9 100644 --- a/boards/stk3200/doc.txt +++ b/boards/stk3200/doc.txt @@ -67,7 +67,7 @@ PIN 1 is the bottom-left contact when the header faces you horizontally. | RTT | — | RTC | | Either RTT or RTC (see below) | | RTC | — | RTC | | Either RTC or RTT (see below) | | SPI | 0 | USART1 | MOSI: PD7, MISO: PD6, CLK: PC15 | | -| Timer | 0 | TIMER0 + TIMER1 | | TIMER0 is used as prescaler (must be adjecent) | +| Timer | 0 | TIMER0 + TIMER1 | | TIMER0 is used as prescaler (must be adjacent) | | UART | 0 | LEUART0 | RX: PD5, TX: PD4 | STDIO Output, Baud rate limited (see below) | ### User interface diff --git a/boards/stk3600/doc.txt b/boards/stk3600/doc.txt index ef0bb7fd2458..0d23a51cd13d 100644 --- a/boards/stk3600/doc.txt +++ b/boards/stk3600/doc.txt @@ -71,7 +71,7 @@ PIN 1 is the bottom-left contact when the header faces you horizontally. | RTC | — | RTC | | Either RTC or RTT (see below) | | SPI | 0 | USART1 | MOSI: PD0, MISO: PD1, CLK: PD2 | | | | 1 | USART2 | MOSI: NC, MISO: PC3, CLK: PC4 | | -| Timer | 0 | TIMER0 + TIMER1 | | TIMER0 is used as prescaler (must be adjecent) | +| Timer | 0 | TIMER0 + TIMER1 | | TIMER0 is used as prescaler (must be adjacent) | | | 1 | LETIMER0 | | | | UART | 0 | UART0 | RX: PE1, TX: PE0 | STDIO output | | | 1 | LEUART0 | RX: PD5, TX: PD4 | Baud rate limited (see below) | diff --git a/boards/stk3700/doc.txt b/boards/stk3700/doc.txt index 95a6d1711a5e..0f58d6803b61 100644 --- a/boards/stk3700/doc.txt +++ b/boards/stk3700/doc.txt @@ -71,7 +71,7 @@ PIN 1 is the bottom-left contact when the header faces you horizontally. | RTC | — | RTC | | Either RTC or RTT (see below) | | SPI | 0 | USART1 | MOSI: PD0, MISO: PD1, CLK: PD2 | | | | 1 | USART2 | MOSI: NC, MISO: PC3, CLK: PC4 | | -| Timer | 0 | TIMER0 + TIMER1 | | TIMER0 is used as prescaler (must be adjecent) | +| Timer | 0 | TIMER0 + TIMER1 | | TIMER0 is used as prescaler (must be adjacent) | | | 1 | LETIMER0 | | | | UART | 0 | UART0 | RX: PE1, TX: PE0 | STDIO output | | | 1 | LEUART0 | RX: PD5, TX: PD4 | Baud rate limited (see below) | diff --git a/cpu/gd32v/periph/i2c.c b/cpu/gd32v/periph/i2c.c index 9917f225fc53..5b599c260c0b 100644 --- a/cpu/gd32v/periph/i2c.c +++ b/cpu/gd32v/periph/i2c.c @@ -362,7 +362,7 @@ int _i2c_read_cmd(i2c_t dev, uint8_t *data) switch (_i2c_dev[dev].state) { case I2C_RXB_NOT_EMPTY_BT_COMPLETE: case I2C_RXB_NOT_EMPTY: - /* RBNE is cleared by reding STAT0 followed by reading the data register */ + /* RBNE is cleared by reading STAT0 followed by reading the data register */ i2c->STAT0; *data = i2c->DATA; return 0; diff --git a/cpu/native/async_read.c b/cpu/native/async_read.c index 085a6c87f059..570553540651 100644 --- a/cpu/native/async_read.c +++ b/cpu/native/async_read.c @@ -1,5 +1,5 @@ /** - * Multiple asynchronus read on file descriptors + * Multiple asynchronous read on file descriptors * * Copyright (C) 2015 Ludwig Knüpfer , * Martine Lenders diff --git a/cpu/native/include/async_read.h b/cpu/native/include/async_read.h index e180bcd476e1..1c2edd9a5639 100644 --- a/cpu/native/include/async_read.h +++ b/cpu/native/include/async_read.h @@ -11,7 +11,7 @@ * @{ * * @file - * @brief Multiple asynchronus read on file descriptors + * @brief Multiple asynchronous read on file descriptors * * @author Takuo Yonezawa */ @@ -33,7 +33,7 @@ extern "C" { #endif /** - * @brief asynchronus read callback type + * @brief asynchronous read callback type */ typedef void (*native_async_read_callback_t)(int fd, void *arg); @@ -48,14 +48,14 @@ typedef struct { } async_read_t; /** - * @brief initialize asynchronus read system + * @brief initialize asynchronous read system * * This registers SIGIO signal handler. */ void native_async_read_setup(void); /** - * @brief shutdown asynchronus read system + * @brief shutdown asynchronous read system * * This deregisters SIGIO signal handler. */ diff --git a/cpu/nrf52/include/periph_cpu.h b/cpu/nrf52/include/periph_cpu.h index 4e2b6863ef83..61981acee7b6 100644 --- a/cpu/nrf52/include/periph_cpu.h +++ b/cpu/nrf52/include/periph_cpu.h @@ -246,7 +246,7 @@ typedef struct { typedef void (*spi_twi_irq_cb_t)(void *arg); /** - * @brief Reqister a SPI IRQ handler for a shared I2C/SPI irq vector + * @brief Register a SPI IRQ handler for a shared I2C/SPI irq vector * * @param bus bus to register the IRQ handler on * @param cb callback to call on IRQ @@ -256,7 +256,7 @@ void spi_twi_irq_register_spi(NRF_SPIM_Type *bus, spi_twi_irq_cb_t cb, void *arg); /** - * @brief Reqister a I2C IRQ handler for a shared I2C/SPI irq vector + * @brief Register a I2C IRQ handler for a shared I2C/SPI irq vector * * @param bus bus to register the IRQ handler on * @param cb callback to call on IRQ diff --git a/cpu/nrf9160/include/periph_cpu.h b/cpu/nrf9160/include/periph_cpu.h index d6ba9ab48fff..f5fbbb72fe5c 100644 --- a/cpu/nrf9160/include/periph_cpu.h +++ b/cpu/nrf9160/include/periph_cpu.h @@ -190,7 +190,7 @@ typedef enum { typedef void (*spi_twi_irq_cb_t)(void *arg); /** - * @brief Reqister a SPI IRQ handler for a shared I2C/SPI irq vector + * @brief Register a SPI IRQ handler for a shared I2C/SPI irq vector * * @param bus bus to register the IRQ handler on * @param cb callback to call on IRQ @@ -200,7 +200,7 @@ void spi_twi_irq_register_spi(NRF_SPIM_Type *bus, spi_twi_irq_cb_t cb, void *arg); /** - * @brief Reqister a I2C IRQ handler for a shared I2C/SPI irq vector + * @brief Register a I2C IRQ handler for a shared I2C/SPI irq vector * * @param bus bus to register the IRQ handler on * @param cb callback to call on IRQ diff --git a/drivers/bq2429x/include/bq2429x_internal.h b/drivers/bq2429x/include/bq2429x_internal.h index df3a947185bc..18c8f368e652 100644 --- a/drivers/bq2429x/include/bq2429x_internal.h +++ b/drivers/bq2429x/include/bq2429x_internal.h @@ -11,7 +11,7 @@ * * @{ * @file - * @brief Internal address, registers, constatns for the BQ2429x family + * @brief Internal address, registers, constants for the BQ2429x family * power ICs. * * @author Jean Pierre Dudey diff --git a/drivers/cc110x/cc110x_rx_tx.c b/drivers/cc110x/cc110x_rx_tx.c index f19f396adf79..89f720f6c965 100644 --- a/drivers/cc110x/cc110x_rx_tx.c +++ b/drivers/cc110x/cc110x_rx_tx.c @@ -316,7 +316,7 @@ void cc110x_isr(netdev_t *netdev) gpio_irq_enable(dev->params.gdo0); gpio_irq_enable(dev->params.gdo2); cc110x_release(dev); - /* Pass event to uper layer, if needed */ + /* Pass event to upper layer, if needed */ if (post_isr_event != NETDEV_NO_EVENT) { dev->netdev.event_callback(&dev->netdev, post_isr_event); } diff --git a/drivers/cc110x/include/cc110x_params.h b/drivers/cc110x/include/cc110x_params.h index 14f1cf4b58f8..383884235abe 100644 --- a/drivers/cc110x/include/cc110x_params.h +++ b/drivers/cc110x/include/cc110x_params.h @@ -49,7 +49,7 @@ extern "C" { #endif #ifndef CC110X_PARAM_SPI_CLOCK -#define CC110X_PARAM_SPI_CLOCK SPI_CLK_5MHZ /**< SPI clock frequence to use */ +#define CC110X_PARAM_SPI_CLOCK SPI_CLK_5MHZ /**< SPI clock frequency to use */ #endif #ifndef CC110X_PARAM_PATABLE diff --git a/drivers/include/nrf24l01p_ng.h b/drivers/include/nrf24l01p_ng.h index 4b3a873659eb..869bf85819dc 100644 --- a/drivers/include/nrf24l01p_ng.h +++ b/drivers/include/nrf24l01p_ng.h @@ -281,7 +281,7 @@ uint8_t nrf24l01p_ng_get_crc(const nrf24l01p_ng_t *dev, * * @retval 0 Success * @retval -EINVAL Bad Tx power configuration value - * @retval -EAGAIN Current state does not permit changin Tx power + * @retval -EAGAIN Current state does not permit changing Tx power */ int nrf24l01p_ng_set_tx_power(nrf24l01p_ng_t *dev, nrf24l01p_ng_tx_power_t power); @@ -333,7 +333,7 @@ uint8_t nrf24l01p_ng_get_channel(const nrf24l01p_ng_t *dev); * * @retval 0 Success * @retval -EINVAL Bad address length - * @return -EAGAIN Current state does not permit changin Rx address + * @return -EAGAIN Current state does not permit changing Rx address */ int nrf24l01p_ng_set_rx_address(nrf24l01p_ng_t *dev, const uint8_t *addr, nrf24l01p_ng_pipe_t pipe); diff --git a/drivers/netdev/ieee802154.c b/drivers/netdev/ieee802154.c index 8ae614e494e1..cf5a39d4b44f 100644 --- a/drivers/netdev/ieee802154.c +++ b/drivers/netdev/ieee802154.c @@ -201,7 +201,7 @@ int netdev_ieee802154_set(netdev_ieee802154_t *dev, netopt_t opt, const void *va uint16_t chan = *((uint16_t *)value); /* real validity needs to be checked by device, since sub-GHz and * 2.4 GHz band radios have different legal values. Here we only - * check that it fits in an 8-bit variabl*/ + * check that it fits in an 8-bit variable */ assert(chan <= UINT8_MAX); dev->chan = chan; res = sizeof(uint16_t); diff --git a/drivers/soft_uart/soft_uart.c b/drivers/soft_uart/soft_uart.c index 99aa8c7e20d4..23d0a25dc1bc 100644 --- a/drivers/soft_uart/soft_uart.c +++ b/drivers/soft_uart/soft_uart.c @@ -43,7 +43,7 @@ struct uart_ctx { void* rx_cb_arg; /**< RX callback arg */ uint32_t bit_time; /**< timer ticks per bit */ uint16_t byte_tx; /**< current TX byte */ - uint16_t byte_rx; /**< curretn RX byte */ + uint16_t byte_rx; /**< current RX byte */ uint8_t bits_tx; /**< TX bit pos */ uint8_t state_rx; /**< RX state */ #ifdef MODULE_SOFT_UART_MODECFG diff --git a/pkg/openwsn/contrib/openwsn.c b/pkg/openwsn/contrib/openwsn.c index d195eaaea316..340ad2e67cb8 100644 --- a/pkg/openwsn/contrib/openwsn.c +++ b/pkg/openwsn/contrib/openwsn.c @@ -10,7 +10,7 @@ /** * @{ * @file - * @brief OpenWSN bootstraping functions implementation + * @brief OpenWSN bootstrapping functions implementation * * @author Peter Kietzmann * @author Francisco Molina diff --git a/sys/net/gnrc/routing/ipv6_auto_subnets/gnrc_ipv6_auto_subnets.c b/sys/net/gnrc/routing/ipv6_auto_subnets/gnrc_ipv6_auto_subnets.c index 92c50ee02ea7..e02a726003bc 100644 --- a/sys/net/gnrc/routing/ipv6_auto_subnets/gnrc_ipv6_auto_subnets.c +++ b/sys/net/gnrc/routing/ipv6_auto_subnets/gnrc_ipv6_auto_subnets.c @@ -121,7 +121,7 @@ #endif /** - * @brief How long to wait for other routers annoucements before resending + * @brief How long to wait for other routers announcements before resending * or creating subnets when the retry counter is exhausted */ #ifndef CONFIG_GNRC_IPV6_AUTO_SUBNETS_TIMEOUT_MS diff --git a/tests/driver_nrf24l01p_lowlevel/main.c b/tests/driver_nrf24l01p_lowlevel/main.c index 96bda154a9d1..459367f678a4 100644 --- a/tests/driver_nrf24l01p_lowlevel/main.c +++ b/tests/driver_nrf24l01p_lowlevel/main.c @@ -229,7 +229,7 @@ int cmd_send(int argc, char **argv) } /* trigger transmitting */ nrf24l01p_transmit(&nrf24l01p_0); - /* wait while data is pysically transmitted */ + /* wait while data is physically transmitted */ ztimer_sleep(ZTIMER_USEC, DELAY_DATA_ON_AIR); /* get status of the transceiver */ status = nrf24l01p_get_status(&nrf24l01p_0);