From d396da59502ef67f624bb4d8927ff8697232f66c Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Thu, 27 Jul 2017 17:08:42 -0500 Subject: make task.$T.enabled optional and move the logic that differentiates interrupts from exceptions from the crate to the procedural macro logic --- tests/cfail/interrupt.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/cfail/interrupt.rs') diff --git a/tests/cfail/interrupt.rs b/tests/cfail/interrupt.rs index 2969d1f..c70528f 100644 --- a/tests/cfail/interrupt.rs +++ b/tests/cfail/interrupt.rs @@ -7,14 +7,14 @@ extern crate stm32f103xx; use rtfm::app; -app! { //~ error no associated item named `EXTI0` found for type +app! { + //~^ error no associated item named `EXTI33` found for type + //~| error no associated item named `EXTI33` found for type device: stm32f103xx, tasks: { - // ERROR `enabled` needs to be specified for interrupts - EXTI0: { - priority: 1, - }, + // ERROR this interrupt doesn't exist + EXTI33: {}, }, } -- cgit v1.2.3