Skip to content
Snippets Groups Projects
Commit d40ec8a9 authored by Genan OMER's avatar Genan OMER Committed by Alexandru RADOVICI
Browse files

Corecting the code. May adding the unwinding panics explications.

parent 9f851dbc
No related branches found
No related tags found
No related merge requests found
...@@ -863,6 +863,7 @@ When using `#![no_std]`, developers have to define their own panic handler. ...@@ -863,6 +863,7 @@ When using `#![no_std]`, developers have to define their own panic handler.
use cortex_m_rt::entry; use cortex_m_rt::entry;
use cortex_m_semihosting::hprintln; use cortex_m_semihosting::hprintln;
use core::panic::PanicInfo;
#[entry] #[entry]
fn main() -> ! { fn main() -> ! {
...@@ -974,6 +975,7 @@ use cortex_m_rt::entry; ...@@ -974,6 +975,7 @@ use cortex_m_rt::entry;
use defmt::{error, info}; use defmt::{error, info};
// use RTT for defmt transport // use RTT for defmt transport
use defmt_rtt as _; use defmt_rtt as _;
use core::panic::PanicInfo;
#[entry] #[entry]
fn main() -> ! { fn main() -> ! {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment