Skip to content

Commit 65c1d76

Browse files
cybertalegalak
authored andcommitted
drivers: dma: stm32: add missing assignment for fifo threshold
Fixes #20490. Signed-off-by: Song Qiang <[email protected]>
1 parent 40962a8 commit 65c1d76

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/dma/dma_stm32.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,8 @@ static int dma_stm32_configure(struct device *dev, u32_t id,
381381
}
382382
DMA_InitStruct.Channel = table_ll_channel[config->dma_slot];
383383

384-
stm32_dma_get_fifo_threshold(config->head_block->fifo_mode_control);
384+
DMA_InitStruct.FIFOThreshold = stm32_dma_get_fifo_threshold(
385+
config->head_block->fifo_mode_control);
385386

386387
if (stm32_dma_check_fifo_mburst(&DMA_InitStruct)) {
387388
DMA_InitStruct.FIFOMode = LL_DMA_FIFOMODE_ENABLE;

0 commit comments

Comments
 (0)