DMA-串口三测试程序
代码说明:
有关于stm32F105的串口三测试程序,通过dma的方式进行数据传输 void USART3_DMA_Send(u8 DA2_len,u8 u2_buffer[]) { u8 i = 1; if(DA2_len > USART3_SendBuff_SIZE) DA2_len = USART3_SendBuff_SIZE; if(USART3_TX_Finish ==0) { TX_Delayms(10); } USART3_TX_Finish = 0; DMA_Cmd(DMA1_Channel2, DISABLE); for(i=0;iCNDTR=DA2_len; DMA_Cmd(DMA1_Channel2, ENABLE); }
下载说明:请别用迅雷下载,失败请重下,重下不扣分!