mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-21 22:32:29 +00:00
Fixes
This commit is contained in:
parent
a0cc229a3a
commit
878bfd2b75
@ -6,11 +6,17 @@ edition = "2018"
|
||||
|
||||
[features]
|
||||
std = ["futures/std"]
|
||||
defmt-default = []
|
||||
defmt-trace = []
|
||||
defmt-debug = []
|
||||
defmt-info = []
|
||||
defmt-warn = []
|
||||
defmt-error = []
|
||||
|
||||
[dependencies]
|
||||
defmt = "0.1.0"
|
||||
cortex-m = "0.6.3"
|
||||
futures = { version = "0.3.5", default-features = false, features = [ "async-await" ] }
|
||||
futures = { version = "0.3.5", default-features = false }
|
||||
pin-project = { version = "0.4.23", default-features = false }
|
||||
futures-intrusive = { version = "0.3.1", default-features = false }
|
||||
embassy-macros = { version = "0.1.0", path = "../embassy-macros"}
|
||||
|
@ -1,6 +1,3 @@
|
||||
#![no_std]
|
||||
#![feature(const_fn)]
|
||||
|
||||
use core::cell::Cell;
|
||||
use core::cell::UnsafeCell;
|
||||
use core::future::Future;
|
||||
|
@ -1,5 +1,6 @@
|
||||
#![macro_use]
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! depanic {
|
||||
($( $i:expr ),*) => {
|
||||
{
|
||||
@ -9,6 +10,7 @@ macro_rules! depanic {
|
||||
}
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! deassert {
|
||||
($cond:expr) => {
|
||||
deassert!($cond, "assertion failed");
|
||||
|
@ -13,6 +13,8 @@ pub use drop_bomb::*;
|
||||
|
||||
use defmt::{debug, error, info, intern, trace, warn};
|
||||
|
||||
pub use macros::*;
|
||||
|
||||
pub trait Dewrap<T> {
|
||||
/// dewrap = defmt unwrap
|
||||
fn dewrap(self) -> T;
|
||||
|
Loading…
Reference in New Issue
Block a user