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

@ -32,10 +32,10 @@ pub(crate) unsafe fn init() {
}
foreach_dma_channel! {
($channel_peri:ident, BDMA1, bdma, $channel_num:expr, $index:expr, $dmamux:tt) => {
($channel_peri:ident, BDMA1, bdma, $channel_num:expr, $dmamux:tt) => {
// BDMA1 in H7 doesn't use DMAMUX, which breaks
};
($channel_peri:ident, $dma_peri:ident, bdma, $channel_num:expr, $index:expr, $dmamux:tt) => {
($channel_peri:ident, $dma_peri:ident, bdma, $channel_num:expr, $dmamux:tt) => {
impl crate::peripherals::$channel_peri {
fn waker() -> &'static AtomicWaker {
static WAKER: AtomicWaker = AtomicWaker::new();