HAL_ChibiOS: added DMAMUX channel assignment calls

This commit is contained in:
Andrew Tridgell committed 2019-02-26 16:18:26 +11:00
1 parent f4e31ce65b
commit 071d5e01af
3 files changed
+12

No files matched your search

+3
View File
@@ -823,6 +823,9 @@ void RCOutput::dma_allocate(Shared_DMA *ctx)
chSysLock();
group.dma = dmaStreamAllocI(group.dma_up_stream_id, 10, dma_irq_callback, &group);
chSysUnlock();
#if STM32_DMA_SUPPORTS_DMAMUX
dmaSetRequestSource(group.dma, group.dma_up_channel);
#endif
}
}
}