博客
关于我
32单片机串口DMA接收
阅读量:329 次
发布时间:2019-03-04

本文共 985 字,大约阅读时间需要 3 分钟。

Uart_SeriaInit();					//串口接收初始化	SeriaReciveIRQ(&Uart3_Seriadef);	//在串口中断中接收数据/***************************************************	功能:串口的DMA接收函数***************************************************/void recWIFI(void){     	if(Uart3_Seriadef.ReciveSta )  		    //DMA接收完成标志位	{   		Uart3_Seriadef.ReciveSta  = 0 ;     //清空接收标志位	} }/***********************************	功能:发送一个字节的数据*************************************/void sendByte(uint8_t s){   	uint8_t send[1] = {   0} ; 	send[0] = s;	HAL_UART_Transmit(&huart3,send,1,1000) ;}/**********************************功能:发送字符串*************************************/void sendDtring(char * c){   	while(*c)	{   		sendByte(*c++) ; 	}}/***********************************	功能:发送数字,固定位数*************************************/void sendFigre(uint16_t F	, uint8_t B){   	if(B>=5) 		sendByte('0'+F/10000%10) ;	if(B>=4) 		sendByte('0'+F/1000%10) ;	if(B>=3) 		sendByte('0'+F/100%10) ;	if(B>=2) 		sendByte('0'+F/10%10) ;							sendByte('0'+F/1%10) ;}

在这里插入图片描述

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述在这里插入图片描述在这里插入图片描述

转载地址:http://cbrq.baihongyu.com/

你可能感兴趣的文章
NFV商用可行新华三vBRAS方案实践验证
查看>>
ng build --aot --prod生成文件报错
查看>>
ng 指令的自定义、使用
查看>>
ng6.1 新特性:滚回到之前的位置
查看>>
nghttp3使用指南
查看>>
Nginx
查看>>
nginx + etcd 动态负载均衡实践(一)—— 组件介绍
查看>>
nginx + etcd 动态负载均衡实践(三)—— 基于nginx-upsync-module实现
查看>>
nginx + etcd 动态负载均衡实践(二)—— 组件安装
查看>>
nginx + etcd 动态负载均衡实践(四)—— 基于confd实现
查看>>
Nginx + Spring Boot 实现负载均衡
查看>>
Nginx + Tomcat + SpringBoot 部署项目
查看>>
Nginx + uWSGI + Flask + Vhost
查看>>
Nginx - Header详解
查看>>
Nginx - 反向代理、负载均衡、动静分离、底层原理(案例实战分析)
查看>>
Nginx - 反向代理与负载均衡
查看>>
nginx 1.24.0 安装nginx最新稳定版
查看>>
nginx 301 永久重定向
查看>>
nginx connect 模块安装以及配置
查看>>
nginx css,js合并插件,淘宝nginx合并js,css插件
查看>>