note where code is device dependent
This commit is contained in:
@@ -29,6 +29,7 @@ extern crate cortex_m_srp as rtfm;
|
|||||||
extern crate {{name}};
|
extern crate {{name}};
|
||||||
|
|
||||||
use rtfm::{C2, C4, C16, P0, P1, P3, Resource};
|
use rtfm::{C2, C4, C16, P0, P1, P3, Resource};
|
||||||
|
// NOTE device dependent
|
||||||
use {{name}}::interrupt::{Exti0Irq, Exti1Irq};
|
use {{name}}::interrupt::{Exti0Irq, Exti1Irq};
|
||||||
|
|
||||||
static R1: Resource<(), C4> = Resource::new(());
|
static R1: Resource<(), C4> = Resource::new(());
|
||||||
@@ -46,6 +47,7 @@ fn idle(_prio: P0) -> ! {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NOTE Exti0Irq and Exti1Irq are device dependent
|
||||||
tasks!({{name}}, {
|
tasks!({{name}}, {
|
||||||
j1: (Exti0Irq, P1),
|
j1: (Exti0Irq, P1),
|
||||||
j2: (Exti1Irq, P3),
|
j2: (Exti1Irq, P3),
|
||||||
|
|||||||
Reference in New Issue
Block a user