diff options
| author | Jorge Aparicio <jorge@japaric.io> | 2017-04-21 21:24:28 -0500 |
|---|---|---|
| committer | Jorge Aparicio <jorge@japaric.io> | 2017-04-21 21:24:28 -0500 |
| commit | eea803008390cbae307e873ce6d39e01d6367759 (patch) | |
| tree | c759d6c28a01fa8fa89abd52326720c5d3b5b8d3 /tests/cfail/tasks-wrong-idle.rs | |
| parent | 1c82f1b1190cb40a3502d5b74a8c98775a788850 (diff) | |
reword the comments in compile-fail tests
Diffstat (limited to 'tests/cfail/tasks-wrong-idle.rs')
| -rw-r--r-- | tests/cfail/tasks-wrong-idle.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/cfail/tasks-wrong-idle.rs b/tests/cfail/tasks-wrong-idle.rs index 77afef6..4ee910e 100644 --- a/tests/cfail/tasks-wrong-idle.rs +++ b/tests/cfail/tasks-wrong-idle.rs @@ -2,15 +2,12 @@ #![feature(used)] -extern crate core; -extern crate cortex_m; #[macro_use] extern crate cortex_m_rtfm as rtfm; use device::interrupt::Exti0; use rtfm::{C16, P0, P1}; -/// Tasks can't have priority 0. Only idle has priority 0 tasks!(device, { j1: (Exti0, P1), }); @@ -24,6 +21,10 @@ fn idle(_: P1) -> ! { fn j1(_task: Exti0, _prio: P1) {} +// fake device crate +extern crate core; +extern crate cortex_m; + mod device { pub mod interrupt { use cortex_m::interrupt::Nr; |
