Content-Length: 1589000 | pFad | http://github.com/adafruit/circuitpython/commit/fecc1bdedbfff71448474c654ff543c1dbc52560

EE fix typos (partial) detected by codepell · adafruit/circuitpython@fecc1bd · GitHub
Skip to content

Commit fecc1bd

Browse files
committed
fix typos (partial) detected by codepell
1 parent d9fee4c commit fecc1bd

File tree

137 files changed

+253
-243
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

137 files changed

+253
-243
lines changed

Diff for: .codespell/ignore-words.txt

+13
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,16 @@ ans
22
ure
33
clen
44
ser
5+
endianess
6+
pris
7+
synopsys
8+
reenable
9+
dout
10+
wel
11+
iput
12+
hsi
13+
astroid
14+
busses
15+
cyphertext
16+
dum
17+
extint

Diff for: .codespellrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ exclude-file = .codespell/exclude-file.txt
77
check-filenames =
88
check-hidden =
99
count =
10-
skip = .cproject,.git,./lib,./locale
10+
skip = .cproject,.git,./lib,./locale,ACKNOWLEDGEMENTS

Diff for: .pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ repos:
1616
hooks:
1717
- id: codespell
1818
#args: [-w]
19-
exclude: ^locale/
19+
exclude: ^(locale/|lib/)
2020
- repo: local
2121
hooks:
2222
- id: translations

