Skip to content
Snippets Groups Projects
Select Git revision
  • d396da59502ef67f624bb4d8927ff8697232f66c
  • master default
  • claim_mut_new
  • nested_resources
  • test_roread
  • noread
  • v0.2.0
  • v0.1.1
  • v0.1.0
9 results

exception.rs

Blame
  • exception.rs 430 B
    #![deny(warnings)]
    #![feature(proc_macro)]
    #![no_std]
    
    extern crate cortex_m_rtfm as rtfm;
    extern crate stm32f103xx;
    
    use rtfm::app;
    
    app! { //~ error proc macro panicked
        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 {}
    }