瀏覽代碼

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

Does not fully work yet, but at least gets closer.
Petteri Aimonen 2 年之前
父節點
當前提交
688143a030
共有 1 個文件被更改,包括 1 次插入1 次删除
  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,
         .periph_burst_width = DMA_PERIPH_BURST_SINGLE,
         .critical_value = DMA_FIFO_1_WORD,
         .critical_value = DMA_FIFO_1_WORD,
         .circular_mode = DMA_CIRCULAR_MODE_DISABLE,
         .circular_mode = DMA_CIRCULAR_MODE_DISABLE,
-        .direction = DMA_MEMORY_TO_MEMORY,
+        .direction = DMA_MEMORY_TO_PERIPH,
         .number = DMA_BUF_SIZE,
         .number = DMA_BUF_SIZE,
         .priority = DMA_PRIORITY_HIGH
         .priority = DMA_PRIORITY_HIGH