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:
Andrew Tridgell 2018-05-30 18:58:51 +10:00
parent 762e4f9915
commit 2087354939

View File

@ -30,7 +30,13 @@
#include <chheap.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
#endif
#if defined(CCM_RAM_SIZE)
#ifndef CCM_BASE_ADDRESS