stm32: Implement Channel
trait for AnyChannel
This commit is contained in:
parent
5e92973136
commit
bbc06458a3
1 changed files with 7 additions and 0 deletions
|
@ -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];
|
||||
|
||||
|
|
Loading…
Reference in a new issue