Skip to content
Snippets Groups Projects
Select Git revision
  • 97ec6d48c990cfa202717d15adf0433540347d04
  • master default protected
  • home_exam
  • wip
4 results

parse.rs

Blame
  • Forked from Per Lindgren / D7050E
    Source project has a limited visibility.
    panic.rs 636 B
    //! Changing the panicking behavior
    //!
    //! The easiest way to change the panicking behavior is to use a different [panic handler crate][0].
    //!
    //! [0]: https://crates.io/keywords/panic-impl
    
    #![deny(unsafe_code)]
    #![deny(warnings)]
    #![no_main]
    #![no_std]
    
    // Pick one of these panic handlers:
    
    // `panic!` halts execution; the panic message is ignored
    use panic_halt as _;
    
    // Reports panic messages to the host stderr using semihosting
    //use panic_semihosting as _;
    
    // Logs panic messages using the ITM (Instrumentation Trace Macrocell)
    //use panic_itm as _;
    
    use cortex_m_rt::entry;
    
    #[entry]
    fn main() -> ! {
        panic!("Oops")
    }