From 226533bb2a30fd840e7e818077af1584062b5aed Mon Sep 17 00:00:00 2001
From: WXK <287788329@qq.com>
Date: 星期四, 13 二月 2025 09:37:25 +0800
Subject: [PATCH] 1.28,加入休眠后while(1),只进入stop。中断也不响应

---
 Src/ExternalDevices/dw_driver.c |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/Src/ExternalDevices/dw_driver.c b/Src/ExternalDevices/dw_driver.c
index 02e3f10..0ec03dd 100644
--- a/Src/ExternalDevices/dw_driver.c
+++ b/Src/ExternalDevices/dw_driver.c
@@ -24,7 +24,7 @@
 
     //drive the RSTn pin low
 //    GPIO_ResetBits(DW1000_RSTn_GPIO, DW1000_RSTn);
-
+delay_ms(1000);
     //put the pin back to tri-state ... as input
    GPIO_InitStruct.Pin = DW1000_RSTn;
   GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
@@ -32,7 +32,15 @@
   GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
   HAL_GPIO_Init(DW1000_RSTn_GPIO, &GPIO_InitStruct);
 
-    deca_sleep(2);
+//    deca_sleep(2);
+//  HAL_GPIO_WritePin(DW1000_RSTn_GPIO, DW1000_RSTn, GPIO_PIN_SET);
+//  GPIO_InitStruct.Pin = DW1000_RSTn;
+//  GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
+//  GPIO_InitStruct.Pull = GPIO_NOPULL;
+//  GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
+//  HAL_GPIO_Init(DW1000_RSTn_GPIO, &GPIO_InitStruct);
+
+//    deca_sleep(2);
 }
 
 //void DW_GPIO_Init(void)

--
Gitblit v1.9.3