stm32: Implement Channel trait for AnyChannel

This commit is contained in:
Timo Kröger 2024-03-07 15:03:40 +01:00
parent 5e92973136
commit bbc06458a3

View file

@ -96,6 +96,13 @@ impl AnyChannel {
}
}
impl sealed::Channel for AnyChannel {
fn id(&self) -> u8 {
self.id
}
}
impl Channel for AnyChannel {}
const CHANNEL_COUNT: usize = crate::_generated::DMA_CHANNELS.len();
static STATE: [ChannelState; CHANNEL_COUNT] = [ChannelState::NEW; CHANNEL_COUNT];