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;
|
|
|
|
|
2017-07-28 00:08:42 +02:00
|
|
|
app! {
|
2017-12-08 13:28:27 +01:00
|
|
|
//~^ error no variant named `EXTI33` found for type
|
2017-07-20 23:16:40 +02:00
|
|
|
device: stm32f103xx,
|
|
|
|
|
|
|
|
tasks: {
|
2017-07-28 00:08:42 +02:00
|
|
|
// 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() {}
|