From aa2249454975a203e459597005944f5370c1d200 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Thu, 27 Jul 2017 11:40:15 -0500 Subject: update tests and examples with task! gone 3 types of errors / gotchas have been eliminated :tada: --- tests/cfail/priority-too-low.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'tests/cfail/priority-too-low.rs') 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() {} -- cgit v1.2.3