Browse Source

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

Does not fully work yet, but at least gets closer.
Petteri Aimonen 2 năm trước cách đây
mục cha
commit
688143a030
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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