1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-16 12:55:16 +03:00

h7: move adc values to dma_ram section to ensure coherent reads

This commit is contained in:
bkleiner 2021-05-31 20:30:33 +02:00 committed by Pawel Spychalski (DzikuVx)
parent 4ad6ade468
commit a35fe40a47

View file

@ -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