rtic/tests/cfail/interrupt.rs

30 lines
501 B
Rust
Raw Permalink Normal View History

2017-07-20 23:16:40 +02:00
#![deny(warnings)]
#![feature(proc_macro)]
2017-07-24 03:51:58 +02:00
#![no_std]
2017-07-20 23:16:40 +02:00
extern crate cortex_m_rtfm as rtfm;
extern crate stm32f103xx;
use rtfm::app;
app! {
//~^ error no associated item named `EXTI33` found for type
//~| error no associated item named `EXTI33` found for type
2017-07-20 23:16:40 +02:00
device: stm32f103xx,
tasks: {
// ERROR this interrupt doesn't exist
2017-07-28 04:30:24 +02:00
EXTI33: {
path: exti33,
},
2017-07-20 23:16:40 +02:00
},
}
fn init(_p: init::Peripherals) {}
fn idle() -> ! {
loop {}
}
2017-07-28 04:30:24 +02:00
fn exti33() {}