Skip to content

Commit b588115

Browse files
committed
temporary disabe DMA on stm32g081xx
1 parent 9820ce0 commit b588115

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

src/dma.rs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ macro_rules! dma {
322322
}
323323
}
324324

325-
#[cfg(any(feature = "stm32g070", feature = "stm32g071", feature = "stm32g081"))]
325+
#[cfg(any(feature = "stm32g070", feature = "stm32g071"))]
326326
dma!(
327327
channels: {
328328
C1: (ch1, htif1, tcif1, teif1, gif1, chtif1, ctcif1, cteif1, cgif1, C0),
@@ -335,6 +335,20 @@ dma!(
335335
},
336336
);
337337

338+
// TODO: Blocked by https://github.com/stm32-rs/stm32-rs/pull/695
339+
// #[cfg(feature = "stm32g081")]
340+
// dma!(
341+
// channels: {
342+
// C1: (ch1, htif1, tcif1, teif1, gif1, chtif1, ctcif1, cteif1, cgif1, C0),
343+
// C2: (ch2, htif2, tcif2, teif2, gif2, chtif2, ctcif2, cteif2, cgif2, C1),
344+
// C3: (ch3, htif3, tcif3, teif3, gif3, chtif3, ctcif3, cteif3, cgif3, C2),
345+
// C4: (ch4, htif4, tcif4, teif4, gif4, chtif4, ctcif4, cteif4, cgif4, C3),
346+
// C5: (ch5, htif5, tcif5, teif5, gif5, chtif5, ctcif5, cteif5, cgif5, C4),
347+
// C6: (ch6, htif6, tcif6, teif6, gif6, chtif6, ctcif6, cteif6, cgif6, C5),
348+
// C7: (ch7, htif7, tcif7, teif7, gif7, chtif7, ctcif7, cteif7, cgif7, C6),
349+
// },
350+
// );
351+
338352
#[cfg(any(feature = "stm32g030", feature = "stm32g031", feature = "stm32g041"))]
339353
dma!(
340354
channels: {

0 commit comments

Comments
 (0)