Skip to content
Snippets Groups Projects
Commit e609f82a authored by Per's avatar Per
Browse files

samma kod

parent 7ecee802
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,6 @@ app! {
},
}
#[allow(non_snake_case)]
fn exti1(t: &mut Threshold, EXTI1::Resources { X, mut Y }: EXTI1::Resources) {
X.claim(t, |x, t1| {
Y.claim_mut(t1, |y, _| {
......@@ -57,7 +56,6 @@ fn exti1(t: &mut Threshold, EXTI1::Resources { X, mut Y }: EXTI1::Resources) {
}
});
});
rtfm::bkpt();
}
fn exti2(t: &mut Threshold, mut r: EXTI2::Resources) {
......@@ -74,7 +72,11 @@ fn exti3(_t: &mut Threshold, _r: EXTI3::Resources) {}
#[inline(never)]
#[allow(dead_code)]
fn init(_p: init::Peripherals, _r: init::Resources) {}
fn init(_p: init::Peripherals, _r: init::Resources) {
loop {
rtfm::bkpt();
}
}
extern crate cortex_m;
use cortex_m::register::basepri;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment