aboutsummaryrefslogtreecommitdiff
path: root/examples/nested.rs
diff options
context:
space:
mode:
authorGravatar bors[bot] <bors[bot]@users.noreply.github.com> 2018-04-16 19:44:27 +0000
committerGravatar bors[bot] <bors[bot]@users.noreply.github.com> 2018-04-16 19:44:27 +0000
commit5ff9076e9c1a5cc2e9b57041699d0aa37ca8c768 (patch)
tree4169f3ae1a774a189b90baeefb1e1c3aaa0b5a44 /examples/nested.rs
parentb55581dfe35040a4fdc93a1f38c1e1769d4d2535 (diff)
parentbfa56e12f7a3ec3734e329f00d98ce9a953fce6d (diff)
downloadrtic-5ff9076e9c1a5cc2e9b57041699d0aa37ca8c768.tar.gz
rtic-5ff9076e9c1a5cc2e9b57041699d0aa37ca8c768.tar.zst
rtic-5ff9076e9c1a5cc2e9b57041699d0aa37ca8c768.zip
Merge #71
71: update parser r=japaric a=japaric closes #69 this doesn't change functionality per se but improves diagnostics in some cases. Some hard errors have becomes warnings, for example: when `resources` is empty, or when `idle.path` is set to the default `idle` path. Co-authored-by: Jorge Aparicio <jorge@japaric.io>
Diffstat (limited to 'examples/nested.rs')
-rw-r--r--examples/nested.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/examples/nested.rs b/examples/nested.rs
index d2309f3d..6af70879 100644
--- a/examples/nested.rs
+++ b/examples/nested.rs
@@ -10,8 +10,8 @@
extern crate cortex_m_rtfm as rtfm;
extern crate stm32f103xx;
-use stm32f103xx::Interrupt;
use rtfm::{app, Resource, Threshold};
+use stm32f103xx::Interrupt;
app! {
device: stm32f103xx,
@@ -60,10 +60,7 @@ fn idle() -> ! {
}
#[allow(non_snake_case)]
-fn exti0(
- t: &mut Threshold,
- EXTI0::Resources { mut LOW, mut HIGH }: EXTI0::Resources,
-) {
+fn exti0(t: &mut Threshold, EXTI0::Resources { mut LOW, mut HIGH }: EXTI0::Resources) {
// Because this task has a priority of 1 the preemption threshold `t` also
// starts at 1