From 71978f8f5a576c5dbfa29bb6f51402edc6d24c5e Mon Sep 17 00:00:00 2001 From: Per Lindgren <per.lindgren@ltu.se> Date: Mon, 15 Feb 2021 12:13:51 +0100 Subject: [PATCH] first set of examples (removed panic) --- examples/panic.rs | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 examples/panic.rs diff --git a/examples/panic.rs b/examples/panic.rs deleted file mode 100644 index 0daecf5..0000000 --- a/examples/panic.rs +++ /dev/null @@ -1,29 +0,0 @@ -//! 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 - -#![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 -// NOTE to use this you need to uncomment the `panic-semihosting` dependency in Cargo.toml -// use panic_semihosting as _; - -// Logs panic messages using the ITM (Instrumentation Trace Macrocell) -// NOTE to use this you need to uncomment the `panic-itm` dependency in Cargo.toml -use panic_itm as _; - -use cortex_m_rt::entry; -use stm32f4 as _; - -#[entry] -fn main() -> ! { - panic!("Oops") -} -- GitLab