寄存器的 DIR[1:0] 位为00,即选择数据传输方向为外设到内存,此时,DMA_SxPAR为源地址,DMA_SxM0...
while (DMA1_Stream0->CR & 0x1);// check LISR HISR registers if ((DMA1->HISR == 0) &&...
}while(((DMA_Stream_TypeDef *)huart->hdmarx->Instance)->CR & DMA_SxCR_EN); ((DMA_Stream_TypeDef *)huart->hdmarx->Instance)->PAR = (uint32_t)&huart->Instance->RDR; ((DMA_Stream_TypeDef *)huart->hdmarx->Instance)->M0AR = (uint32_t)DstAddress; ((DMA_Stream_TypeDef *)hua...
DMA1_Stream4->CR&=~(1<<4); //关闭传输完成中断(这里不用中断送数据)I2S2ext_RX_DMA_Init...