From f5f5c53c2475c18131a4171f60e07e18c3aa1590 Mon Sep 17 00:00:00 2001
From: guanjiao <sqrgj@163.com>
Date: 星期六, 08 九月 2018 18:04:41 +0800
Subject: [PATCH] 加入串口发送接收

---
 源码/核心板/Src/application/dw_app.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/dw_app.c" "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/dw_app.c"
index 822a810..bd1960c 100644
--- "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/dw_app.c"
+++ "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/application/dw_app.c"
@@ -26,6 +26,8 @@
 #include "dw_driver.h"
 #include "Spi.h"
 #include "led.h"
+#include "serial_at_cmd_app.h"
+#include "Usart.h"
 
 
 /*------------------------------------ Marcos ------------------------------------------*/
@@ -333,7 +335,10 @@
 
 	/* Poll for reception of a frame or error/timeout. See NOTE 7 below. */
 	while (!((status_reg = dwt_read32bitreg(SYS_STATUS_ID)) & (SYS_STATUS_RXFCG | SYS_STATUS_ALL_RX_ERR)))//不断查询芯片状态直到接收成功或者出现错误
-	{ };
+	{ 
+		UART_CheckReceive();
+		UART_CheckSend();
+	};
 
 	if (status_reg & SYS_STATUS_RXFCG)//成功接收
 	{

--
Gitblit v1.9.3