Remove defmt

This commit is contained in:
Invariantspace 2024-10-12 19:58:43 -07:00
parent 78cb2dd146
commit a4e228bdd6
No known key found for this signature in database
GPG key ID: EBC4A20067373921
6 changed files with 93 additions and 100 deletions

View file

@ -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;