5
Last change
on this file since 6878519 was
6878519,
checked in by Christian Mauderer <christian.mauderer@…>, on 02/06/18 at 15:28:28
|
bsp/atsam: Fix cache / DMA handling in SPI.
This patch fixes the cache handling for the atsam SPI driver. Note that
this solution might doesn't have the best performance for small packets.
|
-
Property mode set to
100644
|
File size:
893 bytes
|
Rev | Line | |
---|
[6878519] | 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 */ |
---|
Note: See
TracBrowser
for help on using the repository browser.