blob: 2d48a92b1558383a5f77b4e6c4c71680f1fc0963 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#![no_std]
#![no_main]
use embassy_executor::Spawner;
use hal::config::Config;
use hal::reset_reason::reset_reason;
use {defmt_rtt as _, embassy_mcxa as hal, panic_probe as _};
#[embassy_executor::main]
async fn main(_spawner: Spawner) {
let config = Config::default();
let _p = hal::init(config);
for reason in reset_reason().into_iter() {
defmt::info!("Reset Reason: '{}'", reason);
}
}
|