RTEMS  5.1
iocopy.h
1 /*
2  * Copyright (c) 2018 embedded brains GmbH. All rights reserved.
3  *
4  * embedded brains GmbH
5  * Dornierstr. 4
6  * 82178 Puchheim
7  * Germany
8  * <rtems@embedded-brains.de>
9  *
10  * The license and distribution terms for this file may be
11  * found in the file LICENSE in this distribution or at
12  * http://www.rtems.org/license/LICENSE.
13  */
14 
15 #ifndef ATSAM_IOCOPY_H
16 #define ATSAM_IOCOPY_H
17 
18 #include <rtems.h>
19 #include <stdint.h>
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif /* __cplusplus */
24 
25 /*
26  * Note: This functions are for copying from or to memory that is marked as
27  * Peripheral memory. In this regions a misaligned access is not allowed.
28  * Therefore memcopy would not work in all cases.
29  */
30 void atsam_copy_to_io(void *dst, const void *src, size_t n);
31 void atsam_copy_from_io(void *dst, const void *src, size_t n);
32 
33 #ifdef __cplusplus
34 }
35 #endif /* __cplusplus */
36 
37 #endif /* ATSAM_IOCOPY_H */