Sfoglia il codice sorgente

GD32F4 SCSI DMA_TIMER mode: Fix DMA transfer mode (#1)

Does not fully work yet, but at least gets closer.
Petteri Aimonen 2 anni fa
parent
commit
688143a030
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      lib/ZuluSCSI_platform_GD32F450/scsi_accel_dma.cpp

+ 1 - 1
lib/ZuluSCSI_platform_GD32F450/scsi_accel_dma.cpp

@@ -85,7 +85,7 @@ void scsi_accel_timer_dma_init()
         .periph_burst_width = DMA_PERIPH_BURST_SINGLE,
         .critical_value = DMA_FIFO_1_WORD,
         .circular_mode = DMA_CIRCULAR_MODE_DISABLE,
-        .direction = DMA_MEMORY_TO_MEMORY,
+        .direction = DMA_MEMORY_TO_PERIPH,
         .number = DMA_BUF_SIZE,
         .priority = DMA_PRIORITY_HIGH