Skip to content

Commit 6e7d5ae

Browse files
committed
codespell: fix remaining issues
1 parent 86f9d79 commit 6e7d5ae

File tree

32 files changed

+52
-40
lines changed

32 files changed

+52
-40
lines changed

dist/tools/codespell/ignored_words.txt

+12
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,15 @@ sur
125125

126126
# unsecure (unlocked, protection disabled) => insecure
127127
unsecure
128+
129+
# nce (neighbor cache entry) => once, nice
130+
nce
131+
132+
# warmup => warm up, warm-up
133+
warmup
134+
135+
# clen => clean, clan
136+
clen
137+
138+
# RO (read only) => to, row, rob, rod, roe, rot
139+
ro

drivers/at86rf215/at86rf215_o-qpsk.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ static inline uint8_t _get_ack_psdu_duration_syms(uint8_t chips, uint8_t mode)
202202
static const uint8_t sym_len[] = { 32, 32, 64, 128 };
203203
const uint8_t Ns = sym_len[chips];
204204
const uint8_t Rspread = _get_spreading(chips, mode);
205-
/* Nd == 63, since ACK length is 5 or 7 octects only */
205+
/* Nd == 63, since ACK length is 5 or 7 octets only */
206206
const uint16_t Npsdu = Rspread * 2 * 63;
207207

208208
/* phyPSDUDuration = ceiling(Npsdu / Ns) + ceiling(Npsdu / Mp) */

