mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-10-03 23:24:36 +00:00
Merge pull request #2667 from timokroeger/stm32-anychannel-fix
stm32: Implement `Channel` trait for `AnyChannel`
This commit is contained in:
commit
b2d236ee39
@ -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();
|
const CHANNEL_COUNT: usize = crate::_generated::DMA_CHANNELS.len();
|
||||||
static STATE: [ChannelState; CHANNEL_COUNT] = [ChannelState::NEW; CHANNEL_COUNT];
|
static STATE: [ChannelState; CHANNEL_COUNT] = [ChannelState::NEW; CHANNEL_COUNT];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user