Skip to content

Commit ddcd080

Browse files
authored
treewide: fix many typos
1 parent f22b1bc commit ddcd080

23 files changed

+201
-56
lines changed

.config/lingo.dic

Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
100
2+
AES
3+
AHB
4+
autoreload
5+
bitmask
6+
bitrate
7+
BPSK
8+
brainpool
9+
BT
10+
codebook
11+
COMP1_OUT
12+
COMP2_OUT
13+
CRC
14+
cryptographically
15+
D0
16+
D5
17+
DAC
18+
datasheet
19+
dBm
20+
decrypt
21+
despreading
22+
detections
23+
DMA
24+
DMA1
25+
DMA2
26+
DMAMUX
27+
DS13293
28+
durations
29+
ECB
30+
ECC
31+
ECDSA
32+
EXTI
33+
fn
34+
FS
35+
FSK
36+
Functionalities
37+
GCM
38+
GFSK
39+
GPIO
40+
GPIOA
41+
GPIOB
42+
GPIOs
43+
hal
44+
HALs
45+
HCLK3
46+
HSE
47+
HSE32
48+
HSI
49+
HW
50+
IEEE
51+
IRQ
52+
IRQs
53+
ISR
54+
jitter
55+
kibibytes
56+
LED1
57+
LED2
58+
LED3
59+
LEDs
60+
LoRa
61+
LPTIM
62+
LPTIM_ICR
63+
LPTIM_ISR
64+
LPTIM1
65+
LPTIM1_OUT
66+
LPTIM2
67+
LPTIM2_OUT
68+
LPTIM3
69+
LPUART
70+
LSE
71+
LSI
72+
mA
73+
milliamps
74+
millivolts
75+
MISO
76+
MOSI
77+
MSI
78+
MSK
79+
mV
80+
nist
81+
NSS
82+
NUCLEO
83+
NVIC
84+
opcode
85+
PB3
86+
pF
87+
PKA
88+
PLL
89+
pointee
90+
prescaler
91+
prescalers
92+
PWM
93+
Quickstart
94+
ramping
95+
RM0453
96+
RNG
97+
RSA
98+
RSSI
99+
RTC
100+
runtime
101+
SCK
102+
seeed
103+
SMPS
104+
SNR
105+
SPI
106+
SRAM
107+
startup
108+
STM32WL
109+
STM32WL5X
110+
struct
111+
subghz
112+
SubGhz
113+
SubGHz
114+
SUBGHZ
115+
syncword
116+
sysclk
117+
systick
118+
TAMP1
119+
TAMP2
120+
TAMP3
121+
TCXO
122+
timestamp
123+
Timestamp
124+
tuple
125+
TXCO
126+
UART
127+
UFBGA73
128+
UFQFPN48
129+
UID64
130+
uncalibrated
131+
unmapped
132+
VBAT
133+
wakeup
134+
WFE
135+
WFI
136+
WLCSP59

.config/spellcheck.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# see https://github.com/drahnr/cargo-spellcheck
2+
[Hunspell]
3+
lang = "en_US"
4+
5+
search_dirs = ["."]
6+
extra_dictionaries = ["lingo.dic"]
7+
8+
skip_os_lookups = true
9+
use_builtin = true