drivers/cc110x/cc110x_netdev.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ static int cc110x_get(netdev_t *netdev, netopt_t opt,
583583
/**
584584
* @brief Set the given address as the device's layer 2 address
585585
*
586-
* @param dev Device descripter of the transceiver
586+
* @param dev Device descriptor of the transceiver
587587
* @param addr Address to set
588588
*/
589589
static int cc110x_set_addr(cc110x_t *dev, uint8_t addr)

drivers/include/at30tse75x.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ typedef enum {
119119
*
120120
* The device can run in continuous or one-shot mode. While in one-shot mode it
121121
* is effectively shutdown and only wakes up to perform a single measurement.
122-
* When in comparator or interrupt mode, the device samples contiously the
122+
* When in comparator or interrupt mode, the device samples continuously the
123123
* temperature and sets the ALERT pin according to the chosen mode.
124124
*/
125125
typedef enum {

drivers/include/at86rf2xx.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ extern "C" {
8585
#elif MODULE_AT86RF212B
8686
/**
8787
* @note for the default settings in RIOT for the at86rf212b,
88-
* for other seetings this value may change.
88+
* for other settings this value may change.
8989
*/
9090
# define RSSI_BASE_VAL (-98)
9191
#elif MODULE_AT86RFA1 || MODULE_AT86RFR2

drivers/include/l3gxxxx.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* 1. [Sensor modes](#l3gxxxx_sensor_modes)
2424
* 2. [Output Data Rates and Filters](#l3gxxxx_odr_filters)
2525
* 3. [Using the driver (basic functionality)](#l3gxxxx_using_driver)
26-
* 1. [Initializaton](#l3gxxxx_initialization)
26+
* 1. [Initialization](#l3gxxxx_initialization)
2727
* 2. [Output data format](#l3gxxxx_output_data)
2828
* 3. [Fetching data](#l3gxxxx_fetching_data)
2929
* 4. [Using the FIFO](#l3gxxxx_fifo)
@@ -373,7 +373,7 @@
373373
*
374374
* # Using the driver {#l3gxxxx_using_driver}
375375
*
376-
* ## Initializaton {#l3gxxxx_initialization}
376+
* ## Initialization {#l3gxxxx_initialization}
377377
*
378378
* The **easiest way to use the driver** is simply to initialize the sensor
379379
* with function #l3gxxxx_init using the default configuration parameter set
@@ -1301,7 +1301,7 @@ typedef union {
13011301
uint8_t y_high:1; /**< true on |Y| > Y threshold (Y high event) */
13021302
uint8_t z_low :1; /**< true on |Z| < Z threshold (Z low event) */
13031303
uint8_t z_high:1; /**< true on |Z| > Z threshold (Z high event) */
1304-
uint8_t active:1; /**< true when one ore more events have been generated */
1304+
uint8_t active:1; /**< true when one or more events have been generated */
13051305
uint8_t unused:1; /**< not used */
13061306
};
13071307
uint8_t val; /**< event interrupt sources as value that

drivers/include/periph/spi.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ typedef struct {
324324
* @brief Initialize MOSI/MISO/SCLK pins with adapted GPIO modes
325325
*
326326
* @param[in] bus SPI device that is used with the given CS line
327-
* @param[in] mode a pointer to a truct containing the 3 modes to use on
327+
* @param[in] mode a pointer to a struct containing the 3 modes to use on
328328
* each pin
329329
*
330330
* @retval 0 success

drivers/include/xbee.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ typedef struct {
134134
xbee_params_t p; /**< configuration parameters */
135135
uint8_t options; /**< options field */
136136
uint8_t addr_flags; /**< address flags as defined above */
137-
uint8_t addr_short[2]; /**< onw 802.15.4 short address */
137+
uint8_t addr_short[2]; /**< own 802.15.4 short address */
138138
eui64_t addr_long; /**< own 802.15.4 long address */
139139
/* general variables for the UART RX state machine */
140140
xbee_rx_state_t int_state; /**< current state if the UART RX FSM */

drivers/lsm303dlhc/lsm303dlhc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ int lsm303dlhc_read_mag(const lsm303dlhc_t *dev, lsm303dlhc_3d_data_t *data)
156156
}
157157
DEBUG("[done]\n");
158158

159-
/* interchange y and z axis and fix endiness */
159+
/* interchange y and z axis and fix endianness */
160160
int16_t tmp = data->y_axis;
161161
data->x_axis = ((data->x_axis<<8)|((data->x_axis>>8)&0xff));
162162
data->y_axis = ((data->z_axis<<8)|((data->z_axis>>8)&0xff));

drivers/netdev/ieee802154.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ int netdev_ieee802154_set(netdev_ieee802154_t *dev, netopt_t opt, const void *va
254254
case NETOPT_ENCRYPTION_KEY:
255255
assert(len >= IEEE802154_SEC_KEY_LENGTH);
256256
if (memcmp(dev->sec_ctx.cipher.context.context, value, len)) {
257-
/* If the key changes, the frame conter can be reset to 0*/
257+
/* If the key changes, the frame counter can be reset to 0*/
258258
dev->sec_ctx.frame_counter = 0;
259259
}
260260
memcpy(dev->sec_ctx.cipher.context.context, value,

drivers/sht3x/sht3x.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ int sht3x_init (sht3x_dev_t *dev, const sht3x_params_t *params)
115115

116116
int res = SHT3X_OK;
117117

118-
/* inititalize sensor data structure */
118+
/* initialize sensor data structure */
119119
dev->i2c_dev = params->i2c_dev;
120120
dev->i2c_addr = params->i2c_addr;
121121
dev->mode = params->mode;

drivers/sx1280/include/sx1280_params.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ extern "C" {
3434
*
3535
* Default values are adapted for mbed shield used with to nucleo64 boards
3636
* @see https://github.com/donsez/RIOT/blob/pr/sx1280/drivers/sx1280/include/sx1280_hal.h
37-
* @see 'board/commun/nucleo64/include/arduino_pinmap.h'
37+
* @see 'board/common/nucleo64/include/arduino_pinmap.h'
3838
*
3939
* ARDUINO_PIN_10 -> GPIO_PIN(PORT_B, 6) -> GPIO_PIN(1, 6)
4040
* ARDUINO_PIN_7 -> GPIO_PIN(PORT_A, 8) -> GPIO_PIN(0, 8)

pkg/lua/doc.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
* in ascending order by this key.
6767
*
6868
* The definitions for the table types are in `lua_builtin.h`. The loader module
69-
* contains empty tables, defined as weak symbols so they can be ovewritten
69+
* contains empty tables, defined as weak symbols so they can be overwritten
7070
* by the application. The variables that must be defined are:
7171
*
7272
* ```

pkg/lua/include/lua_run.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* This functions make it easy to create and use new Lua context:
1717
* It provides:
1818
*
19-
* - Easy to use routines for executing modules as scrips.
19+
* - Easy to use routines for executing modules as scripts.
2020
* - Control over which modules get loaded.
2121
* - Support for using a local heap allocator.
2222
* - Out of memory handling via setjmp/longjmp.

pkg/tinyvcdiff/include/vcdiff_vfs.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ extern const vcdiff_driver_t vcdiff_vfs_driver;
3535
*/
3636
typedef struct {
3737
int fd; /**< File descriptor of the VFS file */
38-
size_t max_size; /**< Maxmimum file size for vcdiff target files */
38+
size_t max_size; /**< Maximum file size for vcdiff target files */
3939
} vcdiff_vfs_t;
4040

4141
/**

pkg/wolfssl/doc.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
* is also included in the build.
108108
*
109109
* Alternatively, to enable full-POSIX TLS/DTLS, select the `wolfssl_socket` module by
110-
* adding the followint to the application's Makefile:
110+
* adding the following to the application's Makefile:
111111
*
112112
* ```makefile
113113
* USEMODULE += wolfssl_socket

release-notes.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -9686,7 +9686,7 @@ Networking related issues
96869686
address
96879687
#5016: gnrc_rpl: Rejoining RPL instance as root after reboot messes up rooting
96889688
#5051: Forwarding a packet back to its link layer source should not be allowed
9689-
#5230: gnrc_ipv6: multicast packes are not dispatched to the upper layers
9689+
#5230: gnrc_ipv6: multicast packets are not dispatched to the upper layers
96909690
#5748: gnrc: nodes crashing with too small packet buffer
96919691
#6123: gnrc: crash with (excessive) traffic in native
96929692
#7474: 6lo: gnrc fragmentation expects driver to block on TX
@@ -9979,7 +9979,7 @@ Networking related issues
99799979
address
99809980
#5016: gnrc_rpl: Rejoining RPL instance as root after reboot messes up rooting
99819981
#5051: Forwarding a packet back to its link layer source should not be allowed
9982-
#5230: gnrc_ipv6: multicast packes are not dispatched to the upper layers
9982+
#5230: gnrc_ipv6: multicast packets are not dispatched to the upper layers
99839983
#5748: gnrc: nodes crashing with too small packet buffer
99849984
#6123: gnrc: crash with (excessive) traffic in native
99859985
#7474: 6lo: gnrc fragmentation expects driver to block on TX
@@ -10909,7 +10909,7 @@ Core
1090910909
API changes
1091010910
-----------
1091110911
* renamed NTOH*() -> ntoh*(), HTON*() -> hton*()
10912-
- removed gpioint API, which was unnused and obsoleted by periph/gpio
10912+
- removed gpioint API, which was unused and obsoleted by periph/gpio
1091310913
* renamed uuid module to luid
1091410914

1091510915
System libraries

sys/arduino/include/spiport.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
* @name Arduino compatible bit order values for SPI
5656
* @{
5757
*/
58-
#define MSBFIRST (1) /**< most significat bit first */
58+
#define MSBFIRST (1) /**< most significant bit first */
5959
/** @} */
6060

6161
/**

sys/hashes/md5.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ static const uint8_t K[3][16] = {
5050
/**
5151
* @brief In each round there is a left rotate operation performed as
5252
* part of the 16 permutations. The number of bits varies in
53-
* a repeating patter. This array keeps track of the patterns
53+
* a repeating pattern. This array keeps track of the patterns
5454
* used in each round.
5555
*/
5656
static const uint8_t S[4][4] = {

sys/include/bloom.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
*
7373
* This is not strictly correct as it assumes independence for the
7474
* probabilities of each bit being set. However, assuming it is a close
75-
* approximation we have that the probability of false positives descreases
75+
* approximation we have that the probability of false positives decreases
7676
* as m (the number of bits in the array) increases, and increases as n
7777
* (the number of inserted elements) increases. For a given m and n, the
7878
* value of k (the number of hash functions) that minimizes the probability

sys/include/net/gnrc/netif/conf.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ extern "C" {
7070
* @brief Time in microseconds for when to try send a queued packet at the
7171
* latest
7272
*
73-
* Set to -1 to deactivate dequeing by timer. For this it has to be ensured that
73+
* Set to -1 to deactivate dequeuing by timer. For this it has to be ensured that
7474
* none of the notifications by the driver are missed!
7575
*
7676
* @see net_gnrc_netif_pktq

sys/include/test_utils/result_output.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* provided for tests independent of format or medium. The intention is to have
1616
* a test that expects some data, for example, reading some registers,
1717
* output the results in a know way, for example json. This should help
18-
* keeping the test results stable and not lock anyone into a perticular
18+
* keeping the test results stable and not lock anyone into a particular
1919
* format. If JSON is too heavy all tests using this can be swapped out for
2020
* something lighter, for example CBOR. Then the tests should not have to be
2121
* adapted. There can also be python layers that coordinate the output results,

sys/net/gnrc/netif/pktq/Kconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ config GNRC_NETIF_PKTQ_TIMER_US
1515
depends on USEMODULE_GNRC_NETIF_PKTQ
1616
default 5000
1717
help
18-
Set to -1 to deactivate dequeing by timer. For this it has to be ensured
18+
Set to -1 to deactivate dequeuing by timer. For this it has to be ensured
1919
that none of the notifications by the driver are missed!
2020
endif # KCONFIG_USEMODULE_GNRC_NETIF_PKTQ

sys/net/gnrc/transport_layer/tcp/gnrc_tcp.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ int gnrc_tcp_listen(gnrc_tcp_tcb_queue_t *queue, gnrc_tcp_tcb_t *tcbs, size_t tc
459459
assert(local != NULL);
460460
assert(local->port != PORT_UNSPEC);
461461

462-
/* Verfiy given endpoint */
462+
/* Verify given endpoint */
463463
#ifdef MODULE_GNRC_IPV6
464464
if (local->family != AF_INET6) {
465465
TCP_DEBUG_ERROR("-EAFNOSUPPORT: AF-Family not supported.");

sys/net/network_layer/sixlowpan/sixlowpan_print.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ void sixlowpan_print(uint8_t *data, size_t size)
155155

156156
if (data[1] & SIXLOWPAN_IPHC2_M) {
157157
if (data[1] & SIXLOWPAN_IPHC2_DAC) {
158-
puts("Stateful destinaton multicast address compression:");
158+
puts("Stateful destination multicast address compression:");
159159

160160
switch (data[1] & SIXLOWPAN_IPHC2_DAM) {
161161
case 0x00:
@@ -170,7 +170,7 @@ void sixlowpan_print(uint8_t *data, size_t size)
170170
}
171171
}
172172
else {
173-
puts("Stateless destinaton multicast address compression:");
173+
puts("Stateless destination multicast address compression:");
174174

175175
switch (data[1] & SIXLOWPAN_IPHC2_DAM) {
176176
case 0x00:
@@ -193,7 +193,7 @@ void sixlowpan_print(uint8_t *data, size_t size)
193193
}
194194
else {
195195
if (data[1] & SIXLOWPAN_IPHC2_DAC) {
196-
printf("Stateful destinaton address compression: ");
196+
printf("Stateful destination address compression: ");
197197

198198
switch (data[1] & SIXLOWPAN_IPHC2_DAM) {
199199
case 0x00:
@@ -214,7 +214,7 @@ void sixlowpan_print(uint8_t *data, size_t size)
214214
}
215215
}
216216
else {
217-
printf("Stateless destinaton address compression: ");
217+
printf("Stateless destination address compression: ");
218218

219219
switch (data[1] & SIXLOWPAN_IPHC2_DAM) {
220220
case 0x00:

sys/posix/include/sys/socket.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ int connect(int socket, const struct sockaddr *address, socklen_t address_len);
266266
* @param[in,out] address_len Specifies the length of the sockaddr structure on input and the
267267
* length of the stored address on output. If the address is greater
268268
* than the length of the supplied sockaddr structure, the stored
269-
* address shal be truncated.
269+
* address shall be truncated.
270270
* @return Upon successful completion, getpeername() shall return 0; otherwise,
271271
* -1 shall be returned and errno set to indicate the error.
272272
*/
@@ -292,7 +292,7 @@ int getpeername(int socket, struct sockaddr *__restrict address,
292292
* @param[in,out] address_len Specifies the length of the sockaddr structure on input and the
293293
* length of the stored address on output. If the address is greater
294294
* than the length of the supplied sockaddr structure, the stored
295-
* address shal be truncated.
295+
* address shall be truncated.
296296
* @return Upon successful completion, getsockname() shall return 0; otherwise,
297297
* -1 shall be returned and errno set to indicate the error.
298298
*/

sys/posix/pthread/include/pthread_barrier.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ int pthread_barrier_init(pthread_barrier_t *barrier,
8686
* @brief Destroys a pthread_barrier_t
8787
* @details To use the barrier again you will need to call pthread_barrier_init() again.
8888
* Destroying a barrier while threads are currently waiting for it causes indefined behavior.
89-
* @param barrier Barrier to destoy
89+
* @param barrier Barrier to destroy
9090
* @returns 0, the invocation cannot fail
9191
*/
9292
int pthread_barrier_destroy(pthread_barrier_t *barrier);

sys/puf_sram/puf_sram.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ PUF_SRAM_ATTRIBUTES uint32_t puf_sram_seed;
2424
/* Allocation of the PUF seed state */
2525
PUF_SRAM_ATTRIBUTES uint32_t puf_sram_state;
2626

27-
/* Allocation of the PUF soft reset conter*/
27+
/* Allocation of the PUF soft reset counter */
2828
PUF_SRAM_ATTRIBUTES uint32_t puf_sram_softreset_cnt;
2929

3030
/* Allocation of the memory marker */

tests/gnrc_sixlowpan/tests/01-run.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def testfunc(child):
2323
child.expect_exact("NH: LOWPAN_NHC")
2424
child.expect_exact("HLIM: 255")
2525
child.expect_exact("Stateless source address compression: elided (use L2 address)")
26-
child.expect_exact("Stateless destinaton address compression: 128 bits inline")
26+
child.expect_exact("Stateless destination address compression: 128 bits inline")
2727

2828
# 2nd 6LoWPAN fragment
2929
child.expect_exact("PKTDUMP: data received:")

tests/gnrc_tcp/tests-as-root/01-run.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def test_gnrc_tcp_garbage_packets_short_header(child):
145145

146146
@Runner(timeout=5)
147147
def test_gnrc_tcp_garbage_packets_ack_instead_of_sym(child):
148-
""" This test verfies that sending and ACK instead of a SYN.
148+
""" This test verifies that sending and ACK instead of a SYN.
149149
doesn't break GNRC_TCP.
150150
"""
151151
# Setup RIOT as server
@@ -189,7 +189,7 @@ def test_gnrc_tcp_garbage_packets_ack_instead_of_sym(child):
189189

190190
@Runner(timeout=5)
191191
def test_gnrc_tcp_garbage_packets_option_parsing(child):
192-
""" This test verfies that malformed option don't break TCP
192+
""" This test verifies that malformed option don't break TCP
193193
doesn't break GNRC_TCP. See: https://github.com/RIOT-OS/RIOT/issues/12086
194194
"""
195195
# Setup RIOT as server

tests/periph_backup_ram/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Expected result
33
This test periodically puts the device into deep sleep mode.
44
During deep sleep only the backup RAM is retained and the device is
55
reset upon leaving deep sleep.
6-
To test the memory retention, a counter is incemented with each wake-up.
6+
To test the memory retention, a counter is incremented with each wake-up.
77

88
Background
99
==========

tests/periph_gpio_ll/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ static void print_cabling(unsigned port1, unsigned pin1,
6363

6464
static void print_details(void)
6565
{
66-
puts_optional("Test / Hardware Deatils:\n"
66+
puts_optional("Test / Hardware Details:\n"
6767
"========================\n"
6868
"Cabling:");
6969
print_cabling(PORT_IN, PIN_IN_0, PORT_OUT, PIN_OUT_0);

0 commit comments

Comments
 (0)