mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-19 22:35:19 +01:00
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:
parent
ad2a523cf9
commit
d396da5950
17 changed files with 112 additions and 92 deletions
|
|
@ -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: {},
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue