mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-17 21:35:37 +03:00
h7: move adc values to dma_ram section to ensure coherent reads
This commit is contained in:
parent
4ad6ade468
commit
a35fe40a47
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(STM32H7)
|
#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
|
#else
|
||||||
#define ADC_VALUES_ALIGNMENT(def) def
|
#define ADC_VALUES_ALIGNMENT(def) def
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue