Skip to content
Snippets Groups Projects
Select Git revision
  • 8d57f0fe581bd092e150317333c1f9d283daf112
  • master default protected
  • home-exam
  • dsi_debug
  • rtt_timing
  • timing_task
  • timing_resources
  • main.rs
  • rtic6
  • v1.0
10 results

panic.rs

Blame
  • Forked from Per Lindgren / rtic_f4xx_nucleo
    Source project has a limited visibility.
    systick.rs 351 B
    #![no_std]
    #![no_main]
    
    extern crate cortex_m;
    extern crate klee;
    extern crate panic_abort;
    
    use cortex_m::peripheral::Peripherals;
    
    #[no_mangle]
    fn main() {
        let peripherals = Peripherals::take().unwrap();
        let syst = peripherals.SYST;
    
        if syst.rvr.read() == 0 {
            if syst.cvr.read() == 0x21 {
                panic!();
            }
        }
    }