rtic/tests/cfail/duplicated-task.rs

30 lines
557 B
Rust
Raw Normal View History

#![deny(unsafe_code)]
2017-07-18 22:14:39 +02:00
#![deny(warnings)]
#![feature(proc_macro)]
2017-07-24 03:51:58 +02:00
#![no_std]
2017-07-18 22:14:39 +02:00
extern crate cortex_m_rtfm as rtfm;
extern crate stm32f103xx;
use rtfm::app;
2018-05-01 14:01:51 +02:00
app! { //~ error proc macro panicked
2017-07-18 22:14:39 +02:00
device: stm32f103xx,
tasks: {
2018-05-01 14:01:51 +02:00
a: {
interrupt: EXTI0, //~ error this interrupt is already bound to another task
2018-05-07 17:46:26 +02:00
// priority: 1,
2017-07-18 22:14:39 +02:00
},
2018-05-01 14:01:51 +02:00
b: {
interrupt: EXTI0,
2017-07-18 22:14:39 +02:00
priority: 2,
},
},
}
2018-05-01 14:01:51 +02:00
fn init(_ctxt: init::Context) -> init::LateResources {}
2017-07-18 22:14:39 +02:00
2018-05-01 14:01:51 +02:00
fn idle(_ctxt: idle::Context) -> ! {}