From e609f82aa0a783e26a894a25fb05bdc4fdac1083 Mon Sep 17 00:00:00 2001 From: Per <Per Lindgren> Date: Wed, 21 Feb 2018 23:30:30 +0100 Subject: [PATCH] samma kod --- examples/resource.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/examples/resource.rs b/examples/resource.rs index 24c6f15..74b11ba 100644 --- a/examples/resource.rs +++ b/examples/resource.rs @@ -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; -- GitLab