HAL_ChibiOS: align buffers to STM32F7 cache lines
this allows for DMA flush and invalidate operations to work on all dynamically allocated memory
This commit is contained in:
parent
762e4f9915
commit
2087354939
@ -30,7 +30,13 @@
|
|||||||
#include <chheap.h>
|
#include <chheap.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
|
#if defined(STM32F7) && STM32_DMA_CACHE_HANDLING == TRUE
|
||||||
|
// to allow for dma management functions we need buffers to be
|
||||||
|
// aligned to the cache line size
|
||||||
|
#define MIN_ALIGNMENT 32
|
||||||
|
#else
|
||||||
#define MIN_ALIGNMENT 8
|
#define MIN_ALIGNMENT 8
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(CCM_RAM_SIZE)
|
#if defined(CCM_RAM_SIZE)
|
||||||
#ifndef CCM_BASE_ADDRESS
|
#ifndef CCM_BASE_ADDRESS
|
||||||
|
Loading…
Reference in New Issue
Block a user