make task.$T.enabled optional

and move the logic that differentiates interrupts from exceptions from the crate
to the procedural macro logic
This commit is contained in:
Jorge Aparicio 2017-07-27 17:08:42 -05:00
parent ad2a523cf9
commit d396da5950
17 changed files with 112 additions and 92 deletions

View file

@ -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: {},
},
}