From a35fe40a470e8d2d8a538e56c8c65618468a2011 Mon Sep 17 00:00:00 2001 From: bkleiner Date: Mon, 31 May 2021 20:30:33 +0200 Subject: [PATCH] h7: move adc values to dma_ram section to ensure coherent reads --- src/main/drivers/adc_impl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/drivers/adc_impl.h b/src/main/drivers/adc_impl.h index 41f2635ce9..290a9ef583 100644 --- a/src/main/drivers/adc_impl.h +++ b/src/main/drivers/adc_impl.h @@ -31,7 +31,7 @@ #endif #if defined(STM32H7) -#define ADC_VALUES_ALIGNMENT(def) def __attribute__ ((aligned (32))) +#define ADC_VALUES_ALIGNMENT(def) __attribute__ ((section(".DMA_RAM"))) def __attribute__ ((aligned (32))) #else #define ADC_VALUES_ALIGNMENT(def) def #endif