We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15f9ca6 commit 9628513Copy full SHA for 9628513
examples/timer.rs
@@ -6,8 +6,8 @@
6
7
extern crate panic_semihosting;
8
9
+use core::cell::RefCell;
10
use core::fmt::Write;
-use core::cell::{RefCell};
11
12
use cortex_m::interrupt::{free, Mutex};
13
use cortex_m_rt::entry;
@@ -52,7 +52,12 @@ fn main() -> ! {
52
#[interrupt]
53
fn TIM2() {
54
free(|cs| {
55
- TIMER.borrow(cs).borrow_mut().as_mut().unwrap().clear_interrupt(Event::TimeOut)
+ TIMER
56
+ .borrow(cs)
57
+ .borrow_mut()
58
+ .as_mut()
59
+ .unwrap()
60
+ .clear_interrupt(Event::TimeOut)
61
});
62
63
let mut hstdout = hio::hstdout().unwrap();
0 commit comments