Skip to content
Snippets Groups Projects
Select Git revision
  • fc3c33e2b3f723fba9528c85d564435dfad213d5
  • master default protected
  • refactor
3 results

events.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() {}
    };