2017-12-09 15:12:42 +01:00
|
|
|
#![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;
|
|
|
|
|
2017-07-27 18:40:15 +02:00
|
|
|
use rtfm::app;
|
2017-07-18 22:14:39 +02:00
|
|
|
|
|
|
|
app! { //~ error attempt to subtract with overflow
|
|
|
|
device: stm32f103xx,
|
|
|
|
|
|
|
|
tasks: {
|
|
|
|
SYS_TICK: {
|
2017-07-27 18:40:15 +02:00
|
|
|
path: sys_tick,
|
2017-07-18 22:14:39 +02:00
|
|
|
// ERROR priority must be in the range [1, 16]
|
|
|
|
priority: 0,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
fn init(_p: init::Peripherals) {}
|
|
|
|
|
|
|
|
fn idle() -> ! {
|
|
|
|
loop {}
|
|
|
|
}
|
|
|
|
|
2017-07-27 18:40:15 +02:00
|
|
|
fn sys_tick() {}
|