aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/STM32F4xx/FSMC_SRAM/memcpy_dma.h
diff options
context:
space:
mode:
authorbarthess <barthess@yandex.ru>2015-02-25 23:02:05 +0300
committerbarthess <barthess@yandex.ru>2015-02-25 23:02:05 +0300
commit7ac7d41b203681068a8ccd076a7f99bfac0e13f0 (patch)
treeabf771897170ac5d5814622244eb6abe42ba6c66 /testhal/STM32/STM32F4xx/FSMC_SRAM/memcpy_dma.h
parent900963482d2589fd752f0c7501c99b98ef4e8b82 (diff)
downloadChibiOS-Contrib-7ac7d41b203681068a8ccd076a7f99bfac0e13f0.tar.gz
ChibiOS-Contrib-7ac7d41b203681068a8ccd076a7f99bfac0e13f0.tar.bz2
ChibiOS-Contrib-7ac7d41b203681068a8ccd076a7f99bfac0e13f0.zip
FSMC_SRAM haltest. Added memcpy over DMA speed test
Diffstat (limited to 'testhal/STM32/STM32F4xx/FSMC_SRAM/memcpy_dma.h')
-rw-r--r--testhal/STM32/STM32F4xx/FSMC_SRAM/memcpy_dma.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/testhal/STM32/STM32F4xx/FSMC_SRAM/memcpy_dma.h b/testhal/STM32/STM32F4xx/FSMC_SRAM/memcpy_dma.h
new file mode 100644
index 0000000..ceefee1
--- /dev/null
+++ b/testhal/STM32/STM32F4xx/FSMC_SRAM/memcpy_dma.h
@@ -0,0 +1,24 @@
+#ifndef MEMCPY_DMA_H_
+#define MEMCPY_DMA_H_
+
+/*
+ *
+ */
+typedef struct {
+ const stm32_dma_stream_t *dma;
+} memcpy_dma_engine_t;
+
+/*
+ *
+ */
+#ifdef __cplusplus
+extern "C" {
+#endif
+ void memcpy_dma_start(void);
+ void memcpy_dma_stop(void);
+ void memcpy_dma(void *dest, const void *src, size_t size);
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* MEMCPY_DMA_H_ */