aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2018-01-05 13:18:02 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2018-01-05 13:18:02 +0000
commitcdd196bdc204d2105916717bc19ee0a34ba946ba (patch)
treeebd7f171a73bc00395678d142c8639d9982b6c18 /os/hal/ports/STM32
parent7540eb36639f35b71c543d1d80da998f909aa139 (diff)
downloadChibiOS-cdd196bdc204d2105916717bc19ee0a34ba946ba.tar.gz
ChibiOS-cdd196bdc204d2105916717bc19ee0a34ba946ba.tar.bz2
ChibiOS-cdd196bdc204d2105916717bc19ee0a34ba946ba.zip
Added stub cache handling functions to the STM32 DMAv1 driver.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11228 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/STM32')
-rw-r--r--os/hal/ports/STM32/LLD/DMAv1/stm32_dma.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/LLD/DMAv1/stm32_dma.h b/os/hal/ports/STM32/LLD/DMAv1/stm32_dma.h
index 6dfd6debf..5034a32ab 100644
--- a/os/hal/ports/STM32/LLD/DMAv1/stm32_dma.h
+++ b/os/hal/ports/STM32/LLD/DMAv1/stm32_dma.h
@@ -259,6 +259,34 @@ 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
* @{
*/