Skip to content

Commit cf490a7

Browse files
committedOct 3, 2023
all: Fix various spelling mistakes found by codespell 2.2.6.
Signed-off-by: Damien George <[email protected]>
1 parent 9d5d2e8 commit cf490a7

File tree

20 files changed

+22
-22
lines changed

20 files changed

+22
-22
lines changed
 

‎docs/library/espnow.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ after reboot/reset). This reduces the reliability of receiving ESP-NOW messages
287287

288288
.. method:: ESPNow.irecv([timeout_ms])
289289

290-
Works like `ESPNow.recv()` but will re-use internal bytearrays to store the
290+
Works like `ESPNow.recv()` but will reuse internal bytearrays to store the
291291
return values: ``[mac, msg]``, so that no new memory is allocated on each
292292
call.
293293

‎docs/library/wm8960.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ controlling its operation:
251251

252252
.. method:: WM8960.expand_3d(level)
253253

254-
Enable Stereo 3D exansion. *level* is a number between 0 and 15.
254+
Enable Stereo 3D expansion. *level* is a number between 0 and 15.
255255
A value of 0 disables the expansion.
256256

257257
.. method:: WM8960.mono(active)

‎docs/reference/glossary.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Glossary
3232

3333
callee-owned tuple
3434
This is a MicroPython-specific construct where, for efficiency
35-
reasons, some built-in functions or methods may re-use the same
35+
reasons, some built-in functions or methods may reuse the same
3636
underlying tuple object to return data. This avoids having to allocate
3737
a new tuple for every call, and reduces heap fragmentation. Programs
3838
should not hold references to callee-owned tuples and instead only

‎examples/hwapi/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ This directory shows the best practices for using MicroPython hardware API
33
across various boards, with the aim to enable writing portable applications,
44
which would work from a board to board, from a system to another systems.
55
This is inherently a hard problem, because hardware is different from one
6-
board type to another, and even from examplar of board to another. For
6+
board type to another, and even from exemplar of board to another. For
77
example, if your app requires an external LED, one user may connect it
88
to one GPIO pin, while another user may find it much more convenient to
99
use another pin. This of course applies to relays, buzzers, sensors, etc.

