mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-29 02:05:57 +00:00
The stm32_dma_disable_stream first checked if the stream was disabled and if so returned OK. If it wasn't disabled it tried to disable it and returned -EAGAIN. The function is used in loops that try to disable the stream by calling this function and if it fails wait for 1ms and retry. Becuase this function the first time (if the stream wasn't disabled already) fails there is always a 1 ms delay. For the SPI driver, that has a RX and TX stream, this means a 2ms delay between the last data and CS going high. By first trying to disable the stream and than checking if it succeded most of the time the first call disables the stream and the 1ms delay isn't needed. Signed-off-by: Erwin Rol <erwin@erwinrol.com> |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
dma_dw.c | ||
dma_dw.h | ||
dma_handlers.c | ||
dma_mcux_edma.c | ||
dma_mcux_edma.h | ||
dma_mcux_lpc.c | ||
dma_nios2_msgdma.c | ||
dma_pl330.c | ||
dma_pl330.h | ||
dma_sam_xdmac.c | ||
dma_sam_xdmac.h | ||
dma_sam0.c | ||
dma_stm32_v1.c | ||
dma_stm32_v2.c | ||
dma_stm32.c | ||
dma_stm32.h | ||
dmamux_stm32.c | ||
dmamux_stm32.h | ||
Kconfig | ||
Kconfig.dma_pl330 | ||
Kconfig.dw | ||
Kconfig.mcux_edma | ||
Kconfig.mcux_lpc | ||
Kconfig.nios2_msgdma | ||
Kconfig.sam_xdmac | ||
Kconfig.sam0 | ||
Kconfig.stm32 |