diff options
| author | Jorge Aparicio <jorge@japaric.io> | 2017-07-27 11:40:15 -0500 |
|---|---|---|
| committer | Jorge Aparicio <jorge@japaric.io> | 2017-07-27 11:40:15 -0500 |
| commit | aa2249454975a203e459597005944f5370c1d200 (patch) | |
| tree | b6cf75b34302cf7681712c82bffa2841631ef998 /tests/cfail/priority-too-high.rs | |
| parent | 0b5afce771cb9e5cc42c4fd4c5e18f020bf1ecad (diff) | |
update tests and examples
with task! gone 3 types of errors / gotchas have been eliminated :tada:
Diffstat (limited to 'tests/cfail/priority-too-high.rs')
| -rw-r--r-- | tests/cfail/priority-too-high.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/cfail/priority-too-high.rs b/tests/cfail/priority-too-high.rs index 01ddc03..c139471 100644 --- a/tests/cfail/priority-too-high.rs +++ b/tests/cfail/priority-too-high.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: 17, }, @@ -25,6 +25,4 @@ fn idle() -> ! { loop {} } -task!(SYS_TICK, sys_tick); - -fn sys_tick(_: &mut Threshold, _: SYS_TICK::Resources) {} +fn sys_tick() {} |
