diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2018-01-05 13:18:02 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2018-01-05 13:18:02 +0000 |
commit | cdd196bdc204d2105916717bc19ee0a34ba946ba (patch) | |
tree | ebd7f171a73bc00395678d142c8639d9982b6c18 /os/hal | |
parent | 7540eb36639f35b71c543d1d80da998f909aa139 (diff) | |
download | ChibiOS-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')
-rw-r--r-- | os/hal/ports/STM32/LLD/DMAv1/stm32_dma.h | 28 |
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
* @{
*/
|