diff options
Diffstat (limited to 'tests/cfail/tasks-p0.rs')
| -rw-r--r-- | tests/cfail/tasks-p0.rs | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/cfail/tasks-p0.rs b/tests/cfail/tasks-p0.rs index 3813963..f1e83a3 100644 --- a/tests/cfail/tasks-p0.rs +++ b/tests/cfail/tasks-p0.rs @@ -1,13 +1,13 @@ -// error-pattern: no associated item named `hw` +// error-pattern: type mismatch #![feature(used)] extern crate core; extern crate cortex_m; #[macro_use] -extern crate cortex_m_srp; +extern crate cortex_m_rtfm as rtfm; -use cortex_m_srp::{C16, P0, P1}; +use rtfm::{C16, P0, P1}; use device::interrupt::Exti0; /// Tasks can't have priority 0. Only idle has priority 0 @@ -15,9 +15,11 @@ tasks!(device, { j1: (Exti0, P0), }); -fn init(_: C16) {} +fn init(_: P0, _: &C16) {} -fn idle(_: P0) {} +fn idle(_: P0) -> ! { + loop {} +} fn j1(_task: Exti0, _prio: P1) {} |
