DMA_InitTypeDef DMA_InitStructure; DMA_DeInit(DMA1_Channel4); DMA_InitStructure.DMA_PeripheralBaseAddr =(uint32_t)SRC_Const_Buffer;//The address of peripheral DMA_InitStructure.DMA_MemoryBaseAddr = (uint32_t)Bank1_SRAM3_ADDR;//The DAM RAM address DMA_InitStructure.DMA_DIR = DMA_DIR_PeripheralSRC;//Peripheral is the source of data DMA_InitStructure.DMA_BufferSize =32;//32 times DMA_InitStructure.DMA_PeripheralInc = DMA_PeripheralInc_Enable;//The address of peripheral will be added DMA_InitStructure.DMA_MemoryInc = DMA_MemoryInc_Enable;//The address of DMA will be added DMA_InitStructure.DMA_PeripheralDataSize = DMA_PeripheralDataSize_Word;//32 bits DMA_InitStructure.DMA_MemoryDataSize = DMA_MemoryDataSize_Word;//32 bits DMA_InitStructure.DMA_Mode = DMA_Mode_Normal;//DMA Work in normal mode,not Circle DMA_InitStructure.DMA_Priority = DMA_Priority_High;//DMA high Priority DMA_InitStructure.DMA_M2M = DMA_M2M_Enable;// enable Memory to Memory transfer DMA_Init(DMA1_Channel4, &DMA_InitStructure); //Enable DMA1 channel 4 transfer complete interrupt DMA_ITConfig(DMA1_Channel4, DMA_IT_TC, ENABLE); //clear the flag DMA_ClearFlag(DMA1_FLAG_TC4); //Enable DAM1 channel4 transfer DMA_Cmd(DMA1_Channel4, ENABLE);
所在话题
参与活动
-
滴滴押注社区团购,明确“投入不设上限,要做市场第一”
线下 2020-10-16 -
滴滴押注社区团购,明确“投入不设上限,要做市场第一”
网络 2020-10-16 -
滴滴押注社区团购,明确“投入不设上限,要做市场第一”
网络 2020-10-16 -
滴滴押注社区团购,明确“投入不设上限,要做市场第一”
网络 2020-10-16 -
滴滴押注社区团购,明确“投入不设上限,要做市场第一”
线下 2020-10-16 -
滴滴押注社区团购,明确“投入不设上限,要做市场第一”
线下 2020-10-16