drivers: dma: stm32: add missing fifo operation
The DMA driver of stm32 used to use `stm32_dma_enable_fifo()`, which is located in dma_stm32_v1.c to set DMDIS bit, enable interrupt generation and set FIFO threshold. Now since FIFO threshold is initialized with `stm32_dma_get_fifo_threshold()` and interrupt generation is also configured in dma_stm32.c, this function will only have one job, to configure FIFO mode. We can add FIFO mode operation in dma_stm32.c directly and remove it from dma_stm32_v1.c. Signed-off-by: Song Qiang <songqiang1304521@gmail.com>
This commit is contained in:
parent
065a2cb08c
commit
40962a81e7
3 changed files with 2 additions and 9 deletions
|
@ -22,7 +22,6 @@ bool stm32_dma_is_irq_happened(DMA_TypeDef *dma, u32_t id);
|
|||
bool stm32_dma_is_unexpected_irq_happened(DMA_TypeDef *dma, u32_t id);
|
||||
void stm32_dma_enable_stream(DMA_TypeDef *dma, u32_t id);
|
||||
int stm32_dma_disable_stream(DMA_TypeDef *dma, u32_t id);
|
||||
void stm32_dma_enable_fifo(DMA_TypeDef *dma, u32_t id);
|
||||
void stm32_dma_config_channel_function(DMA_TypeDef *dma, u32_t id, u32_t slot);
|
||||
#ifdef CONFIG_DMA_STM32_V1
|
||||
void stm32_dma_disable_fifo_irq(DMA_TypeDef *dma, u32_t id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue