> {}
+
/// Implementation detail, do not use outside embassy crates.
#[doc(hidden)]
-pub struct Handler {
+pub struct DynHandler {
pub func: AtomicPtr<()>,
pub ctx: AtomicPtr<()>,
}
-impl Handler {
+impl DynHandler {
pub const fn new() -> Self {
Self {
func: AtomicPtr::new(ptr::null_mut()),
@@ -51,7 +81,7 @@ pub unsafe trait Interrupt: Peripheral {
/// Implementation detail, do not use outside embassy crates.
#[doc(hidden)]
- unsafe fn __handler(&self) -> &'static Handler;
+ unsafe fn __handler(&self) -> &'static DynHandler;
}
/// Represents additional behavior for all interrupts.
diff --git a/embassy-futures/src/yield_now.rs b/embassy-futures/src/yield_now.rs
index 13b10377..bb3c67d1 100644
--- a/embassy-futures/src/yield_now.rs
+++ b/embassy-futures/src/yield_now.rs
@@ -24,6 +24,7 @@ pub fn yield_now() -> impl Future