Remove defmt
This commit is contained in:
parent
78cb2dd146
commit
a4e228bdd6
6 changed files with 93 additions and 100 deletions
|
|
@ -1,9 +1,8 @@
|
|||
#![no_std]
|
||||
#![no_main]
|
||||
|
||||
extern crate panic_halt;
|
||||
use cyw43_pio::PioSpi;
|
||||
use defmt::*;
|
||||
use defmt_rtt as _;
|
||||
use embassy_executor::Spawner;
|
||||
use embassy_rp::{
|
||||
bind_interrupts,
|
||||
|
|
@ -12,7 +11,6 @@ use embassy_rp::{
|
|||
pio::{InterruptHandler, Pio},
|
||||
};
|
||||
use embassy_time::Timer;
|
||||
use panic_probe as _;
|
||||
use static_cell::StaticCell;
|
||||
|
||||
// bind interrupt request to handler
|
||||
|
|
@ -65,7 +63,7 @@ async fn main(spawner: Spawner) {
|
|||
|
||||
// spawn network task
|
||||
let (_, mut control, runner) = cyw43::new(state, pwr, spi, fw).await;
|
||||
unwrap!(spawner.spawn(cyw43_task(runner)));
|
||||
spawner.spawn(cyw43_task(runner)).unwrap();
|
||||
|
||||
// initialize wireless
|
||||
control.init(clm).await;
|
||||
|
|
@ -76,7 +74,6 @@ async fn main(spawner: Spawner) {
|
|||
// time to blink
|
||||
let mut led = false;
|
||||
loop {
|
||||
info!("Blink!");
|
||||
led = !led;
|
||||
control.gpio_set(0, led).await;
|
||||
Timer::after_secs(1).await;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue