aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32/LLD/DMAv1/stm32_dma.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/ports/STM32/LLD/DMAv1/stm32_dma.h')
-rw-r--r--os/hal/ports/STM32/LLD/DMAv1/stm32_dma.h30
1 files changed, 2 insertions, 28 deletions
diff --git a/os/hal/ports/STM32/LLD/DMAv1/stm32_dma.h b/os/hal/ports/STM32/LLD/DMAv1/stm32_dma.h
index 5034a32ab..ffa438003 100644
--- a/os/hal/ports/STM32/LLD/DMAv1/stm32_dma.h
+++ b/os/hal/ports/STM32/LLD/DMAv1/stm32_dma.h
@@ -27,6 +27,8 @@
#ifndef STM32_DMA_H
#define STM32_DMA_H
+#include "cache.h"
+
/*===========================================================================*/
/* Driver constants. */
/*===========================================================================*/
@@ -259,34 +261,6 @@ typedef struct {
/*===========================================================================*/
/**
- * @brief Invalidates the data cache lines overlapping a DMA buffer.
- * @note It does nothing in this driver, it is supplied for compatibility.
- *
- * @param[in] saddr start address of the DMA buffer
- * @param[in] n size of the DMA buffer in bytes
- *
- * @api
- */
-#define dmaBufferInvalidate(addr, size) { \
- (void)(addr); \
- (void)(size); \
-}
-
-/**
- * @brief Flushes the data cache lines overlapping a DMA buffer.
- * @note It does nothing in this driver, it is supplied for compatibility.
- *
- * @param[in] saddr start address of the DMA buffer
- * @param[in] n size of the DMA buffer in bytes
- *
- * @api
- */
-#define dmaBufferFlush(addr, size) { \
- (void)(addr); \
- (void)(size); \
-}
-
-/**
* @name Macro Functions
* @{
*/