File tree Expand file tree Collapse file tree 9 files changed +11
-11
lines changed Expand file tree Collapse file tree 9 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
110
110
- Add methods ` stop ` , ` release ` and ` clear_update_interrupt_flag ` to ` Timer ` (` clear_update_interrupt_flag ` does not apply to ` Timer<SYST> ` )
111
111
- Add timer interrupt example using RTFM
112
112
- Implement IndependentWatchdog for the IWDG peripheral
113
- - Remove all PWM channel configurations except 'all the channels for default remapping' configuratons
113
+ - Remove all PWM channel configurations except 'all the channels for default remapping' configurations
114
114
- Update PWM documentation: clarify custom selection of channels
115
115
- Add PWM example for custom selection of channels
116
116
Original file line number Diff line number Diff line change 3
3
//! This assumes that a LED is connected to pc13 as is the case on the blue pill board.
4
4
//!
5
5
//! 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.
7
7
8
8
#![ deny( unsafe_code) ]
9
9
#![ no_std]
Original file line number Diff line number Diff line change 3
3
//! This assumes that a LED is connected to pc13 as is the case on the blue pill board.
4
4
//!
5
5
//! 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.
7
7
//! This is not an issue on the blue pill.
8
8
9
9
#![ deny( unsafe_code) ]
Original file line number Diff line number Diff line change 6
6
//! If compiled for the stm32f100, this assumes that an active high LED is connected to pc9
7
7
//!
8
8
//! 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.
10
10
//! This is not an issue on the blue pill.
11
11
12
12
#![ deny( unsafe_code) ]
Original file line number Diff line number Diff line change 3
3
//! This assumes that a LED is connected to pc13 as is the case on the blue pill board.
4
4
//!
5
5
//! 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.
7
7
8
8
#![ no_std]
9
9
#![ no_main]
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ use crate::pac::BKP;
17
17
18
18
/**
19
19
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`
21
21
*/
22
22
pub struct BackupDomain {
23
23
pub ( crate ) _regs : BKP ,
Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ trait UsartReadWrite: Deref<Target=crate::stm32::usart1::RegisterBlock> {
211
211
} ;
212
212
213
213
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
215
215
// do a read from the sr register followed by a read from the dr
216
216
// register
217
217
// NOTE(read_volatile) see `write_volatile` below
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ impl Into<KiloHertz> for MegaHertz {
82
82
}
83
83
}
84
84
85
- /// A monotonic nondecreasing timer
85
+ /// A monotonic non-decreasing timer
86
86
#[ derive( Clone , Copy ) ]
87
87
pub struct MonoTimer {
88
88
frequency : Hertz ,
@@ -93,7 +93,7 @@ impl MonoTimer {
93
93
pub fn new ( mut dwt : DWT , clocks : Clocks ) -> Self {
94
94
dwt. enable_cycle_counter ( ) ;
95
95
96
- // now the CYCCNT counter can't be stopped or resetted
96
+ // now the CYCCNT counter can't be stopped or reset
97
97
drop ( dwt) ;
98
98
99
99
MonoTimer {
@@ -114,7 +114,7 @@ impl MonoTimer {
114
114
}
115
115
}
116
116
117
- /// A measurement of a monotonically nondecreasing clock
117
+ /// A measurement of a monotonically non-decreasing clock
118
118
#[ derive( Clone , Copy ) ]
119
119
pub struct Instant {
120
120
now : u32 ,
Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ impl CountDownTimer<SYST> {
239
239
let ticks = u64 ( reload_value - SYST :: get_current ( ) ) ;
240
240
241
241
// 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
243
243
u32 ( 1_000_000 * ticks / timer_clock) . unwrap ( )
244
244
}
245
245
You can’t perform that action at this time.
0 commit comments