zephyr/include/drivers/dma/dma_stm32.h
Erwan Gouriou d43200e9c4 drivers/dma: stm32: Preparation for QSPI DMA mode support
In preparation for QSPI DMA mode:
-Add a possibility to override driver by the HAL DMA. In that case
stream is set as busy and no configuration nor treatment is done.
In case of interrupt, flags clearing is let to HAL.
-Treat Half Transfer interrupt prior to Transfer Complete for the
cases were both IRQ are both raised at the time IRQ handler is called

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
2021-01-15 10:29:30 -05:00

16 lines
373 B
C

/*
* Copyright (c) 2021 Linaro Limited
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_DRIVERS_DMA_STM32_H_
#define ZEPHYR_INCLUDE_DRIVERS_DMA_STM32_H_
/* @brief linked_channel value to inform zephyr dma driver that
* DMA channel will be handled by HAL
*/
#define STM32_DMA_HAL_OVERRIDE 0x7F
#endif /* ZEPHYR_INCLUDE_DRIVERS_DMA_STM32_H_ */