aboutsummaryrefslogtreecommitdiff
path: root/tests/cfail/tasks-wrong-task.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cfail/tasks-wrong-task.rs')
-rw-r--r--tests/cfail/tasks-wrong-task.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/cfail/tasks-wrong-task.rs b/tests/cfail/tasks-wrong-task.rs
index 5fae160a..026290a7 100644
--- a/tests/cfail/tasks-wrong-task.rs
+++ b/tests/cfail/tasks-wrong-task.rs
@@ -6,7 +6,7 @@
extern crate cortex_m_rtfm as rtfm;
use device::interrupt::{Exti0, Exti1};
-use rtfm::{C0, C1, C16, P0, P1};
+use rtfm::{P0, P1, T0, T1, 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 task token. Declared Exti0, got Exti1
-fn j1(_task: Exti1, _prio: P1, _ceil: C1) {}
+fn j1(_task: Exti1, _prio: P1, _thr: T1) {}
// fake device crate
extern crate core;