Skip to content

Commit

Permalink
dev: add dma channel impl for stm32 u5
Browse files Browse the repository at this point in the history
  • Loading branch information
CNLHC committed Dec 18, 2024
1 parent c504ae8 commit 7c6cbcd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions embassy-stm32/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1274,6 +1274,11 @@ fn main() {
(("timer", "CH2"), quote!(crate::timer::Ch2Dma)),
(("timer", "CH3"), quote!(crate::timer::Ch3Dma)),
(("timer", "CH4"), quote!(crate::timer::Ch4Dma)),
// For STM32U5 (maybe more?), the timer DMA channels are named differently
(("timer", "CC1"), quote!(crate::timer::Ch1Dma)),
(("timer", "CC2"), quote!(crate::timer::Ch2Dma)),
(("timer", "CC3"), quote!(crate::timer::Ch3Dma)),
(("timer", "CC4"), quote!(crate::timer::Ch4Dma)),
(("cordic", "WRITE"), quote!(crate::cordic::WriteDma)), // FIXME: stm32u5a crash on Cordic driver
(("cordic", "READ"), quote!(crate::cordic::ReadDma)), // FIXME: stm32u5a crash on Cordic driver
]
Expand Down

0 comments on commit 7c6cbcd

Please sign in to comment.