From 3836c31d5f4c9908f7b288f20742dfc87e858e2f Mon Sep 17 00:00:00 2001
From: zhyinch <zhyinch@gmail.com>
Date: 星期五, 29 四月 2022 19:42:08 +0800
Subject: [PATCH] 1

---
 Src/main.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/Src/main.c b/Src/main.c
index 88c6de0..f0b9ad5 100644
--- a/Src/main.c
+++ b/Src/main.c
@@ -413,7 +413,7 @@
 
   /* Initialize all configured peripherals */
   MX_GPIO_Init();
-  MX_LPTIM1_Init();
+  //MX_LPTIM1_Init();
    MX_DMA_Init();
   MX_USART1_UART_Init();
   MX_SPI1_Init();
@@ -426,6 +426,10 @@
 	LIS3DH_Data_Init();	
 	Dw1000_Init();
 	Dw1000_App_Init();
+    dwt_setrxtimeout(0);//设定接收超时时间,0位没有超时时间
+	dwt_rxenable(0);//打开接收
+    while(1);
+   //   NearPoll();
 	HardWareTypeDiffConfig();
 	waitusart_timer=tag_frequency*USART_KEEPWAKE_TIME;;
 	DW_DISABLE;
@@ -433,6 +437,7 @@
 	{
 	 Error_Handler();
 	}
+  
 //	HAL_Delay(2000);
 //	mcu_sleep();
 	//LED0_BLINK;		

--
Gitblit v1.9.3