Add support for log+defmt again, but better.

This commit is contained in:
Dario Nieuwenhuis
2020-12-01 17:46:56 +01:00
parent 78135a81d9
commit 6f76c0ebcc
22 changed files with 261 additions and 21 deletions

View File

@ -1,8 +1,8 @@
use crate::fmt::{panic, *};
use core::cell::Cell;
use core::future::Future;
use core::ptr;
use core::task::{Context, Poll};
use defmt::{panic, *};
use embassy::util::Signal;
use crate::hal::gpio::{Input, Level, Output, Pin, Port};
@ -51,7 +51,8 @@ pub enum OutputChannelPolarity {
Toggle,
}
#[derive(Debug, Copy, Clone, Eq, PartialEq, defmt::Format)]
#[derive(Debug, Copy, Clone, Eq, PartialEq)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
pub enum NewChannelError {
NoFreeChannels,
}