mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Register SDCard DMA in resource list
This commit is contained in:
parent
ea2c8a6fde
commit
377893e173
3 changed files with 8 additions and 2 deletions
|
@ -24,6 +24,7 @@
|
|||
|
||||
#include "nvic.h"
|
||||
#include "io.h"
|
||||
#include "dma.h"
|
||||
|
||||
#include "bus_spi.h"
|
||||
#include "system.h"
|
||||
|
@ -551,6 +552,9 @@ void sdcard_init(bool useDMA)
|
|||
{
|
||||
#ifdef SDCARD_DMA_CHANNEL_TX
|
||||
useDMAForTx = useDMA;
|
||||
if (useDMAForTx) {
|
||||
dmaInit(dmaGetIdentifier(SDCARD_DMA_CHANNEL_TX), OWNER_SDCARD, 0);
|
||||
}
|
||||
#else
|
||||
// DMA is not available
|
||||
(void) useDMA;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue