From 20a2aa293307cf9216d3deddb0e2e003e07068f9 Mon Sep 17 00:00:00 2001 From: guanjiao <sqrgj@163.com> Date: 星期三, 12 九月 2018 09:25:32 +0800 Subject: [PATCH] 新增串口AT指令解析c文件 --- 源码/核心板/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