‎extmod/modbluetooth.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ STATIC int bluetooth_gatts_register_service(mp_obj_t uuid_in, mp_obj_t character
504504
// How many descriptors in the flattened list per characteristic.
505505
uint8_t *num_descriptors = m_new(uint8_t, len);
506506

507-
// Inititally allocate enough room for the number of characteristics.
507+
// Initially allocate enough room for the number of characteristics.
508508
// Will be grown to accommodate descriptors as necessary.
509509
*num_handles = len;
510510
*handles = m_new(uint16_t, *num_handles);

‎extmod/nimble/modbluetooth_nimble.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1856,7 +1856,7 @@ int mp_bluetooth_l2cap_recvinto(uint16_t conn_handle, uint16_t cid, uint8_t *buf
18561856
// re-enable receiving yet (as we need to complete the rest of IRQ handler first).
18571857
if (!chan->irq_in_progress) {
18581858
// We've already given the channel a new mbuf in l2cap_channel_event above, so
1859-
// re-use that mbuf in the call to ble_l2cap_recv_ready. This will just
1859+
// reuse that mbuf in the call to ble_l2cap_recv_ready. This will just
18601860
// give the channel more credits.
18611861
struct os_mbuf *sdu_rx = chan->chan->coc_rx.sdu;
18621862
assert(sdu_rx);

‎ports/cc3200/application.lds

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ SECTIONS
8383
} > SRAM
8484

8585
/* place here functions that are only called during boot up, */
86-
/* that way, we can re-use this area for the MicroPython heap */
86+
/* that way, we can reuse this area for the MicroPython heap */
8787
.boot :
8888
{
8989
. = ALIGN(8);

‎ports/cc3200/fatfs/src/drivers/sd_diskio.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ DRESULT sd_disk_read (BYTE* pBuffer, DWORD ulSectorNumber, UINT SectorCount) {
363363

364364
//*****************************************************************************
365365
//
366-
//! Wrties sector(s) to the disk drive.
366+
//! Writes sector(s) to the disk drive.
367367
//!
368368
//!
369369
//! This function writes specified number of sectors to the drive

‎ports/nrf/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ SRC_QSTR += $(SRC_C) $(SRC_SHARED_C) $(DRIVERS_SRC_C) $(SRC_BOARD_MODULES)
536536
# SRC_QSTR
537537
SRC_QSTR_AUTO_DEPS +=
538538

539-
# Making OBJ use an order-only depenedency on the generated pins.h file
539+
# Making OBJ use an order-only dependency on the generated pins.h file
540540
# has the side effect of making the pins.h file before we actually compile
541541
# any of the objects. The normal dependency generation will deal with the
542542
# case when pins.h is modified. But when it doesn't exist, we don't know

‎ports/nrf/drivers/bluetooth/ble_drv.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ static void sd_evt_handler(uint32_t evt_id) {
942942
break;
943943
}
944944
#if MICROPY_HW_USB_CDC
945-
// Farward SOC events to USB CDC driver.
945+
// Forward SOC events to USB CDC driver.
946946
usb_cdc_sd_event_handler(evt_id);
947947
#endif
948948
}

‎ports/stm32/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ SRC_QSTR += $(SRC_C) $(SRC_CXX) $(SHARED_SRC_C)
664664
# SRC_QSTR
665665
SRC_QSTR_AUTO_DEPS += $(GEN_CDCINF_HEADER)
666666

667-
# Making OBJ use an order-only depenedency on the generated pins.h file
667+
# Making OBJ use an order-only dependency on the generated pins.h file
668668
# has the side effect of making the pins.h file before we actually compile
669669
# any of the objects. The normal dependency generation will deal with the
670670
# case when pins.h is modified. But when it doesn't exist, we don't know

‎ports/stm32/timer.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ STATIC void pyb_timer_print(const mp_print_t *print, mp_obj_t self_in, mp_print_
605605
/// - `mode` can be one of:
606606
/// - `Timer.UP` - configures the timer to count from 0 to ARR (default)
607607
/// - `Timer.DOWN` - configures the timer to count from ARR down to 0.
608-
/// - `Timer.CENTER` - confgures the timer to count from 0 to ARR and
608+
/// - `Timer.CENTER` - configures the timer to count from 0 to ARR and
609609
/// then back down to 0.
610610
///
611611
/// - `div` can be one of 1, 2, or 4. Divides the timer clock to determine

‎ports/teensy/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ SRC_QSTR += $(SRC_C) $(STM_SRC_C) $(SHARED_SRC_C)
214214
# SRC_QSTR
215215
SRC_QSTR_AUTO_DEPS +=
216216

217-
# Making OBJ use an order-only depenedency on the generated pins.h file
217+
# Making OBJ use an order-only dependency on the generated pins.h file
218218
# has the side effect of making the pins.h file before we actually compile
219219
# any of the objects. The normal dependency generation will deal with the
220220
# case when pins.h is modified. But when it doesn't exist, we don't know

‎ports/teensy/timer.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ STATIC void pyb_timer_print(const mp_print_t *print, mp_obj_t self_in, mp_print_
225225
///
226226
/// - `mode` can be one of:
227227
/// - `Timer.UP` - configures the timer to count from 0 to MOD (default)
228-
/// - `Timer.CENTER` - confgures the timer to count from 0 to MOD and
228+
/// - `Timer.CENTER` - configures the timer to count from 0 to MOD and
229229
/// then back down to 0.
230230
///
231231
/// - `callback` - as per Timer.callback()

‎py/formatfloat.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ int mp_format_float(FPTYPE f, char *buf, size_t buf_size, char fmt, int prec, ch
230230
}
231231
} else {
232232
// Build positive exponent.
233-
// We don't modify f at this point to avoid innaccuracies from
233+
// We don't modify f at this point to avoid inaccuracies from
234234
// scaling it. Instead, we find the product of powers of 10
235235
// that is not greater than it, and use that to start the
236236
// mantissa.

‎py/mkrules.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ endif
2222

2323
# QSTR generation uses the same CFLAGS, with these modifications.
2424
QSTR_GEN_FLAGS = -DNO_QSTR
25-
# Note: := to force evalulation immediately.
25+
# Note: := to force evaluation immediately.
2626
QSTR_GEN_CFLAGS := $(CFLAGS)
2727
QSTR_GEN_CFLAGS += $(QSTR_GEN_FLAGS)
2828
QSTR_GEN_CXXFLAGS := $(CXXFLAGS)

‎py/mpconfig.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -1136,7 +1136,7 @@ typedef double mp_float_t;
11361136
#define MICROPY_PY_BUILTINS_RANGE_BINOP (MICROPY_CONFIG_ROM_LEVEL_AT_LEAST_EVERYTHING)
11371137
#endif
11381138

1139-
// Support for callling next() with second argument
1139+
// Support for calling next() with second argument
11401140
#ifndef MICROPY_PY_BUILTINS_NEXT2
11411141
#define MICROPY_PY_BUILTINS_NEXT2 (MICROPY_CONFIG_ROM_LEVEL_AT_LEAST_EVERYTHING)
11421142
#endif
@@ -1155,13 +1155,13 @@ typedef double mp_float_t;
11551155
#define MICROPY_PY_ALL_SPECIAL_METHODS (MICROPY_CONFIG_ROM_LEVEL_AT_LEAST_EXTRA_FEATURES)
11561156
#endif
11571157

1158-
// Whether to support all inplace arithmetic operarion methods
1158+
// Whether to support all inplace arithmetic operation methods
11591159
// (__imul__, etc.)
11601160
#ifndef MICROPY_PY_ALL_INPLACE_SPECIAL_METHODS
11611161
#define MICROPY_PY_ALL_INPLACE_SPECIAL_METHODS (MICROPY_CONFIG_ROM_LEVEL_AT_LEAST_EVERYTHING)
11621162
#endif
11631163

1164-
// Whether to support reverse arithmetic operarion methods
1164+
// Whether to support reverse arithmetic operation methods
11651165
// (__radd__, etc.). Additionally gated by
11661166
// MICROPY_PY_ALL_SPECIAL_METHODS.
11671167
#ifndef MICROPY_PY_REVERSE_SPECIAL_METHODS

‎py/obj.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ mp_obj_t mp_obj_equal_not_equal(mp_binary_op_t op, mp_obj_t o1, mp_obj_t o2) {
286286
o2 = temp;
287287
}
288288

289-
// equality not implemented, so fall back to pointer conparison
289+
// equality not implemented, so fall back to pointer comparison
290290
return (o1 == o2) ? local_true : local_false;
291291
}
292292

‎pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ line-length = 99
44
[tool.codespell]
55
count = ""
66
ignore-regex = '\b[A-Z]{3}\b'
7-
ignore-words-list = "ans,asend,deques,dout,extint,hsi,iput,mis,numer,technic,ure"
7+
ignore-words-list = "ans,asend,deques,dout,extint,hsi,iput,mis,numer,shft,technic,ure"
88
quiet-level = 3
99
skip = """
1010
*/build*,\

‎tools/pydfu.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
DFU, without requiring dfu-util.
99
1010
See app note AN3156 for a description of the DFU protocol.
11-
See document UM0391 for a dscription of the DFuse file.
11+
See document UM0391 for a description of the DFuse file.
1212
"""
1313

1414
from __future__ import print_function

0 commit comments

Comments
 (0)
Please sign in to comment.