Diff for: devices/ble_hci/common-hal/_bleio/Adapter.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ mp_obj_t common_hal_bleio_adapter_start_scan(bleio_adapter_obj_t *self, uint8_t
483483

484484
if (self->scan_results != NULL) {
485485
if (!shared_module_bleio_scanresults_get_done(self->scan_results)) {
486-
mp_raise_bleio_BluetoothError(translate("Scan already in progess. Stop with stop_scan."));
486+
mp_raise_bleio_BluetoothError(translate("Scan already in progress. Stop with stop_scan."));
487487
}
488488
self->scan_results = NULL;
489489
}

Diff for: devices/ble_hci/common-hal/_bleio/Adapter.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ typedef struct _bleio_adapter_obj_t {
6565
uint16_t manufacturer;
6666
uint16_t lmp_subversion;
6767

68-
// Used to monitor advertising timeout for legacy avertising.
68+
// Used to monitor advertising timeout for legacy advertising.
6969
uint64_t advertising_start_ticks;
7070
uint64_t advertising_timeout_msecs; // If zero, do not check.
7171

Diff for: devices/ble_hci/common-hal/_bleio/Connection.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ void common_hal_bleio_connection_set_connection_interval(bleio_connection_intern
515515
// (gattc_char->char_props.write ? CHAR_PROP_WRITE : 0) |
516516
// (gattc_char->char_props.write_wo_resp ? CHAR_PROP_WRITE_NO_RESPONSE : 0);
517517

518-
// // Call common_hal_bleio_characteristic_construct() to initalize some fields and set up evt handler.
518+
// // Call common_hal_bleio_characteristic_construct() to initialize some fields and set up evt handler.
519519
// common_hal_bleio_characteristic_construct(
520520
// characteristic, m_char_discovery_service, gattc_char->handle_value, uuid,
521521
// props, SECURITY_MODE_OPEN, SECURITY_MODE_OPEN,

Diff for: devices/ble_hci/common-hal/_bleio/att.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ STATIC uint8_t bleio_properties_to_ble_spec_properties(uint8_t bleio_properties)
9696
return ble_spec_properties;
9797
}
9898

99-
// FIX not currently used; reenable when used.
99+
// FIX not currently used; re-enable when used.
100100
#if 0
101101
STATIC uint8_t ble_spec_properties_to_bleio_properties(uint8_t ble_spec_properties) {
102102
uint8_t bleio_properties = 0;
@@ -964,7 +964,7 @@ static void process_read_group_req(uint16_t conn_handle, uint16_t mtu, uint8_t d
964964
// Keep track of the first one to make sure.
965965
size_t sizeof_first_service_uuid = 0;
966966

967-
// Size of a single bt_att_group_data chunk. Start with the intial size, and
967+
// Size of a single bt_att_group_data chunk. Start with the initial size, and
968968
// add the uuid size in the loop below.
969969
size_t data_length = sizeof(struct bt_att_group_data);
970970

Diff for: devices/ble_hci/common-hal/_bleio/hci_include/att_internal.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ struct bt_att_read_mult_req {
150150
uint16_t handles[];
151151
} __packed;
152152

153-
/* Read Multiple Respose */
153+
/* Read Multiple Response */
154154
#define BT_ATT_OP_READ_MULT_RSP 0x0f
155155
struct bt_att_read_mult_rsp {
156156
uint8_t _dummy[0];
@@ -243,7 +243,7 @@ struct bt_att_read_mult_vl_req {
243243
uint16_t handles[];
244244
} __packed;
245245

246-
/* Read Multiple Respose */
246+
/* Read Multiple Response */
247247
#define BT_ATT_OP_READ_MULT_VL_RSP 0x21
248248
struct bt_att_read_mult_vl_rsp {
249249
uint16_t len;

Diff for: docs/library/collections.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ Classes
1616

1717
.. function:: deque(iterable, maxlen[, flags])
1818

19-
Deques (double-ended queues) are a list-like container that support O(1)
20-
appends and pops from either side of the deque. New deques are created
19+
Dequeues (double-ended queues) are a list-like container that support O(1)
20+
appends and pops from either side of the deque. New dequeues are created
2121
using the following arguments:
2222

2323
- *iterable* must be the empty tuple, and the new deque is created empty.

Diff for: examples/natmod/features1/features1.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ mp_obj_t mpy_init(mp_obj_fun_bc_t *self, size_t n_args, size_t n_kw, mp_obj_t *a
8888
// This must be first, it sets up the globals dict and other things
8989
MP_DYNRUNTIME_INIT_ENTRY
9090

91-
// Messages can be printed as usualy
91+
// Messages can be printed as usually
9292
mp_printf(&mp_plat_print, "initialising module self=%p\n", self);
9393

9494
// Make the functions available in the module's namespace

Diff for: lib/cmsis/inc/core_armv81mml.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -2162,7 +2162,7 @@ __STATIC_INLINE void __NVIC_SetPriorityGrouping(uint32_t PriorityGroup)
21622162
reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */
21632163
reg_value = (reg_value |
21642164
((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
2165-
(PriorityGroupTmp << 8U) ); /* Insert write key and priorty group */
2165+
(PriorityGroupTmp << 8U) ); /* Insert write key and priority group */
21662166
SCB->AIRCR = reg_value;
21672167
}
21682168

@@ -2536,7 +2536,7 @@ __STATIC_INLINE void TZ_NVIC_SetPriorityGrouping_NS(uint32_t PriorityGroup)
25362536
reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */
25372537
reg_value = (reg_value |
25382538
((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
2539-
(PriorityGroupTmp << 8U) ); /* Insert write key and priorty group */
2539+
(PriorityGroupTmp << 8U) ); /* Insert write key and priority group */
25402540
SCB_NS->AIRCR = reg_value;
25412541
}
25422542

Diff for: lib/cmsis/inc/core_sc300.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1467,7 +1467,7 @@ __STATIC_INLINE void __NVIC_SetPriorityGrouping(uint32_t PriorityGroup)
14671467
reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */
14681468
reg_value = (reg_value |
14691469
((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
1470-
(PriorityGroupTmp << 8U) ); /* Insert write key and priorty group */
1470+
(PriorityGroupTmp << 8U) ); /* Insert write key and priority group */
14711471
SCB->AIRCR = reg_value;
14721472
}
14731473

Diff for: lib/cmsis/inc/mpu_armv8.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
* \param SH Defines the Shareability domain for this memory region.
8585
* \param RO Read-Only: Set to 1 for a read-only memory region.
8686
* \param NP Non-Privileged: Set to 1 for a non-privileged memory region.
87-
* \oaram XN eXecute Never: Set to 1 for a non-executable memory region.
87+
* \param XN eXecute Never: Set to 1 for a non-executable memory region.
8888
*/
8989
#define ARM_MPU_RBAR(BASE, SH, RO, NP, XN) \
9090
((BASE & MPU_RBAR_BASE_Msk) | \

Diff for: lib/libm_dbl/__rem_pio2_large.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@
4040
* z = (z-x[i])*2**24
4141
*
4242
*
43-
* y[] ouput result in an array of double precision numbers.
43+
* y[] output result in an array of double precision numbers.
4444
* The dimension of y[] is:
4545
* 24-bit precision 1
4646
* 53-bit precision 2
4747
* 64-bit precision 2
4848
* 113-bit precision 3
4949
* The actual value is the sum of them. Thus for 113-bit
50-
* precison, one may have to do something like:
50+
* precision, one may have to do something like:
5151
*
5252
* long double t,w,r_head, r_tail;
5353
* t = (long double)y[2] + (long double)y[1];
@@ -78,7 +78,7 @@
7878
* jk+1 must be 2 larger than you might expect so that our
7979
* recomputation test works. (Up to 24 bits in the integer
8080
* part (the 24 bits of it that we compute) and 23 bits in
81-
* the fraction part may be lost to cancelation before we
81+
* the fraction part may be lost to cancellation before we
8282
* recompute.)
8383
*
8484
* jz local integer variable indicating the number of

Diff for: lib/libm_dbl/fmod.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ double fmod(double x, double y)
99
int sx = ux.i>>63;
1010
uint64_t i;
1111

12-
/* in the followings uxi should be ux.i, but then gcc wrongly adds */
12+
/* in the following uxi should be ux.i, but then gcc wrongly adds */
1313
/* float load/store to inner loops ruining performance and code size */
1414
uint64_t uxi = ux.i;
1515

Diff for: lib/libm_dbl/sqrt.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* If (2) is false, then q = q ; otherwise q = q + 2 .
3838
* i+1 i i+1 i
3939
*
40-
* With some algebric manipulation, it is not difficult to see
40+
* With some algebraic manipulation, it is not difficult to see
4141
* that (2) is equivalent to
4242
* -(i+1)
4343
* s + 2 <= y (3)

Diff for: lib/littlefs/lfs1.h

+6-6
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ enum lfs1_open_flags {
9494
LFS1_F_DIRTY = 0x10000, // File does not match storage
9595
LFS1_F_WRITING = 0x20000, // File has been written since last flush
9696
LFS1_F_READING = 0x40000, // File has been read since last flush
97-
LFS1_F_ERRED = 0x80000, // An error occured during write
97+
LFS1_F_ERRED = 0x80000, // An error occurred during write
9898
};
9999

100100
// File seek flags
@@ -111,25 +111,25 @@ struct lfs1_config {
111111
// information to the block device operations
112112
void *context;
113113

114-
// Read a region in a block. Negative error codes are propogated
114+
// Read a region in a block. Negative error codes are propagated
115115
// to the user.
116116
int (*read)(const struct lfs1_config *c, lfs1_block_t block,
117117
lfs1_off_t off, void *buffer, lfs1_size_t size);
118118

119119
// Program a region in a block. The block must have previously
120-
// been erased. Negative error codes are propogated to the user.
120+
// been erased. Negative error codes are propagated to the user.
121121
// May return LFS1_ERR_CORRUPT if the block should be considered bad.
122122
int (*prog)(const struct lfs1_config *c, lfs1_block_t block,
123123
lfs1_off_t off, const void *buffer, lfs1_size_t size);
124124

125125
// Erase a block. A block must be erased before being programmed.
126126
// The state of an erased block is undefined. Negative error codes
127-
// are propogated to the user.
127+
// are propagated to the user.
128128
// May return LFS1_ERR_CORRUPT if the block should be considered bad.
129129
int (*erase)(const struct lfs1_config *c, lfs1_block_t block);
130130

131131
// Sync the state of the underlying block device. Negative error codes
132-
// are propogated to the user.
132+
// are propagated to the user.
133133
int (*sync)(const struct lfs1_config *c);
134134

135135
// Minimum size of a block read. This determines the size of read buffers.
@@ -484,7 +484,7 @@ int lfs1_dir_rewind(lfs1_t *lfs1, lfs1_dir_t *dir);
484484
// Returns a negative error code on failure.
485485
int lfs1_traverse(lfs1_t *lfs1, int (*cb)(void*, lfs1_block_t), void *data);
486486

487-
// Prunes any recoverable errors that may have occured in the filesystem
487+
// Prunes any recoverable errors that may have occurred in the filesystem
488488
//
489489
// Not needed to be called by user unless an operation is interrupted
490490
// but the filesystem is still mounted. This is already called on first

Diff for: lib/littlefs/lfs2.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -1449,7 +1449,7 @@ static int lfs2_dir_alloc(lfs2_t *lfs2, lfs2_mdir_t *dir) {
14491449
}
14501450
}
14511451

1452-
// zero for reproducability in case initial block is unreadable
1452+
// zero for reproducibility in case initial block is unreadable
14531453
dir->rev = 0;
14541454

14551455
// rather than clobbering one of the blocks we just pretend
@@ -1643,7 +1643,7 @@ static int lfs2_dir_compact(lfs2_t *lfs2,
16431643
return err;
16441644
}
16451645

1646-
// welp, we tried, if we ran out of space there's not much
1646+
// whelp, we tried, if we ran out of space there's not much
16471647
// we can do, we'll error later if we've become frozen
16481648
if (!err) {
16491649
end = begin;
@@ -4037,7 +4037,7 @@ static int lfs2_fs_relocate(lfs2_t *lfs2,
40374037
lfs2_fs_prepmove(lfs2, 0x3ff, NULL);
40384038
}
40394039

4040-
// replace bad pair, either we clean up desync, or no desync occured
4040+
// replace bad pair, either we clean up desync, or no desync occurred
40414041
lfs2_pair_tole32(newpair);
40424042
err = lfs2_dir_commit(lfs2, &parent, LFS2_MKATTRS(
40434043
{LFS2_MKTAG_IF(moveid != 0x3ff,

Diff for: lib/littlefs/lfs2.h

+7-7
Original file line numberDiff line numberDiff line change
@@ -159,34 +159,34 @@ struct lfs2_config {
159159
// information to the block device operations
160160
void *context;
161161

162-
// Read a region in a block. Negative error codes are propogated
162+
// Read a region in a block. Negative error codes are propagated
163163
// to the user.
164164
int (*read)(const struct lfs2_config *c, lfs2_block_t block,
165165
lfs2_off_t off, void *buffer, lfs2_size_t size);
166166

167167
// Program a region in a block. The block must have previously
168-
// been erased. Negative error codes are propogated to the user.
168+
// been erased. Negative error codes are propagated to the user.
169169
// May return LFS2_ERR_CORRUPT if the block should be considered bad.
170170
int (*prog)(const struct lfs2_config *c, lfs2_block_t block,
171171
lfs2_off_t off, const void *buffer, lfs2_size_t size);
172172

173173
// Erase a block. A block must be erased before being programmed.
174174
// The state of an erased block is undefined. Negative error codes
175-
// are propogated to the user.
175+
// are propagated to the user.
176176
// May return LFS2_ERR_CORRUPT if the block should be considered bad.
177177
int (*erase)(const struct lfs2_config *c, lfs2_block_t block);
178178

179179
// Sync the state of the underlying block device. Negative error codes
180-
// are propogated to the user.
180+
// are propagated to the user.
181181
int (*sync)(const struct lfs2_config *c);
182182

183183
#ifdef LFS2_THREADSAFE
184184
// Lock the underlying block device. Negative error codes
185-
// are propogated to the user.
185+
// are propagated to the user.
186186
int (*lock)(const struct lfs2_config *c);
187187

188188
// Unlock the underlying block device. Negative error codes
189-
// are propogated to the user.
189+
// are propagated to the user.
190190
int (*unlock)(const struct lfs2_config *c);
191191
#endif
192192

@@ -479,7 +479,7 @@ int lfs2_stat(lfs2_t *lfs2, const char *path, struct lfs2_info *info);
479479
// Returns the size of the attribute, or a negative error code on failure.
480480
// Note, the returned size is the size of the attribute on disk, irrespective
481481
// of the size of the buffer. This can be used to dynamically allocate a buffer
482-
// or check for existance.
482+
// or check for existence.
483483
lfs2_ssize_t lfs2_getattr(lfs2_t *lfs2, const char *path,
484484
uint8_t type, void *buffer, lfs2_size_t size);
485485

Diff for: lib/oofatfs/diskio.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44

55
/*-----------------------------------------------------------------------/
6-
/ Low level disk interface modlue include file (C)ChaN, 2014 /
6+
/ Low level disk interface module include file (C)ChaN, 2014 /
77
/-----------------------------------------------------------------------*/
88

99
#ifndef _DISKIO_DEFINED
@@ -42,7 +42,7 @@ DRESULT disk_ioctl (void *drv, BYTE cmd, void* buff);
4242
#define STA_PROTECT 0x04 /* Write protected */
4343

4444

45-
/* Command code for disk_ioctrl fucntion */
45+
/* Command code for disk_ioctrl function */
4646

4747
/* Generic command (Used by FatFs) */
4848
#define CTRL_SYNC 0 /* Complete pending write process (needed at FF_FS_READONLY == 0) */

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/adafruit/circuitpython/commit/fecc1bdedbfff71448474c654ff543c1dbc52560

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy