DMA_Config() function
Configure the DMA controller according to the Stream parameters defined in main.h file
Syntax
static void DMA_Config(void);
Return value
None
Notes
This function is used to : -1- Enable DMA2 clock -2- Select the DMA functional Parameters -3- Select the DMA instance to be used for the transfer -4- Initialize the DMA stream -5- Select Callbacks functions called after Transfer complete and Transfer error interrupt detection -6- Configure NVIC for DMA transfer complete/error interrupts -7- Start the DMA transfer using the interrupt mode