aboutsummaryrefslogtreecommitdiff
path: root/tests/cfail/tasks-wrong-priority.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cfail/tasks-wrong-priority.rs')
-rw-r--r--tests/cfail/tasks-wrong-priority.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/cfail/tasks-wrong-priority.rs b/tests/cfail/tasks-wrong-priority.rs
index 01ff7df..4d05d6b 100644
--- a/tests/cfail/tasks-wrong-priority.rs
+++ b/tests/cfail/tasks-wrong-priority.rs
@@ -6,7 +6,7 @@
extern crate cortex_m_rtfm as rtfm;
use device::interrupt::Exti0;
-use rtfm::{C0, C1, C16, C2, P0, P1, P2};
+use rtfm::{P0, P1, P2, T0, T1, T2, TMax};
tasks!(device, {
j1: Task {
@@ -16,14 +16,14 @@ tasks!(device, {
},
});
-fn init(_: P0, _: &C16) {}
+fn init(_: P0, _: &TMax) {}
-fn idle(_: P0, _: C0) -> ! {
+fn idle(_: P0, _: T0) -> ! {
loop {}
}
// Wrong priority token. Declared P1, got P2
-fn j1(_task: Exti0, _prio: P2, _ceil: C2) {}
+fn j1(_task: Exti0, _prio: P2, _thr: T2) {}
// fake device crate
extern crate core;