Skip to content
Snippets Groups Projects
Commit 23425f2f authored by Jorge Aparicio's avatar Jorge Aparicio
Browse files

more cfail tests

parent 6577f4a9
No related branches found
No related tags found
No related merge requests found
#![deny(warnings)]
#![feature(proc_macro)]
extern crate cortex_m_rtfm as rtfm;
extern crate stm32f103xx;
use rtfm::app;
app! {
//~^ error no associated item named `SYS_TICK` found for type
//~| error no associated item named `SYS_TICK` found for type
device: stm32f103xx,
tasks: {
// ERROR exceptions can't be enabled / disabled here
SYS_TICK: {
enabled: true,
priority: 1,
},
},
}
fn init(_p: init::Peripherals) {}
fn idle() -> ! {
loop {}
}
#![deny(warnings)]
#![feature(proc_macro)]
extern crate cortex_m_rtfm as rtfm;
extern crate stm32f103xx;
use rtfm::app;
app! { //~ error no associated item named `EXTI0` found for type
device: stm32f103xx,
tasks: {
// ERROR `enabled` needs to be specified for interrupts
EXTI0: {
priority: 1,
},
},
}
fn init(_p: init::Peripherals) {}
fn idle() -> ! {
loop {}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment