Lifetime groups

This commit is contained in:
Cameron 2023-06-29 18:13:46 +02:00
parent 24e186e684
commit fef338f5c2

View file

@ -31,9 +31,9 @@ pub(crate) use _version::*;
pub struct Ppi<'d, C: Channel, const EVENT_COUNT: usize, const TASK_COUNT: usize> { pub struct Ppi<'d, C: Channel, const EVENT_COUNT: usize, const TASK_COUNT: usize> {
ch: PeripheralRef<'d, C>, ch: PeripheralRef<'d, C>,
#[cfg(feature = "_dppi")] #[cfg(feature = "_dppi")]
events: [Event; EVENT_COUNT], events: [Event<'d>; EVENT_COUNT],
#[cfg(feature = "_dppi")] #[cfg(feature = "_dppi")]
tasks: [Task; TASK_COUNT], tasks: [Task<'d>; TASK_COUNT],
} }
/// PPI channel group driver. /// PPI channel group driver.