Skip to content
Snippets Groups Projects
Select Git revision
  • 63b8f474fe6b4959baf42a7bd0af8370049dc27d
  • master default
  • patch-1
3 results

Ecosystem.md

Blame
  • Forked from d7018e-special-studies-embedded-systems / are_we_embedded_yet
    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!();
            }
        }
    }