aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios-contrib/testhal/STM32/STM32F4xx/FSMC_SDRAM/memcpy_dma.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios-contrib/testhal/STM32/STM32F4xx/FSMC_SDRAM/memcpy_dma.h')
-rw-r--r--lib/chibios-contrib/testhal/STM32/STM32F4xx/FSMC_SDRAM/memcpy_dma.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/lib/chibios-contrib/testhal/STM32/STM32F4xx/FSMC_SDRAM/memcpy_dma.h b/lib/chibios-contrib/testhal/STM32/STM32F4xx/FSMC_SDRAM/memcpy_dma.h
new file mode 100644
index 000000000..8d6212ca8
--- /dev/null
+++ b/lib/chibios-contrib/testhal/STM32/STM32F4xx/FSMC_SDRAM/memcpy_dma.h
@@ -0,0 +1,40 @@
1/*
2 ChibiOS/RT - Copyright (C) 2013-2014 Uladzimir Pylinsky aka barthess
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15*/
16
17#ifndef MEMCPY_DMA_H_
18#define MEMCPY_DMA_H_
19
20/*
21 *
22 */
23typedef struct {
24 const stm32_dma_stream_t *dma;
25} memcpy_dma_engine_t;
26
27/*
28 *
29 */
30#ifdef __cplusplus
31extern "C" {
32#endif
33 void memcpy_dma_start(void);
34 void memcpy_dma_stop(void);
35 void memcpy_dma(void *dest, const void *src, size_t size);
36#ifdef __cplusplus
37}
38#endif
39
40#endif /* MEMCPY_DMA_H_ */