Skip to content
Snippets Groups Projects
Select Git revision
  • 1d2450b9ad3515abd02bc198de1ee8e1b6095912
  • master default
  • 0.5.1
  • 0.3.1
4 results

server.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 {}
    }