diff options
| author | Jorge Aparicio <jorge@japaric.io> | 2017-04-21 00:24:54 -0500 |
|---|---|---|
| committer | Jorge Aparicio <jorge@japaric.io> | 2017-04-21 00:24:54 -0500 |
| commit | 4992db78777c408a545a787e43450d4947144550 (patch) | |
| tree | 3d8de8a9d209be9fd86540ae2a5601fa827f3a53 /tests/cfail/tasks-same-handler.rs | |
| parent | 0a6583ddc6909215e5db10e8df9da48cc7bffe1a (diff) | |
more docs, remove Ceiling / Priority / Level traits
Diffstat (limited to 'tests/cfail/tasks-same-handler.rs')
| -rw-r--r-- | tests/cfail/tasks-same-handler.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/cfail/tasks-same-handler.rs b/tests/cfail/tasks-same-handler.rs index 345e65c..662a67d 100644 --- a/tests/cfail/tasks-same-handler.rs +++ b/tests/cfail/tasks-same-handler.rs @@ -5,9 +5,9 @@ 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, P2}; +use rtfm::{C16, P0, P1, P2}; use device::interrupt::Exti0; // WRONG: Two tasks mapped to the same interrupt handler @@ -16,9 +16,11 @@ tasks!(device, { j2: (Exti0, P2), }); -fn init(_: C16) {} +fn init(_: P0, _: &C16) {} -fn idle(_: P0) {} +fn idle(_: P0) -> ! { + loop {} +} fn j1(_task: Exti0, _prio: P1) {} |
