@@ -44,7 +44,7 @@ mod tests {
44
44
let mut flash = dp. FLASH . constrain ( ) ;
45
45
let clocks = rcc. cfgr . freeze ( & mut flash. acr ) ;
46
46
47
- // Let's use a timer, which is avaliable for every chip
47
+ // Let's use a timer, which is available for every chip
48
48
let timer = Timer :: new ( dp. TIM2 , clocks, & mut rcc. apb1 ) ;
49
49
let mono_timer = MonoTimer :: new ( cp. DWT , clocks, & mut cp. DCB ) ;
50
50
let delay = Delay :: new ( cp. SYST , clocks) ;
@@ -105,7 +105,7 @@ mod tests {
105
105
106
106
let deviation = ( ratio - 1. ) . abs ( ) ;
107
107
108
- // Deviation is high for smaller timer durations . Higher duratinons are pretty accurate.
108
+ // Deviation is high for smaller timer duration . Higher duration are pretty accurate.
109
109
// TODO: Maybe the allowed deviation should changed depending on the duration?
110
110
defmt:: assert!( deviation < 11e-02 ) ;
111
111
}
@@ -147,8 +147,8 @@ mod tests {
147
147
fn TIM2 ( ) {
148
148
INTERRUPT_FIRED . store ( true , Ordering :: SeqCst ) ;
149
149
150
- // Make it easy on ourselfs and just disable all interrupts.
151
- // This way, the interrupt rountine dooes not have to have access to the timer peripheral,
150
+ // Make it easy on ourselves and just disable all interrupts.
151
+ // This way, the interrupt routine does not have to have access to the timer peripheral,
152
152
// which would mean to access the internally managed state of the test module,
153
153
// which can't be accessed right now.
154
154
//
0 commit comments