1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

codespell: fix remaining issues

This commit is contained in:
Benjamin Valentin 2022-09-16 13:28:48 +02:00
parent 86f9d7953d
commit 6e7d5ae2d3
32 changed files with 52 additions and 40 deletions

View File

@ -125,3 +125,15 @@ sur
# unsecure (unlocked, protection disabled) => insecure
unsecure
# nce (neighbor cache entry) => once, nice
nce
# warmup => warm up, warm-up
warmup
# clen => clean, clan
clen
# RO (read only) => to, row, rob, rod, roe, rot
ro

View File

@ -202,7 +202,7 @@ static inline uint8_t _get_ack_psdu_duration_syms(uint8_t chips, uint8_t mode)
static const uint8_t sym_len[] = { 32, 32, 64, 128 };
const uint8_t Ns = sym_len[chips];
const uint8_t Rspread = _get_spreading(chips, mode);
/* Nd == 63, since ACK length is 5 or 7 octects only */
/* Nd == 63, since ACK length is 5 or 7 octets only */
const uint16_t Npsdu = Rspread * 2 * 63;
/* phyPSDUDuration = ceiling(Npsdu / Ns) + ceiling(Npsdu / Mp) */

View File

@ -583,7 +583,7 @@ static int cc110x_get(netdev_t *netdev, netopt_t opt,
/**
* @brief Set the given address as the device's layer 2 address
*
* @param dev Device descripter of the transceiver
* @param dev Device descriptor of the transceiver
* @param addr Address to set
*/
static int cc110x_set_addr(cc110x_t *dev, uint8_t addr)

View File

@ -119,7 +119,7 @@ typedef enum {
*
* 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
* When in comparator or interrupt mode, the device samples continuously the
* temperature and sets the ALERT pin according to the chosen mode.
*/
typedef enum {

View File

@ -85,7 +85,7 @@ extern "C" {
#elif MODULE_AT86RF212B
/**
* @note for the default settings in RIOT for the at86rf212b,
* for other seetings this value may change.
* for other settings this value may change.
*/
# define RSSI_BASE_VAL (-98)
#elif MODULE_AT86RFA1 || MODULE_AT86RFR2

View File

@ -23,7 +23,7 @@
* 1. [Sensor modes](#l3gxxxx_sensor_modes)
* 2. [Output Data Rates and Filters](#l3gxxxx_odr_filters)
* 3. [Using the driver (basic functionality)](#l3gxxxx_using_driver)
* 1. [Initializaton](#l3gxxxx_initialization)
* 1. [Initialization](#l3gxxxx_initialization)
* 2. [Output data format](#l3gxxxx_output_data)
* 3. [Fetching data](#l3gxxxx_fetching_data)
* 4. [Using the FIFO](#l3gxxxx_fifo)
@ -373,7 +373,7 @@
*
* # Using the driver {#l3gxxxx_using_driver}
*
* ## Initializaton {#l3gxxxx_initialization}
* ## Initialization {#l3gxxxx_initialization}
*
* The **easiest way to use the driver** is simply to initialize the sensor
* with function #l3gxxxx_init using the default configuration parameter set
@ -1301,7 +1301,7 @@ typedef union {
uint8_t y_high:1; /**< true on |Y| > Y threshold (Y high event) */
uint8_t z_low :1; /**< true on |Z| < Z threshold (Z low event) */
uint8_t z_high:1; /**< true on |Z| > Z threshold (Z high event) */
uint8_t active:1; /**< true when one ore more events have been generated */
uint8_t active:1; /**< true when one or more events have been generated */
uint8_t unused:1; /**< not used */
};
uint8_t val; /**< event interrupt sources as value that

View File

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

View File

@ -134,7 +134,7 @@ typedef struct {
xbee_params_t p; /**< configuration parameters */
uint8_t options; /**< options field */
uint8_t addr_flags; /**< address flags as defined above */
uint8_t addr_short[2]; /**< onw 802.15.4 short address */
uint8_t addr_short[2]; /**< own 802.15.4 short address */
eui64_t addr_long; /**< own 802.15.4 long address */
/* general variables for the UART RX state machine */
xbee_rx_state_t int_state; /**< current state if the UART RX FSM */

View File

@ -156,7 +156,7 @@ int lsm303dlhc_read_mag(const lsm303dlhc_t *dev, lsm303dlhc_3d_data_t *data)
}
DEBUG("[done]\n");
/* interchange y and z axis and fix endiness */
/* interchange y and z axis and fix endianness */
int16_t tmp = data->y_axis;
data->x_axis = ((data->x_axis<<8)|((data->x_axis>>8)&0xff));
data->y_axis = ((data->z_axis<<8)|((data->z_axis>>8)&0xff));

View File

@ -254,7 +254,7 @@ int netdev_ieee802154_set(netdev_ieee802154_t *dev, netopt_t opt, const void *va
case NETOPT_ENCRYPTION_KEY:
assert(len >= IEEE802154_SEC_KEY_LENGTH);
if (memcmp(dev->sec_ctx.cipher.context.context, value, len)) {
/* If the key changes, the frame conter can be reset to 0*/
/* If the key changes, the frame counter can be reset to 0*/
dev->sec_ctx.frame_counter = 0;
}
memcpy(dev->sec_ctx.cipher.context.context, value,

View File

@ -115,7 +115,7 @@ int sht3x_init (sht3x_dev_t *dev, const sht3x_params_t *params)
int res = SHT3X_OK;
/* inititalize sensor data structure */
/* initialize sensor data structure */
dev->i2c_dev = params->i2c_dev;
dev->i2c_addr = params->i2c_addr;
dev->mode = params->mode;

View File

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

View File

@ -66,7 +66,7 @@
* in ascending order by this key.
*
* The definitions for the table types are in `lua_builtin.h`. The loader module
* contains empty tables, defined as weak symbols so they can be ovewritten
* contains empty tables, defined as weak symbols so they can be overwritten
* by the application. The variables that must be defined are:
*
* ```

View File

@ -16,7 +16,7 @@
* This functions make it easy to create and use new Lua context:
* It provides:
*
* - Easy to use routines for executing modules as scrips.
* - Easy to use routines for executing modules as scripts.
* - Control over which modules get loaded.
* - Support for using a local heap allocator.
* - Out of memory handling via setjmp/longjmp.

View File

@ -35,7 +35,7 @@ extern const vcdiff_driver_t vcdiff_vfs_driver;
*/
typedef struct {
int fd; /**< File descriptor of the VFS file */
size_t max_size; /**< Maxmimum file size for vcdiff target files */
size_t max_size; /**< Maximum file size for vcdiff target files */
} vcdiff_vfs_t;
/**

View File

@ -107,7 +107,7 @@
* is also included in the build.
*
* Alternatively, to enable full-POSIX TLS/DTLS, select the `wolfssl_socket` module by
* adding the followint to the application's Makefile:
* adding the following to the application's Makefile:
*
* ```makefile
* USEMODULE += wolfssl_socket

View File

@ -9686,7 +9686,7 @@ Networking related issues
address
#5016: gnrc_rpl: Rejoining RPL instance as root after reboot messes up rooting
#5051: Forwarding a packet back to its link layer source should not be allowed
#5230: gnrc_ipv6: multicast packes are not dispatched to the upper layers
#5230: gnrc_ipv6: multicast packets are not dispatched to the upper layers
#5748: gnrc: nodes crashing with too small packet buffer
#6123: gnrc: crash with (excessive) traffic in native
#7474: 6lo: gnrc fragmentation expects driver to block on TX
@ -9979,7 +9979,7 @@ Networking related issues
address
#5016: gnrc_rpl: Rejoining RPL instance as root after reboot messes up rooting
#5051: Forwarding a packet back to its link layer source should not be allowed
#5230: gnrc_ipv6: multicast packes are not dispatched to the upper layers
#5230: gnrc_ipv6: multicast packets are not dispatched to the upper layers
#5748: gnrc: nodes crashing with too small packet buffer
#6123: gnrc: crash with (excessive) traffic in native
#7474: 6lo: gnrc fragmentation expects driver to block on TX
@ -10909,7 +10909,7 @@ Core
API changes
-----------
* renamed NTOH*() -> ntoh*(), HTON*() -> hton*()
- removed gpioint API, which was unnused and obsoleted by periph/gpio
- removed gpioint API, which was unused and obsoleted by periph/gpio
* renamed uuid module to luid
System libraries

View File

@ -55,7 +55,7 @@
* @name Arduino compatible bit order values for SPI
* @{
*/
#define MSBFIRST (1) /**< most significat bit first */
#define MSBFIRST (1) /**< most significant bit first */
/** @} */
/**

View File

@ -50,7 +50,7 @@ static const uint8_t K[3][16] = {
/**
* @brief In each round there is a left rotate operation performed as
* part of the 16 permutations. The number of bits varies in
* a repeating patter. This array keeps track of the patterns
* a repeating pattern. This array keeps track of the patterns
* used in each round.
*/
static const uint8_t S[4][4] = {

View File

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

View File

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

View File

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

View File

@ -15,6 +15,6 @@ config GNRC_NETIF_PKTQ_TIMER_US
depends on USEMODULE_GNRC_NETIF_PKTQ
default 5000
help
Set to -1 to deactivate dequeing by timer. For this it has to be ensured
Set to -1 to deactivate dequeuing by timer. For this it has to be ensured
that none of the notifications by the driver are missed!
endif # KCONFIG_USEMODULE_GNRC_NETIF_PKTQ

View File

@ -459,7 +459,7 @@ int gnrc_tcp_listen(gnrc_tcp_tcb_queue_t *queue, gnrc_tcp_tcb_t *tcbs, size_t tc
assert(local != NULL);
assert(local->port != PORT_UNSPEC);
/* Verfiy given endpoint */
/* Verify given endpoint */
#ifdef MODULE_GNRC_IPV6
if (local->family != AF_INET6) {
TCP_DEBUG_ERROR("-EAFNOSUPPORT: AF-Family not supported.");

View File

@ -155,7 +155,7 @@ void sixlowpan_print(uint8_t *data, size_t size)
if (data[1] & SIXLOWPAN_IPHC2_M) {
if (data[1] & SIXLOWPAN_IPHC2_DAC) {
puts("Stateful destinaton multicast address compression:");
puts("Stateful destination multicast address compression:");
switch (data[1] & SIXLOWPAN_IPHC2_DAM) {
case 0x00:
@ -170,7 +170,7 @@ void sixlowpan_print(uint8_t *data, size_t size)
}
}
else {
puts("Stateless destinaton multicast address compression:");
puts("Stateless destination multicast address compression:");
switch (data[1] & SIXLOWPAN_IPHC2_DAM) {
case 0x00:
@ -193,7 +193,7 @@ void sixlowpan_print(uint8_t *data, size_t size)
}
else {
if (data[1] & SIXLOWPAN_IPHC2_DAC) {
printf("Stateful destinaton address compression: ");
printf("Stateful destination address compression: ");
switch (data[1] & SIXLOWPAN_IPHC2_DAM) {
case 0x00:
@ -214,7 +214,7 @@ void sixlowpan_print(uint8_t *data, size_t size)
}
}
else {
printf("Stateless destinaton address compression: ");
printf("Stateless destination address compression: ");
switch (data[1] & SIXLOWPAN_IPHC2_DAM) {
case 0x00:

View File

@ -266,7 +266,7 @@ int connect(int socket, const struct sockaddr *address, socklen_t address_len);
* @param[in,out] address_len Specifies the length of the sockaddr structure on input and the
* length of the stored address on output. If the address is greater
* than the length of the supplied sockaddr structure, the stored
* address shal be truncated.
* address shall be truncated.
* @return Upon successful completion, getpeername() shall return 0; otherwise,
* -1 shall be returned and errno set to indicate the error.
*/
@ -292,7 +292,7 @@ int getpeername(int socket, struct sockaddr *__restrict address,
* @param[in,out] address_len Specifies the length of the sockaddr structure on input and the
* length of the stored address on output. If the address is greater
* than the length of the supplied sockaddr structure, the stored
* address shal be truncated.
* address shall be truncated.
* @return Upon successful completion, getsockname() shall return 0; otherwise,
* -1 shall be returned and errno set to indicate the error.
*/

View File

@ -86,7 +86,7 @@ int pthread_barrier_init(pthread_barrier_t *barrier,
* @brief Destroys a pthread_barrier_t
* @details To use the barrier again you will need to call pthread_barrier_init() again.
* Destroying a barrier while threads are currently waiting for it causes indefined behavior.
* @param barrier Barrier to destoy
* @param barrier Barrier to destroy
* @returns 0, the invocation cannot fail
*/
int pthread_barrier_destroy(pthread_barrier_t *barrier);

View File

@ -24,7 +24,7 @@ PUF_SRAM_ATTRIBUTES uint32_t puf_sram_seed;
/* Allocation of the PUF seed state */
PUF_SRAM_ATTRIBUTES uint32_t puf_sram_state;
/* Allocation of the PUF soft reset conter*/
/* Allocation of the PUF soft reset counter */
PUF_SRAM_ATTRIBUTES uint32_t puf_sram_softreset_cnt;
/* Allocation of the memory marker */

View File

@ -23,7 +23,7 @@ def testfunc(child):
child.expect_exact("NH: LOWPAN_NHC")
child.expect_exact("HLIM: 255")
child.expect_exact("Stateless source address compression: elided (use L2 address)")
child.expect_exact("Stateless destinaton address compression: 128 bits inline")
child.expect_exact("Stateless destination address compression: 128 bits inline")
# 2nd 6LoWPAN fragment
child.expect_exact("PKTDUMP: data received:")

View File

@ -145,7 +145,7 @@ def test_gnrc_tcp_garbage_packets_short_header(child):
@Runner(timeout=5)
def test_gnrc_tcp_garbage_packets_ack_instead_of_sym(child):
""" This test verfies that sending and ACK instead of a SYN.
""" This test verifies that sending and ACK instead of a SYN.
doesn't break GNRC_TCP.
"""
# Setup RIOT as server
@ -189,7 +189,7 @@ def test_gnrc_tcp_garbage_packets_ack_instead_of_sym(child):
@Runner(timeout=5)
def test_gnrc_tcp_garbage_packets_option_parsing(child):
""" This test verfies that malformed option don't break TCP
""" This test verifies that malformed option don't break TCP
doesn't break GNRC_TCP. See: https://github.com/RIOT-OS/RIOT/issues/12086
"""
# Setup RIOT as server

View File

@ -3,7 +3,7 @@ Expected result
This test periodically puts the device into deep sleep mode.
During deep sleep only the backup RAM is retained and the device is
reset upon leaving deep sleep.
To test the memory retention, a counter is incemented with each wake-up.
To test the memory retention, a counter is incremented with each wake-up.
Background
==========

View File

@ -63,7 +63,7 @@ static void print_cabling(unsigned port1, unsigned pin1,
static void print_details(void)
{
puts_optional("Test / Hardware Deatils:\n"
puts_optional("Test / Hardware Details:\n"
"========================\n"
"Cabling:");
print_cabling(PORT_IN, PIN_IN_0, PORT_OUT, PIN_OUT_0);