diff options
| author | Dario Nieuwenhuis <[email protected]> | 2022-07-23 01:43:41 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2022-07-23 02:17:45 +0200 |
| commit | e0521ea249d375097c9d62c602b8f598e6b65292 (patch) | |
| tree | e48755a329f4dc05e7725fd84e8604e56c8e96e4 | |
| parent | be6408e202765bd735b56d81b77b94559fe67a57 (diff) | |
fix nrf dppi
| -rw-r--r-- | embassy-nrf/src/ppi/dppi.rs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/embassy-nrf/src/ppi/dppi.rs b/embassy-nrf/src/ppi/dppi.rs index d0bffb1e0..87ebb7084 100644 --- a/embassy-nrf/src/ppi/dppi.rs +++ b/embassy-nrf/src/ppi/dppi.rs | |||
| @@ -1,5 +1,3 @@ | |||
| 1 | use core::marker::PhantomData; | ||
| 2 | |||
| 3 | use embassy_hal_common::unborrow; | 1 | use embassy_hal_common::unborrow; |
| 4 | 2 | ||
| 5 | use super::{Channel, ConfigurableChannel, Event, Ppi, Task}; | 3 | use super::{Channel, ConfigurableChannel, Event, Ppi, Task}; |
| @@ -48,12 +46,7 @@ impl<'d, C: ConfigurableChannel, const EVENT_COUNT: usize, const TASK_COUNT: usi | |||
| 48 | unsafe { event.publish_reg().write_volatile(val) } | 46 | unsafe { event.publish_reg().write_volatile(val) } |
| 49 | } | 47 | } |
| 50 | 48 | ||
| 51 | Self { | 49 | Self { ch, events, tasks } |
| 52 | ch, | ||
| 53 | events, | ||
| 54 | tasks, | ||
| 55 | phantom: PhantomData, | ||
| 56 | } | ||
| 57 | } | 50 | } |
| 58 | } | 51 | } |
| 59 | 52 | ||
