From 5b279c8a3f13b3ab96d48285b8dbc8365b7ce618 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Thu, 7 Jan 2021 22:12:15 +0100 Subject: [PATCH 01/11] codespell: add filp to ignored words filp is used as a variable name and trigger a false positive with flip --- dist/tools/codespell/ignored_words.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dist/tools/codespell/ignored_words.txt b/dist/tools/codespell/ignored_words.txt index 1f36e03fac..2965ebf2d9 100644 --- a/dist/tools/codespell/ignored_words.txt +++ b/dist/tools/codespell/ignored_words.txt @@ -110,3 +110,6 @@ Chang # chang (common name) => change chang + +# filp (variable name for file pointer) => flip +filp From d99f34fc69cd08596a66cdf129da3baabc27b6ab Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Thu, 7 Jan 2021 22:15:19 +0100 Subject: [PATCH 02/11] codespell: add 'ether' to ignored words trigger a false positive with 'either' --- dist/tools/codespell/ignored_words.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dist/tools/codespell/ignored_words.txt b/dist/tools/codespell/ignored_words.txt index 2965ebf2d9..64d3a1359a 100644 --- a/dist/tools/codespell/ignored_words.txt +++ b/dist/tools/codespell/ignored_words.txt @@ -113,3 +113,6 @@ chang # filp (variable name for file pointer) => flip filp + +# Ether (Scapy class name and means Ethernet in some parts of the code) => Either +ether From 907c673020413d86af7edfc15c93fe09bb726b73 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Thu, 7 Jan 2021 22:16:16 +0100 Subject: [PATCH 03/11] boards/feather-nrf52840: fix typo in doc Progammer => Programmer --- boards/feather-nrf52840/doc.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boards/feather-nrf52840/doc.txt b/boards/feather-nrf52840/doc.txt index e5b8f13bb9..80e3bbbc03 100644 --- a/boards/feather-nrf52840/doc.txt +++ b/boards/feather-nrf52840/doc.txt @@ -17,7 +17,7 @@ Low Energy and IEEE 802.15.4 support via the nRF52840 MCU. ### Flash the board See the **Flashing** section in @ref boards_common_nrf52. The easiest way is to -use an external Segger J-Link Progammer connected to the [SWD Connector]. +use an external Segger J-Link Programmer connected to the [SWD Connector]. [SWD Connector]: https://learn.adafruit.com/introducing-the-adafruit-nrf52840-feather/pinouts#swd-connector-3-12 From b4458e73f22b512a232934815cfdba9a514a9867 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Thu, 7 Jan 2021 22:17:01 +0100 Subject: [PATCH 04/11] cpu/esp32: fix typo in Doxygen comment depenend => depend --- cpu/esp32/include/periph_cpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/esp32/include/periph_cpu.h b/cpu/esp32/include/periph_cpu.h index c500ca94d9..f251d2d617 100644 --- a/cpu/esp32/include/periph_cpu.h +++ b/cpu/esp32/include/periph_cpu.h @@ -498,7 +498,7 @@ typedef struct { /** - * @name Timer configuration depenend on which implementation is used + * @name Timer configuration depend on which implementation is used * * Timers are MCU built-in feature and not board-specific. They are therefore * configured here. From 11d1abbac65d205959c26c337ef2c2db3d3697eb Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Thu, 7 Jan 2021 22:17:54 +0100 Subject: [PATCH 05/11] tools/nrf52_resetpin_cfg: fix typo in code Progamming => Programming --- dist/tools/nrf52_resetpin_cfg/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/tools/nrf52_resetpin_cfg/main.c b/dist/tools/nrf52_resetpin_cfg/main.c index 1df5e22042..4197b064ac 100644 --- a/dist/tools/nrf52_resetpin_cfg/main.c +++ b/dist/tools/nrf52_resetpin_cfg/main.c @@ -97,7 +97,7 @@ int main(void) puts("\n\nPress any key (meaning send any char) to continue"); getchar(); - puts("Progamming the pin now..."); + puts("Programming the pin now..."); if ((NRF_UICR->PSELRESET[0] != RESET_VAL) || (NRF_UICR->PSELRESET[1] != RESET_VAL)) { /* we can only erase all UICR registers at once, so we need to save From b8efd8425d432094e6ec7004d798a37088edfaab Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Thu, 7 Jan 2021 22:18:44 +0100 Subject: [PATCH 06/11] doc/kconfig: fix typo (bellow => below) --- doc/doxygen/src/kconfig/kconfig.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/doxygen/src/kconfig/kconfig.md b/doc/doxygen/src/kconfig/kconfig.md index 0592789b2f..ede41f9c67 100644 --- a/doc/doxygen/src/kconfig/kconfig.md +++ b/doc/doxygen/src/kconfig/kconfig.md @@ -443,7 +443,7 @@ config BOARD_SAMR21_XPRO ## Summary of reserved Kconfig prefixes The following symbol prefixes have been assigned particular semantics and are -reserved for the cases described bellow: +reserved for the cases described below: | Prefix | Description | From ac9d8e603e4d447097fc07704361f714b403b96e Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Thu, 7 Jan 2021 22:20:49 +0100 Subject: [PATCH 07/11] drivers/pca9685: fix typo (oscilator => oscillator) --- drivers/include/pca9685.h | 2 +- drivers/pca9685/pca9685.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/include/pca9685.h b/drivers/include/pca9685.h index b13230159a..646fd2064b 100644 --- a/drivers/include/pca9685.h +++ b/drivers/include/pca9685.h @@ -130,7 +130,7 @@ extern "C" #define PCA9685_RESOLUTION (1 << 12) /** - * @brief Internal PCA9685 oscilator frequency is 25 MHz + * @brief Internal PCA9685 oscillator frequency is 25 MHz */ #define PCA9685_OSC_FREQ (25000000) diff --git a/drivers/pca9685/pca9685.c b/drivers/pca9685/pca9685.c index 9030062f39..041f3648eb 100644 --- a/drivers/pca9685/pca9685.c +++ b/drivers/pca9685/pca9685.c @@ -212,14 +212,14 @@ void pca9685_pwm_poweron(pca9685_t *dev) /* clear the SLEEP bit */ byte &= ~PCA9685_MODE1_SLEEP; EXEC(_write(dev, PCA9685_REG_MODE1, &byte, 1)); - /* allow 500 us for oscilator to stabilize */ + /* allow 500 us for oscillator to stabilize */ xtimer_usleep(500); /* clear the RESTART bit to start all PWM channels*/ EXEC(_update(dev, PCA9685_REG_MODE1, PCA9685_MODE1_RESTART, 1)); } else { EXEC(_update(dev, PCA9685_REG_MODE1, PCA9685_MODE1_SLEEP, 0)); - /* allow 500 us for oscilator to stabilize */ + /* allow 500 us for oscillator to stabilize */ xtimer_usleep(500); /* clear the RESTART bit to start all PWM channels*/ EXEC(_update(dev, PCA9685_REG_MODE1, PCA9685_MODE1_RESTART, 1)); From f4523140f1997845645066e694bfcd70998f8f00 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Thu, 7 Jan 2021 22:23:53 +0100 Subject: [PATCH 08/11] pkg/lwip: fix typo (semaphor => semaphore) --- pkg/lwip/contrib/sys_arch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/lwip/contrib/sys_arch.c b/pkg/lwip/contrib/sys_arch.c index b32b08bc84..c5a51ccf59 100644 --- a/pkg/lwip/contrib/sys_arch.c +++ b/pkg/lwip/contrib/sys_arch.c @@ -75,13 +75,13 @@ void sys_sem_free(sys_sem_t *sem) void sys_sem_signal(sys_sem_t *sem) { - LWIP_ASSERT("invalid semaphor", sys_sem_valid(sem)); + LWIP_ASSERT("invalid semaphore", sys_sem_valid(sem)); sema_post((sema_t *)sem); } u32_t sys_arch_sem_wait(sys_sem_t *sem, u32_t count) { - LWIP_ASSERT("invalid semaphor", sys_sem_valid(sem)); + LWIP_ASSERT("invalid semaphore", sys_sem_valid(sem)); if (count != 0) { uint64_t stop, start; start = xtimer_now_usec64(); From 9a9530b4b5ccf46e2db1cb23bd29c71dbd9f060f Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Thu, 7 Jan 2021 22:21:46 +0100 Subject: [PATCH 09/11] sys/entropy_source: fix typo (sates => states) --- sys/entropy_source/doc.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/entropy_source/doc.txt b/sys/entropy_source/doc.txt index b5671b9f24..3bb270d214 100644 --- a/sys/entropy_source/doc.txt +++ b/sys/entropy_source/doc.txt @@ -24,7 +24,7 @@ * @ref drivers_periph_hwrng and @ref sys_puf_sram. The concepts implemented here are heavily * influenced by NIST SP 800-90B. Entropy sources can be used to feed more advanced entropy * modules for cryptographic purposes, which typically accumulate multiple sources and safely - * maintain internal sates. Alternatively, these sources can be used directly or with internal + * maintain internal states. Alternatively, these sources can be used directly or with internal * conditioning enabled for non-cryptographic tasks like seed generation of general purpose PRNGs, * in the absence of a hardware random number generator. The API, however, is not meant to face a user. * From 4c4a39612098996910ace66713707efb6fecb6b1 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Thu, 7 Jan 2021 22:22:20 +0100 Subject: [PATCH 10/11] sys/shell/sht1x: fix typo (PARMS => PARAMS) --- sys/shell/commands/sc_sht1x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/shell/commands/sc_sht1x.c b/sys/shell/commands/sc_sht1x.c index 939b9f8e1f..9e744d361a 100644 --- a/sys/shell/commands/sc_sht1x.c +++ b/sys/shell/commands/sc_sht1x.c @@ -175,7 +175,7 @@ int _sht_config_handler(int argc, char **argv) int dev_num = 0; if ((argc == 2) && (strcmp("--help", argv[1]) == 0)) { - printf("Usage: \"%s [PARMS]\n" + printf("Usage: \"%s [PARAMS]\n" "\n" "Supported parameters:\n" " -d \n" From 2902fa8611299f4c6b86a894e1bf2879f748f617 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Thu, 7 Jan 2021 22:31:04 +0100 Subject: [PATCH 11/11] tools/codespell: remove redundant entry in ignored words Words added in this list are case insensitive so chang works for both chang and Chang. --- dist/tools/codespell/ignored_words.txt | 3 --- 1 file changed, 3 deletions(-) diff --git a/dist/tools/codespell/ignored_words.txt b/dist/tools/codespell/ignored_words.txt index 64d3a1359a..45eae96e10 100644 --- a/dist/tools/codespell/ignored_words.txt +++ b/dist/tools/codespell/ignored_words.txt @@ -106,9 +106,6 @@ dedup circularly # Chang (common name) => Change -Chang - -# chang (common name) => change chang # filp (variable name for file pointer) => flip