From 62cbabbd7c0fc280d6679f3447140b32291a786e Mon Sep 17 00:00:00 2001
From: WXK <287788329@qq.com>
Date: 星期二, 28 十一月 2023 10:42:52 +0800
Subject: [PATCH] 兰州机场无委测试提交。

---
 APL/dw_app.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/APL/dw_app.c b/APL/dw_app.c
index 8b2ffb9..8ecd86f 100644
--- a/APL/dw_app.c
+++ b/APL/dw_app.c
@@ -45,7 +45,7 @@
     (129 + 8 - 8)    /* SFD timeout (preamble length + 1 + SFD length - PAC size). Used in RX only. */
 };
 
-
+static uint32_t status_reg = 0;
 void Dw1000_Init(void)
 {
     /* Reset and initialise DW1000.
@@ -54,7 +54,8 @@
     Reset_DW1000();//重启DW1000 /* Target specific drive of RSTn line into DW1000 low for a period. */
     Spi_ChangePrescaler(SPIx_PRESCALER_SLOW);	//设置为快速模式
     dwt_initialise(DWT_LOADUCODE);//初始化DW1000
-    Spi_ChangePrescaler(SPIx_PRESCALER_FAST);	//设置为快速模式
+    status_reg = dwt_read32bitreg(SYS_STATUS_ID);
+//    Spi_ChangePrescaler(SPIx_PRESCALER_FAST);	//设置为快速模式
 
     /* Configure DW1000. See NOTE 6 below. */
     dwt_configure(&config);//配置DW1000

--
Gitblit v1.9.3