有个问题请教一下大家, STM469官方例程中使用 32位 SDRAM时 DMA配置如下:
- /* Configure common DMA parameters */
- dma_handle.Init.Channel = SDRAM_DMAx_CHANNEL;
- dma_handle.Init.Direction = DMA_MEMORY_TO_MEMORY;
- dma_handle.Init.PeriphInc = DMA_PINC_ENABLE;
- dma_handle.Init.MemInc = DMA_MINC_ENABLE;
- dma_handle.Init.PeriphDataAlignment = DMA_PDATAALIGN_WORD;
- dma_handle.Init.MemDataAlignment = DMA_MDATAALIGN_WORD;
- dma_handle.Init.Mode = DMA_NORMAL;
- dma_handle.Init.Priority = DMA_PRIORITY_HIGH;
- dma_handle.Init.FIFOMode = DMA_FIFOMODE_DISABLE;
- dma_handle.Init.FIFOThreshold = DMA_FIFO_THRESHOLD_FULL;
- dma_handle.Init.MemBurst = DMA_MBURST_SINGLE;
- dma_handle.Init.PeriphBurst = DMA_PBURST_SINGLE;
- dma_handle.Instance = SDRAM_DMAx_STREAM;
- /* Associate the DMA handle */
- __HAL_LINKDMA(hsdram, hdma, dma_handle);
- /* Deinitialize the stream for new transfer */
- HAL_DMA_DeInit( dma_handle);
- /* Configure the DMA stream */
- HAL_DMA_Init( dma_handle);
我现在SDRAM改为 16bit数据宽度后 DMA是否也要做相应修改,如果修改的话请问在配置里应该如何修改?