hal/src/aes.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,10 @@ impl From<Aes> for AesWrapClk {
132132
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
133133
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
134134
pub enum Error {
135-
/// Unexpected read operation from the AES_DOUTR register
135+
/// Unexpected read operation from the `AES_DOUTR` register
136136
/// during computation or data input phase.
137137
Read,
138-
/// Unexpected write operation to the AES_DINR register
138+
/// Unexpected write operation to the `AES_DINR` register
139139
/// during computation or data output phase.
140140
Write,
141141
}

hal/src/dma/cr.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ impl Cr {
6363

6464
/// Reset value + DMA disabled.
6565
///
66-
/// This is eqivalent to the reset value, it is provided to make the code
66+
/// This is equivalent to the reset value, it is provided to make the code
6767
/// more expressive.
6868
///
6969
/// # Example
@@ -100,7 +100,7 @@ impl Cr {
100100
self.val
101101
}
102102

103-
/// Set the priviledged mode bit.
103+
/// Set the privileged mode bit.
104104
///
105105
/// This bit can only be set and cleared by a privileged software.
106106
///
@@ -302,7 +302,7 @@ impl Cr {
302302
///
303303
/// Note: The memory-to-memory mode must not be used in circular mode.
304304
/// Before enabling a channel in memory-to-memory mode, the software must
305-
/// clear the CIRC bit of the DMA_CCRx register.
305+
/// clear the `CIRC` bit of the `DMA_CCRx` register.
306306
///
307307
/// **Note:** This field is set and cleared by software
308308
/// (privileged/secure software if the channel is in privileged/secure mode).
@@ -592,10 +592,10 @@ impl Cr {
592592

593593
/// Set the circular mode bit.
594594
///
595-
/// In circular mode, after the last data transfer, the DMA_CNDTRx register
595+
/// In circular mode, after the last data transfer, the `DMA_CNDTRx` register
596596
/// is automatically reloaded with the initially programmed value.
597597
/// The current internal address registers are reloaded with the base
598-
/// address values from the DMA_CPARx and DMA_CMARx registers.
598+
/// address values from the `DMA_CPARx` and `DMA_CMARx` registers.
599599
///
600600
/// # Example
601601
///
@@ -644,7 +644,7 @@ impl Cr {
644644
self.set_dir(Dir::FromMem)
645645
}
646646

647-
/// Set the transfer direction from peipheral.
647+
/// Set the transfer direction from peripheral.
648648
///
649649
/// # Example
650650
///

hal/src/dma/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub mod flags {
2727
pub const GLOBAL: u8 = 1 << 0;
2828
/// Transfer complete.
2929
pub const XFER_CPL: u8 = 1 << 1;
30-
/// Transfer hald complete.
30+
/// Transfer half complete.
3131
pub const XFER_HLF: u8 = 1 << 2;
3232
/// Transfer error.
3333
pub const XFER_ERR: u8 = 1 << 3;
@@ -549,7 +549,7 @@ impl Dma1 {
549549
/// This will enable clocks and reset the DMA1 and DMAMUX peripherals.
550550
///
551551
/// Most of the time you will want to use [`AllDma::split`].
552-
/// This is provided for low-power usecases where you do not need
552+
/// This is provided for low-power use cases where you do not need
553553
/// both DMA controllers.
554554
///
555555
/// # Example

hal/src/flash.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ impl<'a> Flash<'a> {
618618
/// 1. Do not write to flash memory that is being used for your code.
619619
/// 2. The destination address must be within the flash memory region.
620620
/// 3. The `from` and `to` pointers must be aligned to `u64`.
621-
/// Use `#[repr(align(8))]` to align your stucture.
621+
/// Use `#[repr(align(8))]` to align your structure.
622622
#[allow(unused_unsafe)]
623623
pub unsafe fn standard_program_generic<T>(
624624
&mut self,

hal/src/gpio.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ pub trait Exti {
376376
/// [`gpio-button-irq.rs`]: https://github.com/stm32-rs/stm32wlxx-hal/blob/main/examples/examples/gpio-button-irq.rs
377377
fn clear_exti();
378378

379-
/// Returns true if a trigger request occured.
379+
/// Returns true if a trigger request occurred.
380380
///
381381
/// # Example
382382
///

hal/src/lptim/cfgr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ impl Cfgr {
154154
/// ```
155155
pub const RESET: Cfgr = Cfgr::new(0);
156156

157-
/// Cfgreate a new Cfgr register from a raw value.
157+
/// Create a new `Cfgr` register from a raw value.
158158
///
159159
/// # Example
160160
///

hal/src/lptim/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ pub mod irq {
5252
/// Set by hardware when the APB bus write to the RCR register has been
5353
/// successfully completed.
5454
pub const REPOK: u32 = 1 << 8;
55-
/// Update event occured.
55+
/// Update event occurred.
5656
pub const UE: u32 = 1 << 7;
5757
/// Counter direction change up to down.
5858
///
@@ -286,7 +286,7 @@ paste_lptim!(3);
286286

287287
/// Low-power timer trait.
288288
pub trait LpTim: sealed::LpTim {
289-
/// Tigger selection options.
289+
/// Trigger selection options.
290290
type TrgSel: Into<u32>;
291291

292292
/// Create a new LPTIM driver.

hal/src/pka.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ impl Pka {
331331
/// 2. You cannot use the PKA bus while the clock is disabled.
332332
/// 3. You are responsible for re-enabling the clock before resuming use
333333
/// of the PKA bus.
334-
/// 4. You are reponsible for setting up anything that may have lost state
334+
/// 4. You are responsible for setting up anything that may have lost state
335335
/// while the clock was disabled.
336336
#[inline]
337337
pub unsafe fn disable_clock(rcc: &mut pac::RCC) {
@@ -350,7 +350,7 @@ impl Pka {
350350
/// # Safety
351351
///
352352
/// 1. The PKA must not be in-use.
353-
/// 2. You are reponsible for setting up the PKA after a reset.
353+
/// 2. You are responsible for setting up the PKA after a reset.
354354
#[inline]
355355
pub unsafe fn pulse_reset(rcc: &mut pac::RCC) {
356356
rcc.ahb3rstr.modify(|_, w| w.pkarst().set_bit());
@@ -420,7 +420,7 @@ impl Pka {
420420
});
421421
}
422422

423-
/// ECDSA (Ellipctic Curve Digital Signature Algorithm) signing.
423+
/// ECDSA (Elliptic Curve Digital Signature Algorithm) signing.
424424
///
425425
/// This is the blocking ECDSA sign method, equivalent to calling
426426
/// [`ecdsa_sign_start`](Self::ecdsa_sign_start) then polling
@@ -552,7 +552,7 @@ impl Pka {
552552
}
553553
}
554554

555-
/// ECDSA (Ellipctic Curve Digital Signature Algorithm) verification.
555+
/// ECDSA (Elliptic Curve Digital Signature Algorithm) verification.
556556
///
557557
/// This is the blocking ECDSA verify method, equivalent to calling
558558
/// [`ecdsa_verify_start`](Self::ecdsa_verify_start) then polling

0 commit comments

Comments
 (0)