fix nrf dppi

This commit is contained in:
Dario Nieuwenhuis 2022-07-23 01:43:41 +02:00
parent be6408e202
commit e0521ea249

View file

@ -1,5 +1,3 @@
use core::marker::PhantomData;
use embassy_hal_common::unborrow; use embassy_hal_common::unborrow;
use super::{Channel, ConfigurableChannel, Event, Ppi, Task}; use super::{Channel, ConfigurableChannel, Event, Ppi, Task};
@ -48,12 +46,7 @@ impl<'d, C: ConfigurableChannel, const EVENT_COUNT: usize, const TASK_COUNT: usi
unsafe { event.publish_reg().write_volatile(val) } unsafe { event.publish_reg().write_volatile(val) }
} }
Self { Self { ch, events, tasks }
ch,
events,
tasks,
phantom: PhantomData,
}
} }
} }