Skip to content
Snippets Groups Projects
Select Git revision
  • 4e7c2ba0f338423e278d71e791d6559cc7a136e6
  • master default protected
2 results

mco.rs

Blame
  • rtfm_interrupt.rs 432 B
    // #![deny(unsafe_code)]
    // #![deny(warnings)]
    #![no_main]
    #![no_std]
    
    extern crate panic_halt;
    
    extern crate stm32f4xx_hal as hal;
    
    // use crate::hal::stm32::Interrupt::EXTI0;
    use rtfm::app;
    // use hal::stm32::Interrupt::EXTI0;
    
    #[app(device = hal::stm32)]
    // #[app(device = stm32f4xx_hal::stm32)]
    
    const APP: () = {
        // init runs in an interrupt free section
        #[init]
        fn init() {}
    
        #[interrupt]
        fn EXTI0() {}
    };