aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2022-07-23 01:43:41 +0200
committerDario Nieuwenhuis <[email protected]>2022-07-23 02:17:45 +0200
commite0521ea249d375097c9d62c602b8f598e6b65292 (patch)
treee48755a329f4dc05e7725fd84e8604e56c8e96e4
parentbe6408e202765bd735b56d81b77b94559fe67a57 (diff)
fix nrf dppi
-rw-r--r--embassy-nrf/src/ppi/dppi.rs9
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 @@
1use core::marker::PhantomData;
2
3use embassy_hal_common::unborrow; 1use embassy_hal_common::unborrow;
4 2
5use super::{Channel, ConfigurableChannel, Event, Ppi, Task}; 3use 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