From c8f41128264c05b3e78a8882ebf652ed70611433 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Sat, 15 Apr 2017 10:22:21 -0500 Subject: [PATCH] note where code is device dependent --- examples/4-srp.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/4-srp.rs b/examples/4-srp.rs index 439fe6f..cfc70b8 100644 --- a/examples/4-srp.rs +++ b/examples/4-srp.rs @@ -29,6 +29,7 @@ extern crate cortex_m_srp as rtfm; extern crate {{name}}; use rtfm::{C2, C4, C16, P0, P1, P3, Resource}; +// NOTE device dependent use {{name}}::interrupt::{Exti0Irq, Exti1Irq}; static R1: Resource<(), C4> = Resource::new(()); @@ -46,6 +47,7 @@ fn idle(_prio: P0) -> ! { } } +// NOTE Exti0Irq and Exti1Irq are device dependent tasks!({{name}}, { j1: (Exti0Irq, P1), j2: (Exti1Irq, P3),