Skip to content

Commit b272535

Browse files
committed
Fix typos
1 parent 18033c0 commit b272535

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
107107
- Add methods `stop`, `release` and `clear_update_interrupt_flag` to `Timer` (`clear_update_interrupt_flag` does not apply to `Timer<SYST>`)
108108
- Add timer interrupt example using RTFM
109109
- Implement IndependentWatchdog for the IWDG peripheral
110-
- Remove all PWM channel configurations except 'all the channels for default remapping' configuratons
110+
- Remove all PWM channel configurations except 'all the channels for default remapping' configurations
111111
- Update PWM documentation: clarify custom selection of channels
112112
- Add PWM example for custom selection of channels
113113

examples/blinky.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//! This assumes that a LED is connected to pc13 as is the case on the blue pill board.
44
//!
55
//! Note: Without additional hardware, PC13 should not be used to drive an LED, see page 5.1.2 of
6-
//! the reference manaual for an explanation. This is not an issue on the blue pill.
6+
//! the reference manual for an explanation. This is not an issue on the blue pill.
77
88
#![deny(unsafe_code)]
99
#![no_std]

examples/blinky_rtc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//! This assumes that a LED is connected to pc13 as is the case on the blue pill board.
44
//!
55
//! Note: Without additional hardware, PC13 should not be used to drive a LED, see
6-
//! section 5.1.2 of the reference manaual for an explanation.
6+
//! section 5.1.2 of the reference manual for an explanation.
77
//! This is not an issue on the blue pill.
88
99
#![deny(unsafe_code)]

examples/led.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//! If compiled for the stm32f100, this assumes that an active high LED is connected to pc9
77
//!
88
//! Note: Without additional hardware, PC13 should not be used to drive a LED, see
9-
//! section 5.1.2 of the reference manaual for an explanation.
9+
//! section 5.1.2 of the reference manual for an explanation.
1010
//! This is not an issue on the blue pill.
1111
1212
#![deny(unsafe_code)]

examples/timer-interrupt-rtfm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//! This assumes that a LED is connected to pc13 as is the case on the blue pill board.
44
//!
55
//! Note: Without additional hardware, PC13 should not be used to drive an LED, see page 5.1.2 of
6-
//! the reference manaual for an explanation. This is not an issue on the blue pill.
6+
//! the reference manual for an explanation. This is not an issue on the blue pill.
77
88
#![no_std]
99
#![no_main]

src/backup_domain.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use crate::pac::BKP;
1717

1818
/**
1919
The existence of this struct indicates that writing to the the backup
20-
domain has been enabled. It is aquired by calling `constrain` on `rcc::Rcc::BKP`
20+
domain has been enabled. It is acquired by calling `constrain` on `rcc::Rcc::BKP`
2121
*/
2222
pub struct BackupDomain {
2323
pub(crate) _regs: BKP,

src/serial.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ trait UsartReadWrite: Deref<Target=crate::stm32::usart1::RegisterBlock> {
211211
};
212212

213213
if let Some(err) = err {
214-
// Some error occured. In order to clear that error flag, you have to
214+
// Some error occurred. In order to clear that error flag, you have to
215215
// do a read from the sr register followed by a read from the dr
216216
// register
217217
// NOTE(read_volatile) see `write_volatile` below

src/time.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ impl Into<KiloHertz> for MegaHertz {
8282
}
8383
}
8484

85-
/// A monotonic nondecreasing timer
85+
/// A monotonic non-decreasing timer
8686
#[derive(Clone, Copy)]
8787
pub struct MonoTimer {
8888
frequency: Hertz,
@@ -93,7 +93,7 @@ impl MonoTimer {
9393
pub fn new(mut dwt: DWT, clocks: Clocks) -> Self {
9494
dwt.enable_cycle_counter();
9595

96-
// now the CYCCNT counter can't be stopped or resetted
96+
// now the CYCCNT counter can't be stopped or reset
9797
drop(dwt);
9898

9999
MonoTimer {
@@ -114,7 +114,7 @@ impl MonoTimer {
114114
}
115115
}
116116

117-
/// A measurement of a monotonically nondecreasing clock
117+
/// A measurement of a monotonically non-decreasing clock
118118
#[derive(Clone, Copy)]
119119
pub struct Instant {
120120
now: u32,

src/timer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ impl CountDownTimer<SYST> {
239239
let ticks = u64(reload_value - SYST::get_current());
240240

241241
// It is safe to make this cast since the maximum ticks is (2^24 - 1) and the minimum sysclk
242-
// is 4Mhz, which gives a maximum period of ~4.2 seconds which is < (2^32 - 1) microsenconds
242+
// is 4Mhz, which gives a maximum period of ~4.2 seconds which is < (2^32 - 1) microseconds
243243
u32(1_000_000 * ticks / timer_clock).unwrap()
244244
}
245245

0 commit comments

Comments
 (0)