Explains how to use the DMA controller.
#include <stm32f4xx.h>
#define ADC1_DR_ADDRESS ((uint32_t) &ADC1->DR)
#define LED_ADDRESS ((uint32_t) FSMC_CARME_EXTENSION1_BASE + 0x200)
int main(void) {
DMA_InitStruct.
DMA_DIR = DMA_DIR_PeripheralToMemory;
DMA_InitStruct.
DMA_Mode = DMA_Mode_Circular;
DMA_Init(DMA2_Stream4, &DMA_InitStruct);
for (;;) {
}
return 0;
}