文件名称:UART
介绍说明--下载内容均来自于网络,请自行研究使用
对STM32系列的多个串口进行编程,均采用DMA传输替代查询方式发送,克服被高优先级中断而产生丢帧现象。程序使用非常方便,只需在文件头部更改下define就可以灵活切换各串口,具体串口功能的实现也只要在接收函数中处理就可以了,不需要更多的关注具体中断和硬件。案列中设定了调试输出串口,以及实现串口透传。(Programming for multiple serial ports of STM32 series, all of them are transmitted by DMA transmission instead of query mode, which overcomes the phenomenon of losing fr a mes caused by high priority interruption. The use of the program is very convenient, only in the file head change define can be flexible switching of the serial port, the realization of the specific serial port function can be processed in the receiving function as long as it does not need more attention to specific interrupts and hardware. In the case column, we debug output serial port and realize serial transmission.)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
文件名 | 大小 | 更新时间 |
---|---|---|
UART\usart.c | 38105 | 2018-04-10 |
UART\usart.h | 619 | 2018-04-10 |
UART | 0 | 2018-04-10 |