stm32/dma: Remove channel index tracking

This commit is contained in:
Grant Miller
2022-10-18 23:28:39 -05:00
parent fb53d74c57
commit 62eb675a3f
5 changed files with 8 additions and 29 deletions

View File

@ -31,7 +31,7 @@ pub trait MuxChannel: sealed::MuxChannel + super::Channel {
}
foreach_dma_channel! {
($channel_peri:ident, $dma_peri:ident, $version:ident, $channel_num:expr, $index:expr, {dmamux: $dmamux:ident, dmamux_channel: $dmamux_channel:expr}) => {
($channel_peri:ident, $dma_peri:ident, $version:ident, $channel_num:expr, {dmamux: $dmamux:ident, dmamux_channel: $dmamux_channel:expr}) => {
impl sealed::MuxChannel for peripherals::$channel_peri {
const DMAMUX_CH_NUM: u8 = $dmamux_channel;
const DMAMUX_REGS: pac::dmamux::Dmamux = pac::$dmamux;