Lifetimes in dppi
This commit is contained in:
parent
fef338f5c2
commit
2432cece38
@ -30,8 +30,8 @@ impl<'d, C: ConfigurableChannel, const EVENT_COUNT: usize, const TASK_COUNT: usi
|
|||||||
/// Configure a DPPI channel to trigger all `tasks` when any of the `events` fires.
|
/// Configure a DPPI channel to trigger all `tasks` when any of the `events` fires.
|
||||||
pub fn new_many_to_many(
|
pub fn new_many_to_many(
|
||||||
ch: impl Peripheral<P = C> + 'd,
|
ch: impl Peripheral<P = C> + 'd,
|
||||||
events: [Event; EVENT_COUNT],
|
events: [Event<'d>; EVENT_COUNT],
|
||||||
tasks: [Task; TASK_COUNT],
|
tasks: [Task<'d>; TASK_COUNT],
|
||||||
) -> Self {
|
) -> Self {
|
||||||
into_ref!(ch);
|
into_ref!(ch);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user