diff options
Diffstat (limited to 'tests/cfail/priority-too-low.rs')
| -rw-r--r-- | tests/cfail/priority-too-low.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/cfail/priority-too-low.rs b/tests/cfail/priority-too-low.rs index d127c40..cefd342 100644 --- a/tests/cfail/priority-too-low.rs +++ b/tests/cfail/priority-too-low.rs @@ -2,17 +2,17 @@ #![feature(proc_macro)] #![no_std] -#[macro_use(task)] extern crate cortex_m_rtfm as rtfm; extern crate stm32f103xx; -use rtfm::{app, Threshold}; +use rtfm::app; app! { //~ error attempt to subtract with overflow device: stm32f103xx, tasks: { SYS_TICK: { + path: sys_tick, // ERROR priority must be in the range [1, 16] priority: 0, }, @@ -25,6 +25,4 @@ fn idle() -> ! { loop {} } -task!(SYS_TICK, sys_tick); - -fn sys_tick(_: &mut Threshold, _: SYS_TICK::Resources) {} +fn sys_tick() {} |
